登录后绑定QQ、微信即可实现信息互通
比如父类传一个字符串类型,type:String 如果用string写就会报错?但是String是构造函数,string才是类型,为什么会是这样?
父组件<template><div><el-row><Tree/></el-row><el-row><Tree :handleNodeClick="handleNodeClick" /></el-row></div><script>import Tree from './Tree'export default {components: {Tree},methods: {handleNodeClick(data) {console.log('父组..
我有如下的 props 我想 根据 type 的类型 来验证 value 的合法性,但是似乎访问不到 type 属性 props: {type: {type: String,default: 'date'},value: {type: Object,default: () => ({}),validator: (data){if(this.type==='date) return xxx //报..
使用 npm run lint 格式化了项目中的一部分代码但是 还是报如下错误 warningThe "computed" property should be above the "watch" property on line 69vue/order-in-components使用vscode eslint 格式化也无效(对其它规则已生效),小白请教大佬解答..
prop有多种类型可能,可能是字符串也可能是函数,但是下图这种写法不能规定具体的类型所以我用下图这种写法,但是报错了,这种是多种类型的情况怎么写类型注解呢?
提出你的第一个问题
回答一个你擅长的问题
对内容进行点赞或者收藏
阅读声望与权限的规范
完善个人资料