cloud-web-corejs 1.0.54-dev.810 → 1.0.54-dev.811

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 (83) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/image-viewer.vue +442 -442
  3. package/src/components/VabUpload/index.vue +44 -2
  4. package/src/components/VabUpload/mixins.js +126 -19
  5. package/src/components/VabUpload/view.vue +247 -209
  6. package/src/components/baseTabs/mixins.js +181 -181
  7. package/src/components/mobile/wf/content.vue +1665 -1556
  8. package/src/components/table/config.js +78 -78
  9. package/src/components/table/index.js +1276 -1276
  10. package/src/components/table/tableForm.vue +330 -330
  11. package/src/components/table/tableFormMixin.js +318 -318
  12. package/src/components/table/vxeFilter/index.js +163 -163
  13. package/src/components/table/vxeFilter/mixin.js +316 -316
  14. package/src/components/wf/content.vue +1188 -1188
  15. package/src/components/wf/wf.js +29 -12
  16. package/src/components/wf/wfActionDropdown.vue +1 -1
  17. package/src/components/wf/wfActionItems.js +1 -1
  18. package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
  19. package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
  20. package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
  21. package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
  22. package/src/components/xform/form-designer/designer.js +15 -0
  23. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
  24. package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
  25. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
  26. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
  27. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
  28. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
  29. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
  30. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
  31. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
  32. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
  33. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +29 -1
  34. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
  35. package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
  36. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
  37. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
  38. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
  39. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
  40. package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
  41. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -438
  42. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
  43. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
  44. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
  45. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
  46. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
  47. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
  48. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
  49. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
  50. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
  51. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
  52. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
  53. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
  54. package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
  55. package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
  56. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
  57. package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
  58. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
  59. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
  60. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +55 -3
  61. package/src/components/xform/form-render/container-item/data-table-mixin.js +33 -12
  62. package/src/components/xform/form-render/container-item/detail-h5-item.vue +183 -32
  63. package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
  64. package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
  65. package/src/components/xform/form-render/container-item/list-h5-item.vue +1642 -1700
  66. package/src/components/xform/form-render/index.vue +153 -147
  67. package/src/components/xform/form-render/indexMixin.js +12 -0
  68. package/src/components/xform/lang/en-US.js +10 -0
  69. package/src/components/xform/lang/zh-CN.js +12 -0
  70. package/src/components/xform/mixins/defaultHandle.js +707 -707
  71. package/src/components/xform/styles/h5.scss +1633 -0
  72. package/src/components/xform/utils/textMaskUtil.js +182 -182
  73. package/src/components/xform/utils/treeTableUtil.js +1292 -1265
  74. package/src/components/xform/utils/util.js +56 -11
  75. package/src/utils/pdfUtil.js +429 -429
  76. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
  77. package/src/views/bd/setting/table_model/edit.vue +1066 -1066
  78. package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
  79. package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
  80. package/src/views/user/home/wjl/content.vue +394 -31
  81. package/src/views/user/role/edit.vue +632 -632
  82. package/src/views/user/role/list.vue +260 -260
  83. package/src/views/user/wf/wf_manage/list.vue +1116 -1116
@@ -1,181 +1,181 @@
1
- import { scrollIntoScrollParent } from '@base/utils/scrollUtil';
2
-
3
- let baseTabsMixin, baseTabPaneMixin;
4
-
5
- baseTabsMixin = {
6
- props: {
7
- value: {
8
- type: [String, Number]
9
- }
10
- },
11
- data: function () {
12
- return {
13
- currentValue: this.value,
14
- navList: []
15
- };
16
- },
17
- methods: {
18
- tabCls: function (item) {
19
- return [
20
- 'tabs-tab',
21
- {
22
- 'tabs-tab-active': item.name === this.currentValue
23
- }
24
- ];
25
- },
26
- //遍历所有为pane的子元素
27
- getTabs() {
28
- let list = [];
29
- if (this.$slots.default) {
30
- this.$slots.default.filter(item => {
31
- return item.child !== undefined && item.child !== null;
32
- }).map(item => item.child).forEach(item => {
33
- if (item.$options.name === 'baseTabPane') {
34
- list.push(item);
35
- } else if (item.$attrs.tabPaneGrade === '2' || item.$attrs.tabPaneGrade === 2) {
36
- let items = item.$children.filter(function (thirdItem) {
37
- return thirdItem.$options.name === 'baseTabPane';
38
- });
39
- list.push(...items);
40
- }
41
- });
42
- }
43
- return list;
44
- },
45
- //将pane子元素中label name放进navList数组
46
- updateNav() {
47
- let navList = [];
48
- let _this = this;
49
- this.getTabs().forEach(function (pane, index) {
50
- navList.push({
51
- label: pane.label,
52
- name: pane.name || index,
53
- visible: pane.visible
54
- });
55
-
56
- // if (!pane.name) pane.name = index;
57
- if (index === 0) {
58
- if (!_this.currentValue) {
59
- _this.currentValue = pane.name || index;
60
- }
61
- }
62
- });
63
- this.navList = navList;
64
- this.updateStatus();
65
- },
66
- updateStatus() {
67
- let tabs = this.getTabs();
68
- let _this = this;
69
- //显示当前正在选中的
70
- tabs.forEach(function (tab) {
71
- return (tab.show = tab.name === _this.currentValue);
72
- });
73
- },
74
- handleChange: function (index) {
75
- let nav = this.navList[index];
76
- let name = nav.name;
77
- this.currentValue = name;
78
- this.$emit('input', name);
79
- this.$emit('on-click', name);
80
- let target = this.getTabs()[index].$el;
81
- //滚动体是 .d-cont 还是它外面那层(.d-header + div{flex:1;overflow-y:auto})由布局决定,
82
- //原来写死 .d-cont,在 .d-cont 没有确定高度(height:inherit 拿到 auto)的页面上
83
- //scrollTop 赋值是空操作,点导航没反应——统一交给 scrollIntoScrollParent 找真正的滚动体。
84
- scrollIntoScrollParent(target);
85
- }
86
- },
87
- watch: {
88
- value: function (val) {
89
- this.currentValue = val;
90
- },
91
- currentValue: function () {
92
- this.updateStatus();
93
- }
94
- }
95
- };
96
-
97
- baseTabPaneMixin = {
98
- props: {
99
- name: {
100
- type: String
101
- },
102
- label: {
103
- type: String,
104
- default: ''
105
- },
106
- showFold: {
107
- type: Boolean,
108
- default: false
109
- },
110
- defaultShowContent: {
111
- type: Boolean,
112
- default: true
113
- },
114
- visible: {
115
- type: Boolean,
116
- default: undefined
117
- }
118
- },
119
- computed: {
120
- foldClass() {
121
- return this.showContent ? 'el-icon-arrow-up' : 'el-icon-arrow-down';
122
- }
123
- },
124
- beforeDestroy() {
125
- //getParent() 只认 baseTabs 父级/祖父级,拿不到就是没被 baseTabs 包着(如设计期画布、
126
- //或中间隔了 draggable),此时没有 navList 可维护,直接跳过——原来这里直接取 .navList 会崩。
127
- let parentPanel = this.getParent();
128
- if (!parentPanel) return;
129
- let navList = parentPanel.navList;
130
- if (navList.length <= 1) {
131
- this.updateNav();
132
- }
133
- },
134
- created() {
135
- if (this.showFold) {
136
- this.showContent = this.defaultShowContent;
137
- }
138
- },
139
- data: function () {
140
- return {
141
- show: true,
142
- showContent: true
143
- };
144
- },
145
- methods: {
146
- getParent() {
147
- if (this.$parent.$options.name === 'baseTabs') {
148
- return this.$parent;
149
- } else if (this.$parent.$parent && this.$parent.$parent.$options.name === 'baseTabs') {
150
- return this.$parent.$parent;
151
- }
152
- },
153
- updateNav() {
154
- let parentPanel = this.getParent();
155
- parentPanel && parentPanel.updateNav();
156
- },
157
- handleFold(val) {
158
- if (this.showFold) {
159
- this.showContent = (val !== null && val !== undefined ? val : !this.showContent);
160
- }
161
- }
162
- },
163
- watch: {
164
- label() {
165
- this.updateNav();
166
- }
167
- },
168
- mounted() {
169
- this.updateNav();
170
- if (this.visible !== undefined) {
171
- this.$watch('visible', (val) => {
172
- this.updateNav();
173
- })
174
- }
175
- }
176
- };
177
-
178
- export {
179
- baseTabsMixin,
180
- baseTabPaneMixin,
181
- }
1
+ import { scrollIntoScrollParent } from '@base/utils/scrollUtil';
2
+
3
+ let baseTabsMixin, baseTabPaneMixin;
4
+
5
+ baseTabsMixin = {
6
+ props: {
7
+ value: {
8
+ type: [String, Number]
9
+ }
10
+ },
11
+ data: function () {
12
+ return {
13
+ currentValue: this.value,
14
+ navList: []
15
+ };
16
+ },
17
+ methods: {
18
+ tabCls: function (item) {
19
+ return [
20
+ 'tabs-tab',
21
+ {
22
+ 'tabs-tab-active': item.name === this.currentValue
23
+ }
24
+ ];
25
+ },
26
+ //遍历所有为pane的子元素
27
+ getTabs() {
28
+ let list = [];
29
+ if (this.$slots.default) {
30
+ this.$slots.default.filter(item => {
31
+ return item.child !== undefined && item.child !== null;
32
+ }).map(item => item.child).forEach(item => {
33
+ if (item.$options.name === 'baseTabPane') {
34
+ list.push(item);
35
+ } else if (item.$attrs.tabPaneGrade === '2' || item.$attrs.tabPaneGrade === 2) {
36
+ let items = item.$children.filter(function (thirdItem) {
37
+ return thirdItem.$options.name === 'baseTabPane';
38
+ });
39
+ list.push(...items);
40
+ }
41
+ });
42
+ }
43
+ return list;
44
+ },
45
+ //将pane子元素中label name放进navList数组
46
+ updateNav() {
47
+ let navList = [];
48
+ let _this = this;
49
+ this.getTabs().forEach(function (pane, index) {
50
+ navList.push({
51
+ label: pane.label,
52
+ name: pane.name || index,
53
+ visible: pane.visible
54
+ });
55
+
56
+ // if (!pane.name) pane.name = index;
57
+ if (index === 0) {
58
+ if (!_this.currentValue) {
59
+ _this.currentValue = pane.name || index;
60
+ }
61
+ }
62
+ });
63
+ this.navList = navList;
64
+ this.updateStatus();
65
+ },
66
+ updateStatus() {
67
+ let tabs = this.getTabs();
68
+ let _this = this;
69
+ //显示当前正在选中的
70
+ tabs.forEach(function (tab) {
71
+ return (tab.show = tab.name === _this.currentValue);
72
+ });
73
+ },
74
+ handleChange: function (index) {
75
+ let nav = this.navList[index];
76
+ let name = nav.name;
77
+ this.currentValue = name;
78
+ this.$emit('input', name);
79
+ this.$emit('on-click', name);
80
+ let target = this.getTabs()[index].$el;
81
+ //滚动体是 .d-cont 还是它外面那层(.d-header + div{flex:1;overflow-y:auto})由布局决定,
82
+ //原来写死 .d-cont,在 .d-cont 没有确定高度(height:inherit 拿到 auto)的页面上
83
+ //scrollTop 赋值是空操作,点导航没反应——统一交给 scrollIntoScrollParent 找真正的滚动体。
84
+ scrollIntoScrollParent(target);
85
+ }
86
+ },
87
+ watch: {
88
+ value: function (val) {
89
+ this.currentValue = val;
90
+ },
91
+ currentValue: function () {
92
+ this.updateStatus();
93
+ }
94
+ }
95
+ };
96
+
97
+ baseTabPaneMixin = {
98
+ props: {
99
+ name: {
100
+ type: String
101
+ },
102
+ label: {
103
+ type: String,
104
+ default: ''
105
+ },
106
+ showFold: {
107
+ type: Boolean,
108
+ default: false
109
+ },
110
+ defaultShowContent: {
111
+ type: Boolean,
112
+ default: true
113
+ },
114
+ visible: {
115
+ type: Boolean,
116
+ default: undefined
117
+ }
118
+ },
119
+ computed: {
120
+ foldClass() {
121
+ return this.showContent ? 'el-icon-arrow-up' : 'el-icon-arrow-down';
122
+ }
123
+ },
124
+ beforeDestroy() {
125
+ //getParent() 只认 baseTabs 父级/祖父级,拿不到就是没被 baseTabs 包着(如设计期画布、
126
+ //或中间隔了 draggable),此时没有 navList 可维护,直接跳过——原来这里直接取 .navList 会崩。
127
+ let parentPanel = this.getParent();
128
+ if (!parentPanel) return;
129
+ let navList = parentPanel.navList;
130
+ if (navList.length <= 1) {
131
+ this.updateNav();
132
+ }
133
+ },
134
+ created() {
135
+ if (this.showFold) {
136
+ this.showContent = this.defaultShowContent;
137
+ }
138
+ },
139
+ data: function () {
140
+ return {
141
+ show: true,
142
+ showContent: true
143
+ };
144
+ },
145
+ methods: {
146
+ getParent() {
147
+ if (this.$parent.$options.name === 'baseTabs') {
148
+ return this.$parent;
149
+ } else if (this.$parent.$parent && this.$parent.$parent.$options.name === 'baseTabs') {
150
+ return this.$parent.$parent;
151
+ }
152
+ },
153
+ updateNav() {
154
+ let parentPanel = this.getParent();
155
+ parentPanel && parentPanel.updateNav();
156
+ },
157
+ handleFold(val) {
158
+ if (this.showFold) {
159
+ this.showContent = (val !== null && val !== undefined ? val : !this.showContent);
160
+ }
161
+ }
162
+ },
163
+ watch: {
164
+ label() {
165
+ this.updateNav();
166
+ }
167
+ },
168
+ mounted() {
169
+ this.updateNav();
170
+ if (this.visible !== undefined) {
171
+ this.$watch('visible', (val) => {
172
+ this.updateNav();
173
+ })
174
+ }
175
+ }
176
+ };
177
+
178
+ export {
179
+ baseTabsMixin,
180
+ baseTabPaneMixin,
181
+ }