
vue
陈吖
努力中~
展开
-
Antd使用Form组件报错:You cannot set a form field before rendering a field associated with the value.
antd of vue Form组件报错`warning.js?d96e:34 Warning: You cannot set a form field before rendering a field associated with the value. You can use getFieldDecorator(id, options)insteadv-decorator="[id, options]" to register it before render.`原创 2023-02-03 16:46:41 · 3688 阅读 · 3 评论 -
vue组件中name的作用(命名组件)
作用三:vue-tools调试时,如果使用设置了name属性,那么控制台里显示的是设置的名字,否则显示组件名。信息来源:https://www.cnblogs.com/wuqilang/p/13718924.html。作用一:当使用keep-alive时,可以使用这个name进行过滤。作用二:递归组件(组件自己调用自己)中迭代时需要调用自身的name。使用Vue.use()注册组件,将来该组件使用时就可以这样写。这两种写法都可以生效。原创 2022-09-19 10:15:24 · 2141 阅读 · 2 评论 -
VueCLI3创建项目
1、项目名称2、选择模板3、键盘上下移动到要使用的选项上,点击空格即可选中。Linter/Formatter是选择eslint语法规范,此处不使用的话可以取消。4、选择VueCLI版本5、选择配置文件存放位置6、选择是否要保存模板7、将上述配置过程的信息进行保存,供下次使用8、配置完成,等下载依赖VueCLI3目录结构介绍...原创 2022-06-25 00:19:41 · 164 阅读 · 0 评论 -
router-link属性
<router-link>该标签是一个vue-router中已经内置的组件,它会被渲染成一个a标签 to属性:用于指定跳转的路径 tag属性:指定<router-link>之后渲染成什么组件 replace属性:replace不会记录history记录,所以指定replace的情况下,后退键返回不能返 回到上一个页面中 active-cl...原创 2022-04-14 22:26:01 · 406 阅读 · 0 评论 -
问题:vue-cli · Failed to download repo vuejs-templates/webpack: connect ETIMEDOUT 203.208.39.104:443
原因:安装vue脚手架时,使用工具命令vue init webpack vue1创建vue项目时,下载某个package需要翻墙,导致出现连接超时。解决办法:离线创建。我们需要从github仓库中下载vue-templates/webpack,然后解压到本地。下载地址:https://github.com/vuejs-templates/webpack,然后解压到C:\Users\cc\.vue-templates,这个cc是我电脑的用户名,要改成自己的,还有.vue-template...原创 2022-04-12 15:55:49 · 1441 阅读 · 5 评论