vuejs/vue

Throw error when using interpolation instead of JS expression for slot names

開放

#9,038 建立於 2018年11月7日

 (8 則留言) (0 個反應) (0 位負責人)TypeScript (33,833 個分叉)batch import
feature requestgood first issuehas PR

倉庫指標

星標
 (209,764 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

What problem does this feature solve?

For this demo:

https://jsfiddle.net/2os9jken/

opening the console and running it throws the Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. error for the span, but it should also throw it for the slot, as it has the exact same issue for its name attribute.

What does the proposed API look like?

N/A

貢獻者指南