Fork me on GitHub

随笔分类 -  Element

摘要:1. 新建js文件 export default (app) => { app.directive('loadmore', { beforeMount(el, binding) { const element = el.querySelector('.t-select__dropdown'); el 阅读全文
posted @ 2023-04-28 16:33 欢欢11 阅读(1339) 评论(0) 推荐(0) 编辑
摘要:.el-form-item--small .el-form-item__error { margin-top: 2px; } .el-form-item__error { position: absolute !important; top:16px; text-align: center; bac 阅读全文
posted @ 2020-02-12 09:37 欢欢11 阅读(5840) 评论(1) 推荐(0) 编辑
摘要:1.只能选择当前及以后的日期 <el-date-picker v-model="value1" type="date" :picker-options="pickerOptions"> </el-date-picker> data() { return { pickerOptions: { disa 阅读全文
posted @ 2019-12-02 14:25 欢欢11 阅读(5473) 评论(0) 推荐(1) 编辑
摘要:rules: { expiryOnDate: [ { validator: (rule, value, callback) => { if (!this.item.expiryControlType) { if (this.item.expiryOnDate == null) { callback( 阅读全文
posted @ 2019-10-23 12:17 欢欢11 阅读(208) 评论(0) 推荐(0) 编辑
摘要:/* 设置table header的背景颜色 */ .el-table__header th, .el-table__header tr { background-color: #17B3A3; color: black; } /* 设置表主体的高度 */ .el-table__body td,.el-table__body th{ padding:1px; } /* 设置表头... 阅读全文
posted @ 2019-07-19 10:57 欢欢11 阅读(167) 评论(0) 推荐(0) 编辑
摘要:取 消 确 定 append-to-body这个就是解决遮罩页面 阅读全文
posted @ 2018-12-12 16:18 欢欢11 阅读(174) 评论(0) 推荐(0) 编辑
摘要:logout() { this.$confirm("你确定退出吗?", "提示:", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(x => { localStorage.removeItem("t... 阅读全文
posted @ 2018-11-20 15:50 欢欢11 阅读(597) 评论(0) 推荐(0) 编辑
摘要:1.formatter 用来格式化内容 对table的值进行处理。Function(row, column, cellValue, index){} 使用formatter需要注意以下几点: ①无论formatter出何种形式,格式化出的DOM一定都是被包含在默认的div标签内 ②在写formatt 阅读全文
posted @ 2018-10-28 21:08 欢欢11 阅读(4301) 评论(0) 推荐(0) 编辑
摘要:效果: append-to-body 解决el-dialog 弹窗遮罩为题 <el-dialog title="EditProClass" :visible.sync="visible" @close="$emit('update:show', false)" :show="show" append 阅读全文
posted @ 2018-10-28 21:03 欢欢11 阅读(405) 评论(0) 推荐(0) 编辑

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