项目笔记
el-button
el-button 使用禁止和取消禁止
相关博客:
vue中button标签样式和功能禁用的写法
相关博客:
el-col
把页面分为等份
相关博客:
el-form
el-input-number
el-input 为 number 如何控制不允许输入负号
相关博客:
el-input-number 修改默认值为空
相关博客:
label怎么设置宽度
相关博客:
el-input
el-input 的 type 为 number 时的长度限制
input事件解决限制长度的问题,onKeypress
解决可以输入字母e的问题
<el-input
type="number"
v-model="form.number"
@input.native="changeNum"
onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))"
>
</el-input>
changeNum() {
//6是限制的长度
if (this.form.number.length > 6) {
this.form.number = this.form.number.slice(0, 6);
}
},
el-input 输入框 点击事件
相关博客:
el-select
el-select的value为item时的选中问题
相关博客:
表单自动验证问题的解决
相关博客:
好用但是个馊主意:在表单 赋值操作前 移除校验规则,使 this.formRules = {},form 赋值后再加上 校验规则
el-table
行点击事件
相关博客:
点击行 改变颜色
相关博客:
如果 !important
没生效
则在样式名前加上 ::deep
默认选中第一行
相关博客:
可编辑表格
相关博客:
鼠标悬浮样式
相关博客:
el-tree
当前选中项高亮显示
给 <el-tree>
标签加上 highlight-current
属性
其他
element 表格 formatter 格式化的用法
相关博客:
关于el-select组件设置默认值的实现
相关博客:
watch监听对象中某个属性
相关博客:
身份证号校验,根据身份证号获取年龄以及出生日期
相关博客: