1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../index');
var _index2 = _interopRequireDefault(_index);
require('../assets/index.less');
require('../assets/bordered.less');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var columns = [{
title: '姓名',
dataIndex: 'name',
key: 'name'
}, {
title: '其它',
children: [{
title: '年龄',
dataIndex: 'age',
key: 'age'
}, {
title: '住址',
children: [{
title: '街道',
dataIndex: 'street',
key: 'street'
}, {
title: '小区',
children: [{
title: '单元',
dataIndex: 'building',
key: 'building'
}, {
title: '门牌',
dataIndex: 'number',
key: 'number'
}]
}]
}]
}, {
title: '公司',
children: [{
title: '地址',
dataIndex: 'companyAddress',
key: 'companyAddress'
}, {
title: '名称',
dataIndex: 'companyName',
key: 'companyName'
}]
}, {
title: '性别',
dataIndex: 'gender',
key: 'gender'
}]; /* eslint-disable no-console,func-names,react/no-multi-comp */
var data = [{
key: '1',
name: '胡彦斌',
age: 32,
street: '拱墅区和睦街道',
building: 1,
number: 2033,
companyAddress: '西湖区湖底公园',
companyName: '湖底有限公司',
gender: '男'
}, {
key: '2',
name: '胡彦祖',
age: 42,
street: '拱墅区和睦街道',
building: 3,
number: 2035,
companyAddress: '西湖区湖底公园',
companyName: '湖底有限公司',
gender: '男'
}];
exports['default'] = {
render: function render() {
var h = arguments[0];
return h('div', [h('h2', ['grouping columns']), h(_index2['default'], {
attrs: { columns: columns, data: data },
'class': 'bordered' })]);
}
};