摘要: 阅读全文
posted @ 2021-12-30 18:38 ๑Secret 阅读(20) 评论(0) 推荐(0)
摘要: props里面的数据是只读的 不能直接修改 props默认值,. 用对象格式即可 但里面需要设置default props-type类型校验 注意 不是转换!是校验 检测传入的数据类型 如果要数字型就在属性前加一个v-bind props: { // 自定义A init:{ default:0, t 阅读全文
posted @ 2021-12-30 14:50 ๑Secret 阅读(150) 评论(0) 推荐(0)