0.0.9 • Published 1 year ago
jlg-ui v0.0.9
- 💪 Vue 3 Composition API
- 🔥 Written in TypeScript
Getting Started
npm i jlg-ui
main.ts
import { createApp } from 'vue';
import App from './App.vue';
import JlgUi from 'jlg-ui';
import 'jlg-ui/dist/style.css';
createApp(App).use(JlgUi).mount('#app');
如果您使用 Volar,请在 tsconfig.json 中通过 compilerOptions.type 指定全局组件类型。
tsconfig.json
{
"compilerOptions": {
// ...
"types": ["jlg-ui/global"]
}
}
如果使用vscode,需要安装vetur插件获得更好的类型提示与代码补全体验
Contributors
This project exists thanks to all the people who contribute.
And thank you to all our backers! 🙏