-
Notifications
You must be signed in to change notification settings - Fork 0
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
JerichoDing
committed
Feb 15, 2019
1 parent
799e23d
commit ee6542e
Showing
170 changed files
with
5,262 additions
and
28,076 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not ie <= 8 |
This file was deleted.
Oops, something went wrong.
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,53 +1,34 @@ | ||
# Xue-ui | ||
|
||
 | ||
|
||
> 本组件库仅供学习交流,请勿在生产环境中使用 | ||
[官方文档](https://xue-ui.com.cn) | ||
[React 实现](https://github.com/BlameDeng/xue-react) | ||
|
||
## 安装 | ||
|
||
克隆官方仓库或者使用 npm / yarn 安装 | ||
# yo-ui | ||
|
||
## Project setup | ||
``` | ||
$ git clone [email protected]:BlameDeng/xue-ui.git | ||
$ npm install xue-ui | ||
$ yarn add xue-ui | ||
yarn install | ||
``` | ||
|
||
## 使用 | ||
|
||
如果使用了 npm / yarn 安装,一般在 main.js 中如下配置: | ||
|
||
```javascript | ||
import Vue from 'vue' | ||
import App from 'components/app.vue' | ||
import Xue from 'xue-ui' | ||
import 'xue-ui/lib/xue-ui.css' | ||
Vue.use(Xue) | ||
new Vue({ | ||
el: '#app', | ||
render: h => h(App) | ||
}) | ||
### Compiles and hot-reloads for development | ||
``` | ||
yarn run serve | ||
``` | ||
|
||
以上代码便完成了 Xue-ui 的引入。需要注意的是,样式文件需要单独引入。 | ||
### Compiles and minifies for production | ||
``` | ||
yarn run build | ||
``` | ||
|
||
## 特别提醒 | ||
### Run your tests | ||
``` | ||
yarn run test | ||
``` | ||
|
||
使用 Xue-ui 时,您需要使用 border-box 盒模型,否则会影响样式。代码示例: | ||
### Lints and fixes files | ||
``` | ||
yarn run lint | ||
``` | ||
|
||
```css | ||
*, | ||
*::before, | ||
*::after { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
### Run your unit tests | ||
``` | ||
yarn run test:unit | ||
``` | ||
|
||
如果您觉得还不错,请 star | ||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.