Skip to content

Commit 37a1421

Browse files
author
黄书伟
committed
add cn readme
1 parent 4060b2c commit 37a1421

File tree

2 files changed

+84
-15
lines changed

2 files changed

+84
-15
lines changed

README-CN.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[![npm](https://img.shields.io/npm/v/vue-easytable.svg)](https://www.npmjs.com/package/vue-easytable)
2+
[![npm](https://img.shields.io/npm/l/vue-easytable.svg?maxAge=2592000)](http://www.opensource.org/licenses/mit-license.php)
3+
4+
# vue-easytable
5+
6+
7+
## 介绍
8+
基于 vue2.x 的table组件
9+
10+
## API & 实例
11+
[API&实例](http://doc.huangsw.com/vue-easytable/app.html#/table)
12+
13+
## 功能
14+
1. [自适应,可以随着浏览器窗口改变自动适应](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-simple-table-resize)
15+
2. [固定列,表头固定](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-frozen-title-columns)  
16+
3. [默认支持列宽拖动](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-basic-no-table-width)
17+
4. [支持单个字段排序和多个字段排序](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-sort-by-single-columns)
18+
5. [自定义列、自定义单元格样式](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-custom-columns)
19+
6. [loading效果、自定义loading 等](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-loading-and-error-content)
20+
7. [自带分页组件](http://doc.huangsw.com/vue-easytable/app.html#/pagination)
21+
8. [单元格编辑](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-cell-edit)
22+
23+
24+
## 安装
25+
26+
```javascript
27+
npm install vue-easytable --save-dev
28+
```
29+
30+
## 使用([更多](http://doc.huangsw.com/vue-easytable/app.html)
31+
32+
33+
```javascript
34+
// 导入 css
35+
import 'vue-easytable/libs/themes-base/index.css'
36+
37+
// 导入 table 组件 和分页组件
38+
import {VTable,VPagination} from 'vue-easytable'
39+
40+
// 将组件注册到全局
41+
Vue.component(VTable.name, VTable)
42+
Vue.component(VPagination.name, VPagination)
43+
```
44+
45+
## 效果(不是全部)
46+
![vue-easytable](./examples/images/vue-easytable.gif)
47+
48+
## ToDo
49+
50+
- [x] [添加单元格编辑功能](https://github.com/huangshuwei/vue-easytable/releases/tag/1.2.1)
51+
- [ ] 添加 checkbox 多选功能  
52+
- [ ] 添加 footer 功能
53+
- [ ] 添加导出 excel 功能
54+
- [ ] 添加导出 pdf 功能
55+
- [ ] 添加条件过滤功能
56+
- [ ] 添加行展开功能
57+
- [ ] 纵向整列拖动
58+
59+
60+
## License
61+
http://www.opensource.org/licenses/mit-license.php
62+
63+
64+
65+
66+

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
# vue-easytable
55

6+
[切换中文]()
7+
68

79
## Introduction
810
Based on vue2.x flexible table components.
@@ -11,14 +13,14 @@ Based on vue2.x flexible table components.
1113
[API&Examples](http://doc.huangsw.com/vue-easytable/app.html#/table)
1214

1315
## Features
14-
1. [自适应,可以随着浏览器窗口改变自动适应](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-simple-table-resize)
15-
2. [固定列,表头固定](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-frozen-title-columns)  
16-
3. [默认支持列宽拖动](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-basic-no-table-width)
17-
4. [支持单个字段排序和多个字段排序](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-sort-by-single-columns)
18-
5. [自定义列、自定义单元格样式](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-custom-columns)
19-
6. [loading效果、自定义loading 等](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-loading-and-error-content)
20-
7. [自带分页组件](http://doc.huangsw.com/vue-easytable/app.html#/pagination)
21-
8. [单元格编辑](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-cell-edit)
16+
1. [Adaptive, you can automatically adapt to the browser window changes](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-simple-table-resize)
17+
2. [Fixed column, header fixed](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-frozen-title-columns)  
18+
3. [Support column width drag](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-basic-no-table-width)
19+
4. [Supports single field sorting and multiple field sorting](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-sort-by-single-columns)
20+
5. [Custom columns, custom cell styles](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-custom-columns)
21+
6. [Loading effects, custom loading, etc](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-loading-and-error-content)
22+
7. [Own paging component](http://doc.huangsw.com/vue-easytable/app.html#/pagination)
23+
8. [Cell Editing](http://doc.huangsw.com/vue-easytable/app.html#/table?anchor=table-cell-edit)
2224

2325

2426
## Install
@@ -47,13 +49,14 @@ Vue.component(VPagination.name, VPagination)
4749

4850
## ToDo
4951

50-
- [x] [添加单元格编辑功能](https://github.com/huangshuwei/vue-easytable/releases/tag/1.2.1)
51-
- [ ] 添加 checkbox 多选功能  
52-
- [ ] 添加 footer 功能
53-
- [ ] 添加导出 excel 功能
54-
- [ ] 添加导出 pdf 功能
55-
- [ ] 添加条件过滤功能
56-
- [ ] 添加行展开功能
52+
- [x] [Cell editing](https://github.com/huangshuwei/vue-easytable/releases/tag/1.2.1)
53+
- [ ] Support checkbox selection  
54+
- [ ] Add footer
55+
- [ ] Export excel
56+
- [ ] Export PDF
57+
- [ ] Conditional filter
58+
- [ ] Row expansion
59+
- [ ] Vertical column drag
5760

5861

5962
## License

0 commit comments

Comments
 (0)