cloud-web-corejs 1.0.283 → 1.0.285
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/components/VabUpload/mixins.js +126 -19
- package/src/components/VabUpload/view.vue +248 -209
- package/src/components/excelExport/conditionExportConfig.js +112 -0
- package/src/components/excelExport/exportType.js +8 -0
- package/src/components/excelExport/index.vue +7 -1
- package/src/components/excelExport/mixins.js +410 -259
- package/src/components/mobile/wf/addTaskUserdialog.vue +100 -80
- package/src/components/mobile/wf/content.vue +1705 -1556
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +73 -54
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
- package/src/components/mobile/wf/selectUserDialog.vue +118 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +69 -48
- package/src/components/mobile/wf/urgingDialog.vue +75 -52
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- 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
- 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
- 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
- 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
- package/src/components/xform/form-designer/designer.js +5 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +243 -227
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +228 -207
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +165 -136
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +2 -3
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +190 -185
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2641 -1833
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +2 -3
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +39 -1
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +18 -5
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +3 -2
- package/src/components/xform/form-designer/indexMixin.js +35 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +19 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +62 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +236 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/empty-number-input.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +27 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +33 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +10 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +6 -1
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +13 -0
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +22 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +88 -3
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3 -1
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +204 -34
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1917 -1700
- package/src/components/xform/form-render/index.vue +7 -1
- package/src/components/xform/form-render/indexMixin.js +42 -4
- package/src/components/xform/lang/en-US.js +10 -0
- package/src/components/xform/lang/zh-CN.js +10 -0
- package/src/components/xform/styles/h5.scss +2305 -0
- package/src/directive/append-to-body/index.js +48 -0
- package/src/index.js +4 -0
- package/src/views/bd/setting/form_template/edit.vue +25 -3
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +1 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +64 -0
- package/src/views/bd/setting/form_template/mixins/list.js +27 -0
- package/src/views/user/form/vform/designer.vue +3 -1
- package/src/components/xform/docs/2026-09 /346/235/241/344/273/266/345/257/274/345/207/272/345/244/247/346/225/260/346/215/256/351/207/217/345/264/251/346/272/203/346/216/222/346/237/245.md" +0 -389
- package/src/components/xform/docs/2026-09 /347/274/226/350/276/221/350/241/250/350/241/214/345/206/205/344/277/235/345/255/230/346/240/241/351/252/214/350/214/203/345/233/264/344/270/216/345/210/227/345/277/205/345/241/253/350/247/243/346/236/220/344/277/256/345/244/215.md" +0 -233
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
|
@@ -1,140 +1,160 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
//
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<!-- customClass 必须绑上:设计器侧 h5-card-pane-widget 是绑了的,
|
|
3
|
+
这里漏绑会导致设计器里配的 class 到运行期丢失 -->
|
|
4
|
+
<div class="h5-item" :class="[customClass]">
|
|
5
|
+
<!-- 标题栏整条可点来折叠,与流程信息卡片(mobile/h5Card/h5CardPane.vue)同交互。
|
|
6
|
+
标题里的按钮区要 @click.stop,否则点按钮会连带把卡片折起来。 -->
|
|
7
|
+
<div class="h5-title" @click="toggleFold">
|
|
8
|
+
<b>{{ widget.options.label }}</b>
|
|
9
|
+
<i class="arrow" :class="foldClass"></i>
|
|
10
|
+
<div class="btns" @click.stop>
|
|
11
|
+
<template v-for="(subWidget, swIdx) in widget.buttonWidgetList">
|
|
12
|
+
<template v-if="'container' === subWidget.category">
|
|
13
|
+
<component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx"
|
|
14
|
+
:parent-list="widget.buttonWidgetList"
|
|
15
|
+
:index-of-parent-list="swIdx" :parent-widget="widget">
|
|
16
|
+
<!-- 递归传递插槽!!! -->
|
|
17
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
18
|
+
<slot :name="slot" v-bind="scope"/>
|
|
19
|
+
</template>
|
|
20
|
+
</component>
|
|
21
|
+
</template>
|
|
22
|
+
<template v-else>
|
|
23
|
+
<component :is="subWidget.type + '-widget'" :field="subWidget" :designer="null" :key="swIdx"
|
|
24
|
+
:parent-list="widget.buttonWidgetList"
|
|
25
|
+
:index-of-parent-list="swIdx" :parent-widget="widget">
|
|
26
|
+
<!-- 递归传递插槽!!! -->
|
|
27
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
28
|
+
<slot :name="slot" v-bind="scope"/>
|
|
29
|
+
</template>
|
|
30
|
+
</component>
|
|
31
|
+
</template>
|
|
32
|
+
</template>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- 折叠必须用 v-show 而不是 v-if:里面的字段组件挂着 el-form-item 的
|
|
36
|
+
prop/rules,v-if 销毁重建会打断校验链、丢掉组件内部状态 -->
|
|
37
|
+
<div class="h5-form-box" v-show="showContent">
|
|
38
|
+
<transition-group name="fade" tag="div" class="form-widget-list">
|
|
39
|
+
<template v-if="!!widget.widgetList && (widget.widgetList.length > 0)">
|
|
40
|
+
<template v-for="(subWidget, swIdx) in widget.widgetList">
|
|
41
|
+
<template v-if="'container' === subWidget.category">
|
|
42
|
+
<component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx"
|
|
43
|
+
:parent-list="widget.widgetList"
|
|
44
|
+
:index-of-parent-list="swIdx" :parent-widget="widget">
|
|
45
|
+
<!-- 递归传递插槽!!! -->
|
|
46
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
47
|
+
<slot :name="slot" v-bind="scope"/>
|
|
48
|
+
</template>
|
|
49
|
+
</component>
|
|
50
|
+
</template>
|
|
51
|
+
<template v-else>
|
|
52
|
+
<component :is="subWidget.type + '-widget'" :field="subWidget" :designer="null" :key="swIdx"
|
|
53
|
+
:parent-list="widget.widgetList"
|
|
54
|
+
:index-of-parent-list="swIdx" :parent-widget="widget">
|
|
55
|
+
<!-- 递归传递插槽!!! -->
|
|
56
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
57
|
+
<slot :name="slot" v-bind="scope"/>
|
|
58
|
+
</template>
|
|
59
|
+
</component>
|
|
60
|
+
</template>
|
|
61
|
+
</template>
|
|
62
|
+
</template>
|
|
63
|
+
</transition-group>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script>
|
|
69
|
+
import emitter from '../../../../components/xform/utils/emitter'
|
|
70
|
+
import i18n from "../../../../components/xform/utils/i18n"
|
|
71
|
+
import refMixin from "../../../../components/xform/form-render/refMixin"
|
|
72
|
+
import containerItemMixin from "./containerItemMixin"
|
|
73
|
+
import FieldComponents from '../../../../components/xform/form-designer/form-widget/field-widget/index'
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
name: "h5-card-pane-item",
|
|
77
|
+
componentName: 'ContainerItem',
|
|
78
|
+
mixins: [emitter, i18n, refMixin, containerItemMixin],
|
|
79
|
+
components: {
|
|
80
|
+
...FieldComponents,
|
|
81
|
+
},
|
|
82
|
+
props: {
|
|
83
|
+
widget: Object,
|
|
84
|
+
parentWidget: Object,
|
|
85
|
+
parentList: Array,
|
|
86
|
+
indexOfParentList: Number,
|
|
87
|
+
},
|
|
88
|
+
inject: ['refList', 'globalModel', 'previewState'],
|
|
89
|
+
data() {
|
|
90
|
+
return {
|
|
91
|
+
// 展开/收起,默认展开
|
|
92
|
+
showContent: true,
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
computed: {
|
|
96
|
+
customClass() {
|
|
97
|
+
return this.widget.options.customClass || ''
|
|
98
|
+
},
|
|
99
|
+
foldClass() {
|
|
100
|
+
return this.showContent ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
watch: {
|
|
104
|
+
//
|
|
105
|
+
},
|
|
106
|
+
created() {
|
|
107
|
+
this.initRefList()
|
|
108
|
+
this.handleOnCreated();
|
|
109
|
+
},
|
|
110
|
+
mounted() {
|
|
111
|
+
this.handleOnMounted();
|
|
112
|
+
},
|
|
113
|
+
methods: {
|
|
114
|
+
toggleFold() {
|
|
115
|
+
this.showContent = !this.showContent;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<style lang="scss" scoped>
|
|
122
|
+
.grid-container {
|
|
123
|
+
min-height: 50px;
|
|
124
|
+
//line-height: 48px;
|
|
125
|
+
//padding: 6px;
|
|
126
|
+
outline: 1px dashed #336699;
|
|
127
|
+
|
|
128
|
+
> div {
|
|
129
|
+
height: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.form-widget-list {
|
|
133
|
+
// min-height: 28px;
|
|
134
|
+
height: 100%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.grid-container.selected, .grid-cell.selected {
|
|
140
|
+
outline: 2px solid $--color-primary !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.grid-cell {
|
|
144
|
+
min-height: 80px;
|
|
145
|
+
//margin: 6px 0; /* 设置了margin,栅格列的offset、push、pull会失效!! */
|
|
146
|
+
padding: 3px;
|
|
147
|
+
outline: 1px dashed #336699;
|
|
148
|
+
position: relative;
|
|
149
|
+
|
|
150
|
+
> div {
|
|
151
|
+
height: 100%;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.form-widget-list {
|
|
155
|
+
min-height: 28px;
|
|
156
|
+
height: 100%
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
</style>
|