随笔分类 -  ElementUI

摘要:方式一:添加监听 <el-dialog width="500px" :visible="videoVisible" @close="videoVisible=false" > </el-dialog> 方式二:设置关闭前的回调函数 <el-dialog width="500px" :visible= 阅读全文
posted @ 2022-03-08 15:24 蜘蛛流 阅读(192) 评论(0) 推荐(0) 编辑
摘要:表头水平居中 <template> <el-table :data="tableData" style="width: 100%" :header-cell-style="{textAlign: 'center'}" > <el-table-column prop="date" label="日期" 阅读全文
posted @ 2022-02-24 20:37 蜘蛛流 阅读(208) 评论(0) 推荐(0) 编辑
摘要:1. 按需引入组件 import {Image} from 'element-ui' Vue.use(Image) 2. 在 Table表格 中使用 el-image <el-table-column prop="photo" label="头像"> <template slot-scope="sc 阅读全文
posted @ 2022-02-24 20:21 蜘蛛流 阅读(1865) 评论(0) 推荐(0) 编辑
摘要:使用element-ui时,在 Table表格 内使用 Swithc开关 发现没办法正常开关和获取值 经过一番摸索,终于开窍了,记录一下 1. Swithc开关 绑定数据时使用 Table表格 数据内的对应属性值,其中所对应的索引就是 scope.$index 2. 所对应的点击事件 @change 阅读全文
posted @ 2022-02-24 18:19 蜘蛛流 阅读(34) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示