cloud-web-corejs 1.1.0-dev.45 → 1.1.0-dev.48

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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/src/app-bootstrap.js +6 -5
  3. package/src/components/Qrcode/fileParse.vue +11 -0
  4. package/src/components/VabUpload/index.js +11 -4
  5. package/src/components/VabUpload/mixins/fileLibraryDialog.js +2 -0
  6. package/src/components/VabUpload/mixins.js +72 -40
  7. package/src/components/VabUpload/partUploadConfig.js +95 -0
  8. package/src/components/VabUpload/privateProfileDialogMixins.js +2 -0
  9. package/src/components/baseInputExport/mixins.js +1 -0
  10. package/src/components/fileLibrary/mixins/indexMixins.js +2 -0
  11. package/src/components/jdPrint/mixins.js +2 -0
  12. package/src/components/obsUpload/index.js +4 -1
  13. package/src/components/obsUpload/mixins.js +45 -15
  14. package/src/components/onlineTalk/mixins.js +11 -0
  15. package/src/components/table/index.js +74 -78
  16. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/344/273/243/347/240/201/350/257/204/345/256/241.md" +255 -0
  17. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/346/265/213/350/257/225/351/252/214/350/257/201/345/256/236/346/226/275/346/226/207/346/241/243.md" +595 -0
  18. package/src/components/xform/docs//346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206/344/270/216/344/277/256/345/244/215/350/220/275/345/234/260/346/226/271/346/241/210.md +324 -0
  19. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +1 -1
  20. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -0
  21. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -2
  22. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +24 -0
  23. package/src/components/xform/form-render/container-item/data-table-mixin.js +420 -47
  24. package/src/components/xform/form-render/container-item/list-h5-item.vue +109 -38
  25. package/src/components/xform/styles/h5-designer.scss +13 -13
  26. package/src/components/xform/styles/h5-runtime.scss +520 -0
  27. package/src/components/xform/styles/h5.scss +5 -2
  28. package/src/components/xform/utils/util.js +9 -0
  29. package/src/layout/components/TagsView/index.vue +11 -10
  30. package/src/layout/components/TagsView/style.scss +92 -0
  31. package/src/styles/btn.scss +214 -3
  32. package/src/styles/dialog.scss +1710 -0
  33. package/src/styles/element-ui.scss +957 -36
  34. package/src/styles/index.scss +45 -0
  35. package/src/styles/layout-skins.scss +840 -0
  36. package/src/styles/mixin.scss +8 -0
  37. package/src/styles/page-shell.scss +622 -0
  38. package/src/styles/sidebar.scss +15 -0
  39. package/src/styles/utilities.scss +234 -118
  40. package/src/styles/variables.scss +28 -0
  41. package/src/views/user/home/wjl/content.vue +5 -0
  42. package/src/views/user/intf_permission/edit.vue +230 -0
  43. package/src/views/user/intf_permission/list.vue +196 -0
@@ -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
- * 作用域:全部收在 .xform-h5 下。该根类由 form-render/index.vue 依
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 发布。
@@ -181,6 +181,15 @@ export const generateId = function () {
181
181
  );
182
182
  };
183
183
 
184
+ // 表格 _X_ROW_KEY。不能用 generateId():取值大约只有 12 万种,千行以上几乎必撞,
185
+ // 树表新增时会报「_X_ROW_KEY 同时指向多个树节点」。
186
+ // 也不能用纯 row_ + 整数,那是 vxe uniqueId('row_') 的格式,插入新行时会撞上。
187
+ let xRowKeySeed = 0;
188
+ export function createXRowKey() {
189
+ xRowKeySeed += 1;
190
+ return `row_${Date.now().toString(36)}_${xRowKeySeed}`;
191
+ }
192
+
184
193
  // 审计字段:创建/修改人及时间,camelCase 与 snake_case 两种形式;后端保存时重新生成
185
194
  const AUDIT_FIELDS = [
186
195
  "createBy",
@@ -118,16 +118,16 @@ export default {
118
118
  if (!enTitle || locale !== "en") {
119
119
  title = zhTitle
120
120
  }
121
- if (this.$t1) {
122
- title = this.$t1(title)
123
- }
124
- if (item.query?._tabSuffix) {
125
- let suffix = this.$t1 ? this.$t1(item.query._tabSuffix) : item.query._tabSuffix
126
- title = `${title}(${suffix})`
127
- }
128
- if (!item.query?._tabSuffix && item.repeatIndex > 1) {
129
- title = `${title} (${item.repeatIndex})`
130
- }
121
+ if (this.$t1) {
122
+ title = this.$t1(title)
123
+ }
124
+ if (item.query?._tabSuffix) {
125
+ let suffix = this.$t1 ? this.$t1(item.query._tabSuffix) : item.query._tabSuffix
126
+ title = `${title}(${suffix})`
127
+ }
128
+ if (!item.query?._tabSuffix && item.repeatIndex > 1) {
129
+ title = `${title} (${item.repeatIndex})`
130
+ }
131
131
  return title;
132
132
  },
133
133
  viewKey(view) {
@@ -294,6 +294,7 @@ export default {
294
294
  }
295
295
  </style>
296
296
  <style lang="scss">
297
+ @import "./style.scss";
297
298
  //reset element css of el-icon-close
298
299
  span.el-icon-close.is-disabled{
299
300
  cursor: not-allowed;
@@ -0,0 +1,92 @@
1
+ // TagsView 页签导航外壳。由组件入口加载,不进入全局 Core 样式入口。
2
+ @import "~@base/styles/variables.scss";
3
+
4
+ .navbar-tag {
5
+ height: 31px;
6
+ -moz-box-flex: 1;
7
+ -webkit-box-flex: 1;
8
+ box-flex: 1;
9
+ padding-right: 100px;
10
+ width: calc(100% - 38px);
11
+ margin-left: 38px;
12
+ border-bottom: solid 2px $baseColor;
13
+ .telescopMenuIcon {
14
+ width: 32px;
15
+ line-height: 32px;
16
+ height: 31px;
17
+ cursor: pointer;
18
+ position: absolute;
19
+ left: 0;
20
+ top: 2px;
21
+ background: #dce5ef;
22
+ text-align: center;
23
+ border-radius: 1px;
24
+ }
25
+ .el-scrollbar__view {
26
+ padding-left: 84px;
27
+ }
28
+
29
+ .tags-view-item {
30
+ display: inline-block;
31
+ position: relative;
32
+ cursor: pointer;
33
+ font-size: $fontSizeBase;
34
+ line-height: 30px;
35
+ padding: 0 27px 0 18px;
36
+ &:first-child {
37
+ position: absolute;
38
+ left: 0;
39
+ background: #f0f5fb;
40
+ bottom: 16px;
41
+ z-index: 2;
42
+ }
43
+ &:last-of-type {
44
+ margin-right: 30px;
45
+ }
46
+ &.active {
47
+ color: #fff;
48
+ //border-bottom:solid 3px $baseColor;
49
+ //line-height: 31px;
50
+ background: $baseColor;
51
+ border-radius: 2px 34px 0 0;
52
+ z-index: 3;
53
+ }
54
+ }
55
+ .tags-operBox {
56
+ position: absolute;
57
+ top: -1px;
58
+ right: 0;
59
+ line-height: 32px;
60
+ z-index: 2;
61
+ background: #f1f6fc;
62
+ bottom: 4px;
63
+ .item {
64
+ margin: 0 8px;
65
+ font-size: 17px;
66
+ cursor: pointer;
67
+ outline: none;
68
+ line-height: 32px;
69
+ }
70
+ }
71
+ .contextmenu {
72
+ margin: 0;
73
+ z-index: 3000;
74
+ position: absolute;
75
+ list-style-type: none;
76
+ padding: 5px 0;
77
+ border-radius: 4px;
78
+ font-size: $fontSizeBase;
79
+ font-weight: 400;
80
+ background: #fff;
81
+ color: #333;
82
+ box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
83
+ li {
84
+ margin: 0;
85
+ padding: 7px 16px;
86
+ cursor: pointer;
87
+ &:hover {
88
+ background: $border-color-lighter;
89
+ }
90
+ }
91
+ }
92
+ }