history-sky-ui
v1.0.6
Published
A Vue.js ui project
Downloads
18
Readme
history-sky-ui
自定义组件库的尝试
npm 安装
npm i history-sky-ui
In package.json
"dependencies": {
"history-sky-ui": "^1.0.1"
}
简单使用:
main.js
import Vue from 'vue'
import HistorySkyUi from 'history-sky-ui'
import 'history-sky-ui/lib/theme-chalk/index.css'
Vue.use(HistorySkyUi)
page.vue
<sky-button>我是按钮</sky-button>
Notes
组件使用了sass,在项目使用中,需要安装sass组件
"devDependencies": {
"node-sass": "^4.5.3",
"sass-loader": "^6.0.6"
}
项目下载后本地调试:
安装依赖:
npm install
本地运行:
npm run dev
打包:
npm run build