-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yuri
authored and
yuri
committed
May 16, 2017
1 parent
998488f
commit 94dc773
Showing
6 changed files
with
447 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,54 @@ | ||
# vue-beauty | ||
<p align="center"> | ||
<a href="https://github.com/FE-Driver/vue-beauty"> | ||
<img width="200" src="https://raw.githubusercontent.com/FE-Driver/vue-beauty/master/src/assets/VB-logo.png"> | ||
</a> | ||
</p> | ||
|
||
# vue-beauty [![npm](http://img.shields.io/npm/v/vue-beauty.svg)](https://www.npmjs.com/package/vue-beauty) [![NPM downloads](http://img.shields.io/npm/dm/vue-beauty.svg)](https://www.npmjs.com/package/vue-beauty) [![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://www.npmjs.com/package/vue-beauty) | ||
Beautiful UI components build with vue and ant design | ||
|
||
- [Vue官网](http://vuejs.org/) | ||
- [Ant.Design官网](http://ant.design/) | ||
- 本项目采用vue2和ant deisgn2.0进行开发 | ||
|
||
## 如何体验(How to experience) | ||
Still developing,not suggesting to use in production! | ||
- clone本项目,并切换到next分支 | ||
- 安装依赖(yarn),并打包(npm run package) | ||
- 在你的项目中引入 | ||
````javascript | ||
import 'relativePath/vue-beauty/package/style/vue-beauty.min.css'; | ||
import vueBeauty from 'relativePath/vue-beauty'; | ||
|
||
vue.use(vueBeauty); | ||
```` | ||
|
||
## 目录结构 | ||
<pre> | ||
VUE-BEAUTY/ | ||
|-- build 存放webpack的配置 | ||
|-- vb 组件库 | ||
| |-- components 组件 | ||
| |-- directives 指令 | ||
| |-- locale 多语言 | ||
| |-- mixins 混合 | ||
| |-- style 核心样式 | ||
| |-- utils 工具方法 | ||
| `-- index.js 入口 | ||
`-- src 存放文档 | ||
|-- views 视图页面 | ||
|-- docs 组件文档 | ||
|-- components 业务组件 | ||
|-- main.js 入口 | ||
`-- routers.js 路由 | ||
</pre> | ||
|
||
## 参与流程 | ||
|
||
- 我们会通过issue的形式发布一系列任务 | ||
- 在任务issue下面回复并认领 | ||
- 根据某个issue,fork并在next分支下实现 | ||
- 提交pr到next分支 | ||
- 合并pr,测试并发布到master分支 | ||
- NOTICE:可以加入QQ群548062121讨论 | ||
|
||
## 开发步骤 | ||
- 到[ant-design2.0](https://github.com/ant-design/ant-design/tree/master/components)官网拷贝相应的样式到对应组件的style文件夹下,并在组件vue文件里面引入 | ||
- 开发完组件后,需要在vb/components/index.js里面导出 | ||
- 到src/docs下编写组件的使用文档 | ||
- 同时在下列文件:src/routers.js、src/views/components.vue,添加组件的路由和链接 | ||
|
||
## 命名规范 | ||
- 文件,目录均以横线连接(如data-table) | ||
- 组件的name均以大写开头,驼峰式(如TreeSelect) | ||
|
||
## 感谢 | ||
- 感谢为这个项目做过贡献的所有朋友。 | ||
- 感谢vue和ant design的开发者。 | ||
## 特性 | ||
- 丰富的组件,涵盖常用场景 | ||
- 基于vue组件化开发,数据驱动视图 | ||
- 封装复杂性,提供简单友好的api | ||
- 基于ant design样式优化 | ||
|
||
## 引入 | ||
使用npm或者yarn | ||
``` | ||
npm install vue-beauty -S OR yarn add vue-beauty | ||
import Vue from 'vue' | ||
//import css | ||
import 'vue-beauty/package/style/vue-beauty.min.css' | ||
//import components | ||
import vueBeauty from 'vue-beauty' | ||
Vue.use(vueBeauty) | ||
//OR | ||
import {alert} from 'vue-beauty' | ||
Vue.use(alert) | ||
``` | ||
或使用 <script> 全局引用 | ||
``` | ||
<link rel="stylesheet" href="vue-beauty.min.css"> | ||
<script type="text/javascript" src="vue-beauty.min.js"></script> | ||
``` | ||
更多说明,请查看我们的[在线文档](https://fe-driver.github.io/vue-beauty)。 | ||
|
||
## 浏览器支持 | ||
chrome、firefox、暂不支持IE(计划支持IE11+)。 | ||
|
||
## Polyfill | ||
本组件库内置了一些es最新实例方法的垫片,请查看[Polyfill](https://fe-driver.github.io/vue-beauty/#!/components/polyfill)。 | ||
|
||
## 更新日志 | ||
欢迎查看详细的[更新日志](https://github.com/FE-Driver/vue-beauty/releases)。 | ||
|
||
## 参与贡献 | ||
我们欢迎任何形式的贡献,请阅读[贡献指南](https://fe-driver.github.io/vue-beauty/#!/components/contribute)了解详细的情况。 | ||
|
||
## 链接 | ||
- [Vue官网](http://cn.vuejs.org//) | ||
- [Ant.Design官网](http://ant.design/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.