0.0.7 • Published 2 years ago
nlxx-ui v0.0.7
nLxxUi
基于Vue3 + Vite3.0 + TS + tailwindCss 封装的一套UI组件库
安装
使用npm 或 yarn 安装
npm install nlxx-ui
yarn add nlxx-ui
引入 nLxxUi
完整引入
需要注意的是 css 样式文件需要单独引入。
在 main.js 中写入以下内容:
import { createApp } from 'vue'
import App from './App.vue'
// 导入组件库
import nLxxUi from 'nlxx-ui'
import 'nlxx-ui/lib/style.css'
const app = createApp(App)
app.use(nLxxUi)
app.mount('#app')
愉快开始
至此 nLxxUi 就引入完成并且可以使用了。
<!-- html -->
<nlxx-button>默认按钮</nlxx-button>
<nlxx-button type="primary">主要按钮</nlxx-button>