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,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item label="onTabClick" label-width="150px">
|
|
3
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="editEventHandler('onTabClick', eventParams)">
|
|
4
|
+
<span>{{ optionModel.onTabClick }}</span>
|
|
5
|
+
<i class="el-icon-edit"></i>
|
|
6
|
+
</a>
|
|
7
|
+
</el-form-item>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
12
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
name: "onTabClick-editor",
|
|
16
|
+
mixins: [i18n, eventMixin],
|
|
17
|
+
props: {
|
|
18
|
+
designer: Object,
|
|
19
|
+
selectedWidget: Object,
|
|
20
|
+
optionModel: Object,
|
|
21
|
+
},
|
|
22
|
+
data() {
|
|
23
|
+
return { eventParams: ["name", "index", "label"] };
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<style scoped></style>
|
package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue
CHANGED
|
@@ -312,7 +312,7 @@ export default {
|
|
|
312
312
|
return this.selectedWidget.type !== "data-table";
|
|
313
313
|
},
|
|
314
314
|
openDialog() {
|
|
315
|
-
this.tableData = this.$baseLodash.cloneDeep(this.optionModel.tagFillConfig);
|
|
315
|
+
this.tableData = this.$baseLodash.cloneDeep(this.optionModel.tagFillConfig || []);
|
|
316
316
|
this.showDialog = true;
|
|
317
317
|
},
|
|
318
318
|
confirmDialog() {
|
|
@@ -320,9 +320,7 @@ export default {
|
|
|
320
320
|
this.showDialog = false;
|
|
321
321
|
},
|
|
322
322
|
|
|
323
|
-
|
|
324
|
-
let reportTemplate = this.getReportTemplate();
|
|
325
|
-
let objTypeCode = reportTemplate.objTypeCode;
|
|
323
|
+
openWorkflowDialog() {
|
|
326
324
|
let wfConfigData = this.optionModel.wfConfigData || [];
|
|
327
325
|
this.dialogVisible = true;
|
|
328
326
|
this.tableData = this.$baseLodash.cloneDeep(wfConfigData);
|
|
@@ -86,6 +86,7 @@ const COMMON_PROPERTIES = {
|
|
|
86
86
|
descriptionsItems: "descriptionsItems-editor",
|
|
87
87
|
isFullscreen: "isFullscreen-editor",
|
|
88
88
|
tabClass: "tabClass-editor",
|
|
89
|
+
lazyRender: "tab-lazyRender-editor",
|
|
89
90
|
censusClass: "censusClass-editor",
|
|
90
91
|
// 'scriptUuid': 'script-editor',
|
|
91
92
|
entityTableCode: "entityTableCode-editor",
|
|
@@ -288,6 +289,10 @@ const EVENT_PROPERTIES = {
|
|
|
288
289
|
onLoadNode: "onLoadNode-editor",
|
|
289
290
|
//tree-pane事件
|
|
290
291
|
onTreeLabelClick: "onTreeLabelClick-editor",
|
|
292
|
+
|
|
293
|
+
//tab事件
|
|
294
|
+
onTabClick: "onTabClick-editor",
|
|
295
|
+
onTabChange: "onTabChange-editor",
|
|
291
296
|
};
|
|
292
297
|
|
|
293
298
|
/**
|
|
@@ -326,9 +331,9 @@ export function registerEventProperty(uniquePropName, propEditorName) {
|
|
|
326
331
|
*/
|
|
327
332
|
export function propertyRegistered(uniquePropName) {
|
|
328
333
|
return (
|
|
329
|
-
!!COMMON_PROPERTIES[uniquePropName]
|
|
330
|
-
!!ADVANCED_PROPERTIES[uniquePropName]
|
|
331
|
-
!!EVENT_PROPERTIES[uniquePropName]
|
|
334
|
+
!!COMMON_PROPERTIES[uniquePropName]
|
|
335
|
+
|| !!ADVANCED_PROPERTIES[uniquePropName]
|
|
336
|
+
|| !!EVENT_PROPERTIES[uniquePropName]
|
|
332
337
|
);
|
|
333
338
|
}
|
|
334
339
|
|
|
@@ -97,6 +97,15 @@ export const containers = [
|
|
|
97
97
|
height: "",
|
|
98
98
|
// isFullscreen: false,
|
|
99
99
|
tabClass: "tab-boxCard tabCard-sty1",
|
|
100
|
+
// 懒渲染:页签内容首次激活才挂载(element lazy)。默认关闭——开启前需确认表单
|
|
101
|
+
// 无跨页签 getWidgetRef 脚本、未访问页签字段无需参与提交校验(详情类模板适用)。
|
|
102
|
+
lazyRender: !1,
|
|
103
|
+
// 页签事件脚本:点击/切换页签时的联动入口(懒渲染后"切到页签再刷新数据"的挂钩)
|
|
104
|
+
onTabClick: "",
|
|
105
|
+
onTabChange: "",
|
|
106
|
+
// 容器生命周期脚本(与 detail 等容器同口径,由 containerItemMixin 的 handleOnCreated/Mounted 执行)
|
|
107
|
+
onCreated: "",
|
|
108
|
+
onMounted: "",
|
|
100
109
|
customClass: "",
|
|
101
110
|
...defaultWfConfig,
|
|
102
111
|
},
|