super-page-designer 2.1.49 → 2.1.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 +19 -32
- package/dist/es/components/design/utils/chart-design-util.js +17 -0
- package/dist/es/components/design/utils/data-table-util.js +26 -28
- package/dist/es/components/design/utils/form-design-util.js +0 -1
- package/dist/es/components/design/utils/page-service-util.d.ts +2 -2
- package/dist/es/components/design/utils/page-service-util.js +7 -5
- package/dist/es/components/design/utils/page-table-util.js +33 -10
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +61 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue.js +22 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-style-yaxis.vue.js +89 -23
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +7 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +706 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +40 -15
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue.js +106 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +26 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +347 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +69 -31
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +15 -7
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +466 -304
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +9 -6
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -4
- 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.vue2.js +1 -738
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +738 -1
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +8 -0
- package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +1 -11
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +31 -5
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +46 -52
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +16 -28
- 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 +9 -2
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +67 -9
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue.js +1 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +23 -9
- package/dist/es/components/design/views/assemblys/data/table/table-attr-style.vue.js +7 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +9 -2
- 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-base.vue2.js +31 -28
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +35 -470
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +7 -3
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +275 -0
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +49 -2
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +30 -1
- package/dist/es/components/design/views/design/page-design.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +102 -16
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +15 -11
- package/dist/es/stores/statistics-table-store.js +2 -1
- package/dist/es/style.css +115 -115
- package/package.json +6 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +0 -205
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue2.js +0 -78
- /package/dist/es/components/design/views/assemblys/{data/component/row-backgroud-color.vue3.js → chart/statistical-table/component/data-origin.vue3.js} +0 -0
|
@@ -295,6 +295,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
+
function inputFormatter(value) {
|
|
299
|
+
if (value) {
|
|
300
|
+
return `${props.rowObj.name}:${value}`;
|
|
301
|
+
} else {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
298
305
|
return (_ctx, _cache) => {
|
|
299
306
|
const _component_el_icon = resolveComponent("el-icon");
|
|
300
307
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -328,6 +335,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
328
335
|
size: "small",
|
|
329
336
|
onClick: showPopover,
|
|
330
337
|
title: __props.rowObj.name + "(" + __props.rowObj.simpleCode + ")",
|
|
338
|
+
formatter: inputFormatter,
|
|
331
339
|
modelValue: dynamicFieldValue.value,
|
|
332
340
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicFieldValue.value = $event),
|
|
333
341
|
placeholder: "请选择"
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const _component_el_row = resolveComponent("el-row");
|
|
30
30
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
31
31
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.events, (eventItem, eventIndex) => {
|
|
32
|
-
return openBlock(), createBlock(_component_el_row, { style: { "border-bottom": "2px dashed #
|
|
32
|
+
return openBlock(), createBlock(_component_el_row, { style: { "border-bottom": "2px dashed #f5f6f8", "padding-top": "5px", "padding-bottom": "5px" } }, {
|
|
33
33
|
default: withCtx(() => [
|
|
34
34
|
createVNode(_component_el_col, {
|
|
35
35
|
style: { "overflow": "hidden" },
|
|
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
default: withCtx(() => [
|
|
51
51
|
eventItem.selLogicCode ? (openBlock(), createBlock(_component_el_icon, {
|
|
52
52
|
key: 0,
|
|
53
|
-
style: { "cursor": "pointer", "color": "#
|
|
53
|
+
style: { "cursor": "pointer", "color": "#5893ef", "margin-right": "6px" },
|
|
54
54
|
title: "编辑逻辑",
|
|
55
55
|
onClick: _cache[0] || (_cache[0] = ($event) => editLogic("{{eventItem.selLogicCode}}"))
|
|
56
56
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch,
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString, createVNode, reactive } from "vue";
|
|
2
2
|
import { ElTabs, ElTabPane } from "element-plus";
|
|
3
3
|
import { SuperIcon } from "agilebuilder-ui";
|
|
4
4
|
import { VueDraggable } from "vue-draggable-plus";
|
|
@@ -42,16 +42,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
watch(props.configure.style, () => {
|
|
43
43
|
caculateThisStyle();
|
|
44
44
|
});
|
|
45
|
-
const tempData = computed(() => [...props.configure.items]);
|
|
46
|
-
watch(tempData, (newVal, oldVal) => {
|
|
47
|
-
newVal.forEach((every) => {
|
|
48
|
-
oldVal.forEach((oblEvery) => {
|
|
49
|
-
if (every.items.length > oblEvery.items.length) {
|
|
50
|
-
onSelectWidget(props.indexObj.index, every.items[every.items.length - 1]);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}, { important: true, deep: true });
|
|
55
45
|
function caculateThisStyle() {
|
|
56
46
|
caculateComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
57
47
|
props.configure.runtime.style = designStyle.value;
|
|
@@ -5,6 +5,7 @@ import { deepCopy, getUuidv4 } from "../../../../utils/common-util.js";
|
|
|
5
5
|
import { caculateComponentStyle } from "../../../../utils/container-design-util.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import { deleteDesignItem } from "../../../../utils/page-design-util.js";
|
|
8
|
+
import { getInputTypeComponentNames } from "../../../../utils/assemblys-config.js";
|
|
8
9
|
const _hoisted_1 = {
|
|
9
10
|
class: "amb-widget-tools-parent amb-design-item-default",
|
|
10
11
|
style: { "width": "99.5%" }
|
|
@@ -40,12 +41,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
watch(props.configure.props, () => {
|
|
41
42
|
caculateToolsStyle();
|
|
42
43
|
});
|
|
44
|
+
const inputTypeComponentNames = getInputTypeComponentNames();
|
|
43
45
|
const tempData = computed(() => [...props.configure.items]);
|
|
44
|
-
watch(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
watch(
|
|
47
|
+
tempData,
|
|
48
|
+
(newVal, oldVal) => {
|
|
49
|
+
if (newVal.length > oldVal.length) {
|
|
50
|
+
onSelectWidget(props.indexObj.index, newVal[newVal.length - 1]);
|
|
51
|
+
}
|
|
52
|
+
if (props.pageDesign.pageType === "list") {
|
|
53
|
+
props.pageDesign.toolsInputComponents = [];
|
|
54
|
+
pushToolsInputComponents(newVal);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{ important: true, deep: true }
|
|
58
|
+
);
|
|
59
|
+
function pushToolsInputComponents(items) {
|
|
60
|
+
items.forEach((toolsItem) => {
|
|
61
|
+
var _a, _b, _c, _d;
|
|
62
|
+
if (toolsItem.items && toolsItem.items.length > 0) {
|
|
63
|
+
pushToolsInputComponents(toolsItem.items);
|
|
64
|
+
}
|
|
65
|
+
if (inputTypeComponentNames.includes(toolsItem.name)) {
|
|
66
|
+
const tmp = {
|
|
67
|
+
uuid: toolsItem.uuid,
|
|
68
|
+
defaultValue: (_b = (_a = toolsItem.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.defaultValue,
|
|
69
|
+
prop: (_d = (_c = toolsItem.runtime) == null ? void 0 : _c.props) == null ? void 0 : _d.prop
|
|
70
|
+
};
|
|
71
|
+
props.pageDesign.toolsInputComponents.push(tmp);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
49
75
|
const thisRef = ref(null);
|
|
50
76
|
useDraggable(thisRef, props.configure.items, {
|
|
51
77
|
group: "amb-assembly-item",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _sfc_main$2 from "../../common/common-style-
|
|
5
|
-
import _sfc_main$3 from "../../common/common-style-
|
|
6
|
-
import _sfc_main$4 from "../../common/common-style-
|
|
7
|
-
import _sfc_main$5 from "../../common/common-style-
|
|
8
|
-
import _sfc_main$6 from "../../common/common-style-
|
|
9
|
-
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, createCommentVNode } from "vue";
|
|
2
|
+
import "@element-plus/icons-vue";
|
|
3
|
+
import "./row-backgroud-color.vue.js";
|
|
4
|
+
import _sfc_main$2 from "../../common/common-style-position.vue.js";
|
|
5
|
+
import _sfc_main$3 from "../../common/common-style-margin.vue.js";
|
|
6
|
+
import _sfc_main$4 from "../../common/common-style-padding.vue.js";
|
|
7
|
+
import _sfc_main$5 from "../../common/common-style-border.vue.js";
|
|
8
|
+
import _sfc_main$6 from "../../common/common-style-shadow.vue.js";
|
|
9
|
+
import _sfc_main$7 from "../../common/common-style-custom.vue.js";
|
|
10
|
+
import _sfc_main$1 from "../../chart/statistical-table/component/style-table.vue.js";
|
|
10
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
12
|
__name: "attr-style",
|
|
12
13
|
props: {
|
|
@@ -31,83 +32,76 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
showCustom: true
|
|
32
33
|
// 是否显示自定义
|
|
33
34
|
}
|
|
35
|
+
},
|
|
36
|
+
// 页面信息
|
|
37
|
+
pageDesign: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => {
|
|
40
|
+
}
|
|
34
41
|
}
|
|
35
42
|
},
|
|
36
43
|
setup(__props) {
|
|
44
|
+
const props = __props;
|
|
45
|
+
function rowStyleChange(tableData) {
|
|
46
|
+
props.configure.style.rowStyle = tableData;
|
|
47
|
+
}
|
|
48
|
+
function titleStyleChange(tableData) {
|
|
49
|
+
props.configure.style.titleStyle = tableData;
|
|
50
|
+
}
|
|
37
51
|
return (_ctx, _cache) => {
|
|
38
|
-
const _component_el_input = resolveComponent("el-input");
|
|
39
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
40
52
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
41
53
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
42
54
|
createVNode(_component_el_collapse_item, {
|
|
43
|
-
title: "
|
|
55
|
+
title: "标题",
|
|
44
56
|
name: "tableHeader",
|
|
45
57
|
class: "amb-design-attr-group-header"
|
|
46
58
|
}, {
|
|
47
59
|
default: withCtx(() => [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
modelValue: __props.configure.style.tableHeader.class,
|
|
56
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.style.tableHeader.class = $event)
|
|
57
|
-
}, null, 8, ["modelValue"])
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
}),
|
|
61
|
-
createVNode(_component_el_form_item, {
|
|
62
|
-
label: "表头Style",
|
|
63
|
-
class: "amb-design-attr-item"
|
|
64
|
-
}, {
|
|
65
|
-
default: withCtx(() => [
|
|
66
|
-
createVNode(_component_el_input, {
|
|
67
|
-
modelValue: __props.configure.style.tableHeader.style,
|
|
68
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.style.tableHeader.style = $event),
|
|
69
|
-
style: { "width": "240px" },
|
|
70
|
-
autosize: { minRows: 4 },
|
|
71
|
-
type: "textarea",
|
|
72
|
-
placeholder: "Please input"
|
|
73
|
-
}, null, 8, ["modelValue"])
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
})
|
|
77
|
-
])
|
|
60
|
+
createVNode(_sfc_main$1, {
|
|
61
|
+
configure: __props.configure,
|
|
62
|
+
showField: true,
|
|
63
|
+
data: __props.configure.style.titleStyle,
|
|
64
|
+
pageDesign: __props.pageDesign,
|
|
65
|
+
onDataChange: titleStyleChange
|
|
66
|
+
}, null, 8, ["configure", "data", "pageDesign"])
|
|
78
67
|
]),
|
|
79
68
|
_: 1
|
|
80
69
|
}),
|
|
81
70
|
createVNode(_component_el_collapse_item, {
|
|
82
|
-
title: "
|
|
71
|
+
title: "内容",
|
|
83
72
|
name: "rowBackgroundColor",
|
|
84
73
|
class: "amb-design-attr-group-header"
|
|
85
74
|
}, {
|
|
86
75
|
default: withCtx(() => [
|
|
87
|
-
createVNode(
|
|
88
|
-
|
|
89
|
-
|
|
76
|
+
createVNode(_sfc_main$1, {
|
|
77
|
+
paramTypes: ["data", "task", "page", "request", "row"],
|
|
78
|
+
configure: __props.configure,
|
|
79
|
+
showCondition: true,
|
|
80
|
+
data: __props.configure.style.rowStyle,
|
|
81
|
+
pageDesign: __props.pageDesign,
|
|
82
|
+
onDataChange: rowStyleChange
|
|
83
|
+
}, null, 8, ["configure", "data", "pageDesign"])
|
|
90
84
|
]),
|
|
91
85
|
_: 1
|
|
92
86
|
}),
|
|
93
|
-
createVNode(_sfc_main$
|
|
94
|
-
__props.blankOption.showMargin ? (openBlock(), createBlock(_sfc_main$
|
|
87
|
+
createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]),
|
|
88
|
+
__props.blankOption.showMargin ? (openBlock(), createBlock(_sfc_main$3, {
|
|
95
89
|
key: 0,
|
|
96
90
|
configure: __props.configure
|
|
97
91
|
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
98
|
-
__props.blankOption.showPadding ? (openBlock(), createBlock(_sfc_main$
|
|
92
|
+
__props.blankOption.showPadding ? (openBlock(), createBlock(_sfc_main$4, {
|
|
99
93
|
key: 1,
|
|
100
94
|
configure: __props.configure
|
|
101
95
|
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
102
|
-
__props.blankOption.showBorder ? (openBlock(), createBlock(_sfc_main$
|
|
96
|
+
__props.blankOption.showBorder ? (openBlock(), createBlock(_sfc_main$5, {
|
|
103
97
|
key: 2,
|
|
104
98
|
configure: __props.configure
|
|
105
99
|
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
106
|
-
__props.blankOption.showShadow ? (openBlock(), createBlock(_sfc_main$
|
|
100
|
+
__props.blankOption.showShadow ? (openBlock(), createBlock(_sfc_main$6, {
|
|
107
101
|
key: 3,
|
|
108
102
|
configure: __props.configure
|
|
109
103
|
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
110
|
-
__props.blankOption.showCustom ? (openBlock(), createBlock(_sfc_main$
|
|
104
|
+
__props.blankOption.showCustom ? (openBlock(), createBlock(_sfc_main$7, {
|
|
111
105
|
key: 4,
|
|
112
106
|
configure: __props.configure
|
|
113
107
|
}, null, 8, ["configure"])) : createCommentVNode("", true)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./composite-header.vue2.js";
|
|
2
2
|
import "./composite-header.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const CompositeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const CompositeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4fd4369c"]]);
|
|
5
5
|
export {
|
|
6
6
|
CompositeHeader as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, onMounted, resolveComponent, openBlock, createEle
|
|
|
2
2
|
import { Plus, EditPen, Document, Delete } from "@element-plus/icons-vue";
|
|
3
3
|
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
4
4
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
5
|
-
import { getTopGroupHeaderList, setGroupHeaderDataDisplayOrder,
|
|
5
|
+
import { getTopGroupHeaderList, setGroupHeaderDataDisplayOrder, addColumnToGroupHeaders, isLeafNode } from "../../../../utils/data-table-util.js";
|
|
6
6
|
import eventBus from "../../../../utils/eventBus.js";
|
|
7
7
|
const _hoisted_1 = { key: 0 };
|
|
8
8
|
const _hoisted_2 = { style: { "display": "flex", "margin": "8px 0" } };
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
const notChooseListColumns = ref([]);
|
|
41
41
|
const selectColumnVisible = ref(false);
|
|
42
42
|
const treeData = ref([]);
|
|
43
|
-
|
|
43
|
+
ref(null);
|
|
44
44
|
const checkList = ref([]);
|
|
45
45
|
const selectNode = ref({});
|
|
46
46
|
const isSearch = ref(false);
|
|
@@ -50,8 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
onMounted(() => {
|
|
51
51
|
treeData.value = getTopGroupHeaderList(groupHeaders.value);
|
|
52
52
|
});
|
|
53
|
-
function initEnableGroupHeader() {
|
|
54
|
-
if (
|
|
53
|
+
function initEnableGroupHeader(value) {
|
|
54
|
+
if (value && (!props.configure.props.groupHeaders || props.configure.props.groupHeaders.length === 0)) {
|
|
55
55
|
listColumns = props.configure.items;
|
|
56
56
|
filterNotChooseListColumns();
|
|
57
57
|
initGroupHeaders();
|
|
@@ -76,6 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
columnUuid: column.uuid,
|
|
77
77
|
titleText: column.props.base.name,
|
|
78
78
|
isLeaf: true,
|
|
79
|
+
prop: column.props.base.prop,
|
|
79
80
|
displayOrder: index++
|
|
80
81
|
};
|
|
81
82
|
props.configure.props.groupHeaders.push(columnHeader);
|
|
@@ -124,10 +125,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
124
125
|
if (!form.value.parentUuid) {
|
|
125
126
|
treeData.value = getTopGroupHeaderList(groupHeaders.value);
|
|
126
127
|
} else {
|
|
127
|
-
|
|
128
|
-
selectNode.value.loaded = false;
|
|
129
|
-
selectNode.value.expand();
|
|
130
|
-
}
|
|
128
|
+
groupTreeRef.value.append(form.value, selectNode.value);
|
|
131
129
|
}
|
|
132
130
|
if (isSearch.value) {
|
|
133
131
|
searchResult();
|
|
@@ -208,22 +206,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
208
206
|
mobileOff.value = false;
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
|
-
function loadFun(node, resolve) {
|
|
212
|
-
menuVisible.value = false;
|
|
213
|
-
if (!node.data || node.data.columnUuid) {
|
|
214
|
-
resolve([]);
|
|
215
|
-
} else {
|
|
216
|
-
selectResolv.value = resolve;
|
|
217
|
-
const parentUuid = node.data.uuid;
|
|
218
|
-
if (parentUuid) {
|
|
219
|
-
const childrenList = getChildrenList(parentUuid, groupHeaders.value);
|
|
220
|
-
resolve(childrenList);
|
|
221
|
-
} else {
|
|
222
|
-
const topHeaders = getTopGroupHeaderList(groupHeaders.value);
|
|
223
|
-
resolve(topHeaders);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
209
|
function openChoiceColumn() {
|
|
228
210
|
filterNotChooseListColumns();
|
|
229
211
|
checkList.value = [];
|
|
@@ -376,6 +358,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
376
358
|
eventBus.$emit("hadleDragging", true);
|
|
377
359
|
dragNode.value = draggingNode;
|
|
378
360
|
}
|
|
361
|
+
function hadleAllowDrop(draggingNode, dropNode, type) {
|
|
362
|
+
let canDrop = true;
|
|
363
|
+
if (dropNode.data.columnUuid && type === "inner") {
|
|
364
|
+
canDrop = false;
|
|
365
|
+
}
|
|
366
|
+
return canDrop;
|
|
367
|
+
}
|
|
379
368
|
function handleDrop(draggingNode, dropNode, dropType, ev) {
|
|
380
369
|
let dropData = dropNode.data;
|
|
381
370
|
let draggingData = draggingNode.data;
|
|
@@ -537,14 +526,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
537
526
|
style: { "max-width": "600px" },
|
|
538
527
|
data: treeData.value,
|
|
539
528
|
draggable: !isSearch.value,
|
|
540
|
-
|
|
541
|
-
props: { isLeaf: "isLeaf" },
|
|
529
|
+
props: { isLeaf: "isLeaf", children: "children", label: "titleText" },
|
|
542
530
|
"node-key": "uuid",
|
|
543
|
-
lazy: "",
|
|
544
531
|
onNodeClick: handleNodeClick,
|
|
545
532
|
onNodeContextmenu: nodeContextmenu,
|
|
546
533
|
onNodeDrop: handleDrop,
|
|
547
|
-
onNodeDragStart: hadleDragStart
|
|
534
|
+
onNodeDragStart: hadleDragStart,
|
|
535
|
+
"allow-drop": hadleAllowDrop
|
|
548
536
|
}, {
|
|
549
537
|
default: withCtx(({ data }) => [
|
|
550
538
|
isSearch.value && data.fullPath ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(data.fullPath), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(data.titleText), 1))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./data-origin.vue2.js";
|
|
2
2
|
import "./data-origin.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3336d6c5"]]);
|
|
5
5
|
export {
|
|
6
6
|
DataOrigin as default
|
|
7
7
|
};
|
|
@@ -68,7 +68,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
const selectTableDialog = ref(null);
|
|
69
69
|
const atPresentSortIndex = ref("");
|
|
70
70
|
const defaultQueryVisible = ref(false);
|
|
71
|
+
const dataFieldNameList = ref(null);
|
|
71
72
|
const dataOriginInfo = props.configure.props.dataOrigin;
|
|
73
|
+
const pageType = props.pageDesign.pageType;
|
|
74
|
+
if (pageType && pageType === "form") {
|
|
75
|
+
dataFieldNameList.value = props.pageDesign.modelFields;
|
|
76
|
+
}
|
|
72
77
|
const serviceFields = ref([]);
|
|
73
78
|
const showFields = computed(() => {
|
|
74
79
|
return serviceFields.value.filter((item) => {
|
|
@@ -741,17 +746,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
741
746
|
list: __props.configure.props.dataOrigin.sqlFilterCondition,
|
|
742
747
|
fieldNameList: __props.configure.modelFields,
|
|
743
748
|
fieldMap: __props.configure.modelFieldsMap,
|
|
749
|
+
dataFieldNameList: dataFieldNameList.value,
|
|
744
750
|
onSave: saveCondition,
|
|
745
751
|
onClose: closeCombination
|
|
746
|
-
}, null, 8, ["list", "fieldNameList", "fieldMap"])) : createCommentVNode("", true),
|
|
752
|
+
}, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : createCommentVNode("", true),
|
|
747
753
|
defaultQueryVisible.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
748
754
|
key: 2,
|
|
749
755
|
list: __props.configure.props.dataOrigin.defaultQueryCriteria,
|
|
750
756
|
fieldNameList: __props.configure.modelFields,
|
|
751
757
|
fieldMap: __props.configure.modelFieldsMap,
|
|
758
|
+
dataFieldNameList: dataFieldNameList.value,
|
|
752
759
|
onClose: closeDefaultQuery,
|
|
753
760
|
onSave: saveDefaultQuery
|
|
754
|
-
}, null, 8, ["list", "fieldNameList", "fieldMap"])) : createCommentVNode("", true),
|
|
761
|
+
}, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : createCommentVNode("", true),
|
|
755
762
|
columnConfigVisible.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
756
763
|
key: 3,
|
|
757
764
|
configure: __props.configure,
|
package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createTextVNode, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import _sfc_main$1 from "../../common/common-icon-bind.vue.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "formatting-icon-label",
|
|
5
5
|
props: {
|
|
6
6
|
setting: {
|
|
7
7
|
type: Object,
|
|
8
8
|
default: {}
|
|
9
|
+
},
|
|
10
|
+
showEvent: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: true
|
|
9
13
|
}
|
|
10
14
|
},
|
|
11
15
|
setup(__props) {
|
|
@@ -15,6 +19,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
19
|
if (!format.value.isTag) {
|
|
16
20
|
format.value.isTag = false;
|
|
17
21
|
}
|
|
22
|
+
function afterBindIcon(iconType, iconValue) {
|
|
23
|
+
format.value.iconType = iconType;
|
|
24
|
+
format.value.icon = iconValue;
|
|
25
|
+
}
|
|
18
26
|
return (_ctx, _cache) => {
|
|
19
27
|
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
20
28
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
@@ -57,10 +65,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
65
|
class: "amb-design-attr-item"
|
|
58
66
|
}, {
|
|
59
67
|
default: withCtx(() => [
|
|
60
|
-
createVNode(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
createVNode(_sfc_main$1, {
|
|
69
|
+
iconType: format.value.preIconType,
|
|
70
|
+
iconValue: format.value.icon,
|
|
71
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (iconType, iconValue) => afterBindIcon(iconType, iconValue))
|
|
72
|
+
}, null, 8, ["iconType", "iconValue"])
|
|
64
73
|
]),
|
|
65
74
|
_: 1
|
|
66
75
|
})) : createCommentVNode("", true),
|
|
@@ -155,30 +164,79 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
155
164
|
})) : createCommentVNode("", true),
|
|
156
165
|
format.value.isTag ? (openBlock(), createBlock(_component_el_form_item, {
|
|
157
166
|
key: 4,
|
|
167
|
+
label: "类型",
|
|
168
|
+
class: "amb-design-attr-item"
|
|
169
|
+
}, {
|
|
170
|
+
default: withCtx(() => [
|
|
171
|
+
createVNode(_component_el_radio_group, {
|
|
172
|
+
modelValue: format.value.tagType,
|
|
173
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => format.value.tagType = $event),
|
|
174
|
+
size: "small"
|
|
175
|
+
}, {
|
|
176
|
+
default: withCtx(() => [
|
|
177
|
+
createVNode(_component_el_radio_button, { label: "primary " }, {
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createTextVNode("primary")
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}),
|
|
183
|
+
createVNode(_component_el_radio_button, { label: "success" }, {
|
|
184
|
+
default: withCtx(() => [
|
|
185
|
+
createTextVNode("success")
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}),
|
|
189
|
+
createVNode(_component_el_radio_button, { label: "info" }, {
|
|
190
|
+
default: withCtx(() => [
|
|
191
|
+
createTextVNode("info")
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
createVNode(_component_el_radio_button, { label: "warning" }, {
|
|
196
|
+
default: withCtx(() => [
|
|
197
|
+
createTextVNode("success")
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
createVNode(_component_el_radio_button, { label: "danger" }, {
|
|
202
|
+
default: withCtx(() => [
|
|
203
|
+
createTextVNode("info")
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["modelValue"])
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
})) : createCommentVNode("", true),
|
|
213
|
+
format.value.isTag ? (openBlock(), createBlock(_component_el_form_item, {
|
|
214
|
+
key: 5,
|
|
158
215
|
label: "边框描边",
|
|
159
216
|
class: "amb-design-attr-item"
|
|
160
217
|
}, {
|
|
161
218
|
default: withCtx(() => [
|
|
162
219
|
createVNode(_component_el_switch, {
|
|
163
220
|
modelValue: format.value.hit,
|
|
164
|
-
"onUpdate:modelValue": _cache[
|
|
221
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => format.value.hit = $event),
|
|
165
222
|
"active-color": "#13ce66"
|
|
166
223
|
}, null, 8, ["modelValue"])
|
|
167
224
|
]),
|
|
168
225
|
_: 1
|
|
169
226
|
})) : createCommentVNode("", true),
|
|
170
|
-
|
|
227
|
+
__props.showEvent ? (openBlock(), createBlock(_component_el_form_item, {
|
|
228
|
+
key: 6,
|
|
171
229
|
label: "回调事件",
|
|
172
230
|
class: "amb-design-attr-item"
|
|
173
231
|
}, {
|
|
174
232
|
default: withCtx(() => [
|
|
175
233
|
createVNode(_component_el_input, {
|
|
176
234
|
modelValue: format.value.event,
|
|
177
|
-
"onUpdate:modelValue": _cache[
|
|
235
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => format.value.event = $event)
|
|
178
236
|
}, null, 8, ["modelValue"])
|
|
179
237
|
]),
|
|
180
238
|
_: 1
|
|
181
|
-
})
|
|
239
|
+
})) : createCommentVNode("", true)
|
|
182
240
|
], 64);
|
|
183
241
|
};
|
|
184
242
|
}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "./row-backgroud-color.vue3.js";
|
|
3
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const RowBackgroudColor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b203475d"]]);
|
|
5
|
-
export {
|
|
6
|
-
RowBackgroudColor as default
|
|
7
|
-
};
|
|
1
|
+
|