vue template 中 slot-scope/scope 的使用

在vue 2.5.0+ 中***slot-scope***替代了 scope template 的使用情形爲,咱們已經封裝好一個組件,預留了插槽,使用 的插槽vue 首先 咱們的建立一個組件 組件很簡單有一個 slot,slot有兩個屬性 a=123,b=msgweb <template> <div> <div>下面是一個slot</div> <slot a
相關文章
相關標籤/搜索