bi-element-ui 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bi-element-ui.common.js +190 -61
- package/lib/bi-element-ui.css +1 -1
- package/lib/bi-element-ui.umd.js +190 -61
- package/lib/bi-element-ui.umd.min.js +5 -5
- package/package.json +1 -1
- package/src/table.js +86 -0
- package/src/views/Table.vue +190 -173
package/package.json
CHANGED
package/src/table.js
CHANGED
@@ -91,6 +91,92 @@ export default {
|
|
91
91
|
}
|
92
92
|
}
|
93
93
|
],
|
94
|
+
duojibiaotou: [
|
95
|
+
{
|
96
|
+
label: '日期',
|
97
|
+
prop: 'date',
|
98
|
+
fixed: 'left',
|
99
|
+
minWidth: '100px',
|
100
|
+
renderHeader: (h) => {
|
101
|
+
return <span>日期456</span>
|
102
|
+
}
|
103
|
+
},
|
104
|
+
{
|
105
|
+
label: '组',
|
106
|
+
fixed: 'left',
|
107
|
+
children: [
|
108
|
+
{
|
109
|
+
label: '组2',
|
110
|
+
fixed: 'left',
|
111
|
+
children: [
|
112
|
+
{
|
113
|
+
label: '姓名',
|
114
|
+
prop: 'name',
|
115
|
+
fixed: 'left',
|
116
|
+
renderHeader: (h) => {
|
117
|
+
return <span>姓名456</span>
|
118
|
+
},
|
119
|
+
render: (h, scope) => {
|
120
|
+
const { row } = scope
|
121
|
+
return <span>{row.name}123</span>
|
122
|
+
}
|
123
|
+
},
|
124
|
+
{
|
125
|
+
label: '省份',
|
126
|
+
prop: 'province',
|
127
|
+
fixed: 'left',
|
128
|
+
renderHeader: (h) => {
|
129
|
+
return <span>省份456</span>
|
130
|
+
}
|
131
|
+
}
|
132
|
+
]
|
133
|
+
},
|
134
|
+
{
|
135
|
+
label: '省份3',
|
136
|
+
fixed: 'left',
|
137
|
+
prop: 'province3',
|
138
|
+
renderHeader: (h) => {
|
139
|
+
return <span>省份456</span>
|
140
|
+
},
|
141
|
+
render: (h, { row }) => {
|
142
|
+
return <span>{row.province}123</span>
|
143
|
+
}
|
144
|
+
}
|
145
|
+
]
|
146
|
+
},
|
147
|
+
{ label: '市区', prop: 'city', minWidth: '100px' },
|
148
|
+
{ label: '地址', prop: 'address', minWidth: '100px' },
|
149
|
+
{ label: '邮编', prop: 'zip', minWidth: '200px' },
|
150
|
+
{
|
151
|
+
label: '组件',
|
152
|
+
prop: 'cmp',
|
153
|
+
minWidth: '400px',
|
154
|
+
component: EditBtn,
|
155
|
+
listeners: {
|
156
|
+
'row-edit'(row) {
|
157
|
+
console.log('row-edit', row)
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
],
|
162
|
+
duojibiaotou2: [
|
163
|
+
{ label: '日期', prop: 'date' },
|
164
|
+
{ label: '姓名', prop: 'name' },
|
165
|
+
{ label: '省份', prop: 'province' },
|
166
|
+
{ label: '市区', prop: 'city' },
|
167
|
+
{ label: '地址', prop: 'address' },
|
168
|
+
{ label: '邮编', prop: 'zip' },
|
169
|
+
{
|
170
|
+
label: '组件',
|
171
|
+
prop: 'cmp',
|
172
|
+
component: EditBtn,
|
173
|
+
listeners: {
|
174
|
+
'row-edit'(row) {
|
175
|
+
console.log('row-edit', row)
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
],
|
94
180
|
|
95
181
|
typesColumn: [
|
96
182
|
{ label: '序号', prop: 'index', type: 'index' },
|
package/src/views/Table.vue
CHANGED
@@ -1,85 +1,101 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
3
|
+
|
4
|
+
<div
|
5
|
+
class="example-table-box"
|
6
|
+
style="padding-top: 20px"
|
7
|
+
>
|
8
|
+
<p>测试表格</p>
|
9
|
+
<div class="test">
|
10
|
+
<el-table
|
11
|
+
v-sticky-header="{offsetTop:0}"
|
12
|
+
v-sticky-footer
|
13
|
+
:data="data"
|
14
|
+
show-summary
|
15
|
+
>
|
16
|
+
|
17
|
+
<el-table-column
|
18
|
+
label="组"
|
19
|
+
fixed="left"
|
20
|
+
width="200px"
|
15
21
|
>
|
16
|
-
<el-table-column
|
17
|
-
label="日期"
|
18
|
-
prop="date"
|
19
|
-
width="160"
|
20
|
-
></el-table-column>
|
21
|
-
<el-table-column
|
22
|
-
label="姓名"
|
23
|
-
prop="name"
|
24
|
-
></el-table-column>
|
25
22
|
<el-table-column
|
26
23
|
label="省份"
|
27
24
|
prop="province"
|
25
|
+
width="100px"
|
26
|
+
fixed="left"
|
28
27
|
></el-table-column>
|
29
28
|
<el-table-column
|
30
|
-
label="
|
31
|
-
prop="
|
32
|
-
|
33
|
-
|
34
|
-
label="地址"
|
35
|
-
prop="address"
|
36
|
-
min-width="200"
|
37
|
-
></el-table-column>
|
38
|
-
<el-table-column
|
39
|
-
label="地址"
|
40
|
-
prop="address2"
|
41
|
-
min-width="200"
|
42
|
-
></el-table-column>
|
43
|
-
<el-table-column
|
44
|
-
label="邮编"
|
45
|
-
prop="zip"
|
46
|
-
fixed="right"
|
29
|
+
label="姓名"
|
30
|
+
prop="name"
|
31
|
+
width="100px"
|
32
|
+
fixed="left"
|
47
33
|
></el-table-column>
|
48
|
-
</el-table>
|
49
|
-
</div>
|
50
34
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
35
|
+
</el-table-column>
|
36
|
+
<el-table-column
|
37
|
+
label="日期"
|
38
|
+
prop="date"
|
39
|
+
width="100px"
|
40
|
+
></el-table-column>
|
41
|
+
<el-table-column
|
42
|
+
label="市区"
|
43
|
+
prop="city"
|
44
|
+
width="100px"
|
45
|
+
></el-table-column>
|
46
|
+
<el-table-column
|
47
|
+
label="地址"
|
48
|
+
prop="address"
|
49
|
+
width="200px"
|
50
|
+
></el-table-column>
|
51
|
+
<el-table-column
|
52
|
+
label="地址"
|
53
|
+
prop="address2"
|
54
|
+
width="200px"
|
55
|
+
></el-table-column>
|
56
|
+
<el-table-column
|
57
|
+
label="邮编"
|
58
|
+
prop="zip"
|
59
|
+
fixed="right"
|
60
|
+
width="200px"
|
61
|
+
></el-table-column>
|
62
|
+
</el-table>
|
59
63
|
</div>
|
60
|
-
<el-button
|
61
|
-
type=""
|
62
|
-
@click="search"
|
63
|
-
>搜索</el-button>
|
64
64
|
|
65
|
-
<
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
:summary-method="getSummaries"
|
80
|
-
></bi-table>
|
81
|
-
</div>
|
65
|
+
<!-- <bi-table
|
66
|
+
border
|
67
|
+
stripe
|
68
|
+
:data="data"
|
69
|
+
:column="basicColumn"
|
70
|
+
show-summary
|
71
|
+
:summary-method="getSummaries"
|
72
|
+
></bi-table> -->
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<el-button
|
76
|
+
type=""
|
77
|
+
@click="search"
|
78
|
+
>搜索</el-button>
|
82
79
|
|
80
|
+
<div
|
81
|
+
class="example-table-box"
|
82
|
+
style="padding-top: 20px"
|
83
|
+
>
|
84
|
+
<p>sticky表格</p>
|
85
|
+
<bi-table
|
86
|
+
ref="table"
|
87
|
+
header-popper-type="asd"
|
88
|
+
border
|
89
|
+
stripe
|
90
|
+
fixed="sticky"
|
91
|
+
:sticky-top="0"
|
92
|
+
:data="data"
|
93
|
+
:column="duojibiaotou"
|
94
|
+
show-summary
|
95
|
+
:summary-method="getSummaries"
|
96
|
+
></bi-table>
|
97
|
+
</div>
|
98
|
+
<template v-if="false">
|
83
99
|
<div style="padding-bottom:600px"></div>
|
84
100
|
<div class="example-table-box">
|
85
101
|
<p>普通固定表头</p>
|
@@ -169,113 +185,114 @@
|
|
169
185
|
</template>
|
170
186
|
</bi-table>
|
171
187
|
</div>
|
172
|
-
</template>
|
173
|
-
<div class="example-table-box">
|
174
|
-
<p>tooltipIcon在表格内的组件使用</p>
|
175
|
-
<p> <el-button @click="tableLoading=!tableLoading">tableLoading</el-button></p>
|
176
|
-
<el-table
|
177
|
-
v-sticky-header="{offsetTop:0}"
|
178
|
-
v-sticky-footer="{offsetBottom:0}"
|
179
|
-
:data="data"
|
180
|
-
:summary-method="getSummaries"
|
181
|
-
show-summary
|
182
|
-
>
|
183
|
-
<el-table-column
|
184
|
-
label="日期"
|
185
|
-
prop="date"
|
186
|
-
fixed
|
187
|
-
></el-table-column>
|
188
|
-
<el-table-column
|
189
|
-
label="姓名"
|
190
|
-
prop="name"
|
191
|
-
fixed
|
192
|
-
></el-table-column>
|
193
|
-
<el-table-column
|
194
|
-
label="省份"
|
195
|
-
prop="province"
|
196
|
-
fixed
|
197
|
-
></el-table-column>
|
198
|
-
<el-table-column
|
199
|
-
label="省份tableLoading3"
|
200
|
-
prop="province"
|
201
|
-
fixed="right"
|
202
|
-
></el-table-column>
|
203
|
-
<el-table-column
|
204
|
-
v-if="tableLoading"
|
205
|
-
label="姓名right1"
|
206
|
-
prop="name"
|
207
|
-
fixed="right"
|
208
|
-
></el-table-column>
|
209
188
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
189
|
+
<div class="example-table-box">
|
190
|
+
<p>tooltipIcon在表格内的组件使用</p>
|
191
|
+
<p> <el-button @click="tableLoading=!tableLoading">tableLoading</el-button></p>
|
192
|
+
<el-table
|
193
|
+
v-sticky-header="{offsetTop:0}"
|
194
|
+
v-sticky-footer="{offsetBottom:0}"
|
195
|
+
:data="data"
|
196
|
+
:summary-method="getSummaries"
|
197
|
+
show-summary
|
198
|
+
>
|
199
|
+
<el-table-column
|
200
|
+
label="日期"
|
201
|
+
prop="date"
|
202
|
+
fixed
|
203
|
+
></el-table-column>
|
204
|
+
<el-table-column
|
205
|
+
label="姓名"
|
206
|
+
prop="name"
|
207
|
+
fixed
|
208
|
+
></el-table-column>
|
209
|
+
<el-table-column
|
210
|
+
label="省份"
|
211
|
+
prop="province"
|
212
|
+
fixed
|
213
|
+
></el-table-column>
|
214
|
+
<el-table-column
|
215
|
+
label="省份tableLoading3"
|
216
|
+
prop="province"
|
217
|
+
fixed="right"
|
218
|
+
></el-table-column>
|
219
|
+
<el-table-column
|
220
|
+
v-if="tableLoading"
|
221
|
+
label="姓名right1"
|
222
|
+
prop="name"
|
223
|
+
fixed="right"
|
224
|
+
></el-table-column>
|
216
225
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
226
|
+
<el-table-column
|
227
|
+
v-if="tableLoading"
|
228
|
+
label="姓名right2"
|
229
|
+
prop="name"
|
230
|
+
fixed="right"
|
231
|
+
></el-table-column>
|
221
232
|
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
233
|
+
<el-table-column
|
234
|
+
label="市区"
|
235
|
+
prop="city"
|
236
|
+
></el-table-column>
|
237
|
+
|
238
|
+
<el-table-column
|
239
|
+
label="地址"
|
240
|
+
prop="address"
|
241
|
+
width="400"
|
242
|
+
></el-table-column>
|
243
|
+
<el-table-column
|
244
|
+
label="地址2"
|
245
|
+
prop="address"
|
246
|
+
width="400"
|
247
|
+
></el-table-column>
|
248
|
+
<el-table-column
|
249
|
+
label="地址3"
|
250
|
+
prop="address"
|
251
|
+
width="400"
|
252
|
+
></el-table-column>
|
253
|
+
<el-table-column
|
254
|
+
label="邮编"
|
255
|
+
prop="zip"
|
256
|
+
></el-table-column>
|
257
|
+
<el-table-column
|
258
|
+
label="操作"
|
259
|
+
prop="cmp"
|
260
|
+
></el-table-column>
|
261
|
+
<el-table-column
|
262
|
+
label="邮编"
|
263
|
+
prop="zip"
|
264
|
+
></el-table-column>
|
265
|
+
<el-table-column
|
266
|
+
label="操作"
|
267
|
+
prop="cmp"
|
268
|
+
></el-table-column>
|
269
|
+
<el-table-column
|
270
|
+
label="邮编"
|
271
|
+
prop="zip"
|
272
|
+
></el-table-column>
|
273
|
+
<el-table-column
|
274
|
+
label="操作"
|
275
|
+
prop="cmp"
|
276
|
+
></el-table-column>
|
277
|
+
<el-table-column
|
278
|
+
label="邮编"
|
279
|
+
prop="zip"
|
280
|
+
></el-table-column>
|
281
|
+
<el-table-column
|
282
|
+
label="操作"
|
283
|
+
prop="cmp"
|
284
|
+
></el-table-column>
|
285
|
+
<el-table-column
|
286
|
+
label="邮编"
|
287
|
+
prop="zip"
|
288
|
+
></el-table-column>
|
289
|
+
<el-table-column
|
290
|
+
label="操作"
|
291
|
+
prop="cmp"
|
292
|
+
></el-table-column>
|
293
|
+
</el-table>
|
294
|
+
</div>
|
295
|
+
</template>
|
279
296
|
</div>
|
280
297
|
</template>
|
281
298
|
|