@burt1/ny-ui
v0.0.9
Published
Ny Vue extension components.
Downloads
2
Readme
burt1/ny
南燕组件库。该组件库采用 Vue3+ Ts + Vite 实现!同时支持Vant以及Element-plus
安装使用
npm install @burt1/ny-ui
# or
pnpm add @burt1/ny-ui
# or
yarn add @burt1/ny-ui
# or
bun add @burt1/ny-ui
- global
// main.ts 如果只用移动端组件Vant
import { createApp } from 'vue'
import App from './App.vue'
import NyUi from '@burt1/ny-ui'
import '@burt1/ny-ui/dist/index.css'
import Vant from 'vant'
import 'vant/lib/index.css'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
const app = createApp(App)
app.use(NyUI)
app.use(Vant)
// app.use(ElementPlus)
app.mount('#app')
// xx.vue 使用组件
<ny-email-input></ny-email-input>
- Use CDN
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/@burt1/ny-ui@latest/dist/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/@burt1/ny-ui@latest"></script>