0.1.5 • Published 3 years ago
ml_vue3_plugin v0.1.5
ml_vue3_plugin
本插件用 vue3
+ ts
编写,主要用于本人使用
安装
npm i ml_vue3_plugin -S
引入使用
const app = createApp(App)
import ml_vue3_plugin from 'ml_vue3_plugin'
import '../node_modules/ml_vue3_plugin/lib/ml_vue3_plugin.css'
app.use(ml_vue3_plugin)
如果出现ts报错
ERROR in src/main.ts:13:28
TS7016: Could not find a declaration file for module 'ml_vue3_plugin'. 'D:/try-new-test/mplugin.umd.min.js' implicitly has an 'any' type.
Try `npm install @types/ml_vue3_plugin` if it exists or add a new declaration (.d.ts) f
在shims-vue.d.ts配置上
declare module 'ml_vue3_plugin'
语雀笔记.