cloud-web-corejs 1.0.314 → 1.0.316
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/package.json +1 -1
- package/src/app-bootstrap.js +8 -1
- package/src/app-bootstrap.sync.js +8 -1
- package/src/boot-assets.legacy.js +6 -0
- package/src/components/hiprint/view/json-view.vue +4 -4
- package/src/components/mobile/wf/content.vue +2 -2
- package/src/components/table/plugins/cell-area/index.js +1062 -0
- package/src/components/table/plugins/cell-area/index.scss +77 -0
- package/src/components/table/plugins/cell-area/util.js +224 -0
- package/src/components/xform/form-designer/designer.js +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +30 -4
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +27 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +60 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-lazyRender-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTabChange-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTabClick-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +2 -4
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +9 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +489 -404
- package/src/components/xform/form-render/container-item/panel-item.vue +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +48 -0
- package/src/components/xform/form-render/indexMixin.js +17 -2
- package/src/components/xform/form-render/pageDialogScope.js +54 -0
- package/src/components/xform/icon-picker/index.vue +1 -1
- package/src/components/xform/lang/en-US.js +3 -0
- package/src/components/xform/lang/zh-CN.js +3 -0
- package/src/components/xform/styles/h5-designer.scss +13 -13
- package/src/components/xform/styles/h5-runtime.scss +520 -0
- package/src/components/xform/styles/h5.scss +5 -2
- package/src/components/xform/utils/util.js +1 -0
- package/src/directive/el-drag-dialog/drag.js +32 -2
- package/src/router/index.js +41 -32
- package/src/styles/btn.scss +214 -3
- package/src/styles/dialog.scss +1710 -0
- package/src/styles/element-ui.scss +957 -36
- package/src/styles/index.scss +45 -0
- package/src/styles/layout-skins.scss +840 -0
- package/src/styles/legacy-base.scss +19 -0
- package/src/styles/mixin.scss +8 -0
- package/src/styles/page-shell.scss +723 -0
- package/src/styles/sidebar.scss +15 -0
- package/src/styles/utilities.scss +234 -118
- package/src/styles/variables.scss +28 -0
- package/src/views/user/form/view/list.vue +24 -1
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
// xform / 移动端 H5 裸类名基线。由 Core 入口加载一次,不包在 .xform-h5 下。
|
|
2
|
+
// 运行时覆盖仍在 h5.scss(.xform-h5 更高特异度)。从历史 style.scss 顶层迁入。
|
|
3
|
+
@import "~@base/styles/variables.scss";
|
|
4
|
+
|
|
5
|
+
.h5-wrap {
|
|
6
|
+
.tipsOldVal {
|
|
7
|
+
.el-popover__reference {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
> i {
|
|
10
|
+
position: static;
|
|
11
|
+
left: inherit;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/*h5*/
|
|
18
|
+
.h5-layout {
|
|
19
|
+
position: relative;
|
|
20
|
+
.pages-box {
|
|
21
|
+
height: 46px;
|
|
22
|
+
padding: 0 4px;
|
|
23
|
+
.vxe-pager--right-wrapper {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
.vxe-pager--num-btn {
|
|
27
|
+
background: none !important;
|
|
28
|
+
outline: none;
|
|
29
|
+
box-shadow: none !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.h5-header {
|
|
34
|
+
background: #fff;
|
|
35
|
+
max-height: 45px;
|
|
36
|
+
min-height: 6px;
|
|
37
|
+
line-height: 45px;
|
|
38
|
+
font-size: 16px;
|
|
39
|
+
text-align: center;
|
|
40
|
+
}
|
|
41
|
+
.h5-detail-wrap {
|
|
42
|
+
padding-bottom: 68px;
|
|
43
|
+
.h5-item {
|
|
44
|
+
background: #fff;
|
|
45
|
+
border-radius: 12px;
|
|
46
|
+
padding-bottom: 12px;
|
|
47
|
+
margin: 12px 8px 0;
|
|
48
|
+
.h5-title {
|
|
49
|
+
line-height: 45px;
|
|
50
|
+
border-bottom: solid 1px#f5f4f9;
|
|
51
|
+
padding: 0 12px;
|
|
52
|
+
position: relative;
|
|
53
|
+
&:after {
|
|
54
|
+
content: "";
|
|
55
|
+
position: absolute;
|
|
56
|
+
left: 0;
|
|
57
|
+
top: 15px;
|
|
58
|
+
height: 14px;
|
|
59
|
+
width: 4px;
|
|
60
|
+
background: $baseColor;
|
|
61
|
+
border-radius: 6px;
|
|
62
|
+
}
|
|
63
|
+
.btns {
|
|
64
|
+
position: absolute;
|
|
65
|
+
right: 12px;
|
|
66
|
+
top: 0;
|
|
67
|
+
.field-wrapper {
|
|
68
|
+
display: inline-block !important;
|
|
69
|
+
margin-left: 10px;
|
|
70
|
+
.button-sty {
|
|
71
|
+
width: 68px;
|
|
72
|
+
height: 29px;
|
|
73
|
+
min-width: inherit;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.h5-form-box {
|
|
79
|
+
padding: 12px;
|
|
80
|
+
/* 原 .form-widget-list.m2 两列规则已删:form-widget-list 的 class 写死在
|
|
81
|
+
transition-group 上,customClass 落在 .grid-cell / el-form-item 上,
|
|
82
|
+
该选择器永远命中不了。两列布局改由字段选项 h5Span=half 打出的
|
|
83
|
+
.field-wrapper.h5-half 接管,见 components/xform/styles/h5.scss 块 C。 */
|
|
84
|
+
.upload-list {
|
|
85
|
+
margin: 0 0 10px;
|
|
86
|
+
}
|
|
87
|
+
.el-upload-list__item {
|
|
88
|
+
width: 102px;
|
|
89
|
+
padding: 0;
|
|
90
|
+
overflow: visible;
|
|
91
|
+
.el-upload-list__item-thumbnail {
|
|
92
|
+
margin-left: 0;
|
|
93
|
+
}
|
|
94
|
+
.el-upload-list__item-name {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 38px;
|
|
97
|
+
margin-bottom: 22px;
|
|
98
|
+
}
|
|
99
|
+
.el-upload-list__item-status-label,
|
|
100
|
+
.el-icon-tagEdit {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
.el-icon-close {
|
|
104
|
+
background: #bb0707;
|
|
105
|
+
color: #fff;
|
|
106
|
+
width: 20px;
|
|
107
|
+
height: 20px;
|
|
108
|
+
top: -3px;
|
|
109
|
+
right: -8px;
|
|
110
|
+
border-radius: 50%;
|
|
111
|
+
position: absolute;
|
|
112
|
+
display: block;
|
|
113
|
+
opacity: 1;
|
|
114
|
+
z-index: 99;
|
|
115
|
+
text-align: center;
|
|
116
|
+
line-height: 19px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.el-input {
|
|
120
|
+
.el-input__suffix .el-input__icon,
|
|
121
|
+
.el-input__prefix .el-input__icon {
|
|
122
|
+
line-height: 36px !important;
|
|
123
|
+
margin-top: 0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.upload-box {
|
|
127
|
+
border-top: none;
|
|
128
|
+
margin-top: -10px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.el-form-item__label {
|
|
132
|
+
margin-top: 0;
|
|
133
|
+
margin-bottom: 0;
|
|
134
|
+
text-align: left !important;
|
|
135
|
+
line-height: 38px;
|
|
136
|
+
&:after {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.el-input .el-input__inner {
|
|
141
|
+
height: 38px !important;
|
|
142
|
+
line-height: 38px !important;
|
|
143
|
+
border-radius: 8px;
|
|
144
|
+
}
|
|
145
|
+
.el-textarea .el-textarea__inner {
|
|
146
|
+
border-radius: 8px;
|
|
147
|
+
}
|
|
148
|
+
.el-checkbox-group,
|
|
149
|
+
.el-radio-group {
|
|
150
|
+
padding: 6px 0;
|
|
151
|
+
}
|
|
152
|
+
.h5-header {
|
|
153
|
+
height: auto;
|
|
154
|
+
}
|
|
155
|
+
.h5-list-box {
|
|
156
|
+
padding: 0;
|
|
157
|
+
.item {
|
|
158
|
+
background: #f7f7f7;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
.h5-search-box {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
.h5-form-box {
|
|
165
|
+
padding-bottom: 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.el-tabs.tab-box {
|
|
170
|
+
.el-tabs__header {
|
|
171
|
+
background: #fff;
|
|
172
|
+
line-height: 40px;
|
|
173
|
+
}
|
|
174
|
+
.el-tabs__content {
|
|
175
|
+
padding: 0;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.h5-fixed-top-btns {
|
|
180
|
+
background-color: #fff;
|
|
181
|
+
height: 50px !important;
|
|
182
|
+
padding: 8px 4px;
|
|
183
|
+
border-bottom: solid 1px $border-color-lighter;
|
|
184
|
+
.grid-cell {
|
|
185
|
+
height: 100%;
|
|
186
|
+
padding: 0;
|
|
187
|
+
}
|
|
188
|
+
.button-sty {
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: 34px;
|
|
191
|
+
font-size: 0.825rem;
|
|
192
|
+
}
|
|
193
|
+
.form-widget-list,
|
|
194
|
+
.el-form {
|
|
195
|
+
display: flex;
|
|
196
|
+
.field-wrapper {
|
|
197
|
+
flex: 1;
|
|
198
|
+
margin: 0 8px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
.el-form > div {
|
|
202
|
+
width: 100%;
|
|
203
|
+
.sub-form-table-column {
|
|
204
|
+
flex: 1;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
.h5-fixed-bottom-btns {
|
|
209
|
+
position: fixed;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
left: 0;
|
|
212
|
+
right: 0;
|
|
213
|
+
background-color: #fff;
|
|
214
|
+
height: 56px !important;
|
|
215
|
+
padding: 8px 4px;
|
|
216
|
+
.grid-cell {
|
|
217
|
+
height: 100%;
|
|
218
|
+
padding: 0;
|
|
219
|
+
}
|
|
220
|
+
.button-sty {
|
|
221
|
+
width: 100%;
|
|
222
|
+
height: 40px;
|
|
223
|
+
font-size: 0.825rem;
|
|
224
|
+
}
|
|
225
|
+
.form-widget-list,
|
|
226
|
+
.el-form {
|
|
227
|
+
display: flex;
|
|
228
|
+
.field-wrapper {
|
|
229
|
+
flex: 1;
|
|
230
|
+
margin: 0 8px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
.el-form > div {
|
|
234
|
+
width: 100%;
|
|
235
|
+
.sub-form-table-column {
|
|
236
|
+
flex: 1;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
.h5-search-box {
|
|
241
|
+
background: #fff;
|
|
242
|
+
position: relative;
|
|
243
|
+
height: 45px !important;
|
|
244
|
+
border-bottom: solid 1px $border-color-lighter;
|
|
245
|
+
padding: 0 70px 0 12px;
|
|
246
|
+
.txt {
|
|
247
|
+
height: 38px;
|
|
248
|
+
border: none;
|
|
249
|
+
background: #f7f7f7;
|
|
250
|
+
border-radius: 38px !important;
|
|
251
|
+
position: relative;
|
|
252
|
+
width: 100% !important;
|
|
253
|
+
.el-input__inner {
|
|
254
|
+
height: 38px !important;
|
|
255
|
+
width: 100%;
|
|
256
|
+
border: none;
|
|
257
|
+
background: none;
|
|
258
|
+
line-height: 38px;
|
|
259
|
+
padding-left: 39px;
|
|
260
|
+
}
|
|
261
|
+
.el-input__suffix {
|
|
262
|
+
position: absolute;
|
|
263
|
+
left: 12px;
|
|
264
|
+
width: 20px;
|
|
265
|
+
right: inherit;
|
|
266
|
+
transform: inherit !important;
|
|
267
|
+
top: 7px;
|
|
268
|
+
}
|
|
269
|
+
.el-input-group__append {
|
|
270
|
+
border: none;
|
|
271
|
+
background: none;
|
|
272
|
+
.btn {
|
|
273
|
+
border: none;
|
|
274
|
+
background: $baseColor;
|
|
275
|
+
width: 53px;
|
|
276
|
+
position: absolute;
|
|
277
|
+
right: 26px;
|
|
278
|
+
top: 14px;
|
|
279
|
+
padding: 0;
|
|
280
|
+
height: 30px;
|
|
281
|
+
border-radius: 30px;
|
|
282
|
+
outline: none;
|
|
283
|
+
color: #fff;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
.icon-screen {
|
|
288
|
+
position: absolute;
|
|
289
|
+
right: 12px;
|
|
290
|
+
top: 0;
|
|
291
|
+
line-height: 38px;
|
|
292
|
+
font-size: $fontSizeBase;
|
|
293
|
+
i {
|
|
294
|
+
margin-right: 5px;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
.h5-list-box {
|
|
299
|
+
padding: 12px;
|
|
300
|
+
|
|
301
|
+
.item {
|
|
302
|
+
background: #fff;
|
|
303
|
+
border-radius: 8px;
|
|
304
|
+
margin-bottom: 12px;
|
|
305
|
+
padding-bottom: 6px;
|
|
306
|
+
position: relative;
|
|
307
|
+
border: solid 1px $border-color-lighter;
|
|
308
|
+
.t1 {
|
|
309
|
+
position: relative;
|
|
310
|
+
padding: 6px 16px 4px 12px;
|
|
311
|
+
overflow: hidden;
|
|
312
|
+
display: flex;
|
|
313
|
+
line-height: 38px;
|
|
314
|
+
&:before {
|
|
315
|
+
content: "";
|
|
316
|
+
position: absolute;
|
|
317
|
+
left: 0;
|
|
318
|
+
top: 18px;
|
|
319
|
+
height: 14px;
|
|
320
|
+
width: 4px;
|
|
321
|
+
background: $baseColor;
|
|
322
|
+
border-radius: 7px;
|
|
323
|
+
}
|
|
324
|
+
> b {
|
|
325
|
+
font-size: 14px;
|
|
326
|
+
vertical-align: middle;
|
|
327
|
+
}
|
|
328
|
+
> span {
|
|
329
|
+
vertical-align: middle;
|
|
330
|
+
flex: 1;
|
|
331
|
+
}
|
|
332
|
+
.status {
|
|
333
|
+
color: #fff;
|
|
334
|
+
background: $baseColor;
|
|
335
|
+
min-width: 68px;
|
|
336
|
+
height: $control-height;
|
|
337
|
+
border-radius: 0 0 0 15px;
|
|
338
|
+
padding-left: 22px;
|
|
339
|
+
line-height: 28px;
|
|
340
|
+
font-size: $fontSizeBase;
|
|
341
|
+
margin-top: 5px;
|
|
342
|
+
&:before {
|
|
343
|
+
content: "";
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 50%;
|
|
346
|
+
left: 12px;
|
|
347
|
+
width: 4px;
|
|
348
|
+
height: 4px;
|
|
349
|
+
margin-top: -2px;
|
|
350
|
+
background: #fff;
|
|
351
|
+
border-radius: 5px;
|
|
352
|
+
margin-top: -2px;
|
|
353
|
+
background: #fff;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
+ .t2 {
|
|
357
|
+
margin-top: 0;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
.t2 {
|
|
361
|
+
font-size: $fontSizeBase;
|
|
362
|
+
color: $text-color-muted;
|
|
363
|
+
overflow: hidden;
|
|
364
|
+
padding-bottom: 8px;
|
|
365
|
+
margin-top: 10px;
|
|
366
|
+
> dl {
|
|
367
|
+
width: 100%;
|
|
368
|
+
display: inline-block;
|
|
369
|
+
padding: 3px 14px;
|
|
370
|
+
margin-bottom: 0;
|
|
371
|
+
line-height: 24px;
|
|
372
|
+
&.m2 {
|
|
373
|
+
width: 50%;
|
|
374
|
+
}
|
|
375
|
+
> div {
|
|
376
|
+
display: flex;
|
|
377
|
+
}
|
|
378
|
+
dt {
|
|
379
|
+
display: inline-block;
|
|
380
|
+
font-weight: 400;
|
|
381
|
+
width: 74px;
|
|
382
|
+
padding-right: 4px;
|
|
383
|
+
word-break: break-all;
|
|
384
|
+
}
|
|
385
|
+
dd {
|
|
386
|
+
display: inline-block;
|
|
387
|
+
flex: 1;
|
|
388
|
+
}
|
|
389
|
+
.field-wrapper {
|
|
390
|
+
display: inline-block;
|
|
391
|
+
width: calc(100vw - 159px);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
.btns {
|
|
396
|
+
border-top: solid 1px $border-color-lighter;
|
|
397
|
+
padding: 9px 12px 4px;
|
|
398
|
+
text-align: right;
|
|
399
|
+
position: relative;
|
|
400
|
+
.field-wrapper {
|
|
401
|
+
display: inline-block !important;
|
|
402
|
+
}
|
|
403
|
+
.button-sty {
|
|
404
|
+
border: solid 1px $baseColor;
|
|
405
|
+
padding: 0 4px;
|
|
406
|
+
min-width: 64px;
|
|
407
|
+
line-height: 28px;
|
|
408
|
+
margin: 0 0 0 8px;
|
|
409
|
+
display: inline-block;
|
|
410
|
+
font-size: $fontSizeBase;
|
|
411
|
+
height: 30px;
|
|
412
|
+
color: $baseColor;
|
|
413
|
+
}
|
|
414
|
+
.checkbox_fl {
|
|
415
|
+
line-height: 30px;
|
|
416
|
+
position: absolute;
|
|
417
|
+
left: 20px;
|
|
418
|
+
top: 9px;
|
|
419
|
+
.el-checkbox__inner:after {
|
|
420
|
+
left: 0;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
&:last-child {
|
|
425
|
+
margin-bottom: 0;
|
|
426
|
+
}
|
|
427
|
+
.del-btn {
|
|
428
|
+
position: absolute;
|
|
429
|
+
top: -6px;
|
|
430
|
+
right: -6px;
|
|
431
|
+
background: #bf1414;
|
|
432
|
+
color: #fff;
|
|
433
|
+
width: 26px;
|
|
434
|
+
height: 26px;
|
|
435
|
+
text-align: center;
|
|
436
|
+
line-height: 28px;
|
|
437
|
+
border-radius: 50%;
|
|
438
|
+
cursor: pointer;
|
|
439
|
+
z-index: 6;
|
|
440
|
+
}
|
|
441
|
+
&.checked {
|
|
442
|
+
border: solid 1px $baseColor;
|
|
443
|
+
&:before {
|
|
444
|
+
content: "\e6da";
|
|
445
|
+
position: absolute;
|
|
446
|
+
left: -1px;
|
|
447
|
+
bottom: -1px;
|
|
448
|
+
font-family: element-icons !important;
|
|
449
|
+
background-color: $baseColor;
|
|
450
|
+
color: #fff;
|
|
451
|
+
width: 32px;
|
|
452
|
+
height: 24px;
|
|
453
|
+
line-height: 34px;
|
|
454
|
+
clip-path: polygon(0 100%, 100% 100%, 0 0);
|
|
455
|
+
font-size: $fontSizeBase;
|
|
456
|
+
padding-left: 3px;
|
|
457
|
+
border-radius: 0 0 0 10px;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.h5-tab-nav {
|
|
464
|
+
background: #fff;
|
|
465
|
+
height: 45px !important;
|
|
466
|
+
white-space: nowrap;
|
|
467
|
+
line-height: 45px;
|
|
468
|
+
.item {
|
|
469
|
+
display: inline-block;
|
|
470
|
+
text-align: center;
|
|
471
|
+
padding: 0 26px;
|
|
472
|
+
b {
|
|
473
|
+
position: relative;
|
|
474
|
+
font-weight: 400;
|
|
475
|
+
display: inline-block;
|
|
476
|
+
&:before {
|
|
477
|
+
content: "";
|
|
478
|
+
left: 0;
|
|
479
|
+
right: 0;
|
|
480
|
+
bottom: 4px;
|
|
481
|
+
height: 3px;
|
|
482
|
+
background-color: $baseColor;
|
|
483
|
+
display: none;
|
|
484
|
+
position: absolute;
|
|
485
|
+
box-shadow: 0 3px 5px transparentize($baseColor, 0.7);
|
|
486
|
+
border-radius: 10px;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
&.on {
|
|
490
|
+
color: $baseColor;
|
|
491
|
+
b:before {
|
|
492
|
+
display: block;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
.h5-oper-btns {
|
|
498
|
+
background: #fff;
|
|
499
|
+
padding: 0 12px 8px;
|
|
500
|
+
margin-bottom: 6px;
|
|
501
|
+
.tit {
|
|
502
|
+
display: inline-block;
|
|
503
|
+
padding: 3px 10px;
|
|
504
|
+
margin-left: -12px;
|
|
505
|
+
margin-bottom: 7px;
|
|
506
|
+
margin-top: 7px;
|
|
507
|
+
}
|
|
508
|
+
.el-form {
|
|
509
|
+
.sub-form-table-column {
|
|
510
|
+
display: inline-block !important;
|
|
511
|
+
margin-left: 8px;
|
|
512
|
+
&:first-child {
|
|
513
|
+
margin-left: 0;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
.form-widget-list .field-wrapper {
|
|
518
|
+
padding: 5px 5px 0;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* xform H5(移动端)版式样式基线
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* formConfig.layoutType === 'H5' 输出,PC/Pad
|
|
4
|
+
* 作用域:覆盖规则全部收在 .xform-h5 下。该根类由 form-render/index.vue 依
|
|
5
|
+
* formConfig.layoutType === 'H5' 输出,PC/Pad 版式下本文件的覆盖不生效。
|
|
6
|
+
*
|
|
7
|
+
* 裸类名基线(.h5-detail-wrap / .h5-list-box 等)在同目录 h5-runtime.scss,
|
|
8
|
+
* 由 Core 入口加载一次。本文件选择器段数必须继续高于那份基线。
|
|
6
9
|
*
|
|
7
10
|
* 为什么放包内而不是 resources/css/style.scss:
|
|
8
11
|
* style.scss 是消费应用按需加载的历史业务样式,不随 cloud-web-corejs 发布。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**version-1.0*/
|
|
2
2
|
import indexUtil0 from "../../utils/index.js"
|
|
3
|
-
let indexUtil = indexUtil0;
|
|
3
|
+
let indexUtil = indexUtil0;
|
|
4
4
|
let modules = {};
|
|
5
5
|
modules = {
|
|
6
6
|
bind(el, binding, vnode) {
|
|
@@ -21,6 +21,36 @@ modules = {
|
|
|
21
21
|
dialogHeaderEl.onmousedown = function(e) {
|
|
22
22
|
indexUtil.addClass(document.body, 'resize-ing');
|
|
23
23
|
|
|
24
|
+
if (el.classList.contains('xform-page-dialog-wrapper')) {
|
|
25
|
+
const hostRect = el.parentNode.getBoundingClientRect();
|
|
26
|
+
const dialogRect = dragDom.getBoundingClientRect();
|
|
27
|
+
const startX = e.clientX;
|
|
28
|
+
const startY = e.clientY;
|
|
29
|
+
const startLeft = parseFloat(getStyle(dragDom, 'left')) || 0;
|
|
30
|
+
const startTop = parseFloat(getStyle(dragDom, 'top')) || 0;
|
|
31
|
+
|
|
32
|
+
document.onmousemove = function(moveEvent) {
|
|
33
|
+
const deltaX = Math.min(
|
|
34
|
+
Math.max(moveEvent.clientX - startX, hostRect.left - dialogRect.left),
|
|
35
|
+
hostRect.right - dialogRect.right
|
|
36
|
+
);
|
|
37
|
+
const deltaY = Math.min(
|
|
38
|
+
Math.max(moveEvent.clientY - startY, hostRect.top - dialogRect.top),
|
|
39
|
+
hostRect.bottom - dialogRect.bottom
|
|
40
|
+
);
|
|
41
|
+
dragDom.style.left = startLeft + deltaX + 'px';
|
|
42
|
+
dragDom.style.top = startTop + deltaY + 'px';
|
|
43
|
+
vnode.child.$emit('dragDialog');
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
document.onmouseup = function() {
|
|
47
|
+
indexUtil.removeClass(document.body, 'resize-ing');
|
|
48
|
+
document.onmousemove = null;
|
|
49
|
+
document.onmouseup = null;
|
|
50
|
+
};
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
24
54
|
// 鼠标按下,计算当前元素距离可视区的距离
|
|
25
55
|
let disX = e.clientX - dialogHeaderEl.offsetLeft;
|
|
26
56
|
let disY = e.clientY - dialogHeaderEl.offsetTop;
|
|
@@ -83,4 +113,4 @@ modules = {
|
|
|
83
113
|
}
|
|
84
114
|
};
|
|
85
115
|
|
|
86
|
-
export default modules
|
|
116
|
+
export default modules
|
package/src/router/index.js
CHANGED
|
@@ -1,34 +1,43 @@
|
|
|
1
|
-
import Vue from "vue";
|
|
2
|
-
import Router from "vue-router";
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import Router from "vue-router";
|
|
3
3
|
import { promptRefreshForUpdate } from "@base/utils/runtimeRecovery";
|
|
4
|
-
|
|
5
|
-
Vue.use(Router);
|
|
6
|
-
|
|
7
|
-
import { constantRoutes as route1s } from "@base/router/modules/system";
|
|
8
|
-
import { constantRoutes as route2s } from "@/router/modules/customer";
|
|
9
|
-
|
|
10
|
-
export const constantRoutes = [...route1s, ...route2s];
|
|
11
|
-
|
|
12
|
-
const createRouter = () =>
|
|
13
|
-
new Router({
|
|
14
|
-
// mode: 'history', // require service support
|
|
15
|
-
scrollBehavior: () => ({
|
|
16
|
-
y: 0,
|
|
17
|
-
}),
|
|
18
|
-
routes: constantRoutes,
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
const router = createRouter();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
4
|
+
|
|
5
|
+
Vue.use(Router);
|
|
6
|
+
|
|
7
|
+
import { constantRoutes as route1s } from "@base/router/modules/system";
|
|
8
|
+
import { constantRoutes as route2s } from "@/router/modules/customer";
|
|
9
|
+
|
|
10
|
+
export const constantRoutes = [...route1s, ...route2s];
|
|
11
|
+
|
|
12
|
+
const createRouter = () =>
|
|
13
|
+
new Router({
|
|
14
|
+
// mode: 'history', // require service support
|
|
15
|
+
scrollBehavior: () => ({
|
|
16
|
+
y: 0,
|
|
17
|
+
}),
|
|
18
|
+
routes: constantRoutes,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const router = createRouter();
|
|
22
|
+
|
|
23
|
+
// 视图改按需加载后,路由跳转会真的去网络拉 chunk,于是多出一类以前不可能发生的失败:
|
|
24
|
+
// 发版后旧标签页持有的 chunk 哈希已失效(404)、网络超时、或被网关截断(截断表现为
|
|
25
|
+
// chunk 内 SyntaxError,不是网络错误)。vue-router 对这类失败是静默的——点了没反应。
|
|
26
|
+
//
|
|
27
|
+
// 菜单驱动的视图不走这里:store/modules/permission.js 的 loadView 自己 catch 后渲染
|
|
28
|
+
// MenuFallback。这里兜的是 constantRoutes 里那批 () => import(...) 的静态路由。
|
|
29
|
+
//
|
|
30
|
+
// 只提示、不自动 reload:本系统表单页多,自动刷新会吞掉用户未保存的录入;而且一旦
|
|
31
|
+
// 某个 chunk 持续拉不到(例如网关截断),自动刷新会退化成"用户每点一次就刷一次"的循环。
|
|
32
|
+
router.onError((error) => {
|
|
33
|
+
const msg = (error && error.message) || "";
|
|
34
|
+
if (!/Loading (CSS )?chunk .* failed|ChunkLoadError/i.test(msg)) return;
|
|
26
35
|
promptRefreshForUpdate(error);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
export function resetRouter() {
|
|
30
|
-
const newRouter = createRouter();
|
|
31
|
-
router.matcher = newRouter.matcher; // reset router
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export default router;
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function resetRouter() {
|
|
39
|
+
const newRouter = createRouter();
|
|
40
|
+
router.matcher = newRouter.matcher; // reset router
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default router;
|