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

Function processSlot

static/vuejs/vue.js:8052–8071  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls 2

getBindingAttrFunction · 0.70
getAndRemoveAttrFunction · 0.70

Tested by

no test coverage detected