1.1.3 • Published 2 years ago

webui_cs v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

laihuarepo

使用方式

全量引入

import laihua from '@laihua/webui'
import '@laihua/webui/lib/index/style.css'
Vue.use(laihua)

按需引入

首先,需要安装babel-plugin-import,然后在babel.cofnig.js中配置:

module.exports = {
    presets: ["@vue/app", ["@babel/preset-env", { "modules": false }]],
    plugins: [
        [
            "import",
            {
                "libraryName": "@laihua/webui",
                "style": (name) => {
                    return `${name}/style.css`;
                }
            }
        ]
    ]
}

其次,按需引入使用

import { button } from '@laihua/webui'
Vue.use(button)