super-page-designer 2.0.17 → 2.0.20
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 +19 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +9 -7
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -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 +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue.js +75 -1
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue2.js +1 -75
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue3.js +2 -2
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-advanced.vue.js +40 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +137 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-style.vue.js +50 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr.vue2.js +93 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-design.vue2.js +56 -0
- 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/text-history/texthistory-attr-base.vue.js +1 -1
- package/dist/es/style.css +647 -95
- package/package.json +6 -4
|
@@ -619,6 +619,25 @@ const assemblyGroups = [{
|
|
|
619
619
|
return import("../views/assemblys/form/divider/divider-attr.vue.js");
|
|
620
620
|
})
|
|
621
621
|
},
|
|
622
|
+
{
|
|
623
|
+
name: "separatelabel",
|
|
624
|
+
label: "分隔标签",
|
|
625
|
+
icon: containerCard,
|
|
626
|
+
default: {},
|
|
627
|
+
props: {
|
|
628
|
+
base: {
|
|
629
|
+
title: "标题"
|
|
630
|
+
},
|
|
631
|
+
size: {}
|
|
632
|
+
},
|
|
633
|
+
style: {},
|
|
634
|
+
designComponent: defineAsyncComponent(() => {
|
|
635
|
+
return import("../views/assemblys/form/separatelabel/separatelabel-design.vue.js");
|
|
636
|
+
}),
|
|
637
|
+
attrComponent: defineAsyncComponent(() => {
|
|
638
|
+
return import("../views/assemblys/form/separatelabel/separatelabel-attr.vue.js");
|
|
639
|
+
})
|
|
640
|
+
},
|
|
622
641
|
{
|
|
623
642
|
name: "placeholder",
|
|
624
643
|
label: "占位符",
|
|
@@ -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.vue2.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";
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, reactive, resolveComponent, openBlock, createBloc
|
|
|
2
2
|
import { Search, RefreshLeft } from "@element-plus/icons";
|
|
3
3
|
import http from "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import { EnableStates } from "../../../utils/interfaces/page-design-types.js";
|
|
5
|
-
const _hoisted_1 = { style: { "background-color": "rgba(88,147,239,0.06)", "padding": "10px" } };
|
|
5
|
+
const _hoisted_1 = { style: { "background-color": "rgba(88, 147, 239, 0.06)", "padding": "10px" } };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "common-select-page",
|
|
8
8
|
props: {
|
|
@@ -31,11 +31,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
total: 0
|
|
32
32
|
});
|
|
33
33
|
const tableDatas = ref([]);
|
|
34
|
-
const allSystems = ref([
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
const allSystems = ref([
|
|
35
|
+
{
|
|
36
|
+
value: "",
|
|
37
|
+
version: 1,
|
|
38
|
+
label: ""
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
39
41
|
const allSystemMap = ref({});
|
|
40
42
|
function confirmSelectTable(scopeData) {
|
|
41
43
|
emits("selectPage", scopeData.row);
|
|
@@ -60,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
function queryAllSystems() {
|
|
63
|
-
http.
|
|
65
|
+
http.get("/component/super-charts/findAllSystem").then((res) => {
|
|
64
66
|
const datas = res;
|
|
65
67
|
const systemCodes = [];
|
|
66
68
|
const tempMap = {};
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx
|
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
4
|
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
5
|
-
import "../../form/common/dimension-input.
|
|
5
|
+
import "../../form/common/dimension-input.vue2.js";
|
|
6
6
|
import "@element-plus/icons";
|
|
7
7
|
import "agilebuilder-ui/src/utils/request";
|
|
8
8
|
import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import "../../form/common/dimension-input.
|
|
2
|
+
import "../../form/common/dimension-input.vue2.js";
|
|
3
3
|
import RowBackgroudColor from "./row-backgroud-color.vue.js";
|
|
4
4
|
import _sfc_main$1 from "../../common/common-style-position.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../../common/common-style-margin.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createCommentVNode, createTextVNode, unref, createElementBlock, Fragment, renderList } from "vue";
|
|
2
2
|
import { Setting, Search } from "@element-plus/icons-vue";
|
|
3
3
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
4
|
-
import "../../form/common/dimension-input.
|
|
4
|
+
import "../../form/common/dimension-input.vue2.js";
|
|
5
5
|
import _sfc_main$3 from "../component/formatting.vue.js";
|
|
6
6
|
import _sfc_main$4 from "../component/querySetting.vue.js";
|
|
7
7
|
import DataOrigin from "../../form/common/data-origin.vue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
-
import "../../form/common/dimension-input.
|
|
2
|
+
import "../../form/common/dimension-input.vue2.js";
|
|
3
3
|
import RowBackgroudColor from "../component/row-backgroud-color.vue.js";
|
|
4
4
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
5
5
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import _sfc_main$1 from "../../form/common/dimension-input.
|
|
4
|
-
import "../../form/common/dimension-input.
|
|
3
|
+
import _sfc_main$1 from "../../form/common/dimension-input.vue.js";
|
|
4
|
+
import "../../form/common/dimension-input.vue2.js";
|
|
5
5
|
import IconSetDialog from "../../form/common/icon-set-dialog.vue.js";
|
|
6
6
|
import _sfc_main$2 from "../../form/common/dataorigin-input-table.vue.js";
|
|
7
7
|
import DataOriginTree from "../component/data-origin-tree.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../form/common/attr-style.vue.js";
|
|
3
|
-
import _sfc_main$2 from "../../form/common/dimension-input.
|
|
4
|
-
import "../../form/common/dimension-input.
|
|
3
|
+
import _sfc_main$2 from "../../form/common/dimension-input.vue.js";
|
|
4
|
+
import "../../form/common/dimension-input.vue2.js";
|
|
5
5
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "tree-attr-style",
|
|
@@ -1 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "dimension-input",
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: [Number],
|
|
7
|
+
default: null
|
|
8
|
+
},
|
|
9
|
+
selectedUnit: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "px"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue", "update:selectedUnit"],
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const emit = __emit;
|
|
18
|
+
const inputValue = ref(props.modelValue);
|
|
19
|
+
const unit = ref(props.selectedUnit);
|
|
20
|
+
const units = [
|
|
21
|
+
{ label: "px", value: "px" },
|
|
22
|
+
{ label: "em", value: "em" },
|
|
23
|
+
{ label: "ex", value: "ex" },
|
|
24
|
+
{ label: "cm", value: "cm" },
|
|
25
|
+
{ label: "vh", value: "vh" }
|
|
26
|
+
];
|
|
27
|
+
function onInput(val) {
|
|
28
|
+
emit("update:modelValue", val);
|
|
29
|
+
emit("update:selectedUnit", unit);
|
|
30
|
+
}
|
|
31
|
+
function onChange(newUnit) {
|
|
32
|
+
unit.value = newUnit;
|
|
33
|
+
emit("update:selectedUnit", newUnit);
|
|
34
|
+
}
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
const _component_el_option = resolveComponent("el-option");
|
|
37
|
+
const _component_el_select = resolveComponent("el-select");
|
|
38
|
+
const _component_el_input = resolveComponent("el-input");
|
|
39
|
+
return openBlock(), createBlock(_component_el_input, {
|
|
40
|
+
modelValue: inputValue.value,
|
|
41
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputValue.value = $event),
|
|
42
|
+
modelModifiers: { number: true },
|
|
43
|
+
placeholder: "",
|
|
44
|
+
class: "input-with-select",
|
|
45
|
+
onInput
|
|
46
|
+
}, {
|
|
47
|
+
append: withCtx(() => [
|
|
48
|
+
createVNode(_component_el_select, {
|
|
49
|
+
ref: "select",
|
|
50
|
+
modelValue: unit.value,
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unit.value = $event),
|
|
52
|
+
style: { width: "60px" },
|
|
53
|
+
placeholder: "",
|
|
54
|
+
onChange
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(units, (unit2) => {
|
|
58
|
+
return createVNode(_component_el_option, {
|
|
59
|
+
key: unit2.value,
|
|
60
|
+
label: unit2.label,
|
|
61
|
+
value: unit2.value
|
|
62
|
+
}, null, 8, ["label", "value"]);
|
|
63
|
+
}), 64))
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 8, ["modelValue"])
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["modelValue"]);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
_sfc_main as default
|
|
75
|
+
};
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
-
__name: "dimension-input",
|
|
4
|
-
props: {
|
|
5
|
-
modelValue: {
|
|
6
|
-
type: [Number],
|
|
7
|
-
default: null
|
|
8
|
-
},
|
|
9
|
-
selectedUnit: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "px"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
emits: ["update:modelValue", "update:selectedUnit"],
|
|
15
|
-
setup(__props, { emit: __emit }) {
|
|
16
|
-
const props = __props;
|
|
17
|
-
const emit = __emit;
|
|
18
|
-
const inputValue = ref(props.modelValue);
|
|
19
|
-
const unit = ref(props.selectedUnit);
|
|
20
|
-
const units = [
|
|
21
|
-
{ label: "px", value: "px" },
|
|
22
|
-
{ label: "em", value: "em" },
|
|
23
|
-
{ label: "ex", value: "ex" },
|
|
24
|
-
{ label: "cm", value: "cm" },
|
|
25
|
-
{ label: "vh", value: "vh" }
|
|
26
|
-
];
|
|
27
|
-
function onInput(val) {
|
|
28
|
-
emit("update:modelValue", val);
|
|
29
|
-
emit("update:selectedUnit", unit);
|
|
30
|
-
}
|
|
31
|
-
function onChange(newUnit) {
|
|
32
|
-
unit.value = newUnit;
|
|
33
|
-
emit("update:selectedUnit", newUnit);
|
|
34
|
-
}
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
const _component_el_option = resolveComponent("el-option");
|
|
37
|
-
const _component_el_select = resolveComponent("el-select");
|
|
38
|
-
const _component_el_input = resolveComponent("el-input");
|
|
39
|
-
return openBlock(), createBlock(_component_el_input, {
|
|
40
|
-
modelValue: inputValue.value,
|
|
41
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputValue.value = $event),
|
|
42
|
-
modelModifiers: { number: true },
|
|
43
|
-
placeholder: "",
|
|
44
|
-
class: "input-with-select",
|
|
45
|
-
onInput
|
|
46
|
-
}, {
|
|
47
|
-
append: withCtx(() => [
|
|
48
|
-
createVNode(_component_el_select, {
|
|
49
|
-
ref: "select",
|
|
50
|
-
modelValue: unit.value,
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unit.value = $event),
|
|
52
|
-
style: { width: "60px" },
|
|
53
|
-
placeholder: "",
|
|
54
|
-
onChange
|
|
55
|
-
}, {
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(units, (unit2) => {
|
|
58
|
-
return createVNode(_component_el_option, {
|
|
59
|
-
key: unit2.value,
|
|
60
|
-
label: unit2.label,
|
|
61
|
-
value: unit2.value
|
|
62
|
-
}, null, 8, ["label", "value"]);
|
|
63
|
-
}), 64))
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 8, ["modelValue"])
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["modelValue"]);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
export {
|
|
74
|
-
_sfc_main as default
|
|
75
|
-
};
|
|
1
|
+
|
|
@@ -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
|
-
import "../common/dimension-input.
|
|
4
|
+
import "../common/dimension-input.vue2.js";
|
|
5
5
|
import "@element-plus/icons-vue";
|
|
6
6
|
import "uuid";
|
|
7
7
|
import _sfc_main$1 from "../common/parameter-table.vue.js";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../common/common-advanced-basic.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "separatelabel-attr-advanced",
|
|
5
|
+
props: {
|
|
6
|
+
configure: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
default: () => ({ props: {} })
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const openCollapseItems = ref(["base"]);
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
16
|
+
const _component_el_form = resolveComponent("el-form");
|
|
17
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
18
|
+
"label-width": "80px",
|
|
19
|
+
size: "small"
|
|
20
|
+
}, {
|
|
21
|
+
default: withCtx(() => [
|
|
22
|
+
createVNode(_component_el_collapse, {
|
|
23
|
+
modelValue: openCollapseItems.value,
|
|
24
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => openCollapseItems.value = $event),
|
|
25
|
+
style: { "margin-top": "6px" }
|
|
26
|
+
}, {
|
|
27
|
+
default: withCtx(() => [
|
|
28
|
+
createVNode(_sfc_main$1, { configure: __props.configure }, null, 8, ["configure"])
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
}, 8, ["modelValue"])
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
_sfc_main as default
|
|
40
|
+
};
|
package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
3
|
+
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
4
|
+
import _sfc_main$2 from "../../common/common-icon-bind.vue.js";
|
|
5
|
+
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "separatelabel-attr-base",
|
|
8
|
+
props: {
|
|
9
|
+
configure: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: {}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const openCollapseItems = ref(["1", "attrSize"]);
|
|
17
|
+
function afterBindIcon(iconType, iconValue) {
|
|
18
|
+
props.configure.props.iconType = iconType;
|
|
19
|
+
props.configure.props.iconValue = iconValue;
|
|
20
|
+
}
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
const _component_el_text = resolveComponent("el-text");
|
|
23
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
24
|
+
const _component_el_input = resolveComponent("el-input");
|
|
25
|
+
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
26
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
27
|
+
const _component_el_form = resolveComponent("el-form");
|
|
28
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
29
|
+
"label-width": "80px",
|
|
30
|
+
size: "small"
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
createVNode(_component_el_collapse, {
|
|
34
|
+
modelValue: openCollapseItems.value,
|
|
35
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => openCollapseItems.value = $event),
|
|
36
|
+
style: { "margin-top": "6px" }
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(() => [
|
|
39
|
+
createVNode(_component_el_collapse_item, {
|
|
40
|
+
title: "基本",
|
|
41
|
+
name: "1",
|
|
42
|
+
class: "amb-design-attr-group-header"
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [
|
|
45
|
+
createElementVNode("div", _hoisted_1, [
|
|
46
|
+
createVNode(_component_el_form_item, { label: "组件类型" }, {
|
|
47
|
+
default: withCtx(() => [
|
|
48
|
+
createVNode(_component_el_text, null, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createTextVNode(toDisplayString(__props.configure.label) + "(" + toDisplayString(__props.configure.name) + ")", 1)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
createVNode(_component_el_form_item, {
|
|
58
|
+
label: "唯一编码",
|
|
59
|
+
style: { "margin-top": "-10px" }
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [
|
|
62
|
+
createVNode(_component_el_input, {
|
|
63
|
+
modelValue: __props.configure.uuid,
|
|
64
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.uuid = $event),
|
|
65
|
+
readonly: "",
|
|
66
|
+
title: __props.configure.uuid
|
|
67
|
+
}, null, 8, ["modelValue", "title"])
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}),
|
|
71
|
+
createVNode(_component_el_form_item, {
|
|
72
|
+
label: "自定义编码",
|
|
73
|
+
style: { "margin-top": "-10px" }
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [
|
|
76
|
+
createVNode(_component_el_input, {
|
|
77
|
+
modelValue: __props.configure.code,
|
|
78
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.code = $event),
|
|
79
|
+
placeholder: "请输入"
|
|
80
|
+
}, null, 8, ["modelValue"])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}),
|
|
84
|
+
createVNode(_component_el_form_item, {
|
|
85
|
+
label: "绑定权限",
|
|
86
|
+
style: { "margin-top": "-10px" }
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx(() => [
|
|
89
|
+
createVNode(_sfc_main$1, { configure: __props.configure }, null, 8, ["configure"])
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}),
|
|
93
|
+
createVNode(_component_el_form_item, {
|
|
94
|
+
label: "标题",
|
|
95
|
+
style: { "margin-top": "-10px" }
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(() => [
|
|
98
|
+
createVNode(_component_el_input, {
|
|
99
|
+
modelValue: __props.configure.props.base.title,
|
|
100
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.base.title = $event),
|
|
101
|
+
placeholder: "请输入"
|
|
102
|
+
}, null, 8, ["modelValue"])
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}),
|
|
106
|
+
createVNode(_component_el_form_item, {
|
|
107
|
+
label: "标题图标",
|
|
108
|
+
style: { "margin-top": "-10px", "margin-bottom": "-15px" }
|
|
109
|
+
}, {
|
|
110
|
+
default: withCtx(() => [
|
|
111
|
+
createVNode(_sfc_main$2, {
|
|
112
|
+
iconType: __props.configure.props.iconType,
|
|
113
|
+
iconValue: __props.configure.props.iconValue,
|
|
114
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = (iconType, iconValue) => afterBindIcon(iconType, iconValue))
|
|
115
|
+
}, null, 8, ["iconType", "iconValue"])
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
})
|
|
119
|
+
])
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}),
|
|
123
|
+
createVNode(_sfc_main$3, {
|
|
124
|
+
size: __props.configure.props.size
|
|
125
|
+
}, null, 8, ["size"])
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["modelValue"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
export {
|
|
136
|
+
_sfc_main as default
|
|
137
|
+
};
|
package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-style.vue.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
|
|
2
|
+
import _sfc_main$4 from "../../common/common-style-padding.vue.js";
|
|
3
|
+
import _sfc_main$2 from "../../common/common-style-background.vue.js";
|
|
4
|
+
import _sfc_main$8 from "../../common/common-style-custom.vue.js";
|
|
5
|
+
import _sfc_main$3 from "../../common/common-style-margin.vue.js";
|
|
6
|
+
import _sfc_main$5 from "../../common/common-style-border.vue.js";
|
|
7
|
+
import _sfc_main$6 from "../../common/common-style-shadow.vue.js";
|
|
8
|
+
import _sfc_main$7 from "../../common/common-style-position.vue.js";
|
|
9
|
+
import _sfc_main$1 from "../../common/common-style-font-head.vue.js";
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "separatelabel-attr-style",
|
|
12
|
+
props: {
|
|
13
|
+
configure: Object
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const openCollapseItems = ref(["styleFontHead"]);
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
19
|
+
const _component_el_form = resolveComponent("el-form");
|
|
20
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
21
|
+
"label-width": "80px",
|
|
22
|
+
size: "small"
|
|
23
|
+
}, {
|
|
24
|
+
default: withCtx(() => [
|
|
25
|
+
createVNode(_component_el_collapse, {
|
|
26
|
+
modelValue: openCollapseItems.value,
|
|
27
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => openCollapseItems.value = $event),
|
|
28
|
+
style: { "margin-top": "6px" }
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [
|
|
31
|
+
createVNode(_sfc_main$1, { configure: __props.configure }, null, 8, ["configure"]),
|
|
32
|
+
createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]),
|
|
33
|
+
createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]),
|
|
34
|
+
createVNode(_sfc_main$4, { configure: __props.configure }, null, 8, ["configure"]),
|
|
35
|
+
createVNode(_sfc_main$5, { configure: __props.configure }, null, 8, ["configure"]),
|
|
36
|
+
createVNode(_sfc_main$6, { configure: __props.configure }, null, 8, ["configure"]),
|
|
37
|
+
createVNode(_sfc_main$7, { configure: __props.configure }, null, 8, ["configure"]),
|
|
38
|
+
createVNode(_sfc_main$8, { configure: __props.configure }, null, 8, ["configure"])
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["modelValue"])
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
_sfc_main as default
|
|
50
|
+
};
|
package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr.vue2.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, isRef, createTextVNode, createBlock, createCommentVNode, withDirectives, createVNode, vShow } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./separatelabel-attr-base.vue.js";
|
|
3
|
+
import _sfc_main$2 from "./separatelabel-attr-style.vue.js";
|
|
4
|
+
import _sfc_main$3 from "../../common-attr-events.vue.js";
|
|
5
|
+
import _sfc_main$4 from "./separatelabel-attr-advanced.vue.js";
|
|
6
|
+
const _hoisted_1 = { class: "amb-design-attr-content" };
|
|
7
|
+
const _hoisted_2 = { class: "amb-design-attr-header" };
|
|
8
|
+
const _hoisted_3 = { class: "amb-design-attr-header-type" };
|
|
9
|
+
const _hoisted_4 = { class: "amb-design-attr-list" };
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "separatelabel-attr",
|
|
12
|
+
props: {
|
|
13
|
+
configure: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: {}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: [],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
if (props.configure.props == void 0) {
|
|
22
|
+
props.configure.props = {};
|
|
23
|
+
}
|
|
24
|
+
if (props.configure.props.title == void 0) {
|
|
25
|
+
props.configure.props.title = "标题";
|
|
26
|
+
}
|
|
27
|
+
let selAsselbyType = ref("base");
|
|
28
|
+
if (props.configure.events == void 0) {
|
|
29
|
+
props.configure.events = [];
|
|
30
|
+
}
|
|
31
|
+
const selEventCount = ref(0);
|
|
32
|
+
caculateSelEventCount();
|
|
33
|
+
function caculateSelEventCount() {
|
|
34
|
+
const allEvents = props.configure.events;
|
|
35
|
+
for (let index = 0; index < allEvents.length; index++) {
|
|
36
|
+
if (allEvents[index].selLogicCode) {
|
|
37
|
+
selEventCount.value++;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
watch(props.configure.events, (newValue) => {
|
|
42
|
+
caculateSelEventCount();
|
|
43
|
+
});
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
const _component_el_badge = resolveComponent("el-badge");
|
|
46
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
47
|
+
createElementVNode("div", _hoisted_2, [
|
|
48
|
+
createElementVNode("div", _hoisted_3, [
|
|
49
|
+
createElementVNode("label", {
|
|
50
|
+
class: normalizeClass({ selected: unref(selAsselbyType) == "base" }),
|
|
51
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isRef(selAsselbyType) ? selAsselbyType.value = "base" : selAsselbyType = "base")
|
|
52
|
+
}, "属性", 2),
|
|
53
|
+
createElementVNode("label", {
|
|
54
|
+
class: normalizeClass({ selected: unref(selAsselbyType) == "style" }),
|
|
55
|
+
onClick: _cache[1] || (_cache[1] = ($event) => isRef(selAsselbyType) ? selAsselbyType.value = "style" : selAsselbyType = "style")
|
|
56
|
+
}, "样式", 2),
|
|
57
|
+
createElementVNode("label", {
|
|
58
|
+
class: normalizeClass({ selected: unref(selAsselbyType) == "event" }),
|
|
59
|
+
onClick: _cache[2] || (_cache[2] = ($event) => isRef(selAsselbyType) ? selAsselbyType.value = "event" : selAsselbyType = "event")
|
|
60
|
+
}, [
|
|
61
|
+
createTextVNode(" 事件 "),
|
|
62
|
+
selEventCount.value > 0 ? (openBlock(), createBlock(_component_el_badge, {
|
|
63
|
+
key: 0,
|
|
64
|
+
value: selEventCount.value
|
|
65
|
+
}, null, 8, ["value"])) : createCommentVNode("", true)
|
|
66
|
+
], 2),
|
|
67
|
+
createElementVNode("label", {
|
|
68
|
+
class: normalizeClass({ selected: unref(selAsselbyType) == "advanced" }),
|
|
69
|
+
onClick: _cache[3] || (_cache[3] = ($event) => isRef(selAsselbyType) ? selAsselbyType.value = "advanced" : selAsselbyType = "advanced")
|
|
70
|
+
}, "高级", 2)
|
|
71
|
+
])
|
|
72
|
+
]),
|
|
73
|
+
createElementVNode("div", _hoisted_4, [
|
|
74
|
+
withDirectives(createVNode(_sfc_main$1, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
75
|
+
[vShow, unref(selAsselbyType) == "base"]
|
|
76
|
+
]),
|
|
77
|
+
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
78
|
+
[vShow, unref(selAsselbyType) == "style"]
|
|
79
|
+
]),
|
|
80
|
+
withDirectives(createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
81
|
+
[vShow, unref(selAsselbyType) == "event"]
|
|
82
|
+
]),
|
|
83
|
+
withDirectives(createVNode(_sfc_main$4, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
84
|
+
[vShow, unref(selAsselbyType) == "advanced"]
|
|
85
|
+
])
|
|
86
|
+
])
|
|
87
|
+
]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
_sfc_main as default
|
|
93
|
+
};
|