vue-llz-ui
v0.0.13
Published
一个简单的组件库
Downloads
18
Readme
集合常用业务共用组件
- 安装
yarn add vue-llz-ui
- 依赖了quasar-ui
yarn add quasar @quasar/extras yarn add --dev @quasar/vite-plugin sass@^1.33.0
- src目录plugins下新建quasar.js文件
import { Quasar, Notify, Dialog } from 'quasar'
import '@quasar/extras/material-icons/material-icons.css'
import 'quasar/src/css/index.sass'
export const install = (app) => {
app.use(Quasar, {
plugins: {
Notify,
Dialog
},
config: {
notify: {
position: 'center',
timeout: 2500,
icon: ''
},
}
})
app.config.globalProperties.$notify = Notify.create
window.$notify = Notify.create
}
- 在main.js引入
import { createApp } from 'vue'
import { install as Quasar } from '@/plugins/quasar'
import VueLlzUI from 'vue-llz-ui'
import 'vue-llz-ui/style.css'
const app = createApp(App)
app.use(Quasar).use(VueLlzUI).mount('#app')