Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c22d1d commit c264335Copy full SHA for c264335
‎src/compiler/parser/index.js
@@ -460,6 +460,15 @@ function processSlot (el) {
460
}
461
el.slotScope = slotScope || getAndRemoveAttr(el, 'slot-scope')
462
} else if ((slotScope = getAndRemoveAttr(el, 'slot-scope'))) {
463
+ /* istanbul ignore if */
464
+ if (process.env.NODE_ENV !== 'production' && el.attrsMap['v-for']) {
465
+ warn(
466
+ `Ambiguous combined usage of slot-scope and v-for on <${el.tag}> ` +
467
+ `(v-for takes higher priority). Use a wrapper <template> for the ` +
468
+ `scoped slot to make it clearer.`,
469
+ true
470
+ )
471
+ }
472
el.slotScope = slotScope
473
474
const slotTarget = getBindingAttr(el, 'slot')
0 commit comments