随笔分类 - Element
摘要:1. 新建js文件 export default (app) => { app.directive('loadmore', { beforeMount(el, binding) { const element = el.querySelector('.t-select__dropdown'); el
阅读全文
摘要:.el-form-item--small .el-form-item__error { margin-top: 2px; } .el-form-item__error { position: absolute !important; top:16px; text-align: center; bac
阅读全文
摘要:1.只能选择当前及以后的日期 <el-date-picker v-model="value1" type="date" :picker-options="pickerOptions"> </el-date-picker> data() { return { pickerOptions: { disa
阅读全文
摘要:rules: { expiryOnDate: [ { validator: (rule, value, callback) => { if (!this.item.expiryControlType) { if (this.item.expiryOnDate == null) { callback(
阅读全文
摘要:/* 设置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; } /* 设置表头...
阅读全文
摘要:取 消 确 定 append-to-body这个就是解决遮罩页面
阅读全文
摘要:logout() { this.$confirm("你确定退出吗?", "提示:", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(x => { localStorage.removeItem("t...
阅读全文
摘要:1.formatter 用来格式化内容 对table的值进行处理。Function(row, column, cellValue, index){} 使用formatter需要注意以下几点: ①无论formatter出何种形式,格式化出的DOM一定都是被包含在默认的div标签内 ②在写formatt
阅读全文
摘要:效果: append-to-body 解决el-dialog 弹窗遮罩为题 <el-dialog title="EditProClass" :visible.sync="visible" @close="$emit('update:show', false)" :show="show" append
阅读全文