【文件属性】:
文件名称:nuxt-class-component:ES TypeScript装饰器,用于类样式的NuxtVue组件
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-28 02:57:14
typescript vue nuxt TypeScript
弃用的存储库
请考虑改为使用 。
Nuxt类组件
Nuxt.js的ES和Typescript类组件装饰器,扩展了
安装
npm install --save nuxt-class-component
# or
yarn add nuxt-class-component
通天塔说明
npm install --save-dev babel-plugin-transform-decorators-legacy babel-plugin-transform-class-properties
# or
yarn add --dev babel-plugin-transform-decorators-legacy babel-plugin-transform-class-properties
然后,您可以在nuxt.config.js上配置Babel插件-插件顺序很重要(请参见):
modul
【文件预览】:
nuxt-class-component-master
----renovate.json(89B)
----package.json(919B)
----.github()
--------ISSUE_TEMPLATE.md(191B)
----LICENSE(1KB)
----dist()
--------index.js(1KB)
--------index.js.map(455B)
--------index.d.ts(215B)
----tsconfig.json(441B)
----.gitignore(884B)
----CHANGELOG.md(913B)
----lib()
--------index.ts(414B)
----README.md(4KB)
----yarn.lock(58KB)