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
相关文章
相关标签/搜索