app-form-view 0.0.0 → 0.0.2
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/README.md +1 -1
- package/dist/css/style.css +157 -206
- package/dist/index.js +556 -107893
- package/package.json +7 -5
- package/scripts/rollup.config.base.js +100 -68
- package/scripts/rollup.config.build.js +39 -25
- package/scripts/rollup.config.dev.js +18 -21
- package/scripts/rollup.config.prod.js +12 -2
- package/src/assets/css/app-form.css +50 -14
- package/src/assets/css/global.css +12 -12
- package/src/assets/scss/_flex.scss +31 -34
- package/src/assets/scss/app-form.scss +184 -1
- package/src/assets/scss/global.scss +179 -1
- package/src/components/appForm/Checkbox.vue +5 -0
- package/src/components/appForm/Input.vue +2 -2
- package/src/components/appForm/SearchApi.vue +1 -1
- package/src/components/appForm/Table.vue +21 -3
- package/src/components/appForm/select.vue +5 -5
- package/src/components/form/SearchSelect.vue +3 -3
- package/src/components/form/Table.vue +1 -1
- package/src/index.js +1 -1
- package/src/views/build/FieldMappingDialog.vue +0 -7
- package/src/views/build/RightPanel.vue +0 -1
- package/src/views/build/index.vue +0 -15
- package/src/views/build/viewAppForm.vue +150 -111
- package/src/views/build/viewForm.vue +2 -2
- package/static/plugins/css/app-form.css +3 -1
- package/static/plugins/scss/app-form.scss +5 -0
package/README.md
CHANGED
package/dist/css/style.css
CHANGED
|
@@ -1,291 +1,100 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
.checkbox-wrap,
|
|
3
|
-
.radio-wrap {
|
|
4
|
-
min-height: 34px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.download-btn {
|
|
8
|
-
position: absolute;
|
|
9
|
-
right: 8px;
|
|
10
|
-
bottom: 8px;
|
|
11
|
-
width: 32px;
|
|
12
|
-
height: 32px;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
background: rgba(0, 0, 0, 0.5);
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
z-index: 1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* 只在当前组件生效 */
|
|
22
|
-
.date-time-picker-year .van-picker-column:nth-child(2) {
|
|
23
|
-
display: none !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.bottom-btn {
|
|
27
|
-
padding: 10px 10px 20px 10px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.text-combination {
|
|
31
|
-
position: relative;
|
|
32
|
-
min-height: 60px;
|
|
33
|
-
padding: 16px;
|
|
34
|
-
}
|
|
35
|
-
.text-combination .content {
|
|
36
|
-
text-indent: 2em;
|
|
37
|
-
margin: 0;
|
|
38
|
-
line-height: 1.6;
|
|
39
|
-
color: #333;
|
|
40
|
-
}
|
|
41
|
-
.text-combination {
|
|
42
|
-
/* 空状态样式 */
|
|
43
|
-
}
|
|
44
|
-
.text-combination .empty-state {
|
|
45
|
-
border: 1px dashed #ddd;
|
|
46
|
-
text-align: center;
|
|
47
|
-
line-height: 100px;
|
|
48
|
-
font-size: 16px;
|
|
49
|
-
color: #ddd;
|
|
50
|
-
border-radius: 4px;
|
|
51
|
-
}
|
|
52
|
-
.text-combination {
|
|
53
|
-
/* 加载状态样式 */
|
|
54
|
-
}
|
|
55
|
-
.text-combination .loading {
|
|
56
|
-
text-align: center;
|
|
57
|
-
padding: 40px 0;
|
|
58
|
-
color: #666;
|
|
59
|
-
}
|
|
60
|
-
.text-combination .spinner {
|
|
61
|
-
width: 40px;
|
|
62
|
-
height: 40px;
|
|
63
|
-
margin: 0 auto 16px;
|
|
64
|
-
border: 4px solid rgba(0, 0, 0, 0.1);
|
|
65
|
-
border-left-color: #2196F3;
|
|
66
|
-
border-radius: 50%;
|
|
67
|
-
animation: spin 1s linear infinite;
|
|
68
|
-
}
|
|
69
|
-
@keyframes spin {
|
|
70
|
-
to {
|
|
71
|
-
transform: rotate(360deg);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.text-combination {
|
|
75
|
-
/* 错误状态样式 */
|
|
76
|
-
}
|
|
77
|
-
.text-combination .error {
|
|
78
|
-
text-align: center;
|
|
79
|
-
padding: 40px 0;
|
|
80
|
-
color: #d32f2f;
|
|
81
|
-
}
|
|
82
|
-
.text-combination .error-icon {
|
|
83
|
-
width: 60px;
|
|
84
|
-
height: 60px;
|
|
85
|
-
margin: 0 auto 16px;
|
|
86
|
-
background-color: #ef5350;
|
|
87
|
-
color: white;
|
|
88
|
-
border-radius: 50%;
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
justify-content: center;
|
|
92
|
-
font-size: 24px;
|
|
93
|
-
font-weight: bold;
|
|
94
|
-
}
|
|
95
|
-
.text-combination .error-message {
|
|
96
|
-
margin-bottom: 24px;
|
|
97
|
-
color: #d32f2f;
|
|
98
|
-
}
|
|
99
|
-
.text-combination .refresh-btn {
|
|
100
|
-
padding: 8px 16px;
|
|
101
|
-
background-color: #2196F3;
|
|
102
|
-
color: white;
|
|
103
|
-
border: none;
|
|
104
|
-
border-radius: 4px;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
font-size: 14px;
|
|
107
|
-
transition: background-color 0.3s;
|
|
108
|
-
}
|
|
109
|
-
.text-combination .refresh-btn:hover {
|
|
110
|
-
background-color: #1976D2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.sl-table-wrapper {
|
|
114
|
-
width: 100%;
|
|
115
|
-
position: relative;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.toolbar {
|
|
119
|
-
margin-bottom: 12px;
|
|
120
|
-
display: flex;
|
|
121
|
-
gap: 8px;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.empty {
|
|
125
|
-
padding: 40px 0;
|
|
126
|
-
text-align: center;
|
|
127
|
-
color: #999;
|
|
128
|
-
font-size: 14px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
2
|
.flex, .custom-picker-container {
|
|
132
|
-
display: -webkit-box;
|
|
133
|
-
display: -ms-flexbox;
|
|
134
3
|
display: flex;
|
|
135
4
|
}
|
|
136
5
|
|
|
137
6
|
.inline-flex {
|
|
138
|
-
display: -webkit-inline-box;
|
|
139
|
-
display: -ms-inline-flexbox;
|
|
140
|
-
display: -webkit-inline-flex;
|
|
141
7
|
display: inline-flex;
|
|
142
8
|
}
|
|
143
9
|
|
|
144
10
|
.flex-row {
|
|
145
|
-
-webkit-box-orient: vertical;
|
|
146
|
-
-ms-flex-direction: row;
|
|
147
|
-
-webkit-flex-direction: row;
|
|
148
11
|
flex-direction: row;
|
|
149
12
|
}
|
|
150
13
|
|
|
151
14
|
.flex-row-reverse {
|
|
152
|
-
-webkit-box-orient: vertical;
|
|
153
|
-
-ms-flex-direction: row-reverse;
|
|
154
|
-
-webkit-flex-direction: row-reverse;
|
|
155
15
|
flex-direction: row-reverse;
|
|
156
16
|
}
|
|
157
17
|
|
|
158
18
|
.flex-column, .custom-picker-container {
|
|
159
|
-
-webkit-box-orient: vertical;
|
|
160
|
-
-ms-flex-direction: column;
|
|
161
|
-
-webkit-flex-direction: column;
|
|
162
19
|
flex-direction: column;
|
|
163
20
|
}
|
|
164
21
|
|
|
165
22
|
.flex-column-reverse {
|
|
166
|
-
-webkit-box-orient: vertical;
|
|
167
|
-
-ms-flex-direction: column-reverse;
|
|
168
|
-
-webkit-flex-direction: column-reverse;
|
|
169
23
|
flex-direction: column-reverse;
|
|
170
24
|
}
|
|
171
25
|
|
|
172
26
|
.justify-content-center {
|
|
173
|
-
-webkit-box-pack: center;
|
|
174
|
-
-ms-flex-pack: center;
|
|
175
|
-
-webkit-justify-content: center;
|
|
176
27
|
justify-content: center;
|
|
177
28
|
}
|
|
178
29
|
|
|
179
30
|
.justify-content-end {
|
|
180
|
-
-webkit-box-pack: end;
|
|
181
|
-
-ms-flex-pack: end;
|
|
182
|
-
-webkit-justify-content: flex-end;
|
|
183
31
|
justify-content: flex-end;
|
|
184
32
|
}
|
|
185
33
|
|
|
186
34
|
.justify-content-space-between {
|
|
187
|
-
-webkit-box-pack: justify;
|
|
188
|
-
-ms-flex-pack: justify;
|
|
189
|
-
-webkit-justify-content: space-between;
|
|
190
35
|
justify-content: space-between;
|
|
191
36
|
}
|
|
192
37
|
|
|
193
38
|
.justify-content-space-around {
|
|
194
|
-
-webkit-box-pack: justify;
|
|
195
|
-
-ms-flex-pack: justify;
|
|
196
|
-
-webkit-justify-content: space-around;
|
|
197
39
|
justify-content: space-around;
|
|
198
40
|
}
|
|
199
41
|
|
|
200
42
|
.align-items-start {
|
|
201
|
-
-webkit-box-align: start;
|
|
202
|
-
-ms-flex-align: start;
|
|
203
|
-
-webkit-align-items: flex-start;
|
|
204
43
|
align-items: flex-start;
|
|
205
44
|
}
|
|
206
45
|
|
|
207
46
|
.align-items-end {
|
|
208
|
-
-webkit-box-align: end;
|
|
209
|
-
-ms-flex-align: end;
|
|
210
|
-
-webkit-align-items: flex-end;
|
|
211
47
|
align-items: flex-end;
|
|
212
48
|
}
|
|
213
49
|
|
|
214
50
|
.align-items-center {
|
|
215
|
-
-webkit-box-align: center;
|
|
216
|
-
-ms-flex-align: center;
|
|
217
|
-
-webkit-align-items: center;
|
|
218
51
|
align-items: center;
|
|
219
52
|
}
|
|
220
53
|
|
|
221
54
|
.align-items-baseline {
|
|
222
|
-
-webkit-box-align: baseline;
|
|
223
|
-
-ms-flex-align: baseline;
|
|
224
|
-
-webkit-align-items: baseline;
|
|
225
55
|
align-items: baseline;
|
|
226
56
|
}
|
|
227
57
|
|
|
228
58
|
.flex-wrap-nowrap {
|
|
229
|
-
-webkit-box-wrap: nowrap;
|
|
230
|
-
-ms-flex-wrap: nowrap;
|
|
231
|
-
-webkit-flex-wrap: nowrap;
|
|
232
59
|
flex-wrap: nowrap;
|
|
233
60
|
}
|
|
234
61
|
|
|
235
62
|
.flex-wrap-wrap {
|
|
236
|
-
-webkit-box-wrap: wrap;
|
|
237
|
-
-ms-flex-wrap: wrap;
|
|
238
|
-
-webkit-flex-wrap: wrap;
|
|
239
63
|
flex-wrap: wrap;
|
|
240
64
|
}
|
|
241
65
|
|
|
242
66
|
.flex-wrap-reverse {
|
|
243
|
-
-
|
|
244
|
-
-ms-flex-wrap: reverse;
|
|
245
|
-
-webkit-flex-wrap: reverse;
|
|
246
|
-
flex-wrap: reverse;
|
|
67
|
+
flex-wrap: wrap-reverse;
|
|
247
68
|
}
|
|
248
69
|
|
|
249
70
|
.align-content-start {
|
|
250
|
-
-webkit-box-
|
|
251
|
-
-
|
|
252
|
-
-webkit-align-conten: flex-start;
|
|
253
|
-
justify-content: flex-start;
|
|
71
|
+
-webkit-box-lines: start;
|
|
72
|
+
align-content: flex-start;
|
|
254
73
|
}
|
|
255
74
|
|
|
256
75
|
.align-content-end {
|
|
257
|
-
-webkit-box-
|
|
258
|
-
-
|
|
259
|
-
-webkit-align-conten: flex-end;
|
|
260
|
-
justify-content: flex-end;
|
|
76
|
+
-webkit-box-lines: end;
|
|
77
|
+
align-content: flex-end;
|
|
261
78
|
}
|
|
262
79
|
|
|
263
80
|
.align-content-center {
|
|
264
|
-
-webkit-box-
|
|
265
|
-
-
|
|
266
|
-
-webkit-align-conten: center;
|
|
267
|
-
justify-content: center;
|
|
81
|
+
-webkit-box-lines: center;
|
|
82
|
+
align-content: center;
|
|
268
83
|
}
|
|
269
84
|
|
|
270
85
|
.align-content-between {
|
|
271
|
-
-webkit-box-
|
|
272
|
-
-
|
|
273
|
-
-webkit-align-conten: space-between;
|
|
274
|
-
justify-content: space-between;
|
|
86
|
+
-webkit-box-lines: justify;
|
|
87
|
+
align-content: space-between;
|
|
275
88
|
}
|
|
276
89
|
|
|
277
90
|
.align-content-around {
|
|
278
|
-
-webkit-box-
|
|
279
|
-
-
|
|
280
|
-
-webkit-align-conten: space-around;
|
|
281
|
-
justify-content: space-around;
|
|
91
|
+
-webkit-box-lines: space-around;
|
|
92
|
+
align-content: space-around;
|
|
282
93
|
}
|
|
283
94
|
|
|
284
95
|
.align-content-stretch {
|
|
285
|
-
-webkit-box-
|
|
286
|
-
-
|
|
287
|
-
-webkit-align-conten: stretch;
|
|
288
|
-
justify-content: stretch;
|
|
96
|
+
-webkit-box-lines: stretch;
|
|
97
|
+
align-content: stretch;
|
|
289
98
|
}
|
|
290
99
|
|
|
291
100
|
.flex-item-auto {
|
|
@@ -406,6 +215,11 @@ button[disabled] {
|
|
|
406
215
|
height: 100%;
|
|
407
216
|
overflow: hidden;
|
|
408
217
|
}
|
|
218
|
+
.app-page .bottom-btns {
|
|
219
|
+
gap: 15px;
|
|
220
|
+
padding-left: 10px;
|
|
221
|
+
padding-right: 10px;
|
|
222
|
+
}
|
|
409
223
|
.app-page .bottom-btns .widget-button {
|
|
410
224
|
display: flex;
|
|
411
225
|
margin: 0;
|
|
@@ -429,6 +243,7 @@ button[disabled] {
|
|
|
429
243
|
height: 40px;
|
|
430
244
|
font-size: 14px;
|
|
431
245
|
margin-right: 5px;
|
|
246
|
+
flex: 1;
|
|
432
247
|
background: linear-gradient(to right, var(--primary-color-60), var(--primary-color));
|
|
433
248
|
}
|
|
434
249
|
.app-page .bottom-btns .widget-button:last-child .icon {
|
|
@@ -495,7 +310,6 @@ button[disabled] {
|
|
|
495
310
|
.van-nav-bar .van-icon {
|
|
496
311
|
color: var(--nav-bar-icon-color);
|
|
497
312
|
}
|
|
498
|
-
|
|
499
313
|
.gray-bg {
|
|
500
314
|
height: 100%;
|
|
501
315
|
overflow: hidden;
|
|
@@ -521,7 +335,126 @@ button[disabled] {
|
|
|
521
335
|
.app-page .van-goods-action {
|
|
522
336
|
position: static;
|
|
523
337
|
}
|
|
338
|
+
@charset "UTF-8";
|
|
339
|
+
.text-combination {
|
|
340
|
+
position: relative;
|
|
341
|
+
min-height: 60px;
|
|
342
|
+
padding: 16px;
|
|
343
|
+
}
|
|
344
|
+
.text-combination .content {
|
|
345
|
+
text-indent: 2em;
|
|
346
|
+
margin: 0;
|
|
347
|
+
line-height: 1.6;
|
|
348
|
+
color: #333;
|
|
349
|
+
}
|
|
350
|
+
.text-combination {
|
|
351
|
+
/* 空状态样式 */
|
|
352
|
+
}
|
|
353
|
+
.text-combination .empty-state {
|
|
354
|
+
border: 1px dashed #ddd;
|
|
355
|
+
text-align: center;
|
|
356
|
+
line-height: 100px;
|
|
357
|
+
font-size: 16px;
|
|
358
|
+
color: #ddd;
|
|
359
|
+
border-radius: 4px;
|
|
360
|
+
}
|
|
361
|
+
.text-combination {
|
|
362
|
+
/* 加载状态样式 */
|
|
363
|
+
}
|
|
364
|
+
.text-combination .loading {
|
|
365
|
+
text-align: center;
|
|
366
|
+
padding: 40px 0;
|
|
367
|
+
color: #666;
|
|
368
|
+
}
|
|
369
|
+
.text-combination .spinner {
|
|
370
|
+
width: 40px;
|
|
371
|
+
height: 40px;
|
|
372
|
+
margin: 0 auto 16px;
|
|
373
|
+
border: 4px solid rgba(0, 0, 0, 0.1);
|
|
374
|
+
border-left-color: #2196F3;
|
|
375
|
+
border-radius: 50%;
|
|
376
|
+
animation: spin 1s linear infinite;
|
|
377
|
+
}
|
|
378
|
+
@keyframes spin {
|
|
379
|
+
to {
|
|
380
|
+
transform: rotate(360deg);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
.text-combination {
|
|
384
|
+
/* 错误状态样式 */
|
|
385
|
+
}
|
|
386
|
+
.text-combination .error {
|
|
387
|
+
text-align: center;
|
|
388
|
+
padding: 40px 0;
|
|
389
|
+
color: #d32f2f;
|
|
390
|
+
}
|
|
391
|
+
.text-combination .error-icon {
|
|
392
|
+
width: 60px;
|
|
393
|
+
height: 60px;
|
|
394
|
+
margin: 0 auto 16px;
|
|
395
|
+
background-color: #ef5350;
|
|
396
|
+
color: white;
|
|
397
|
+
border-radius: 50%;
|
|
398
|
+
display: flex;
|
|
399
|
+
align-items: center;
|
|
400
|
+
justify-content: center;
|
|
401
|
+
font-size: 24px;
|
|
402
|
+
font-weight: bold;
|
|
403
|
+
}
|
|
404
|
+
.text-combination .error-message {
|
|
405
|
+
margin-bottom: 24px;
|
|
406
|
+
color: #d32f2f;
|
|
407
|
+
}
|
|
408
|
+
.text-combination .refresh-btn {
|
|
409
|
+
padding: 8px 16px;
|
|
410
|
+
background-color: #2196F3;
|
|
411
|
+
color: white;
|
|
412
|
+
border: none;
|
|
413
|
+
border-radius: 4px;
|
|
414
|
+
cursor: pointer;
|
|
415
|
+
font-size: 14px;
|
|
416
|
+
transition: background-color 0.3s;
|
|
417
|
+
}
|
|
418
|
+
.text-combination .refresh-btn:hover {
|
|
419
|
+
background-color: #1976D2;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.checkbox-wrap,
|
|
423
|
+
.radio-wrap {
|
|
424
|
+
min-height: 34px;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
.van-checkbox--horizontal {
|
|
429
|
+
margin-bottom: 15px;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
/* 只在当前组件生效 */
|
|
434
|
+
.date-time-picker-year .van-picker-column:nth-child(2) {
|
|
435
|
+
display: none !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.bottom-btn {
|
|
439
|
+
padding: 10px 10px 20px 10px
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
.download-btn {
|
|
444
|
+
position: absolute;
|
|
445
|
+
right: 8px;
|
|
446
|
+
bottom: 8px;
|
|
447
|
+
width: 32px;
|
|
448
|
+
height: 32px;
|
|
449
|
+
border-radius: 50%;
|
|
450
|
+
background: rgba(0, 0, 0, 0.5);
|
|
451
|
+
display: flex;
|
|
452
|
+
align-items: center;
|
|
453
|
+
justify-content: center;
|
|
454
|
+
z-index: 1;
|
|
455
|
+
}
|
|
524
456
|
|
|
457
|
+
@charset "UTF-8";
|
|
525
458
|
.table-pro {
|
|
526
459
|
font-size: 14px;
|
|
527
460
|
}
|
|
@@ -638,4 +571,22 @@ button[disabled] {
|
|
|
638
571
|
}
|
|
639
572
|
.table-pro .pagination > li {
|
|
640
573
|
display: flex;
|
|
641
|
-
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.sl-table-wrapper {
|
|
577
|
+
width: 100%;
|
|
578
|
+
position: relative;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.toolbar {
|
|
582
|
+
margin-bottom: 12px;
|
|
583
|
+
display: flex;
|
|
584
|
+
gap: 8px;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.empty {
|
|
588
|
+
padding: 40px 0;
|
|
589
|
+
text-align: center;
|
|
590
|
+
color: #999;
|
|
591
|
+
font-size: 14px;
|
|
592
|
+
}
|