2016-09-24 22:43:55 +08:00
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://www.iviewui.com">
|
|
|
|
|
<img width="200" src="https://raw.githubusercontent.com/iview/iview/master/assets/logo.png">
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
2016-09-16 22:10:02 +08:00
|
|
|
|
|
2016-10-02 21:14:57 +08:00
|
|
|
|
# iView [](https://travis-ci.org/iview/iview) [](https://www.npmjs.org/package/iview) [](https://npmjs.org/package/iview)
|
2016-09-24 22:43:55 +08:00
|
|
|
|
|
|
|
|
|
### A high quality UI Components Library with Vue.js
|
2016-09-16 22:10:02 +08:00
|
|
|
|
|
|
|
|
|
## Docs
|
|
|
|
|
|
2016-09-22 13:42:59 +08:00
|
|
|
|
### [中文文档](https://www.iviewui.com)
|
2016-09-16 22:10:02 +08:00
|
|
|
|
|
2016-09-24 22:43:55 +08:00
|
|
|
|
## Overview
|
|
|
|
|
|
|
|
|
|
### [组件概览(Component Overview)](https://www.iviewui.com/overview)
|
|
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
- Using .vue file development mode
|
|
|
|
|
- Based on npm + webpack + babel, support ES2015
|
|
|
|
|
- High quality and rich functions
|
|
|
|
|
- Friendly APIs,free and flexible
|
|
|
|
|
|
2016-09-16 22:10:02 +08:00
|
|
|
|
## Programming
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
2016-09-24 22:43:55 +08:00
|
|
|
|
## Install
|
|
|
|
|
|
|
|
|
|
### Install vue-webpack project in the first place
|
|
|
|
|
|
|
|
|
|
Use [vue-vueRouter-webpack](https://github.com/icarusion/vue-vueRouter-webpack)(Recommended) Or [vue-cli](https://github.com/vuejs/vue-cli)
|
|
|
|
|
|
|
|
|
|
### Install iView
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm install iview --save
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Babel support for iView in webpack
|
|
|
|
|
```js
|
|
|
|
|
module: {
|
|
|
|
|
loaders: [
|
2016-10-09 15:53:03 +08:00
|
|
|
|
{ test: /iview\/.*?js$/, loader: 'babel' },// for Mac
|
|
|
|
|
{ test: /iview\\.*?js$/, loader: 'babel' },// for Windows
|
2016-09-24 22:43:55 +08:00
|
|
|
|
{ test: /\.js$/, loader: 'babel', exclude: /node_modules/ }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
Use component as required
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<template>
|
|
|
|
|
<Page :current="1" :total="100"></Page>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { Page } from 'iview';
|
|
|
|
|
export default {
|
|
|
|
|
components: { Page }
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
```
|
|
|
|
|
Use css
|
|
|
|
|
```js
|
|
|
|
|
import 'iview/dist/styles/iview.css';
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Browser Support
|
|
|
|
|
|
|
|
|
|
Normal browsers and Internet Explorer 9+.
|
|
|
|
|
|
|
|
|
|
## Links
|
|
|
|
|
|
|
|
|
|
- [Vue](https://github.com/vuejs/vue)
|
|
|
|
|
- [Webpack](https://github.com/webpack/webpack)
|
|
|
|
|
- [ionicons](https://github.com/driftyco/ionicons)
|
|
|
|
|
- [Ant Design](https://github.com/ant-design/ant-design)
|
|
|
|
|
|
2016-10-02 21:14:57 +08:00
|
|
|
|
# We have been in developing, please pay attention to the iView.
|