如何使用vue-property-decorator进行Vue组件属性装饰?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1668个文字,预计阅读时间需要7分钟。
一、安装依赖npm install i + s vue-property-decorator
二、用法@Component(options: ComponentOptions={})@Component装饰器可以接收一个对象作为参数,可以将一个对象作为参数传递,作为参数,可以在对象中声明components、filters、directives等未提供的装饰器。
本文共计1668个文字,预计阅读时间需要7分钟。
一、安装依赖npm install i + s vue-property-decorator
二、用法@Component(options: ComponentOptions={})@Component装饰器可以接收一个对象作为参数,可以将一个对象作为参数传递,作为参数,可以在对象中声明components、filters、directives等未提供的装饰器。

