UNPKG

weiyun-ui

Version:

UI library For Vue

85 lines (65 loc) 1.45 kB
# UI library For Vue ## Prerequisites - npm >=v6.12.0 - node >=12.13.0 ## Components & Feature #### examples:例子层代码 #### packages:发布层代码 - [x] 国家地区组件 ``` // 使用方式 <wy-area :show-country="true"></wy-area> ``` ### 组件编写规范要求 - 组件必须写组件名称,以“wy-”开头,比如```wy-area``` - 组件最外围的样式名必须跟组件名称一致,比如```class="wy-area"```,如果组件里面要其他写样式,需要前缀为组件名,并以“--”连接,比如```class="wy-area--country"``` ### 组件安装说明 ``` npm i weiyun-ui -S ``` ### 组件引用说明 - 引入所有组件,在main.js中加入下面语句 ```js import WYUI from 'weiyun-ui' import "weiyun-ui/lib/wy-ui.css" Vue.use(WYUI); ``` - 引入单个组件,在main.js中加入下面语句 ```js import Empty from 'weiyun-ui/lib/packages/wy-empty'; import "weiyun-ui/lib/packages/wy-area/style.css"; Vue.use(Empty); ``` ## Author JadeLin ## 🤝 Contributing Contributions, issues and feature requests are welcome!<br /> ## Show your support Give a ⭐️ if this project helped you! ## How to start ### 安装依赖 ``` npm install ``` ### 本地测试运行 ``` npm run dev ``` ### 打包编译 在package.json文件中修改版本信息 ``` npm run build ``` ### npm 登录 ``` npm adduser ``` 或者 ``` npm login ``` 根据提示填写即可 ### npm 发布 ``` npm publish ```