This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,33 @@ A simple table component based Vue 2.x.
8
8
Install the pkg with npm:
9
9
10
10
```
11
+ // v1
11
12
npm i --save v2-table beautify-scrollbar
13
+
14
+ // v2
15
+ npm i --save v2-table
12
16
```
13
17
or yarn
14
18
15
19
```
20
+ // v1
16
21
yarn add v2-table beautify-scrollbar
22
+
23
+ // v2
24
+ yarn add v2-table
17
25
```
18
26
19
27
## Get Started
20
28
21
29
```
22
30
import Vue from 'vue';
23
31
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
25
38
import 'v2-table/dist/index.css';
26
39
import V2Table from 'v2-table';
27
40
@@ -123,6 +136,7 @@ More demo to visit [here](https://dwqs.github.io/v2-table).
123
136
| align | String | left/center/right | center | alignment |
124
137
| fixed | String | left/right | - | fixed column to left or right |
125
138
| type | String | - | - | type of the column |
139
+ | render-header | Function(h, { column }) | - | - | render function for table header of this column |
126
140
127
141
## Development
128
142
Original file line number Diff line number Diff line change @@ -8,19 +8,32 @@ A simple table component based Vue 2.x.
8
8
npm:
9
9
10
10
```
11
+ // v1
11
12
npm i --save v2-table beautify-scrollbar
13
+
14
+ // v2
15
+ npm i --save v2-table
12
16
```
13
17
yarn:
14
18
15
19
```
20
+ // v1
16
21
yarn add v2-table beautify-scrollbar
22
+
23
+ // v2
24
+ yarn add v2-table
17
25
```
18
26
## 快速开始
19
27
20
28
```
21
29
import Vue from 'vue';
22
30
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
24
37
import 'v2-table/dist/index.css';
25
38
import V2Table from 'v2-table';
26
39
@@ -121,6 +134,7 @@ Vue.use(V2Table)
121
134
| align | String | left/center/right | center | 对应列的对齐方式 |
122
135
| fixed | String | left/right | - | 列是否固定在左侧或者右侧 |
123
136
| type | String | - | - | 对应列的类型。如果设置了 ` selection ` 则显示多选框 |
137
+ | render-header | Function(h, { column }) | - | - | 列标题 Label 区域渲染使用的 Function |
124
138
125
139
## Development
126
140
You can’t perform that action at this time.
0 commit comments