bi-element-ui 0.3.3 → 1.0.0
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 +52318 -51411
- package/lib/bi-element-ui.css +1 -1
- package/lib/bi-element-ui.umd.js +52318 -51411
- package/lib/bi-element-ui.umd.min.js +78 -78
- package/package.json +30 -30
- package/pnpm-lock.yaml +2353 -2308
- package/src/views/Home.vue +196 -192
- package/src/views/Layout.vue +1 -1
package/src/views/Home.vue
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
<div class="bi-table">
|
3
3
|
|
4
4
|
<BiMoreButton
|
5
|
+
v-if="false"
|
5
6
|
button-text="more"
|
6
7
|
:button="moreButton"
|
7
8
|
></BiMoreButton>
|
@@ -27,214 +28,217 @@
|
|
27
28
|
pagination
|
28
29
|
:column="basicColumn"
|
29
30
|
:total="100"
|
31
|
+
show-summary
|
30
32
|
:auto-scroll="false"
|
31
33
|
:page.sync="listQuery.page"
|
32
34
|
:limit.sync="listQuery.limit"
|
33
35
|
></bi-table>
|
34
36
|
</div>
|
35
37
|
|
36
|
-
<div
|
37
|
-
<
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
<div v-if="false">
|
39
|
+
<div class="example-table-box">
|
40
|
+
<p>支持render渲染</p>
|
41
|
+
<bi-table
|
42
|
+
border
|
43
|
+
:data="data"
|
44
|
+
:column="renderColumn"
|
45
|
+
></bi-table>
|
46
|
+
</div>
|
44
47
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
48
|
+
<div class="example-table-box">
|
49
|
+
<p>支持slot插槽</p>
|
50
|
+
<bi-table
|
51
|
+
border
|
52
|
+
:data="data"
|
53
|
+
:column="slotColumn"
|
54
|
+
>
|
55
|
+
<template v-slot:zip="{ row }">
|
56
|
+
<el-tag
|
57
|
+
class="el-icon-message-solid"
|
58
|
+
type="success"
|
59
|
+
>
|
60
|
+
{{ row.zip }}
|
61
|
+
</el-tag>
|
62
|
+
</template>
|
63
|
+
</bi-table>
|
64
|
+
</div>
|
62
65
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
66
|
+
<div class="example-table-box">
|
67
|
+
<p>支持组件引入</p>
|
68
|
+
<bi-table
|
69
|
+
border
|
70
|
+
:data="data"
|
71
|
+
:column="componentColumn"
|
72
|
+
></bi-table>
|
73
|
+
</div>
|
71
74
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
75
|
+
<div class="example-table-box">
|
76
|
+
<p>支持树形数据</p>
|
77
|
+
<bi-table
|
78
|
+
border
|
79
|
+
:data="data"
|
80
|
+
:column="componentColumn"
|
81
|
+
default-expand-all
|
82
|
+
row-key="id"
|
83
|
+
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
84
|
+
></bi-table>
|
85
|
+
</div>
|
83
86
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
87
|
+
<div class="example-table-box">
|
88
|
+
<p>支持selection/index/expand</p>
|
89
|
+
<bi-table
|
90
|
+
border
|
91
|
+
:data="data"
|
92
|
+
:column="typesColumn"
|
93
|
+
></bi-table>
|
94
|
+
</div>
|
92
95
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
96
|
+
<div class="example-table-box">
|
97
|
+
<p>带分页功能</p>
|
98
|
+
<bi-table
|
99
|
+
border
|
100
|
+
:data="data"
|
101
|
+
:column="complexColumn"
|
102
|
+
:columns-props="columnsProps"
|
103
|
+
pagination
|
104
|
+
:auto-scroll="false"
|
105
|
+
:total="100"
|
106
|
+
:page.sync="listQuery.page"
|
107
|
+
:limit.sync="listQuery.limit"
|
108
|
+
@selection-change="selectionChange"
|
109
|
+
@pagination="getList"
|
110
|
+
> </bi-table>
|
108
111
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
>
|
113
|
-
<el-form
|
114
|
-
:model="editForm"
|
115
|
-
label-width="100px"
|
112
|
+
<el-dialog
|
113
|
+
title="收货地址"
|
114
|
+
:visible.sync="dialogVisible"
|
116
115
|
>
|
117
|
-
<el-form
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<el-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
<
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
116
|
+
<el-form
|
117
|
+
:model="editForm"
|
118
|
+
label-width="100px"
|
119
|
+
>
|
120
|
+
<el-form-item label="名称">
|
121
|
+
<el-input
|
122
|
+
v-model="editForm.name"
|
123
|
+
autocomplete="off"
|
124
|
+
></el-input>
|
125
|
+
</el-form-item>
|
126
|
+
<el-form-item label="区域">
|
127
|
+
<el-select
|
128
|
+
v-model="editForm.province"
|
129
|
+
placeholder="请选择区域"
|
130
|
+
style="width: 100%"
|
131
|
+
>
|
132
|
+
<el-option
|
133
|
+
label="上海"
|
134
|
+
value="shanghai"
|
135
|
+
></el-option>
|
136
|
+
<el-option
|
137
|
+
label="北京"
|
138
|
+
value="beijing"
|
139
|
+
></el-option>
|
140
|
+
</el-select>
|
141
|
+
</el-form-item>
|
142
|
+
<el-form-item label="市区">
|
143
|
+
<el-input v-model="editForm.city"></el-input>
|
144
|
+
</el-form-item>
|
145
|
+
<el-form-item label="地址">
|
146
|
+
<el-input v-model="editForm.address"></el-input>
|
147
|
+
</el-form-item>
|
148
|
+
</el-form>
|
149
|
+
<div
|
150
|
+
slot="footer"
|
151
|
+
class="dialog-footer"
|
152
|
+
>
|
153
|
+
<el-button @click="dialogVisible = false">取 消</el-button>
|
154
|
+
<el-button
|
155
|
+
type="primary"
|
156
|
+
@click="dialogVisible = false"
|
157
|
+
>确 定</el-button>
|
158
|
+
</div>
|
159
|
+
</el-dialog>
|
160
|
+
</div>
|
158
161
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
162
|
+
<div class="example-table-box">
|
163
|
+
<p>sticky表格</p>
|
164
|
+
<bi-table
|
165
|
+
border
|
166
|
+
stripe
|
167
|
+
fixed="sticky"
|
168
|
+
:data="data"
|
169
|
+
:column="fullscreenColumn"
|
170
|
+
></bi-table>
|
171
|
+
</div>
|
169
172
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
173
|
+
<div class="example-table-box">
|
174
|
+
<p>普通固定表头</p>
|
175
|
+
<bi-table
|
176
|
+
border
|
177
|
+
stripe
|
178
|
+
fixed="fullscreen"
|
179
|
+
:data="data"
|
180
|
+
:column="fullscreenColumn"
|
181
|
+
max-height="200px"
|
182
|
+
fixed-offset="60"
|
183
|
+
pagination
|
184
|
+
:auto-scroll="false"
|
185
|
+
:total="100"
|
186
|
+
:page.sync="listQuery.page"
|
187
|
+
:limit.sync="listQuery.limit"
|
188
|
+
@selection-change="selectionChange"
|
189
|
+
@pagination="getList"
|
190
|
+
></bi-table>
|
191
|
+
</div>
|
189
192
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
193
|
+
<div class="example-table-box">
|
194
|
+
<p>sticky-tabs表格</p>
|
195
|
+
<el-tabs>
|
196
|
+
<el-tab-pane label="tabs">
|
197
|
+
<div style="height: 300px; background: #eee"></div>
|
198
|
+
<bi-table
|
199
|
+
border
|
200
|
+
stripe
|
201
|
+
fixed="sticky"
|
202
|
+
:data="data"
|
203
|
+
:column="renderColumn"
|
204
|
+
:summary-method="getSummaries"
|
205
|
+
show-summary
|
206
|
+
></bi-table>
|
207
|
+
</el-tab-pane>
|
208
|
+
</el-tabs>
|
209
|
+
</div>
|
210
|
+
<div class="example-table-box">
|
211
|
+
<p>tooltipIcon在表格内的组件使用</p>
|
212
|
+
<bi-table
|
213
|
+
border
|
214
|
+
stripe
|
215
|
+
fixed="sticky"
|
216
|
+
:data="minData"
|
217
|
+
:column="renderColumn"
|
218
|
+
>
|
219
|
+
<template v-slot:province="{ row }">
|
220
|
+
<BiTooltipIcon
|
221
|
+
:label="row.province"
|
222
|
+
content="这是props继承的写法,<br/>可根据不同需求配置属性"
|
223
|
+
placement="right"
|
224
|
+
icon="el-icon-warning-outline"
|
225
|
+
effect="light"
|
226
|
+
></BiTooltipIcon>
|
227
|
+
</template>
|
228
|
+
<template v-slot:city="{ row }">
|
229
|
+
<BiTooltipIcon placement="right">
|
230
|
+
<template slot="tip-label"><span>{{ row.city }}</span></template>
|
231
|
+
<template slot="tip-content"><span>这是slot默认替换的写法,可用自定义的内容配合tooltip使用</span></template>
|
232
|
+
<template slot="tip-icon">
|
233
|
+
<i
|
234
|
+
class="el-icon-chat-dot-round"
|
235
|
+
style="color: #ff6700"
|
236
|
+
></i>
|
237
|
+
</template>
|
238
|
+
</BiTooltipIcon>
|
239
|
+
</template>
|
240
|
+
</bi-table>
|
241
|
+
</div>
|
238
242
|
</div>
|
239
243
|
</div>
|
240
244
|
</template>
|
package/src/views/Layout.vue
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
export default {
|
15
15
|
data() {
|
16
16
|
return {
|
17
|
-
token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
17
|
+
token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxNTc1NzE4NTMyMiIsImxvZ2luX2VudiI6IiIsImlhdCI6MTcwODMzNTUyNywiZXhwIjoxNzA4OTQwMzI3LCJuYmYiOjE3MDgzMzU1MjcsInN1YiI6InRva2Vu6K6k6K-BIiwianRpIjoiOWEzYWNkYTBkZDhlYmRjNzM3NTAwYzc2MGU0MWQ5N2YifQ.5XzkjXWgiNpA0yUYbNTT8TjPttdlnPWQzggcDNZEB20',
|
18
18
|
avatar: 'https://static-legacy.dingtalk.com/media/lADPBbCc1SE7SD7NAuzNAug_744_748.jpg?imageView2/1/w/80/h/80'
|
19
19
|
}
|
20
20
|
},
|