![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
陈乾cQQ
这个作者很懒,什么都没留下…
展开
-
Ant Design Vue 中遇到的坑(三) a-select、tree-select组件placeholder属性不起作用
一、发生场景在使用Ant Design 时,在表单中使用a-select、tree-select组件时设置的placeholder一直不显示。二、原因a-select、tree-select组件使用 v-model绑定的值由于是从后台请求,初始值设为了"",故placeholder没有能够生效。三、解决办法对于a-select组件,可以将v-model绑定的初始值修改成 undefined即可生效。对于tree-select组件,可以将v-model绑定的初始值修改成 null 或 undefi原创 2021-01-15 09:31:57 · 4676 阅读 · 0 评论 -
Ant Design Vue 中遇到的坑(二) `Form.Item` cannot generate `validateStatus` and `help` automatically...
一、发生场景在使用Ant Design 时,进入页面打开控制台发现有红色的警告:‘Form.Item’ cannot generate ‘validateStatus’ and ‘help’ automatically,while there are more than one ‘getFieldDecorator’ in it.二、原因经过查找发现在同一个form-item中使用v-for循环遍历生成了多个input框,并且每个都加上了v-decorator作为数组,但实际每一个from-i原创 2021-01-12 09:15:08 · 10966 阅读 · 0 评论 -
vue中$router和$route的区别及$route的参数简介
router和router和router和route区别在vue2.0里页面参数是this.route.query或者this.route.query或者this.route.query或者this.route.params接收router-link传的参数.在路由跳转的时候除了用router-link标签以外需要在script标签在事件里面跳转,所以有个方法就是在script标签里面写this.$router.push(‘需要跳转的路径名’),在写的时候发现这两个为什么不同,在控制台打出this的时原创 2020-09-19 10:04:28 · 422 阅读 · 0 评论