![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
1
颜笑·
目前从事低代码平台开发
展开
-
element给嵌套的dialog组件单独设置样式
因为有时间嵌套的dialog会和父dialog产生样式的冲突 添加一个custom-class,这个可以设置一个独特的样式,然后你可以在这个自己设定的样式上进行修改原创 2021-06-22 16:59:01 · 931 阅读 · 0 评论 -
让父组件继承子组件的具名插槽
有两种用法 第一种用法 // 子组件 // 具名插槽 <template> <slot name="pending"></slot> </template> // =====================分割线================== // 父组件 // 遍历slot插槽 <template v-for="item in Object.keys($slots)" #[item]="scope"> <slot :原创 2021-06-22 16:55:31 · 632 阅读 · 0 评论 -
分页器一些干货(样式排序)
首先data要申明变量 data() { return { size: 20, // 每一页的数量 current: 1 // 第几页 } }, 然后在复制的函数里进行赋值就可以了 handleSizeChange(val) { this.size = val console.log(`每页 ${val} 条`) }, handleCurrentChange(val) { this.current = va原创 2021-03-18 15:05:23 · 61 阅读 · 0 评论