- 全局加载
- 按需加载
- 介绍网站
- 国际化配置
- Chatbox 畅聊气泡
- Loading 加载动画
- Toast 消息提示框
- Modal 模态对话框
- Musicbox 八音盒
npm install @gypsophlia/create-ui -S
import CreateUI from "@gypsophlia/create-ui";
import "@gypsophlia/create-ui/lib/theme/index.css";
Vue.use(CreateUI);
import { Chatbox } from "@gypsophlia/create-ui";
Vue.use(Chatbox);
安装插件
npm install babel-plugin-component -D
Babel 配置
plugins: [
[
"component",
{
libraryName: "@gypsophlia/create-ui",
styleLibrary: {
name: "theme",
base: false,
},
},
],
];
安装插件
npm install babel-plugin-import -D
Babel 配置
plugins: [
[
"import",
{
libraryName: "@gypsophlia/create-ui",
styleLibraryDirectory: "lib/theme",
},
],
];
或将以下配置写入
vue.config.js
中的configureWebpack
中
Webpack 配置
// webpack.config.js
resolve: {
extensions: [".css"];
}