super-page-designer 2.0.51 → 2.0.55
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/components/design/utils/assemblys-config.js +68 -3
- package/dist/es/components/design/utils/chart-design-util.js +1 -2
- package/dist/es/components/design/utils/data-table-util.js +3 -3
- package/dist/es/components/design/utils/form-design-util.d.ts +7 -0
- package/dist/es/components/design/utils/form-design-util.js +10 -2
- package/dist/es/components/design/utils/page-design-util.js +1 -4
- package/dist/es/components/design/utils/page-table-util.d.ts +7 -0
- package/dist/es/components/design/utils/page-table-util.js +50 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +242 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +571 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue.js +33 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue.js +50 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue2.js +80 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +91 -0
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +2 -4
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-axislabel.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +698 -1
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +5 -9
- package/dist/es/components/design/views/assemblys/common/state-button.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +23 -4
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +23 -16
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +22 -16
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +188 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +21 -59
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +16 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +70 -97
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +2 -5
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +12 -5
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue2.js +11 -1
- 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-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +92 -63
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +20 -30
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue3.js +217 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +102 -8
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +176 -0
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/verification.vue.js +17 -28
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +6 -1
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +26 -11
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +17 -3
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue2.js +3 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +29 -14
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +41 -3
- package/dist/es/components/design/views/assemblys/form/link/link-attr.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +20 -14
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +26 -29
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue2.js +12 -1
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +28 -2
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +27 -29
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/object-design.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +57 -18
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +49 -24
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +20 -7
- package/dist/es/components/design/views/assemblys/page/page-attr.vue.js +5 -4
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +38 -6
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr.vue.js +1 -1
- package/dist/es/components/design/views/design/page-design.vue.js +6 -7
- package/dist/es/components/design/views/design/page-event/config.vue.js +2 -2
- package/dist/es/components/design/views/design/page-event/config.vue2.js +335 -1
- package/dist/es/components/design/views/design/view/attr-container.vue.js +4 -2
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -26
- package/dist/es/index.js +2 -2
- package/dist/es/stores/page-store.js +1 -2
- package/dist/es/stores/table-store.d.ts +10 -0
- package/dist/es/stores/table-store.js +20 -0
- package/dist/es/style.css +759 -140
- package/package.json +4 -4
- package/dist/es/assets/design-attr.css.js +0 -1
- package/dist/es/assets/fonts/iconfont.css.js +0 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +0 -692
- package/dist/es/components/design/views/assemblys/common/state-button.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue4.js +0 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-header.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +0 -217
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr.vue3.js +0 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr.vue3.js +0 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +0 -336
- package/dist/es/components/design/views/design/view/page-switch.vue3.js +0 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, createTextVNode, renderList, toDisplayString, unref } from "vue";
|
|
2
|
+
import { Search } from "@element-plus/icons-vue";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "verification-custom",
|
|
5
|
+
props: {
|
|
6
|
+
pageDesign: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true,
|
|
9
|
+
default: () => {
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
verification: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const customEvents = ref([]);
|
|
21
|
+
const popoverRef = ref();
|
|
22
|
+
const enabledCustom = ref(false);
|
|
23
|
+
if (props.verification.custom) {
|
|
24
|
+
enabledCustom.value = props.verification.custom.enabled;
|
|
25
|
+
}
|
|
26
|
+
const enabledCustomChange = (value) => {
|
|
27
|
+
enableCustom(value);
|
|
28
|
+
};
|
|
29
|
+
const showEvents = () => {
|
|
30
|
+
if (props.pageDesign) {
|
|
31
|
+
customEvents.value = props.pageDesign.customEvents.filter((item) => {
|
|
32
|
+
return item.name === "customFunc";
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
customEvents.value = [];
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const removeEvent = ($event, removeEvent2) => {
|
|
39
|
+
const index = props.verification.custom.eventNames.indexOf(removeEvent2);
|
|
40
|
+
if (index !== -1) {
|
|
41
|
+
props.verification.custom.eventNames.splice(index, 1);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const select = (index, row) => {
|
|
45
|
+
enableCustom(true);
|
|
46
|
+
const existIndex = props.verification.custom.eventNames.indexOf(row.eventName);
|
|
47
|
+
if (existIndex === -1) {
|
|
48
|
+
props.verification.custom.eventNames.push(row.eventName);
|
|
49
|
+
}
|
|
50
|
+
popoverRef.value.hide();
|
|
51
|
+
};
|
|
52
|
+
const enableCustom = (state) => {
|
|
53
|
+
if (state) {
|
|
54
|
+
if (!props.verification.custom) {
|
|
55
|
+
props.verification.custom = {
|
|
56
|
+
enabled: true,
|
|
57
|
+
eventNames: []
|
|
58
|
+
};
|
|
59
|
+
} else {
|
|
60
|
+
props.verification.custom.enabled = true;
|
|
61
|
+
}
|
|
62
|
+
enabledCustom.value = true;
|
|
63
|
+
} else {
|
|
64
|
+
props.verification.custom.enabled = false;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
69
|
+
const _component_el_col = resolveComponent("el-col");
|
|
70
|
+
const _component_el_button = resolveComponent("el-button");
|
|
71
|
+
const _component_el_tag = resolveComponent("el-tag");
|
|
72
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
73
|
+
const _component_el_table = resolveComponent("el-table");
|
|
74
|
+
const _component_el_popover = resolveComponent("el-popover");
|
|
75
|
+
const _component_el_space = resolveComponent("el-space");
|
|
76
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
77
|
+
createVNode(_component_el_col, { span: 8 }, {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createVNode(_component_el_checkbox, {
|
|
80
|
+
modelValue: enabledCustom.value,
|
|
81
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => enabledCustom.value = $event),
|
|
82
|
+
onChange: enabledCustomChange,
|
|
83
|
+
label: "自定义",
|
|
84
|
+
value: "custom"
|
|
85
|
+
}, null, 8, ["modelValue"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
createVNode(_component_el_col, { span: 14 }, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
createVNode(_component_el_space, null, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
!props.verification.custom || props.verification.custom.enabled === false || props.verification.custom.eventNames.length === 0 ? (openBlock(), createBlock(_component_el_button, { key: 0 }, {
|
|
94
|
+
default: withCtx(() => [
|
|
95
|
+
createTextVNode("自定义逻辑")
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
})) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(props.verification.custom.eventNames, (item) => {
|
|
99
|
+
return openBlock(), createBlock(_component_el_tag, {
|
|
100
|
+
closable: "",
|
|
101
|
+
onClose: ($event) => removeEvent($event, item),
|
|
102
|
+
key: item,
|
|
103
|
+
type: item,
|
|
104
|
+
effect: "dark"
|
|
105
|
+
}, {
|
|
106
|
+
default: withCtx(() => [
|
|
107
|
+
createTextVNode(toDisplayString(item), 1)
|
|
108
|
+
]),
|
|
109
|
+
_: 2
|
|
110
|
+
}, 1032, ["onClose", "type"]);
|
|
111
|
+
}), 128)),
|
|
112
|
+
createVNode(_component_el_popover, {
|
|
113
|
+
placement: "right",
|
|
114
|
+
ref_key: "popoverRef",
|
|
115
|
+
ref: popoverRef,
|
|
116
|
+
width: 400,
|
|
117
|
+
trigger: "click"
|
|
118
|
+
}, {
|
|
119
|
+
reference: withCtx(() => [
|
|
120
|
+
createVNode(_component_el_button, {
|
|
121
|
+
icon: unref(Search),
|
|
122
|
+
circle: "",
|
|
123
|
+
onClick: showEvents
|
|
124
|
+
}, null, 8, ["icon"])
|
|
125
|
+
]),
|
|
126
|
+
default: withCtx(() => [
|
|
127
|
+
createVNode(_component_el_table, { data: customEvents.value }, {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
createVNode(_component_el_table_column, {
|
|
130
|
+
align: "center",
|
|
131
|
+
width: "150",
|
|
132
|
+
property: "eventName",
|
|
133
|
+
label: "方法名"
|
|
134
|
+
}),
|
|
135
|
+
createVNode(_component_el_table_column, {
|
|
136
|
+
align: "center",
|
|
137
|
+
property: "remark",
|
|
138
|
+
label: "描述"
|
|
139
|
+
}),
|
|
140
|
+
createVNode(_component_el_table_column, {
|
|
141
|
+
align: "center",
|
|
142
|
+
label: ""
|
|
143
|
+
}, {
|
|
144
|
+
default: withCtx((scope) => [
|
|
145
|
+
createVNode(_component_el_button, {
|
|
146
|
+
size: "small",
|
|
147
|
+
type: "primary",
|
|
148
|
+
onClick: ($event) => select(scope.$index, scope.row)
|
|
149
|
+
}, {
|
|
150
|
+
default: withCtx(() => [
|
|
151
|
+
createTextVNode(" 选择 ")
|
|
152
|
+
]),
|
|
153
|
+
_: 2
|
|
154
|
+
}, 1032, ["onClick"])
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
})
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["data"])
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 512)
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
})
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
})
|
|
170
|
+
], 64);
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
export {
|
|
175
|
+
_sfc_main as default
|
|
176
|
+
};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, withDirectives, vShow
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, withDirectives, vShow } from "vue";
|
|
2
|
+
import "@element-plus/icons-vue";
|
|
3
|
+
import _sfc_main$1 from "./verification-custom.vue.js";
|
|
3
4
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "verification",
|
|
6
7
|
props: {
|
|
7
|
-
|
|
8
|
+
pageDesign: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => {
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
verification: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
8
18
|
},
|
|
9
19
|
setup(__props) {
|
|
10
20
|
return (_ctx, _cache) => {
|
|
@@ -14,7 +24,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
24
|
const _component_el_col = resolveComponent("el-col");
|
|
15
25
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
16
26
|
const _component_el_input = resolveComponent("el-input");
|
|
17
|
-
const _component_el_button = resolveComponent("el-button");
|
|
18
27
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
19
28
|
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
20
29
|
title: "校验",
|
|
@@ -189,30 +198,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
198
|
"label-width": "0"
|
|
190
199
|
}, {
|
|
191
200
|
default: withCtx(() => [
|
|
192
|
-
createVNode(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
value: "custom"
|
|
197
|
-
})
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
}),
|
|
201
|
-
createVNode(_component_el_col, { span: 14 }, {
|
|
202
|
-
default: withCtx(() => [
|
|
203
|
-
createVNode(_component_el_button, null, {
|
|
204
|
-
default: withCtx(() => [
|
|
205
|
-
createTextVNode("自定义逻辑")
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
}),
|
|
209
|
-
createVNode(_component_el_button, {
|
|
210
|
-
icon: unref(Search),
|
|
211
|
-
circle: ""
|
|
212
|
-
}, null, 8, ["icon"])
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
})
|
|
201
|
+
createVNode(_sfc_main$1, {
|
|
202
|
+
pageDesign: __props.pageDesign,
|
|
203
|
+
verification: __props.verification
|
|
204
|
+
}, null, 8, ["pageDesign", "verification"])
|
|
216
205
|
]),
|
|
217
206
|
_: 1
|
|
218
207
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
4
|
-
|
|
4
|
+
/* empty css */
|
|
5
5
|
import "@element-plus/icons-vue";
|
|
6
6
|
import "uuid";
|
|
7
7
|
import _sfc_main$1 from "../common/parameter-table.vue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./custom-design.vue2.js";
|
|
2
|
-
|
|
2
|
+
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const customDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d87986ba"]]);
|
|
5
5
|
export {
|
package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, withDirectives, vShow, createTextVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
3
4
|
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
4
5
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
5
6
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
7
8
|
import _sfc_main$2 from "../common/title-suffix.vue.js";
|
|
9
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
8
10
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
11
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -16,8 +18,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
18
|
},
|
|
17
19
|
default: () => ({ props: {} })
|
|
18
20
|
},
|
|
19
|
-
|
|
21
|
+
emits: ["changeAssembly"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
20
23
|
const props = __props;
|
|
24
|
+
const emit = __emit;
|
|
21
25
|
const openCollapseItems = ref(["base"]);
|
|
22
26
|
const isTable = ref(false);
|
|
23
27
|
if (props.configure.isTable) {
|
|
@@ -34,6 +38,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
38
|
}
|
|
35
39
|
return isScope ? "默认值1" : "默认值";
|
|
36
40
|
});
|
|
41
|
+
function nameChange(val) {
|
|
42
|
+
if (props.configure.isTable) {
|
|
43
|
+
tableResetConfigIndo(props.configure, val);
|
|
44
|
+
} else {
|
|
45
|
+
resetConfigIndo(props.configure, val);
|
|
46
|
+
}
|
|
47
|
+
emit("changeAssembly", props.configure);
|
|
48
|
+
}
|
|
37
49
|
function afterBindVariable(modelValue, alias, fieldName) {
|
|
38
50
|
if (fieldName === "prop2") {
|
|
39
51
|
props.configure.props.base.prop2 = modelValue;
|
|
@@ -92,6 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
104
|
createVNode(_component_el_select, {
|
|
93
105
|
modelValue: __props.configure.name,
|
|
94
106
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
107
|
+
onChange: nameChange,
|
|
95
108
|
placeholder: "请选择"
|
|
96
109
|
}, {
|
|
97
110
|
default: withCtx(() => [
|
|
@@ -24,7 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
25
|
}, null, 8, ["modelValue"]),
|
|
26
26
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
27
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
28
|
+
configure: __props.configure,
|
|
29
|
+
onChangeAssembly: _cache[1] || (_cache[1] = (val) => _ctx.$emit("changeAssembly", val))
|
|
30
|
+
}, null, 8, ["configure"]), [
|
|
28
31
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
32
|
]),
|
|
30
33
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { Search } from "@element-plus/icons-vue";
|
|
3
3
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
4
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
4
5
|
import _sfc_main$4 from "../../common/common-attr-size.vue.js";
|
|
5
6
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
7
|
import _sfc_main$2 from "./depttree-autoset.vue.js";
|
|
7
8
|
import { OrganizationInput } from "agilebuilder-ui";
|
|
8
9
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
9
10
|
import _sfc_main$3 from "../common/title-suffix.vue.js";
|
|
11
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
10
12
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
13
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
14
|
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -19,13 +21,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
21
|
},
|
|
20
22
|
default: () => ({ props: {} })
|
|
21
23
|
},
|
|
22
|
-
|
|
24
|
+
emits: ["changeAssembly"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
23
26
|
const props = __props;
|
|
27
|
+
const emit = __emit;
|
|
24
28
|
const openCollapseItems = ref(["base"]);
|
|
25
29
|
const isTable = ref(false);
|
|
26
30
|
if (props.configure.isTable) {
|
|
27
31
|
isTable.value = true;
|
|
28
32
|
}
|
|
33
|
+
function nameChange(val) {
|
|
34
|
+
if (props.configure.isTable) {
|
|
35
|
+
tableResetConfigIndo(props.configure, val);
|
|
36
|
+
} else {
|
|
37
|
+
resetConfigIndo(props.configure, val);
|
|
38
|
+
}
|
|
39
|
+
emit("changeAssembly", props.configure);
|
|
40
|
+
}
|
|
29
41
|
function afterBindVariable(modelValue, alias) {
|
|
30
42
|
props.configure.props.base.prop = modelValue;
|
|
31
43
|
if (alias) {
|
|
@@ -38,7 +50,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
50
|
function afterBindDeptScopeField(modelValue) {
|
|
39
51
|
props.configure.props.base.deptScopeField = modelValue;
|
|
40
52
|
}
|
|
41
|
-
ref(false);
|
|
42
53
|
return (_ctx, _cache) => {
|
|
43
54
|
const _component_el_option = resolveComponent("el-option");
|
|
44
55
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -79,6 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
90
|
createVNode(_component_el_select, {
|
|
80
91
|
modelValue: __props.configure.name,
|
|
81
92
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
93
|
+
onChange: nameChange,
|
|
82
94
|
placeholder: "请选择"
|
|
83
95
|
}, {
|
|
84
96
|
default: withCtx(() => [
|
|
@@ -398,7 +410,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
398
410
|
createVNode(unref(OrganizationInput), {
|
|
399
411
|
disabled: __props.configure.props.base.deptScope != "depts",
|
|
400
412
|
multiple: "true",
|
|
401
|
-
treeType: "DeptTree",
|
|
402
413
|
modelValue: __props.configure.props.base.deptScopeDepts,
|
|
403
414
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.deptScopeDepts = $event),
|
|
404
415
|
models: __props.configure.props.base,
|
|
@@ -24,7 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
25
|
}, null, 8, ["modelValue"]),
|
|
26
26
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
27
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
28
|
+
configure: __props.configure,
|
|
29
|
+
onChangeAssembly: _cache[1] || (_cache[1] = (val) => _ctx.$emit("changeAssembly", val))
|
|
30
|
+
}, null, 8, ["configure"]), [
|
|
28
31
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
32
|
]),
|
|
30
33
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -9,6 +9,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
configure: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: {}
|
|
12
|
+
},
|
|
13
|
+
isTable: {
|
|
14
|
+
type: Boolean
|
|
12
15
|
}
|
|
13
16
|
},
|
|
14
17
|
setup(__props) {
|
|
@@ -23,6 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
26
|
props.configure.props.base.otherFieldSets = [];
|
|
24
27
|
}
|
|
25
28
|
const propsBase = props.configure.props.base;
|
|
29
|
+
console.log("%c描述-175029", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.configure.isTable);
|
|
26
30
|
const otherFieldSets = propsBase.otherFieldSets;
|
|
27
31
|
if (otherFieldSets.length == 0) {
|
|
28
32
|
addData(null);
|
|
@@ -178,10 +182,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
178
182
|
}, {
|
|
179
183
|
default: withCtx((scope) => [
|
|
180
184
|
createVNode(BindVariable, {
|
|
185
|
+
isTable: __props.configure.isTable,
|
|
181
186
|
modelValue: scope.row.target,
|
|
182
187
|
paramTypes: ["data", "page"],
|
|
183
188
|
"onUpdate:modelValue": (val) => afterBindLabelVariable(val, scope.row)
|
|
184
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
189
|
+
}, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])
|
|
185
190
|
]),
|
|
186
191
|
_: 1
|
|
187
192
|
}),
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
3
4
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
4
5
|
import _sfc_main$2 from "../common/uploading.vue.js";
|
|
5
6
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
8
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
7
9
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
10
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -11,12 +13,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
13
|
props: {
|
|
12
14
|
configure: {
|
|
13
15
|
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
required: true,
|
|
17
|
+
default: () => ({ props: {} })
|
|
18
|
+
}
|
|
17
19
|
},
|
|
18
|
-
|
|
20
|
+
emits: ["changeAssembly"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
19
22
|
const props = __props;
|
|
23
|
+
const emit = __emit;
|
|
20
24
|
if (!props.configure.props) {
|
|
21
25
|
props.configure.props = {};
|
|
22
26
|
}
|
|
@@ -38,6 +42,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
42
|
props.configure.props.base.title = alias;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
45
|
+
function nameChange(val) {
|
|
46
|
+
if (props.configure.isTable) {
|
|
47
|
+
tableResetConfigIndo(props.configure, val);
|
|
48
|
+
} else {
|
|
49
|
+
resetConfigIndo(props.configure, val);
|
|
50
|
+
}
|
|
51
|
+
emit("changeAssembly", props.configure);
|
|
52
|
+
}
|
|
41
53
|
return (_ctx, _cache) => {
|
|
42
54
|
const _component_el_option = resolveComponent("el-option");
|
|
43
55
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -80,6 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
92
|
createVNode(_component_el_select, {
|
|
81
93
|
modelValue: __props.configure.name,
|
|
82
94
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
95
|
+
onChange: nameChange,
|
|
83
96
|
placeholder: "请选择"
|
|
84
97
|
}, {
|
|
85
98
|
default: withCtx(() => [
|
|
@@ -110,7 +123,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
123
|
]),
|
|
111
124
|
_: 1
|
|
112
125
|
}),
|
|
113
|
-
|
|
126
|
+
!isTable.value ? (openBlock(), createBlock(_component_el_form_item, {
|
|
127
|
+
key: 0,
|
|
114
128
|
label: "文件路径",
|
|
115
129
|
class: "amb-design-attr-item"
|
|
116
130
|
}, {
|
|
@@ -123,8 +137,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
137
|
}, null, 8, ["modelValue"]))
|
|
124
138
|
]),
|
|
125
139
|
_: 1
|
|
126
|
-
}),
|
|
127
|
-
|
|
140
|
+
})) : createCommentVNode("", true),
|
|
141
|
+
!isTable.value ? (openBlock(), createBlock(_component_el_form_item, {
|
|
142
|
+
key: 1,
|
|
128
143
|
label: "文件名",
|
|
129
144
|
class: "amb-design-attr-item"
|
|
130
145
|
}, {
|
|
@@ -132,14 +147,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
132
147
|
(openBlock(), createBlock(BindVariable, {
|
|
133
148
|
key: __props.configure.uuid,
|
|
134
149
|
modelValue: __props.configure.props.base.propName,
|
|
135
|
-
paramTypes: ["data"],
|
|
150
|
+
paramTypes: ["data", "fixed"],
|
|
136
151
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = (value) => afterBindVariable(value, "propName"))
|
|
137
152
|
}, null, 8, ["modelValue"]))
|
|
138
153
|
]),
|
|
139
154
|
_: 1
|
|
140
|
-
}),
|
|
155
|
+
})) : createCommentVNode("", true),
|
|
141
156
|
!isTable.value ? (openBlock(), createBlock(_component_el_form_item, {
|
|
142
|
-
key:
|
|
157
|
+
key: 2,
|
|
143
158
|
label: "绑定权限",
|
|
144
159
|
class: "amb-design-attr-item"
|
|
145
160
|
}, {
|
|
@@ -152,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
167
|
_: 1
|
|
153
168
|
})) : createCommentVNode("", true),
|
|
154
169
|
!isTable.value ? (openBlock(), createBlock(_component_el_form_item, {
|
|
155
|
-
key:
|
|
170
|
+
key: 3,
|
|
156
171
|
label: "标题显示",
|
|
157
172
|
class: "amb-design-attr-item"
|
|
158
173
|
}, {
|
|
@@ -24,7 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
25
|
}, null, 8, ["modelValue"]),
|
|
26
26
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
27
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
28
|
+
configure: __props.configure,
|
|
29
|
+
onChangeAssembly: _cache[1] || (_cache[1] = (val) => _ctx.$emit("changeAssembly", val))
|
|
30
|
+
}, null, 8, ["configure"]), [
|
|
28
31
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
32
|
]),
|
|
30
33
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import { resetConfigIndo } from "../../../../utils/form-design-util.js";
|
|
3
4
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
4
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
5
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
6
7
|
import _sfc_main$2 from "../common/title-suffix.vue.js";
|
|
8
|
+
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
7
9
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
10
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -15,9 +17,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
17
|
},
|
|
16
18
|
default: () => ({ props: {} })
|
|
17
19
|
},
|
|
18
|
-
|
|
20
|
+
emits: ["changeAssembly"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
19
22
|
const props = __props;
|
|
20
23
|
const openCollapseItems = ref(["base"]);
|
|
24
|
+
const emit = __emit;
|
|
21
25
|
const isTable = ref(false);
|
|
22
26
|
if (props.configure.isTable) {
|
|
23
27
|
isTable.value = true;
|
|
@@ -28,6 +32,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
32
|
props.configure.props.base.title = alias;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
35
|
+
function nameChange(val) {
|
|
36
|
+
if (props.configure.isTable) {
|
|
37
|
+
tableResetConfigIndo(props.configure, val);
|
|
38
|
+
} else {
|
|
39
|
+
resetConfigIndo(props.configure, val);
|
|
40
|
+
}
|
|
41
|
+
emit("changeAssembly", props.configure);
|
|
42
|
+
}
|
|
31
43
|
function afterBindDefaultValue(modelValue) {
|
|
32
44
|
props.configure.props.base.defaultValue = modelValue;
|
|
33
45
|
}
|
|
@@ -71,6 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
83
|
createVNode(_component_el_select, {
|
|
72
84
|
modelValue: __props.configure.name,
|
|
73
85
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
86
|
+
onChange: nameChange,
|
|
74
87
|
placeholder: "请选择"
|
|
75
88
|
}, {
|
|
76
89
|
default: withCtx(() => [
|