MCPcopy Create free account
hub / github.com/TruthHun/BookStack / processSlot

Function processSlot

static/vuejs/vue.common.js:8058–8077  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

8056}
8057
8058function processSlot (el) {
8059 if (el.tag === 'slot') {
8060 el.slotName = getBindingAttr(el, 'name');
8061 if (process.env.NODE_ENV !== 'production' && el.key) {
8062 warn$2(
8063 "`key` does not work on <slot> because slots are abstract outlets " +
8064 "and can possibly expand into multiple elements. " +
8065 "Use the key on a wrapping element instead."
8066 );
8067 }
8068 } else {
8069 var slotTarget = getBindingAttr(el, 'slot');
8070 if (slotTarget) {
8071 el.slotTarget = slotTarget === '""' ? '"default"' : slotTarget;
8072 }
8073 if (el.tag === 'template') {
8074 el.slotScope = getAndRemoveAttr(el, 'scope');
8075 }
8076 }
8077}
8078
8079function processComponent (el) {
8080 var binding;

Callers 1

parseFunction · 0.70

Calls 2

getBindingAttrFunction · 0.70
getAndRemoveAttrFunction · 0.70

Tested by

no test coverage detected