0.2.5 • Published 5 years ago
jxh-ui-pc v0.2.5
jxh-ui
使用 npm 或 yarn 安装
npm install jxh-ui-pc --save
yarn add jxh-ui
示例
import Vue from 'vue';
import { Button } from 'jxh-ui-pc';
Vue.use(Button);
引入样式
import 'jxh-ui/jxh-ui-pc.css';
按需加载
使用 babel-plugin-import(推荐)。
// .babelrc or babel-loader option
{
"plugins": [
["import", { "libraryName": "jxh-ui", "libraryDirectory": "lib", "style": "css" }] // `style: true` 会加载 less 文件
]
}