super-page-designer 2.0.20 → 2.0.26
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/dist/es/assets/fonts/iconfont.css.js +1 -0
- package/dist/es/components/design/utils/assemblys-config.js +99 -91
- package/dist/es/components/design/utils/data-table-util.js +4 -4
- package/dist/es/components/design/utils/form-design-util.js +11 -0
- package/dist/es/components/design/utils/page-helper-util.d.ts +1 -0
- package/dist/es/components/design/utils/page-helper-util.js +8 -0
- package/dist/es/components/design/utils/page-permission-util.js +6 -0
- package/dist/es/components/design/utils/page-service-util.js +1 -1
- package/dist/es/components/design/utils/page-table-util.js +9 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +14 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +16 -8
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +16 -12
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +10 -7
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +31 -9
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +6 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +17 -7
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +17 -7
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +18 -8
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +14 -8
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +118 -23
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +22 -9
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +37 -34
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +112 -13
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +0 -5
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +18 -9
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +31 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +10 -9
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +13 -8
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +66 -77
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-event.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +45 -38
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +414 -150
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +4 -3
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue.js +1 -75
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue2.js +75 -1
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue3.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +3 -42
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +19 -13
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +5 -68
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +24 -14
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +21 -11
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +6 -4
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-event.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-style.vue.js +6 -0
- package/dist/es/components/design/views/assemblys/form/divider/divider-design.vue2.js +17 -16
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +24 -9
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +21 -12
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +21 -14
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +20 -10
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-style.vue.js +6 -0
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-design.vue2.js +8 -13
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +25 -15
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +10 -5
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/object-design.vue.js +12 -8
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +2 -2
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +28 -16
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue.js +21 -6
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +10 -8
- package/dist/es/components/design/views/design/page-design.vue.js +165 -138
- package/dist/es/components/design/views/design/page-event/config.vue.d.ts +12 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +3 -3
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -325
- package/dist/es/components/design/views/design/page-event/config.vue3.js +336 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.d.ts +1 -8
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +226 -569
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.d.ts +11 -5
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +510 -366
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +8 -0
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +48 -0
- package/dist/es/components/design/views/design/page-event/page-event-view.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/assemblys-container.vue.d.ts +0 -6
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +14 -58
- package/dist/es/components/design/views/design/view/attr-container.vue.js +1 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.d.ts +18 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +678 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.d.ts +16 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +602 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +3 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.d.ts +6 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +99 -63
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design.vue.d.ts +13 -1
- package/dist/es/components/design/views/design/view/view-design.vue.js +13 -3
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/stores/event-undo-redo-store.d.ts +22 -0
- package/dist/es/stores/event-undo-redo-store.js +56 -0
- package/dist/es/stores/page-store.js +1 -1
- package/dist/es/stores/undo-redo-store.d.ts +13 -0
- package/dist/es/stores/undo-redo-store.js +44 -0
- package/dist/es/style.css +409 -161
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +0 -539
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue2.js +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent } from "vue";
|
|
2
|
-
import { getUuidv4 } from "./common-util.js";
|
|
2
|
+
import { getUuidv4, deepCopy } from "./common-util.js";
|
|
3
3
|
import groupContainer from "../../../assets/images/group-container.png.js";
|
|
4
4
|
import containerForm from "../../../assets/images/container/container-form.png.js";
|
|
5
5
|
import containerFLex from "../../../assets/images/container/container-flex.png.js";
|
|
@@ -202,10 +202,13 @@ const assemblyGroups = [{
|
|
|
202
202
|
{ name: "click", label: "点击", tip: "点击" },
|
|
203
203
|
{ name: "input", label: "输入", tip: "输入" },
|
|
204
204
|
{ name: "change", label: "更改", tip: "更改" },
|
|
205
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "后缀图标弹框赋值回调" },
|
|
205
206
|
{ name: "blur", label: "失去焦点", tip: "失去焦点" },
|
|
206
207
|
{ name: "focus", label: "获取焦点", tip: "获取焦点" },
|
|
207
208
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
208
|
-
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
209
|
+
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" },
|
|
210
|
+
{ name: "prefixClick", label: "前缀点击", tip: "前缀图标点击执行" },
|
|
211
|
+
{ name: "suffixClick", label: "后缀点击", tip: "后缀图标点击执行" }
|
|
209
212
|
],
|
|
210
213
|
designComponent: defineAsyncComponent(() => {
|
|
211
214
|
return import("../views/assemblys/form/input-text/inputtext-design.vue.js");
|
|
@@ -232,7 +235,6 @@ const assemblyGroups = [{
|
|
|
232
235
|
},
|
|
233
236
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
234
237
|
events: [
|
|
235
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
236
238
|
{ name: "change", label: "更改", tip: "更改" },
|
|
237
239
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
238
240
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -261,7 +263,6 @@ const assemblyGroups = [{
|
|
|
261
263
|
},
|
|
262
264
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
263
265
|
events: [
|
|
264
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
265
266
|
{ name: "change", label: "更改", tip: "更改" },
|
|
266
267
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
267
268
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -290,7 +291,6 @@ const assemblyGroups = [{
|
|
|
290
291
|
},
|
|
291
292
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
292
293
|
events: [
|
|
293
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
294
294
|
{ name: "change", label: "更改", tip: "更改" },
|
|
295
295
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
296
296
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -317,7 +317,6 @@ const assemblyGroups = [{
|
|
|
317
317
|
},
|
|
318
318
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
319
319
|
events: [
|
|
320
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
321
320
|
{ name: "input", label: "输入", tip: "输入" },
|
|
322
321
|
{ name: "change", label: "更改", tip: "更改" },
|
|
323
322
|
{ name: "blur", label: "失去焦点", tip: "失去焦点" },
|
|
@@ -612,6 +611,11 @@ const assemblyGroups = [{
|
|
|
612
611
|
title: {}
|
|
613
612
|
},
|
|
614
613
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
614
|
+
events: [
|
|
615
|
+
{ name: "click", label: "点击", tip: "点击" },
|
|
616
|
+
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
617
|
+
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
618
|
+
],
|
|
615
619
|
designComponent: defineAsyncComponent(() => {
|
|
616
620
|
return import("../views/assemblys/form/divider/divider-design.vue.js");
|
|
617
621
|
}),
|
|
@@ -628,7 +632,7 @@ const assemblyGroups = [{
|
|
|
628
632
|
base: {
|
|
629
633
|
title: "标题"
|
|
630
634
|
},
|
|
631
|
-
size: {}
|
|
635
|
+
size: { widthType: "flex", flexSpan: 24 }
|
|
632
636
|
},
|
|
633
637
|
style: {},
|
|
634
638
|
designComponent: defineAsyncComponent(() => {
|
|
@@ -676,6 +680,7 @@ const assemblyGroups = [{
|
|
|
676
680
|
events: [
|
|
677
681
|
{ name: "beforeClick", label: "点击前", tip: "点击前" },
|
|
678
682
|
{ name: "click", label: "点击", tip: "点击" },
|
|
683
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "弹框赋值回调" },
|
|
679
684
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
680
685
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
681
686
|
],
|
|
@@ -706,7 +711,7 @@ const assemblyGroups = [{
|
|
|
706
711
|
dynamicDataSourceCode: ""
|
|
707
712
|
},
|
|
708
713
|
suffixModule: { action: "attonity", buttonDisplayConditionsList: [], jumpPageAdditional: [{ type: "", model: "" }] },
|
|
709
|
-
|
|
714
|
+
preSuffix: {},
|
|
710
715
|
singleWidth: {},
|
|
711
716
|
overallWidth: {},
|
|
712
717
|
overallHeight: {},
|
|
@@ -807,6 +812,7 @@ const assemblyGroups = [{
|
|
|
807
812
|
events: [
|
|
808
813
|
{ name: "beforeValidateForm", label: "验证数据前", tip: "行编辑保存时验证数据前,先于beforeClick事件" },
|
|
809
814
|
{ name: "beforeClick", label: "点击前事件", tip: "点击前事件" },
|
|
815
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "弹框赋值回调" },
|
|
810
816
|
{ name: "click", label: "点击事件", tip: "点击事件" },
|
|
811
817
|
{ name: "afterClick", label: "点击后事件", tip: "点击后事件" },
|
|
812
818
|
{ name: "show", label: "显示", tip: "显示" },
|
|
@@ -819,7 +825,7 @@ const assemblyGroups = [{
|
|
|
819
825
|
uuid: getUuidv4(),
|
|
820
826
|
name: "",
|
|
821
827
|
props: {
|
|
822
|
-
base: { name: "复选框", prop: "$selection", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder:
|
|
828
|
+
base: { name: "复选框", prop: "$selection", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder: 0 },
|
|
823
829
|
size: {},
|
|
824
830
|
editLine: {},
|
|
825
831
|
scan: {},
|
|
@@ -866,7 +872,7 @@ const assemblyGroups = [{
|
|
|
866
872
|
uuid: getUuidv4(),
|
|
867
873
|
name: "",
|
|
868
874
|
props: {
|
|
869
|
-
base: { name: "序号", prop: "$index", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder:
|
|
875
|
+
base: { name: "序号", prop: "$index", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder: 1 },
|
|
870
876
|
size: {},
|
|
871
877
|
editLine: {},
|
|
872
878
|
scan: {},
|
|
@@ -910,51 +916,6 @@ const assemblyGroups = [{
|
|
|
910
916
|
tittleClass: ""
|
|
911
917
|
}
|
|
912
918
|
},
|
|
913
|
-
{
|
|
914
|
-
uuid: getUuidv4(),
|
|
915
|
-
name: "input-text",
|
|
916
|
-
props: {
|
|
917
|
-
base: { name: "字段1", visible: true, tittleShow: false, displayOrder: 3, sortable: true },
|
|
918
|
-
size: {},
|
|
919
|
-
editLine: {
|
|
920
|
-
plugType: "input-text"
|
|
921
|
-
},
|
|
922
|
-
scan: {},
|
|
923
|
-
preSuffix: {},
|
|
924
|
-
verification: {},
|
|
925
|
-
dataOrigin: {
|
|
926
|
-
sortField: [{ name: "", type: "" }],
|
|
927
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
928
|
-
displayQuantity: 20
|
|
929
|
-
},
|
|
930
|
-
defaultValue: {},
|
|
931
|
-
inParameter: {},
|
|
932
|
-
title: {},
|
|
933
|
-
definition: {},
|
|
934
|
-
uploadConfig: {},
|
|
935
|
-
singleWidth: {},
|
|
936
|
-
suffixModule: {},
|
|
937
|
-
querySetting: {},
|
|
938
|
-
orgFields: [{ type: "", model: "" }],
|
|
939
|
-
format: `{"type":"","icon":"111","suffixModule":{"staticStates":[]},"jumpPageAdditional":{"staticStates":[]}}`
|
|
940
|
-
},
|
|
941
|
-
events: [
|
|
942
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
943
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
944
|
-
],
|
|
945
|
-
style: {
|
|
946
|
-
titleFont: {},
|
|
947
|
-
contentFont: {},
|
|
948
|
-
width: {},
|
|
949
|
-
background: {},
|
|
950
|
-
tableCell: [{ value: "", label: "" }],
|
|
951
|
-
conentPadding: {},
|
|
952
|
-
tittlePadding: {},
|
|
953
|
-
border: {},
|
|
954
|
-
shadow: {},
|
|
955
|
-
tittleClass: ""
|
|
956
|
-
}
|
|
957
|
-
},
|
|
958
919
|
{
|
|
959
920
|
uuid: getUuidv4(),
|
|
960
921
|
name: "",
|
|
@@ -1208,6 +1169,7 @@ const assemblyGroups = [{
|
|
|
1208
1169
|
{ name: "beforeValidateForm", label: "验证表单前", tip: "验证表单前,先于beforeClick事件" },
|
|
1209
1170
|
{ name: "beforeClick", label: "点击前事件", tip: "点击前事件" },
|
|
1210
1171
|
{ name: "click", label: "点击事件", tip: "点击事件" },
|
|
1172
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "弹框赋值回调" },
|
|
1211
1173
|
{ name: "afterClick", label: "点击后事件", tip: "点击后事件" },
|
|
1212
1174
|
{ name: "show", label: "显示", tip: "显示" },
|
|
1213
1175
|
{ name: "hidden", label: "隐藏", tip: "隐藏" }
|
|
@@ -1989,18 +1951,62 @@ const assemblyGroups = [{
|
|
|
1989
1951
|
})
|
|
1990
1952
|
}]
|
|
1991
1953
|
}];
|
|
1954
|
+
const pageConf = {
|
|
1955
|
+
id: -1,
|
|
1956
|
+
code: "",
|
|
1957
|
+
name: "page",
|
|
1958
|
+
label: "",
|
|
1959
|
+
version: 1,
|
|
1960
|
+
systemCode: "",
|
|
1961
|
+
systemVersion: 1,
|
|
1962
|
+
dbName: "",
|
|
1963
|
+
tableName: "",
|
|
1964
|
+
tableAlias: "",
|
|
1965
|
+
workflowCode: "",
|
|
1966
|
+
workflowVersion: 0,
|
|
1967
|
+
//模型的字段
|
|
1968
|
+
modelFields: [],
|
|
1969
|
+
logicDesigns: [],
|
|
1970
|
+
//子集对象
|
|
1971
|
+
items: [],
|
|
1972
|
+
props: {
|
|
1973
|
+
// 无ID初始化条件
|
|
1974
|
+
notIdInitializationList: "[]",
|
|
1975
|
+
// 判重组合字段
|
|
1976
|
+
judgeHeavyList: []
|
|
1977
|
+
},
|
|
1978
|
+
style: {},
|
|
1979
|
+
events: [
|
|
1980
|
+
{
|
|
1981
|
+
// 页面布局等加载后,但数据加载前时
|
|
1982
|
+
name: "beforeload",
|
|
1983
|
+
label: "加载前"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
// 数据加载后
|
|
1987
|
+
name: "load",
|
|
1988
|
+
label: "加载后"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: "onUnmounted",
|
|
1992
|
+
label: ""
|
|
1993
|
+
}
|
|
1994
|
+
]
|
|
1995
|
+
};
|
|
1996
|
+
function getPageConf() {
|
|
1997
|
+
const tempConf = deepCopy(pageConf);
|
|
1998
|
+
tempConf.code = getUuidv4();
|
|
1999
|
+
tempConf.uuid = tempConf.code;
|
|
2000
|
+
tempConf.label = "页面";
|
|
2001
|
+
return tempConf;
|
|
2002
|
+
}
|
|
1992
2003
|
const standardButtonOperations = [
|
|
1993
2004
|
{
|
|
1994
2005
|
label: "表单标准功能",
|
|
2006
|
+
type: "form",
|
|
1995
2007
|
options: [{
|
|
1996
2008
|
label: "暂存",
|
|
1997
2009
|
value: "save"
|
|
1998
|
-
}, {
|
|
1999
|
-
label: "导出报告",
|
|
2000
|
-
value: "exportForm"
|
|
2001
|
-
}, {
|
|
2002
|
-
label: "导出PDF",
|
|
2003
|
-
value: "exportPDF"
|
|
2004
2010
|
}, {
|
|
2005
2011
|
label: "提交",
|
|
2006
2012
|
value: "submit"
|
|
@@ -2010,6 +2016,12 @@ const standardButtonOperations = [
|
|
|
2010
2016
|
}, {
|
|
2011
2017
|
label: "不同意",
|
|
2012
2018
|
value: "disagree"
|
|
2019
|
+
}, {
|
|
2020
|
+
label: "导出报告",
|
|
2021
|
+
value: "exportForm"
|
|
2022
|
+
}, {
|
|
2023
|
+
label: "导出PDF",
|
|
2024
|
+
value: "exportPDF"
|
|
2013
2025
|
}, {
|
|
2014
2026
|
label: "返回",
|
|
2015
2027
|
value: "back"
|
|
@@ -2017,6 +2029,7 @@ const standardButtonOperations = [
|
|
|
2017
2029
|
},
|
|
2018
2030
|
{
|
|
2019
2031
|
label: "流程表单功能",
|
|
2032
|
+
type: "workflow",
|
|
2020
2033
|
options: [{
|
|
2021
2034
|
label: "暂存",
|
|
2022
2035
|
value: "workflowSave"
|
|
@@ -2078,6 +2091,7 @@ const standardButtonOperations = [
|
|
|
2078
2091
|
},
|
|
2079
2092
|
{
|
|
2080
2093
|
label: "列表功能",
|
|
2094
|
+
type: "list",
|
|
2081
2095
|
options: [{
|
|
2082
2096
|
label: "暂存",
|
|
2083
2097
|
value: "saveList"
|
|
@@ -2093,6 +2107,9 @@ const standardButtonOperations = [
|
|
|
2093
2107
|
}, {
|
|
2094
2108
|
label: "不同意",
|
|
2095
2109
|
value: "disagreeList"
|
|
2110
|
+
}, {
|
|
2111
|
+
label: "下载导入模板",
|
|
2112
|
+
value: "downloadTemplate"
|
|
2096
2113
|
}, {
|
|
2097
2114
|
label: "导入",
|
|
2098
2115
|
value: "import"
|
|
@@ -2102,13 +2119,11 @@ const standardButtonOperations = [
|
|
|
2102
2119
|
}, {
|
|
2103
2120
|
label: "查询",
|
|
2104
2121
|
value: "search"
|
|
2105
|
-
}, {
|
|
2106
|
-
label: "下载导入模板",
|
|
2107
|
-
value: "downloadTemplate"
|
|
2108
2122
|
}]
|
|
2109
2123
|
},
|
|
2110
2124
|
{
|
|
2111
2125
|
label: "列表行编辑功能",
|
|
2126
|
+
type: "list-edit",
|
|
2112
2127
|
options: [{
|
|
2113
2128
|
label: "新建",
|
|
2114
2129
|
value: "lineEditCreate"
|
|
@@ -2142,6 +2157,24 @@ function getDesignComponentByName(name) {
|
|
|
2142
2157
|
}
|
|
2143
2158
|
return null;
|
|
2144
2159
|
}
|
|
2160
|
+
function getDesignConfByName(name) {
|
|
2161
|
+
if (!name) {
|
|
2162
|
+
return null;
|
|
2163
|
+
}
|
|
2164
|
+
if (name == "page") {
|
|
2165
|
+
return getPageConf();
|
|
2166
|
+
}
|
|
2167
|
+
for (let i = 0; i < assemblyGroups.length; i++) {
|
|
2168
|
+
let items = assemblyGroups[i].items;
|
|
2169
|
+
for (let j = 0; j < items.length; j++) {
|
|
2170
|
+
let item = items[j];
|
|
2171
|
+
if (item.name == name) {
|
|
2172
|
+
return item;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
return null;
|
|
2177
|
+
}
|
|
2145
2178
|
function getAttrComponentByName(name) {
|
|
2146
2179
|
if (!name) {
|
|
2147
2180
|
return null;
|
|
@@ -2167,37 +2200,12 @@ function getFormComponentOptions() {
|
|
|
2167
2200
|
}
|
|
2168
2201
|
}
|
|
2169
2202
|
}
|
|
2170
|
-
function getComponentEventOptions(componentName) {
|
|
2171
|
-
if (componentName && componentName === "page") {
|
|
2172
|
-
return;
|
|
2173
|
-
}
|
|
2174
|
-
for (let assemblyGroup of assemblyGroups) {
|
|
2175
|
-
if (assemblyGroup.name === componentName) {
|
|
2176
|
-
return assemblyGroup.events;
|
|
2177
|
-
} else {
|
|
2178
|
-
for (let item of assemblyGroup.items) {
|
|
2179
|
-
if (item.name === componentName) {
|
|
2180
|
-
return item.events;
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
function getStandardOperationLabel(eventName) {
|
|
2187
|
-
for (let i = 0; i < standardButtonOperations.length; i++) {
|
|
2188
|
-
const parent = standardButtonOperations[i];
|
|
2189
|
-
const result = parent.options.filter((item) => item.value === eventName);
|
|
2190
|
-
if (result && result.length > 0) {
|
|
2191
|
-
return result[0].label;
|
|
2192
|
-
}
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
2203
|
export {
|
|
2196
2204
|
assemblyGroups,
|
|
2197
2205
|
getAttrComponentByName,
|
|
2198
|
-
getComponentEventOptions,
|
|
2199
2206
|
getDesignComponentByName,
|
|
2207
|
+
getDesignConfByName,
|
|
2200
2208
|
getFormComponentOptions,
|
|
2201
|
-
|
|
2209
|
+
getPageConf,
|
|
2202
2210
|
standardButtonOperations
|
|
2203
2211
|
};
|
|
@@ -49,7 +49,7 @@ function formatConditionList(conditionList, attributeMap, fieldMap) {
|
|
|
49
49
|
}
|
|
50
50
|
function getOperators(item) {
|
|
51
51
|
if (item) {
|
|
52
|
-
if (item.
|
|
52
|
+
if (item.dataType === "integer" || item.dataType === "long" || item.dataType === "double" || item.dataType === "float") {
|
|
53
53
|
return [
|
|
54
54
|
{
|
|
55
55
|
name: "GT",
|
|
@@ -84,7 +84,7 @@ function getOperators(item) {
|
|
|
84
84
|
label: "不等于Null"
|
|
85
85
|
}
|
|
86
86
|
];
|
|
87
|
-
} else if (item.
|
|
87
|
+
} else if (item.dataType === "date" || item.dataType === "time") {
|
|
88
88
|
return [
|
|
89
89
|
{
|
|
90
90
|
name: "GT",
|
|
@@ -119,7 +119,7 @@ function getOperators(item) {
|
|
|
119
119
|
label: "时间范围"
|
|
120
120
|
}
|
|
121
121
|
];
|
|
122
|
-
} else if (item.
|
|
122
|
+
} else if (item.dataType === "text" || item.dataType === "string") {
|
|
123
123
|
return [
|
|
124
124
|
{
|
|
125
125
|
name: "EQ",
|
|
@@ -214,7 +214,7 @@ function setGroupHeaderDataDisplayOrder(parentUuid, draggingGroupData, groupHead
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
function deleteGroupHeaderByColumnUuid(groupHeaders, columnUuid) {
|
|
217
|
-
const index = groupHeaders.findIndex((item) => item.
|
|
217
|
+
const index = groupHeaders.findIndex((item) => item.uuid === columnUuid);
|
|
218
218
|
if (index !== void 0 && index !== null && index >= 0) {
|
|
219
219
|
groupHeaders.splice(index, 1);
|
|
220
220
|
}
|
|
@@ -28,6 +28,9 @@ function caculateDetailComponentStyle(configure, designStyle, designClass, desig
|
|
|
28
28
|
if (defineStyle.color) {
|
|
29
29
|
tempStyle["color"] = defineStyle.color;
|
|
30
30
|
}
|
|
31
|
+
if (defineStyle.backgroundColor) {
|
|
32
|
+
tempStyle["background-color"] = defineStyle.backgroundColor;
|
|
33
|
+
}
|
|
31
34
|
if (defineStyle.textAlign) {
|
|
32
35
|
tempStyle["text-align"] = defineStyle.textAlign;
|
|
33
36
|
}
|
|
@@ -73,6 +76,14 @@ function caculateDetailComponentStyle(configure, designStyle, designClass, desig
|
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
}
|
|
79
|
+
if (defineStyle.shadowColor) {
|
|
80
|
+
let shadow = (defineStyle.shadowTop ? defineStyle.shadowTop : "0") + "px ";
|
|
81
|
+
shadow += (defineStyle.shadowRight ? defineStyle.shadowRight : "0") + "px ";
|
|
82
|
+
shadow += (defineStyle.shadowBottom ? defineStyle.shadowBottom : "0") + "px ";
|
|
83
|
+
shadow += (defineStyle.shadowLeft ? defineStyle.shadowLeft : "0") + "px ";
|
|
84
|
+
shadow += defineStyle.shadowColor;
|
|
85
|
+
tempStyle["box-shadow"] = shadow;
|
|
86
|
+
}
|
|
76
87
|
if (defineStyle.headerFontWeight) {
|
|
77
88
|
tempHeaderStyle["font-weight"] = "bold";
|
|
78
89
|
}
|
|
@@ -34,3 +34,4 @@ export declare function initPageDesignState(pageDesign: PageDesign): RemovableRe
|
|
|
34
34
|
* @param pageVersion
|
|
35
35
|
*/
|
|
36
36
|
export declare function getPageDesign(pageCode: string, pageVersion: number): RemovableRef<PageDesign> | null;
|
|
37
|
+
export declare function getFormPropName(prop: any): any;
|
|
@@ -16,7 +16,15 @@ function addComponentRef(pageDesign, componentIndex, refObj) {
|
|
|
16
16
|
function getPageRefKey(pageCode, pageVersion) {
|
|
17
17
|
return "pageDesignRef-" + pageCode + "-" + (pageVersion ? pageVersion : 1);
|
|
18
18
|
}
|
|
19
|
+
function getFormPropName(prop) {
|
|
20
|
+
if (prop && prop.indexOf("${") >= 0) {
|
|
21
|
+
return prop.substring(prop.indexOf(".") + 1, prop.lastIndexOf("}"));
|
|
22
|
+
} else {
|
|
23
|
+
return prop;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
19
26
|
export {
|
|
20
27
|
addComponentRef,
|
|
28
|
+
getFormPropName,
|
|
21
29
|
initComponentRefState
|
|
22
30
|
};
|
|
@@ -20,6 +20,7 @@ function addPermission(pageDesign, eventName, name, uuid) {
|
|
|
20
20
|
if (!pageDesign.pagePermissions) {
|
|
21
21
|
pageDesign.pagePermissions = [];
|
|
22
22
|
}
|
|
23
|
+
const pageCode = pageDesign.code;
|
|
23
24
|
const standardPermissionMap = getStandPermissionInfo(eventName);
|
|
24
25
|
if (!standardPermissionMap || !standardPermissionMap.functions) {
|
|
25
26
|
return;
|
|
@@ -60,6 +61,8 @@ function addPermission(pageDesign, eventName, name, uuid) {
|
|
|
60
61
|
uuids: [uuid],
|
|
61
62
|
//组件的uuid
|
|
62
63
|
funcType: f.funcType ? f.funcType : FuncType.AUTHORIZED,
|
|
64
|
+
code: pageCode + "." + tempCode,
|
|
65
|
+
path: "/" + pageCode + f.path,
|
|
63
66
|
uuid: getUuidv4()
|
|
64
67
|
};
|
|
65
68
|
pagePermissions.push(item);
|
|
@@ -69,6 +72,7 @@ function addPermission(pageDesign, eventName, name, uuid) {
|
|
|
69
72
|
return allItems;
|
|
70
73
|
}
|
|
71
74
|
function batchUpdatePermissions(configure, pageDesign) {
|
|
75
|
+
const pageCode = pageDesign.code;
|
|
72
76
|
const events = configure.events ? configure.events : [];
|
|
73
77
|
const propsBase = configure.props && configure.props.base ? configure.props.base : {};
|
|
74
78
|
const autoPermissions = [];
|
|
@@ -89,6 +93,8 @@ function batchUpdatePermissions(configure, pageDesign) {
|
|
|
89
93
|
simpleCode: f.code ? f.code : evt.eventName,
|
|
90
94
|
funcType: f.funcType
|
|
91
95
|
};
|
|
96
|
+
tempP.code = pageCode + "." + tempP.simpleCode;
|
|
97
|
+
tempP.path = "/" + pageCode + f.path;
|
|
92
98
|
Object.assign(tempP, p);
|
|
93
99
|
autoPermissions.push(tempP);
|
|
94
100
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import http from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
function queryServiceInfo(serivceId) {
|
|
3
|
-
let url = "/component/super-page-design/service-flow/" + serivceId;
|
|
3
|
+
let url = window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/" + serivceId;
|
|
4
4
|
return http.get(url);
|
|
5
5
|
}
|
|
6
6
|
function queryServiceReturnFields(serivceId) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import { getFormPropName } from "./page-helper-util.js";
|
|
2
3
|
function queryTableFields(systemCode, systemVersion, tableName) {
|
|
3
|
-
let url = "/mms/data-tables/table-columns";
|
|
4
|
+
let url = window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
|
|
4
5
|
url += "?systemCode=" + (systemCode ? systemCode : "");
|
|
5
6
|
url += "&publishVersion=" + (systemVersion ? systemVersion : "");
|
|
6
7
|
url += "&tableName=" + (tableName ? tableName : "");
|
|
@@ -12,7 +13,7 @@ function queryTableFieldsOrMap(systemCode, systemVersion, tableName) {
|
|
|
12
13
|
publishVersion: systemVersion,
|
|
13
14
|
tableName
|
|
14
15
|
};
|
|
15
|
-
return http.get("/mms/data-tables/table-columns/findAttributeMap", param);
|
|
16
|
+
return http.get(window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/table-columns/findAttributeMap", param);
|
|
16
17
|
}
|
|
17
18
|
function querySublist(systemCode, systemVersion, publishVersion) {
|
|
18
19
|
const param = {
|
|
@@ -20,7 +21,7 @@ function querySublist(systemCode, systemVersion, publishVersion) {
|
|
|
20
21
|
formVersion: systemVersion,
|
|
21
22
|
publishVersion
|
|
22
23
|
};
|
|
23
|
-
return http.get("/mms/list-view-children/forms", param);
|
|
24
|
+
return http.get(window["$vueApp"].config.globalProperties.baseAPI + "/mms/list-view-children/forms", param);
|
|
24
25
|
}
|
|
25
26
|
function setTableRuntimesFromConfigure(tableConfigure, pageDesign) {
|
|
26
27
|
const tableConfigureStr = JSON.stringify(tableConfigure);
|
|
@@ -37,10 +38,11 @@ function setTableRuntimesFromConfigure(tableConfigure, pageDesign) {
|
|
|
37
38
|
delete tableConfigure.runtime;
|
|
38
39
|
}
|
|
39
40
|
function getListView(configureCopy, pageDesign, tableConfigureStr) {
|
|
41
|
+
const listCode = pageDesign.code + "__V" + pageDesign.pageVersion + "__" + configureCopy.uuid;
|
|
40
42
|
const listView = {
|
|
41
43
|
configure: tableConfigureStr,
|
|
42
44
|
// uuid
|
|
43
|
-
code:
|
|
45
|
+
code: listCode,
|
|
44
46
|
// 名称
|
|
45
47
|
name: configureCopy.label,
|
|
46
48
|
// 合计方式,不合计(no),当前页(current),所有页(all),使用radio选择
|
|
@@ -112,12 +114,12 @@ function getListColumns(configure, pageDesign) {
|
|
|
112
114
|
var _a;
|
|
113
115
|
const listColumns = [];
|
|
114
116
|
(_a = configure.items) == null ? void 0 : _a.forEach((item) => {
|
|
115
|
-
|
|
117
|
+
const listColumn = { controlName: getControlName(item.name) };
|
|
116
118
|
const temp = {
|
|
117
119
|
// 列头名
|
|
118
120
|
headerName: item.props.base.name,
|
|
119
121
|
//对应数据表字段名字。(listColumn的tableColumn)占位符列和$selection、$index两列时为固定值(listColumn的prop)
|
|
120
|
-
prop: item.props.base.prop,
|
|
122
|
+
prop: getFormPropName(item.props.base.prop),
|
|
121
123
|
//列宽
|
|
122
124
|
width: item.props.base.columnWidth,
|
|
123
125
|
//是否排序 true false custom
|
|
@@ -147,7 +149,7 @@ function getListColumns(configure, pageDesign) {
|
|
|
147
149
|
// 编辑时默认值设置
|
|
148
150
|
defaultValue: item.props.base.defaultValue,
|
|
149
151
|
// 编辑时控件类型
|
|
150
|
-
controlName:
|
|
152
|
+
controlName: listColumn.controlName,
|
|
151
153
|
// 控件属性配置
|
|
152
154
|
controlConfig: getControlConfig(item),
|
|
153
155
|
//事件类型,json格式,格式为:{input:funName1,blur:funName2,focus:funName3,...},funName1、funName2等方法名,通过列表的options.eventCallBack传入
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "../../../../../../stores/page-store.js";
|
|
4
|
-
import "../../form/common/dimension-input.
|
|
4
|
+
import "../../form/common/dimension-input.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../../common/common-icon-bind.vue.js";
|
|
6
6
|
import http from "agilebuilder-ui/src/utils/request";
|
|
7
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
code: "DC_TEMPLATE_MANAGEMENT"
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
http.post(`/dc/template-management/list/${props.pageDesign.systemCode}`, data).then((res) => {
|
|
43
|
+
http.post(window["$vueApp"].config.globalProperties.baseAPI + `/dc/template-management/list/${props.pageDesign.systemCode}`, data).then((res) => {
|
|
44
44
|
templateList.value = res.data;
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -138,7 +138,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
class: "amb-design-attr-item"
|
|
139
139
|
}, {
|
|
140
140
|
default: withCtx(() => [
|
|
141
|
-
|
|
141
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
142
|
+
key: __props.configure.uuid,
|
|
143
|
+
configure: __props.configure
|
|
144
|
+
}, null, 8, ["configure"]))
|
|
142
145
|
]),
|
|
143
146
|
_: 1
|
|
144
147
|
}),
|
|
@@ -238,7 +241,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
238
241
|
createVNode(_component_el_select, {
|
|
239
242
|
modelValue: __props.configure.props.base.type,
|
|
240
243
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.base.type = $event),
|
|
241
|
-
class: "ml-4"
|
|
244
|
+
class: "ml-4",
|
|
245
|
+
clearable: ""
|
|
242
246
|
}, {
|
|
243
247
|
default: withCtx(() => [
|
|
244
248
|
createVNode(_component_el_option, {
|
|
@@ -272,11 +276,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
272
276
|
class: "amb-design-attr-item"
|
|
273
277
|
}, {
|
|
274
278
|
default: withCtx(() => [
|
|
275
|
-
|
|
279
|
+
(openBlock(), createBlock(_sfc_main$2, {
|
|
280
|
+
key: __props.configure.uuid,
|
|
276
281
|
iconType: __props.configure.props.base.iconType,
|
|
277
282
|
iconValue: __props.configure.props.base.iconValue,
|
|
278
283
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = (iconType, iconValue) => afterBindIcon(iconType, iconValue))
|
|
279
|
-
}, null, 8, ["iconType", "iconValue"])
|
|
284
|
+
}, null, 8, ["iconType", "iconValue"]))
|
|
280
285
|
]),
|
|
281
286
|
_: 1
|
|
282
287
|
}),
|
|
@@ -502,10 +507,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
502
507
|
}, {
|
|
503
508
|
default: withCtx(() => [
|
|
504
509
|
createElementVNode("div", _hoisted_3, [
|
|
505
|
-
|
|
510
|
+
(openBlock(), createBlock(_sfc_main$3, {
|
|
511
|
+
key: __props.configure.uuid,
|
|
506
512
|
configure: __props.configure,
|
|
507
513
|
pageDesign: __props.pageDesign
|
|
508
|
-
}, null, 8, ["configure", "pageDesign"])
|
|
514
|
+
}, null, 8, ["configure", "pageDesign"]))
|
|
509
515
|
])
|
|
510
516
|
]),
|
|
511
517
|
_: 1
|
package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js
CHANGED
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock,
|
|
|
2
2
|
import _sfc_main$1 from "../../object-design.vue.js";
|
|
3
3
|
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import { useDraggable } from "vue-draggable-plus";
|
|
5
|
+
import { ElMessageBox } from "element-plus";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "buttongroup-design",
|
|
7
8
|
props: {
|
|
@@ -68,15 +69,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
69
|
}
|
|
69
70
|
function deleteItem(sourceItem) {
|
|
70
71
|
let items = btnItems;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
ElMessageBox.confirm(
|
|
73
|
+
"还有子元素,确定要删除吗?",
|
|
74
|
+
"删除",
|
|
75
|
+
{
|
|
76
|
+
confirmButtonText: "确认",
|
|
77
|
+
cancelButtonText: "取消",
|
|
78
|
+
type: "warning"
|
|
74
79
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
).then(() => {
|
|
81
|
+
const index = items.indexOf(sourceItem);
|
|
82
|
+
if (index > -1) {
|
|
83
|
+
items.splice(index, 1);
|
|
84
|
+
}
|
|
85
|
+
}).catch((err) => {
|
|
86
|
+
console.log(err);
|
|
87
|
+
});
|
|
80
88
|
}
|
|
81
89
|
return (_ctx, _cache) => {
|
|
82
90
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
@@ -84,7 +84,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
class: "amb-design-attr-item"
|
|
85
85
|
}, {
|
|
86
86
|
default: withCtx(() => [
|
|
87
|
-
|
|
87
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
88
|
+
key: __props.configure.uuid,
|
|
89
|
+
configure: __props.configure
|
|
90
|
+
}, null, 8, ["configure"]))
|
|
88
91
|
]),
|
|
89
92
|
_: 1
|
|
90
93
|
}),
|