tianheng-ui 0.1.69 → 0.1.71
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/theme-chalk/styles/dialog.scss +56 -40
- package/lib/theme-chalk/styles/feature.scss +7 -0
- package/lib/tianheng-ui.js +12 -12
- package/package.json +1 -1
- package/packages/Dialog/index.vue +18 -9
- package/packages/FormMaking/GenerateForm.vue +27 -42
- package/packages/FormMaking/GenerateFormItem.vue +10 -26
- package/packages/FormMaking/WidgetFormItem.vue +9 -7
- package/packages/FormMaking/WidgetGuide.vue +86 -0
- package/packages/FormMaking/WidgetSelect.vue +2 -2
- package/packages/FormMaking/WidgetTools.vue +10 -6
- package/packages/FormMaking/custom/config.js +2 -31
- package/packages/FormMaking/custom/configs/list.vue +11 -12
- package/packages/FormMaking/custom/configs/radio.vue +2 -5
- package/packages/FormMaking/custom/configs/table.vue +12 -9
- package/packages/FormMaking/custom/configs/tabs.vue +69 -55
- package/packages/FormMaking/custom/index.js +1 -1
- package/packages/FormMaking/custom/items/grid_dev.vue +5 -8
- package/packages/FormMaking/custom/items/list_dev.vue +19 -23
- package/packages/FormMaking/custom/items/list_pro.vue +16 -14
- package/packages/FormMaking/custom/items/table_dev.vue +13 -12
- package/packages/FormMaking/custom/items/table_pro.vue +5 -5
- package/packages/FormMaking/custom/items/tabs_dev.vue +4 -7
- package/packages/FormMaking/custom/items/tabs_pro.vue +7 -9
- package/packages/FormMaking/index.vue +62 -76
- package/packages/FormMaking/styles/index.scss +1 -1
- package/packages/Icons/index.js +886 -1
- package/packages/Icons/index.vue +53 -306
- package/packages/TableMaking/index.vue +18 -3
- package/packages/TableMaking/widgetGuide.vue +122 -58
- package/packages/FormMaking/custom/configs/tableH5.vue +0 -98
- package/packages/FormMaking/custom/items/tableH5_dev.vue +0 -112
- package/packages/FormMaking/custom/items/tableH5_pro.vue +0 -119
package/packages/Icons/index.vue
CHANGED
@@ -1,37 +1,51 @@
|
|
1
1
|
<template>
|
2
|
-
<div>
|
2
|
+
<div class="th-icons">
|
3
3
|
<el-popover
|
4
|
-
|
5
|
-
:title="title"
|
4
|
+
popper-class="th-icons-popover"
|
6
5
|
:width="width"
|
6
|
+
placement="bottom-start"
|
7
7
|
trigger="click"
|
8
8
|
>
|
9
9
|
<el-input
|
10
|
-
:value="
|
10
|
+
:value="icon"
|
11
11
|
slot="reference"
|
12
12
|
placeholder="请选择图标"
|
13
13
|
clearable
|
14
14
|
@clear="handleInputClear"
|
15
15
|
>
|
16
|
-
<div v-if="
|
17
|
-
<i :class="
|
16
|
+
<div v-if="icon" class="input-prefix" slot="prefix">
|
17
|
+
<i :class="icon" class="icon" />
|
18
18
|
</div>
|
19
19
|
</el-input>
|
20
20
|
|
21
|
-
<
|
22
|
-
<
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
<el-tabs v-model="tabsActiveName" type="border-card">
|
22
|
+
<el-tab-pane label="Tianheng图标库" name="tianheng"> </el-tab-pane>
|
23
|
+
<el-tab-pane label="Element图标库" name="element"> </el-tab-pane>
|
24
|
+
<div v-if="tabsActiveName === 'tianheng'" class="th-icons-content">
|
25
|
+
<i
|
26
|
+
v-for="(icon, index) in tianhengIcons"
|
27
|
+
class="icon"
|
28
|
+
:class="icon"
|
29
|
+
:key="index"
|
30
|
+
@click="handleIconClick(icon)"
|
31
|
+
/>
|
32
|
+
</div>
|
33
|
+
<div v-if="tabsActiveName === 'element'" class="th-icons-content">
|
34
|
+
<i
|
35
|
+
v-for="(icon, index) in elementIcons"
|
36
|
+
class="icon"
|
37
|
+
:class="icon"
|
38
|
+
:key="index"
|
39
|
+
@click="handleIconClick(icon)"
|
40
|
+
/>
|
41
|
+
</div>
|
42
|
+
</el-tabs>
|
30
43
|
</el-popover>
|
31
44
|
</div>
|
32
45
|
</template>
|
33
46
|
|
34
47
|
<script>
|
48
|
+
import { tianhengIcons, elementIcons } from "./index";
|
35
49
|
export default {
|
36
50
|
name: "ThIcons",
|
37
51
|
model: {
|
@@ -39,10 +53,6 @@ export default {
|
|
39
53
|
prop: "value"
|
40
54
|
},
|
41
55
|
props: {
|
42
|
-
title: {
|
43
|
-
type: String,
|
44
|
-
default: "Element图标库"
|
45
|
-
},
|
46
56
|
value: {
|
47
57
|
type: String,
|
48
58
|
default: ""
|
@@ -54,303 +64,34 @@ export default {
|
|
54
64
|
},
|
55
65
|
data() {
|
56
66
|
return {
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
"el-icon-delete",
|
62
|
-
"el-icon-s-tools",
|
63
|
-
"el-icon-setting",
|
64
|
-
"el-icon-user-solid",
|
65
|
-
"el-icon-user",
|
66
|
-
"el-icon-phone",
|
67
|
-
"el-icon-phone-outline",
|
68
|
-
"el-icon-more",
|
69
|
-
"el-icon-more-outline",
|
70
|
-
"el-icon-star-on",
|
71
|
-
"el-icon-star-off",
|
72
|
-
"el-icon-s-goods",
|
73
|
-
"el-icon-goods",
|
74
|
-
"el-icon-warning",
|
75
|
-
"el-icon-warning-outline",
|
76
|
-
"el-icon-question",
|
77
|
-
"el-icon-info",
|
78
|
-
"el-icon-remove",
|
79
|
-
"el-icon-circle-plus",
|
80
|
-
"el-icon-success",
|
81
|
-
"el-icon-error",
|
82
|
-
"el-icon-zoom-in",
|
83
|
-
"el-icon-zoom-out",
|
84
|
-
"el-icon-remove-outline",
|
85
|
-
"el-icon-circle-plus-outline",
|
86
|
-
"el-icon-circle-check",
|
87
|
-
"el-icon-circle-close",
|
88
|
-
"el-icon-s-help",
|
89
|
-
"el-icon-help",
|
90
|
-
"el-icon-minus",
|
91
|
-
"el-icon-plus",
|
92
|
-
"el-icon-check",
|
93
|
-
"el-icon-close",
|
94
|
-
"el-icon-picture",
|
95
|
-
"el-icon-picture-outline",
|
96
|
-
"el-icon-picture-outline-round",
|
97
|
-
"el-icon-upload",
|
98
|
-
"el-icon-upload2",
|
99
|
-
"el-icon-download",
|
100
|
-
"el-icon-camera-solid",
|
101
|
-
"el-icon-camera",
|
102
|
-
"el-icon-video-camera-solid",
|
103
|
-
"el-icon-video-camera",
|
104
|
-
"el-icon-message-solid",
|
105
|
-
"el-icon-bell",
|
106
|
-
"el-icon-s-cooperation",
|
107
|
-
"el-icon-s-order",
|
108
|
-
"el-icon-s-platform",
|
109
|
-
"el-icon-s-fold",
|
110
|
-
"el-icon-s-unfold",
|
111
|
-
"el-icon-s-operation",
|
112
|
-
"el-icon-s-promotion",
|
113
|
-
"el-icon-s-home",
|
114
|
-
"el-icon-s-release",
|
115
|
-
"el-icon-s-ticket",
|
116
|
-
"el-icon-s-management",
|
117
|
-
"el-icon-s-open",
|
118
|
-
"el-icon-s-shop",
|
119
|
-
"el-icon-s-marketing",
|
120
|
-
"el-icon-s-flag",
|
121
|
-
"el-icon-s-comment",
|
122
|
-
"el-icon-s-finance",
|
123
|
-
"el-icon-s-claim",
|
124
|
-
"el-icon-s-custom",
|
125
|
-
"el-icon-s-opportunity",
|
126
|
-
"el-icon-s-data",
|
127
|
-
"el-icon-s-check",
|
128
|
-
"el-icon-s-grid",
|
129
|
-
"el-icon-menu",
|
130
|
-
"el-icon-share",
|
131
|
-
"el-icon-d-caret",
|
132
|
-
"el-icon-caret-left",
|
133
|
-
"el-icon-caret-right",
|
134
|
-
"el-icon-caret-bottom",
|
135
|
-
"el-icon-caret-top",
|
136
|
-
"el-icon-bottom-left",
|
137
|
-
"el-icon-bottom-right",
|
138
|
-
"el-icon-back",
|
139
|
-
"el-icon-right",
|
140
|
-
"el-icon-bottom",
|
141
|
-
"el-icon-top",
|
142
|
-
"el-icon-top-left",
|
143
|
-
"el-icon-top-right",
|
144
|
-
"el-icon-arrow-left",
|
145
|
-
"el-icon-arrow-right",
|
146
|
-
"el-icon-arrow-down",
|
147
|
-
"el-icon-arrow-up",
|
148
|
-
"el-icon-d-arrow-left",
|
149
|
-
"el-icon-d-arrow-right",
|
150
|
-
"el-icon-video-pause",
|
151
|
-
"el-icon-video-play",
|
152
|
-
"el-icon-refresh",
|
153
|
-
"el-icon-refresh-right",
|
154
|
-
"el-icon-refresh-left",
|
155
|
-
"el-icon-finished",
|
156
|
-
"el-icon-sort",
|
157
|
-
"el-icon-sort-up",
|
158
|
-
"el-icon-sort-down",
|
159
|
-
"el-icon-rank",
|
160
|
-
"el-icon-loading",
|
161
|
-
"el-icon-view",
|
162
|
-
"el-icon-c-scale-to-original",
|
163
|
-
"el-icon-date",
|
164
|
-
"el-icon-edit",
|
165
|
-
"el-icon-edit-outline",
|
166
|
-
"el-icon-folder",
|
167
|
-
"el-icon-folder-opened",
|
168
|
-
"el-icon-folder-add",
|
169
|
-
"el-icon-folder-remove",
|
170
|
-
"el-icon-folder-delete",
|
171
|
-
"el-icon-folder-checked",
|
172
|
-
"el-icon-tickets",
|
173
|
-
"el-icon-document-remove",
|
174
|
-
"el-icon-document-delete",
|
175
|
-
"el-icon-document-copy",
|
176
|
-
"el-icon-document-checked",
|
177
|
-
"el-icon-document",
|
178
|
-
"el-icon-document-add",
|
179
|
-
"el-icon-printer",
|
180
|
-
"el-icon-paperclip",
|
181
|
-
"el-icon-takeaway-box",
|
182
|
-
"el-icon-search",
|
183
|
-
"el-icon-monitor",
|
184
|
-
"el-icon-attract",
|
185
|
-
"el-icon-mobile",
|
186
|
-
"el-icon-scissors",
|
187
|
-
"el-icon-umbrella",
|
188
|
-
"el-icon-headset",
|
189
|
-
"el-icon-brush",
|
190
|
-
"el-icon-mouse",
|
191
|
-
"el-icon-coordinate",
|
192
|
-
"el-icon-magic-stick",
|
193
|
-
"el-icon-reading",
|
194
|
-
"el-icon-data-line",
|
195
|
-
"el-icon-data-board",
|
196
|
-
"el-icon-pie-chart",
|
197
|
-
"el-icon-data-analysis",
|
198
|
-
"el-icon-collection-tag",
|
199
|
-
"el-icon-film",
|
200
|
-
"el-icon-suitcase",
|
201
|
-
"el-icon-suitcase-1",
|
202
|
-
"el-icon-receiving",
|
203
|
-
"el-icon-collection",
|
204
|
-
"el-icon-files",
|
205
|
-
"el-icon-notebook-1",
|
206
|
-
"el-icon-notebook-2",
|
207
|
-
"el-icon-toilet-paper",
|
208
|
-
"el-icon-office-building",
|
209
|
-
"el-icon-school",
|
210
|
-
"el-icon-table-lamp",
|
211
|
-
"el-icon-house",
|
212
|
-
"el-icon-no-smoking",
|
213
|
-
"el-icon-smoking",
|
214
|
-
"el-icon-shopping-cart-full",
|
215
|
-
"el-icon-shopping-cart-1",
|
216
|
-
"el-icon-shopping-cart-2",
|
217
|
-
"el-icon-shopping-bag-1",
|
218
|
-
"el-icon-shopping-bag-2",
|
219
|
-
"el-icon-sold-out",
|
220
|
-
"el-icon-sell",
|
221
|
-
"el-icon-present",
|
222
|
-
"el-icon-box",
|
223
|
-
"el-icon-bank-card",
|
224
|
-
"el-icon-money",
|
225
|
-
"el-icon-coin",
|
226
|
-
"el-icon-wallet",
|
227
|
-
"el-icon-discount",
|
228
|
-
"el-icon-price-tag",
|
229
|
-
"el-icon-news",
|
230
|
-
"el-icon-guide",
|
231
|
-
"el-icon-male",
|
232
|
-
"el-icon-female",
|
233
|
-
"el-icon-thumb",
|
234
|
-
"el-icon-cpu",
|
235
|
-
"el-icon-link",
|
236
|
-
"el-icon-connection",
|
237
|
-
"el-icon-open",
|
238
|
-
"el-icon-turn-off",
|
239
|
-
"el-icon-set-up",
|
240
|
-
"el-icon-chat-round",
|
241
|
-
"el-icon-chat-line-round",
|
242
|
-
"el-icon-chat-square",
|
243
|
-
"el-icon-chat-dot-round",
|
244
|
-
"el-icon-chat-dot-square",
|
245
|
-
"el-icon-chat-line-square",
|
246
|
-
"el-icon-message",
|
247
|
-
"el-icon-postcard",
|
248
|
-
"el-icon-position",
|
249
|
-
"el-icon-turn-off-microphone",
|
250
|
-
"el-icon-microphone",
|
251
|
-
"el-icon-close-notification",
|
252
|
-
"el-icon-bangzhu",
|
253
|
-
"el-icon-time",
|
254
|
-
"el-icon-odometer",
|
255
|
-
"el-icon-crop",
|
256
|
-
"el-icon-aim",
|
257
|
-
"el-icon-switch-button",
|
258
|
-
"el-icon-full-screen",
|
259
|
-
"el-icon-copy-document",
|
260
|
-
"el-icon-mic",
|
261
|
-
"el-icon-stopwatch",
|
262
|
-
"el-icon-medal-1",
|
263
|
-
"el-icon-medal",
|
264
|
-
"el-icon-trophy",
|
265
|
-
"el-icon-trophy-1",
|
266
|
-
"el-icon-first-aid-kit",
|
267
|
-
"el-icon-discover",
|
268
|
-
"el-icon-place",
|
269
|
-
"el-icon-location",
|
270
|
-
"el-icon-location-outline",
|
271
|
-
"el-icon-location-information",
|
272
|
-
"el-icon-add-location",
|
273
|
-
"el-icon-delete-location",
|
274
|
-
"el-icon-map-location",
|
275
|
-
"el-icon-alarm-clock",
|
276
|
-
"el-icon-timer",
|
277
|
-
"el-icon-watch-1",
|
278
|
-
"el-icon-watch",
|
279
|
-
"el-icon-lock",
|
280
|
-
"el-icon-unlock",
|
281
|
-
"el-icon-key",
|
282
|
-
"el-icon-service",
|
283
|
-
"el-icon-mobile-phone",
|
284
|
-
"el-icon-bicycle",
|
285
|
-
"el-icon-truck",
|
286
|
-
"el-icon-ship",
|
287
|
-
"el-icon-basketball",
|
288
|
-
"el-icon-football",
|
289
|
-
"el-icon-soccer",
|
290
|
-
"el-icon-baseball",
|
291
|
-
"el-icon-wind-power",
|
292
|
-
"el-icon-light-rain",
|
293
|
-
"el-icon-lightning",
|
294
|
-
"el-icon-heavy-rain",
|
295
|
-
"el-icon-sunrise",
|
296
|
-
"el-icon-sunrise-1",
|
297
|
-
"el-icon-sunset",
|
298
|
-
"el-icon-sunny",
|
299
|
-
"el-icon-cloudy",
|
300
|
-
"el-icon-partly-cloudy",
|
301
|
-
"el-icon-cloudy-and-sunny",
|
302
|
-
"el-icon-moon",
|
303
|
-
"el-icon-moon-night",
|
304
|
-
"el-icon-dish",
|
305
|
-
"el-icon-dish-1",
|
306
|
-
"el-icon-food",
|
307
|
-
"el-icon-chicken",
|
308
|
-
"el-icon-fork-spoon",
|
309
|
-
"el-icon-knife-fork",
|
310
|
-
"el-icon-burger",
|
311
|
-
"el-icon-tableware",
|
312
|
-
"el-icon-sugar",
|
313
|
-
"el-icon-dessert",
|
314
|
-
"el-icon-ice-cream",
|
315
|
-
"el-icon-hot-water",
|
316
|
-
"el-icon-water-cup",
|
317
|
-
"el-icon-coffee-cup",
|
318
|
-
"el-icon-cold-drink",
|
319
|
-
"el-icon-goblet",
|
320
|
-
"el-icon-goblet-full",
|
321
|
-
"el-icon-goblet-square",
|
322
|
-
"el-icon-goblet-square-full",
|
323
|
-
"el-icon-refrigerator",
|
324
|
-
"el-icon-grape",
|
325
|
-
"el-icon-watermelon",
|
326
|
-
"el-icon-cherry",
|
327
|
-
"el-icon-apple",
|
328
|
-
"el-icon-pear",
|
329
|
-
"el-icon-orange",
|
330
|
-
"el-icon-coffee",
|
331
|
-
"el-icon-ice-tea",
|
332
|
-
"el-icon-ice-drink",
|
333
|
-
"el-icon-milk-tea",
|
334
|
-
"el-icon-potato-strips",
|
335
|
-
"el-icon-lollipop",
|
336
|
-
"el-icon-ice-cream-square",
|
337
|
-
"el-icon-ice-cream-round"
|
338
|
-
]
|
67
|
+
icon: this.value,
|
68
|
+
tabsActiveName: "tianheng",
|
69
|
+
tianhengIcons: tianhengIcons,
|
70
|
+
elementIcons: elementIcons
|
339
71
|
};
|
340
72
|
},
|
73
|
+
watch: {
|
74
|
+
icon(val) {
|
75
|
+
this.$emit("input", val);
|
76
|
+
this.$emit("update:value", val);
|
77
|
+
},
|
78
|
+
value(val) {
|
79
|
+
this.icon = val;
|
80
|
+
}
|
81
|
+
},
|
341
82
|
created() {},
|
342
83
|
methods: {
|
343
84
|
handleIconClick(icon) {
|
344
|
-
this
|
85
|
+
this.icon = icon;
|
345
86
|
},
|
346
87
|
handleInputClear() {
|
347
|
-
this
|
88
|
+
this.icon = "";
|
348
89
|
}
|
349
90
|
}
|
350
91
|
};
|
351
92
|
</script>
|
352
93
|
|
353
|
-
<style lang="
|
94
|
+
<style lang="scss" scoped>
|
354
95
|
.input-prefix {
|
355
96
|
height: 100%;
|
356
97
|
width: 32px;
|
@@ -360,18 +101,24 @@ export default {
|
|
360
101
|
font-size: 20px;
|
361
102
|
}
|
362
103
|
}
|
363
|
-
.th-icons {
|
104
|
+
.th-icons-content {
|
364
105
|
height: 300px;
|
365
106
|
overflow-y: scroll;
|
366
107
|
.icon {
|
367
108
|
padding: 8px;
|
368
109
|
font-size: 20px;
|
369
110
|
border-radius: 2px;
|
111
|
+
transition: 0.25s;
|
370
112
|
}
|
371
113
|
.icon:hover {
|
372
114
|
cursor: pointer;
|
373
115
|
background-color: #f2f2f2;
|
374
|
-
// transition: .3s;
|
375
116
|
}
|
376
117
|
}
|
377
118
|
</style>
|
119
|
+
|
120
|
+
<style lang="scss">
|
121
|
+
.th-icons-popover {
|
122
|
+
padding: 0 !important;
|
123
|
+
}
|
124
|
+
</style>
|
@@ -22,7 +22,14 @@
|
|
22
22
|
ref="configRef"
|
23
23
|
></widget-config>
|
24
24
|
</div>
|
25
|
-
|
25
|
+
|
26
|
+
<th-dialog v-model="showGuide" title="引导配置" :showFooter="false">
|
27
|
+
<widget-guide
|
28
|
+
:config="tableConfig"
|
29
|
+
:apiOptions="apiOptions"
|
30
|
+
@save="showGuide = false"
|
31
|
+
></widget-guide>
|
32
|
+
</th-dialog>
|
26
33
|
</div>
|
27
34
|
</template>
|
28
35
|
|
@@ -79,12 +86,14 @@ export default {
|
|
79
86
|
"generateCode",
|
80
87
|
"generateJson"
|
81
88
|
]
|
82
|
-
}
|
89
|
+
},
|
90
|
+
guide: Boolean
|
83
91
|
},
|
84
92
|
data() {
|
85
93
|
this.baseConfig = deepClone(baseConfig);
|
86
94
|
return {
|
87
|
-
tableConfig: this.baseConfig
|
95
|
+
tableConfig: this.baseConfig,
|
96
|
+
showGuide: this.guide
|
88
97
|
};
|
89
98
|
},
|
90
99
|
watch: {
|
@@ -94,6 +103,12 @@ export default {
|
|
94
103
|
config(val) {
|
95
104
|
this.tableConfig = Object.assign(this.baseConfig, val);
|
96
105
|
this.handleNetworkConfig();
|
106
|
+
},
|
107
|
+
guide(val) {
|
108
|
+
this.showGuide = val;
|
109
|
+
},
|
110
|
+
showGuide(val) {
|
111
|
+
this.$emit("update:guide", val);
|
97
112
|
}
|
98
113
|
},
|
99
114
|
mounted() {
|
@@ -1,26 +1,107 @@
|
|
1
1
|
<template>
|
2
|
-
<div
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
2
|
+
<div class="widgetGuide">
|
3
|
+
<el-steps :active="step" finish-status="success" simple>
|
4
|
+
<el-step title="列表配置" icon="el-icon-s-operation" description="">
|
5
|
+
</el-step>
|
6
|
+
<!-- <el-step
|
7
|
+
title="字段配置"
|
8
|
+
icon="el-icon-c-scale-to-original"
|
9
|
+
description=""
|
10
|
+
></el-step> -->
|
11
|
+
<el-step title="按钮配置" icon="el-icon-set-up" description=""></el-step>
|
12
|
+
</el-steps>
|
13
|
+
<div class="content">
|
14
|
+
<el-form :model="config" label-width="80px" size="small">
|
15
|
+
<div v-show="step === 0">
|
16
|
+
<el-form-item size="small">
|
17
|
+
<el-tooltip
|
18
|
+
slot="label"
|
19
|
+
effect="light"
|
20
|
+
content="字段的配置方式"
|
21
|
+
placement="top"
|
22
|
+
>
|
23
|
+
<span style="color: #409EFF;">字段类型</span>
|
24
|
+
</el-tooltip>
|
25
|
+
<el-radio-group v-model="config.table.fields.type">
|
26
|
+
<el-radio-button label="custom" disabled>自定义</el-radio-button>
|
27
|
+
<el-radio-button label="api">接口导入</el-radio-button>
|
28
|
+
</el-radio-group>
|
29
|
+
</el-form-item>
|
30
|
+
<el-form-item>
|
31
|
+
<el-tooltip
|
32
|
+
slot="label"
|
33
|
+
effect="light"
|
34
|
+
content="开启后,选择数据接口会触发 remote-params 回调,用于从服务器查询字段"
|
35
|
+
placement="top"
|
36
|
+
>
|
37
|
+
<span style="color: #409EFF;">远程字段</span>
|
38
|
+
</el-tooltip>
|
39
|
+
<el-switch v-model="config.table.fields.remote"> </el-switch>
|
40
|
+
</el-form-item>
|
41
|
+
<el-form-item>
|
42
|
+
<el-tooltip
|
43
|
+
slot="label"
|
44
|
+
effect="light"
|
45
|
+
content="列表初始化完成后,调用该接口获取列表数据"
|
46
|
+
placement="top"
|
47
|
+
>
|
48
|
+
<span style="color: #409EFF;">列表接口</span>
|
49
|
+
</el-tooltip>
|
50
|
+
<el-select
|
51
|
+
v-model="config.table.mounted.api"
|
52
|
+
style="width:100%"
|
53
|
+
clearable
|
54
|
+
placeholder="请选择"
|
55
|
+
no-data-text="暂无接口,请前往【接口模块】创建"
|
56
|
+
filterable
|
57
|
+
>
|
58
|
+
<el-option
|
59
|
+
v-for="item in apiOptions"
|
60
|
+
:key="item.id"
|
61
|
+
:label="item.name"
|
62
|
+
:value="item.id"
|
63
|
+
>
|
64
|
+
</el-option>
|
65
|
+
</el-select>
|
66
|
+
</el-form-item>
|
67
|
+
<el-form-item label="列表名称">
|
68
|
+
<el-input
|
69
|
+
v-model="config.table.title"
|
70
|
+
placeholder="请输入"
|
71
|
+
></el-input>
|
72
|
+
</el-form-item>
|
73
|
+
</div>
|
74
|
+
<div v-show="step === 1">
|
75
|
+
<el-form-item label="">
|
76
|
+
<div v-for="item in Object.values(config.tools)" :key="item.type">
|
77
|
+
<el-checkbox v-model="item.show" :label="item.name"></el-checkbox>
|
78
|
+
</div>
|
79
|
+
</el-form-item>
|
23
80
|
</div>
|
81
|
+
</el-form>
|
82
|
+
</div>
|
83
|
+
<div class="footer">
|
84
|
+
<div></div>
|
85
|
+
<div class="stepView">
|
86
|
+
<el-button
|
87
|
+
type="primary"
|
88
|
+
icon="el-icon-back"
|
89
|
+
size="small"
|
90
|
+
:disabled="step === 0"
|
91
|
+
@click="handleBack"
|
92
|
+
>上一步</el-button
|
93
|
+
>
|
94
|
+
<el-button
|
95
|
+
v-if="step !== 1"
|
96
|
+
type="primary"
|
97
|
+
size="small"
|
98
|
+
@click="handleNext"
|
99
|
+
>
|
100
|
+
下一步<i class="el-icon-right el-icon--right"></i>
|
101
|
+
</el-button>
|
102
|
+
<el-button v-else type="success" size="small" @click="handleSave">
|
103
|
+
完 成<i class="el-icon-finished el-icon--right"></i>
|
104
|
+
</el-button>
|
24
105
|
</div>
|
25
106
|
</div>
|
26
107
|
</div>
|
@@ -28,19 +109,16 @@
|
|
28
109
|
|
29
110
|
<script>
|
30
111
|
export default {
|
31
|
-
props: {
|
112
|
+
props: { config: Object, apiOptions: Array },
|
32
113
|
data() {
|
33
114
|
return {
|
34
|
-
|
35
|
-
|
115
|
+
step: 0,
|
116
|
+
formData: {}
|
36
117
|
};
|
37
118
|
},
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
},
|
42
|
-
show(val) {
|
43
|
-
this.$emit("update:visible", val);
|
119
|
+
computed: {
|
120
|
+
getFields() {
|
121
|
+
return [];
|
44
122
|
}
|
45
123
|
},
|
46
124
|
created() {},
|
@@ -51,6 +129,9 @@ export default {
|
|
51
129
|
},
|
52
130
|
handleNext() {
|
53
131
|
this.step++;
|
132
|
+
},
|
133
|
+
handleSave() {
|
134
|
+
this.$emit("save");
|
54
135
|
}
|
55
136
|
}
|
56
137
|
};
|
@@ -58,38 +139,21 @@ export default {
|
|
58
139
|
|
59
140
|
<style lang="scss" scoped>
|
60
141
|
.widgetGuide {
|
61
|
-
position: absolute;
|
62
142
|
width: 100%;
|
63
143
|
height: 100%;
|
64
|
-
display: flex;
|
65
|
-
align-items: center;
|
66
|
-
justify-content: center;
|
67
|
-
background-color: rgba($color: #000000, $alpha: 0.6);
|
68
|
-
z-index: 999;
|
69
144
|
|
70
|
-
.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
.content {
|
81
|
-
height: calc(100% - 100px);
|
82
|
-
}
|
83
|
-
.footer {
|
84
|
-
padding: 10px 20px;
|
85
|
-
height: 50px;
|
86
|
-
display: flex;
|
87
|
-
align-items: center;
|
88
|
-
justify-content: space-between;
|
89
|
-
box-sizing: border-box;
|
145
|
+
.content {
|
146
|
+
height: calc(100% - 96px);
|
147
|
+
padding-top: 10px;
|
148
|
+
}
|
149
|
+
.footer {
|
150
|
+
height: 50px;
|
151
|
+
display: flex;
|
152
|
+
align-items: center;
|
153
|
+
justify-content: space-between;
|
154
|
+
box-sizing: border-box;
|
90
155
|
|
91
|
-
|
92
|
-
}
|
156
|
+
.stepView {
|
93
157
|
}
|
94
158
|
}
|
95
159
|
}
|