Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit e447b0a

Browse files
committed
refactor: Update README.md
1 parent 94f434a commit e447b0a

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,33 @@ A simple table component based Vue 2.x.
88
Install the pkg with npm:
99

1010
```
11+
// v1
1112
npm i --save v2-table beautify-scrollbar
13+
14+
// v2
15+
npm i --save v2-table
1216
```
1317
or yarn
1418

1519
```
20+
// v1
1621
yarn add v2-table beautify-scrollbar
22+
23+
// v2
24+
yarn add v2-table
1725
```
1826

1927
## Get Started
2028

2129
```
2230
import Vue from 'vue';
2331
24-
import 'beautify-scrollbar/dist/index.css';
32+
// v1
33+
import 'beautify-scrollbar/dist/index.css';
34+
import 'v2-table/dist/index.css';
35+
import V2Table from 'v2-table';
36+
37+
// v2
2538
import 'v2-table/dist/index.css';
2639
import V2Table from 'v2-table';
2740
@@ -123,6 +136,7 @@ More demo to visit [here](https://dwqs.github.io/v2-table).
123136
| align | String | left/center/right | center | alignment |
124137
| fixed | String | left/right | - | fixed column to left or right |
125138
| type | String | - | - | type of the column |
139+
| render-header | Function(h, { column }) | - | - | render function for table header of this column |
126140

127141
## Development
128142

README_CN.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,32 @@ A simple table component based Vue 2.x.
88
npm:
99

1010
```
11+
// v1
1112
npm i --save v2-table beautify-scrollbar
13+
14+
// v2
15+
npm i --save v2-table
1216
```
1317
yarn:
1418

1519
```
20+
// v1
1621
yarn add v2-table beautify-scrollbar
22+
23+
// v2
24+
yarn add v2-table
1725
```
1826
## 快速开始
1927

2028
```
2129
import Vue from 'vue';
2230
23-
import 'beautify-scrollbar/dist/index.css';
31+
// v1
32+
import 'beautify-scrollbar/dist/index.css';
33+
import 'v2-table/dist/index.css';
34+
import V2Table from 'v2-table';
35+
36+
// v2
2437
import 'v2-table/dist/index.css';
2538
import V2Table from 'v2-table';
2639
@@ -121,6 +134,7 @@ Vue.use(V2Table)
121134
| align | String | left/center/right | center | 对应列的对齐方式 |
122135
| fixed | String | left/right | - | 列是否固定在左侧或者右侧 |
123136
| type | String | - | - | 对应列的类型。如果设置了 `selection` 则显示多选框 |
137+
| render-header | Function(h, { column }) | - | - | 列标题 Label 区域渲染使用的 Function |
124138

125139
## Development
126140

0 commit comments

Comments
 (0)