摘要:
vue-property-decorator组件依赖于vue-class-components @Component 这个属性是写组件的核心,他一般作为装饰器植入我们所写的组件class内 而他也可以通过设置参数来讲一些额外的属性注入class内 <script lang="ts"> import 阅读全文
posted @ 2021-09-27 15:39
来吃点代码
阅读(722)
评论(0)
推荐(0)
摘要:
function Vue (options) { if (process.env.NODE_ENV !== 'production' &&!(this instanceof Vue)) { warn('Vue is a constructor and should be called with th 阅读全文
posted @ 2021-09-27 15:39
来吃点代码
阅读(113)
评论(0)
推荐(0)
摘要:
我们常用的指令中v-model 他实际上是语法糖 <template> <input v-model="value"/> </template> <script> export default { data() { return { value:'' }; } }; </script> 等于以下写法 阅读全文
posted @ 2021-09-27 15:30
来吃点代码
阅读(1980)
评论(0)
推荐(0)

浙公网安备 33010602011771号