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

Function processSlot

static/vuejs/vue.esm.js:8056–8075  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls 2

getBindingAttrFunction · 0.70
getAndRemoveAttrFunction · 0.70

Tested by

no test coverage detected