摘要: var vm = new Vue({ data: { a: 1 }, computed: { // 仅读取 aDouble: function () { return this.a * 2 }, // 读取和设置 aPlus: { get: function () { return this.a + 阅读全文
posted @ 2020-12-16 15:10 otome 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 因为级联选择器el-Cascader应该通过v-model来绑定值而不是:value 但是结果还是不能修改他绑定的值,这是因为绑定的是计算属性 见下 阅读全文
posted @ 2020-12-16 15:07 otome 阅读(672) 评论(2) 推荐(0) 编辑