@@ -71,9 +71,9 @@ function genData (el) {
if (el.key) {
data += `key:${el.key},`
}
- // slot names
- if (el.attrsMap.slot) {
- data += `slot:"${el.attrsMap.slot}",`
+ // slot target
+ if (el.slotTarget) {
+ data += `slot:${el.slotTarget},`
// class
if (el.staticClass) {
@@ -270,6 +270,8 @@ function processRender (el) {
function processSlot (el) {
if (el.tag === 'slot') {
el.slotName = getBindingAttr(el, 'name')
+ } else {
+ el.slotTarget = getBindingAttr(el, 'slot')