- 博客(4)
- 收藏
- 关注
原创 element-ui table 的事件 @select-all @selection-change
element-ui el-table @select-all @selection-change带参数 <template> <el-table ref="tableData" :data="tableData" @selection-change="(selections)=>{handSelectionChange(selections,'参数')}" @select-a
2021-02-03 16:44:25
6856
原创 报错:did you register the component correctly? For recursive components, make sure to provide the “nam
今天遇到的问题报错 报错:did you register the component correctly? For recursive components, make sure to provide the “name“ 报这个错目前我知道的是可能会有下边这两个原因: 1.components写成component 可以看到很多帖子就都说这个问题,以至于我出现这个bug的时候怀疑自己(觉得自己眼瞎掉了) 解决方法:用瞎了的眼睛找使劲找(如果瞎了就用ctrl+f 2.组件内的循环引用 可能是组件套组件,各
2020-12-23 16:11:42
20483
6
原创 搜索功能
搜索功能 先说一下需求 点击搜索按钮 根据我输入的内容进行搜索 我的表格里有两列 一个是name 一个是age 可以搜索 名字(小王) 年龄(23) 这里只写了js html的话就写个input和button就ok search () { let text = this.text this.dataOne= !text ? this.dataTwo : this.dataTwo.filter(item =>item.age.includes(text) || item.name.includes
2020-08-25 17:53:36
326
原创 element-ui 组件-计数器el-input-number
在table表格里用计数器el-input-number 网上找了大半天都没找到 后来自己解决了 vue element 需求:在表格里加计数器 上图片 <template> <el-table border style="width: 100%" :data="formData"> <el-table-column prop="age" label="年龄" width="150"></el-table-column>
2020-08-13 10:37:53
9076
6
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人