![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
assassinator_567
咸鱼一条
展开
-
Vue 插槽总结
vue插槽总结:具名插槽、作用域插槽、动态插槽名原创 2022-07-05 16:51:57 · 510 阅读 · 0 评论 -
Vue slot插槽的使用,定义动态插槽
Vue slot插槽的使用,定义动态插槽需求封装vxetable,并对外提供自定义插槽,可以定义像edit一样固定名字的插槽,也可以定义和列名相同的动态插槽代码// 子级封装<template #edit="{ row }"> <slot name="edit" :row="row"></slot></template><template v-for="(item,index) in columns" #[item.dataInde原创 2021-08-09 11:04:30 · 2106 阅读 · 2 评论