![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iview
bingot
这个作者很懒,什么都没留下…
展开
-
vue 正整数,首位不为0校验
<input type="text" v-model="inputValue" @input="cahnge" />methods:{ cahnge(e){ //e='迪丽热巴056.26526' //去小数点,中文 this.inputValue= e.replace(/[^0-9]/gi, '') //首位不可为0 this.inputValue = this.inputValue.replace(/\D/g, '').replace(/^原创 2021-07-16 10:35:00 · 1056 阅读 · 0 评论 -
iview table动态修改checked状态
背景:公司需要做一个根据列表某个条件相同筛选出可以选择的勾选框,其他禁用。在使用过程中发现,只要是修改了表格的数据结构,iview 表格的on-select-cancel方法就永远不执行,所以才有了自己瞎搞的方案。我这里是根据age做条件,只要是age相同,就可以选,其他的禁止选择。不多说,直接上代码:<template> <div> <Table :row-class-name="rowClassName" border原创 2020-06-09 19:58:40 · 3125 阅读 · 0 评论