super-page-designer 0.0.1-tmp5 → 0.0.1-tmp6
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/data-table-util.js +2 -5
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- 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/component/composite-header.css +8 -8
- 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 +4 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin.css +3 -3
- 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 +16 -6
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +2 -3
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +1 -2
- package/dist/es/components/design/views/assemblys/data/table/table-design.css +11 -11
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +36 -24
- package/dist/es/components/design/views/assemblys/data/table/table-design2.css +25 -25
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +3 -4
- 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/attr-event.css +5 -5
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +2 -3
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue3.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/title.vue.js +2 -2
- 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/components/design/views/design/page-event/page-event-container.vue.js +5 -17
- package/dist/es/components/design/views/design/page-event/page-event-content.css +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +3 -4
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +1 -2
- package/dist/lib/components/design/utils/data-table-util.js +2 -5
- package/dist/lib/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/data/component/attr-style.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/data/component/composite-header.css +8 -8
- package/dist/lib/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/data/component/composite-header.vue2.js +4 -7
- package/dist/lib/components/design/views/assemblys/data/component/data-origin.css +3 -3
- package/dist/lib/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/data/component/data-origin.vue2.js +16 -6
- package/dist/lib/components/design/views/assemblys/data/component/table-children-column.vue.js +2 -3
- package/dist/lib/components/design/views/assemblys/data/table/table-attr-base.vue.js +0 -1
- package/dist/lib/components/design/views/assemblys/data/table/table-attr.vue2.js +1 -2
- package/dist/lib/components/design/views/assemblys/data/table/table-design.css +11 -11
- package/dist/lib/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/data/table/table-design.vue2.js +36 -24
- package/dist/lib/components/design/views/assemblys/data/table/table-design2.css +25 -25
- package/dist/lib/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +3 -4
- package/dist/lib/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +2 -2
- package/dist/lib/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +2 -2
- package/dist/lib/components/design/views/assemblys/form/common/attr-event.css +5 -5
- package/dist/lib/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/form/common/attr-event.vue2.js +2 -3
- package/dist/lib/components/design/views/assemblys/form/common/dimension-input.vue3.js +2 -2
- package/dist/lib/components/design/views/assemblys/form/common/title.vue.js +2 -2
- package/dist/lib/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue.js +1 -1
- package/dist/lib/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +1 -1
- package/dist/lib/components/design/views/design/page-event/page-event-container.vue.js +5 -17
- package/dist/lib/components/design/views/design/page-event/page-event-content.css +1 -1
- package/dist/lib/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/lib/components/design/views/design/page-event/page-event-content.vue2.js +3 -4
- package/dist/lib/components/design/views/design/view/assemblys-container.vue.js +1 -2
- package/package.json +1 -1
- package/dist/es/components/design/utils/eventBus.js +0 -10
- package/dist/lib/components/design/utils/eventBus.js +0 -9
- /package/dist/es/components/design/views/assemblys/form/common/{dimension-input.vue.js → dimension-input.vue2.js} +0 -0
- /package/dist/lib/components/design/views/assemblys/form/common/{dimension-input.vue.js → dimension-input.vue2.js} +0 -0
package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js
CHANGED
|
@@ -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$1 from "../../common/common-attr-size.vue.js";
|
|
4
|
-
/* empty css
|
|
4
|
+
/* empty css */
|
|
5
5
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
6
6
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -5,7 +5,6 @@ import { getComponentEventOptions } from "../../../utils/assemblys-config.js";
|
|
|
5
5
|
import { convertToExploreTreeDatas } from "../../../utils/page-explore-util.js";
|
|
6
6
|
import _sfc_main$1 from "../view/assemblys-container-explore.vue.js";
|
|
7
7
|
import { getUuidv4 } from "../../../utils/common-util.js";
|
|
8
|
-
import eventBus from "../../../utils/eventBus.js";
|
|
9
8
|
const _hoisted_1 = ["title"];
|
|
10
9
|
const _hoisted_2 = ["title"];
|
|
11
10
|
const _hoisted_3 = ["title"];
|
|
@@ -70,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
69
|
winHeight.value = window.innerHeight;
|
|
71
70
|
eventTableHeight.value = window.innerHeight - 220;
|
|
72
71
|
});
|
|
73
|
-
eventBus.$on("changeEventInfo", (eventInfo) => {
|
|
72
|
+
window["$eventBus"].$on("changeEventInfo", (eventInfo) => {
|
|
74
73
|
if (eventInfo && eventInfo.type === "title") {
|
|
75
74
|
eventResult.value.forEach((item) => {
|
|
76
75
|
if (item.uuid === eventInfo.customEvent.uuid) {
|
|
@@ -96,12 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
95
|
if (!configure.customEvents) {
|
|
97
96
|
configure.customEvents = [];
|
|
98
97
|
}
|
|
99
|
-
treeData.value = convertToExploreTreeDatas(
|
|
100
|
-
designItems,
|
|
101
|
-
null,
|
|
102
|
-
cachePageItemMap,
|
|
103
|
-
eventResult
|
|
104
|
-
);
|
|
98
|
+
treeData.value = convertToExploreTreeDatas(designItems, null, cachePageItemMap, eventResult);
|
|
105
99
|
if (eventResult.value) {
|
|
106
100
|
eventResult.value.forEach((event) => {
|
|
107
101
|
const customEvent = getCustomEventByEventName(event.eventName);
|
|
@@ -165,9 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
165
159
|
}
|
|
166
160
|
function packageEventTableDisable(myComponentEventTypes) {
|
|
167
161
|
const componentUuid = currentComponent.value ? currentComponent.value.uuid : null;
|
|
168
|
-
const hasAddEventReusult = componentUuid ? eventResult.value.filter(
|
|
169
|
-
(event) => event.componentUuid === componentUuid
|
|
170
|
-
) : null;
|
|
162
|
+
const hasAddEventReusult = componentUuid ? eventResult.value.filter((event) => event.componentUuid === componentUuid) : null;
|
|
171
163
|
if (hasAddEventReusult && hasAddEventReusult.length > 0) {
|
|
172
164
|
myComponentEventTypes.forEach((element) => {
|
|
173
165
|
const eventType = element.name;
|
|
@@ -336,9 +328,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
336
328
|
);
|
|
337
329
|
}
|
|
338
330
|
if (searchInfo) {
|
|
339
|
-
searchResult = searchResult.filter(
|
|
340
|
-
(event) => event.title && event.title.indexOf(searchInfo) >= 0
|
|
341
|
-
);
|
|
331
|
+
searchResult = searchResult.filter((event) => event.title && event.title.indexOf(searchInfo) >= 0);
|
|
342
332
|
}
|
|
343
333
|
eventResult.value = searchResult;
|
|
344
334
|
getUnUseEventResult();
|
|
@@ -350,9 +340,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
350
340
|
const searchInfo = searchUnUseItemName.value;
|
|
351
341
|
let searchResult = unUseEventResult.value;
|
|
352
342
|
if (searchInfo) {
|
|
353
|
-
searchResult = searchResult.filter(
|
|
354
|
-
(event) => event.title && event.title.indexOf(searchInfo) >= 0
|
|
355
|
-
);
|
|
343
|
+
searchResult = searchResult.filter((event) => event.title && event.title.indexOf(searchInfo) >= 0);
|
|
356
344
|
}
|
|
357
345
|
unUseEventResult.value = searchResult;
|
|
358
346
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./page-event-content.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const pageEventContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const pageEventContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-45dc0488"]]);
|
|
5
5
|
export {
|
|
6
6
|
pageEventContent as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,6 @@ import { defineComponent, ref, onMounted, resolveComponent, openBlock, createEle
|
|
|
2
2
|
import { ElMessage } from "element-plus";
|
|
3
3
|
import config from "./config.vue.js";
|
|
4
4
|
import { standardButtonOperations, getStandardOperationLabel } from "../../../utils/assemblys-config.js";
|
|
5
|
-
import eventBus from "../../../utils/eventBus.js";
|
|
6
5
|
const _hoisted_1 = { style: { "margin": "10px" } };
|
|
7
6
|
const _hoisted_2 = { style: { "padding-right": "10px" } };
|
|
8
7
|
const _hoisted_3 = { key: 1 };
|
|
@@ -63,15 +62,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
62
|
}
|
|
64
63
|
function changeTitle() {
|
|
65
64
|
props.eventForm.title = myCustomEvent.title;
|
|
66
|
-
eventBus.$emit("changeEventInfo", { customEvent: myCustomEvent, type: "title" });
|
|
65
|
+
window["$eventBus"].$emit("changeEventInfo", { customEvent: myCustomEvent, type: "title" });
|
|
67
66
|
}
|
|
68
67
|
function changeFuncName() {
|
|
69
68
|
props.eventForm.eventName = myCustomEvent.eventName;
|
|
70
|
-
eventBus.$emit("changeEventInfo", { customEvent: myCustomEvent, type: "eventName" });
|
|
69
|
+
window["$eventBus"].$emit("changeEventInfo", { customEvent: myCustomEvent, type: "eventName" });
|
|
71
70
|
}
|
|
72
71
|
function changeFuncParam() {
|
|
73
72
|
props.eventForm.funcParam = myCustomEvent.funcParam;
|
|
74
|
-
eventBus.$emit("changeEventInfo", { customEvent: myCustomEvent, type: "funcParam" });
|
|
73
|
+
window["$eventBus"].$emit("changeEventInfo", { customEvent: myCustomEvent, type: "funcParam" });
|
|
75
74
|
}
|
|
76
75
|
function initEventOptions() {
|
|
77
76
|
if (configure.customEvents) {
|
|
@@ -3,7 +3,6 @@ import _sfc_main$1 from "./assemblys-container-list.vue.js";
|
|
|
3
3
|
import _sfc_main$2 from "./assemblys-container-explore.vue.js";
|
|
4
4
|
import _sfc_main$3 from "./assemblys-container-template.vue.js";
|
|
5
5
|
import _sfc_main$4 from "../page-event/page-event-container.vue.js";
|
|
6
|
-
import eventBus from "../../../utils/eventBus.js";
|
|
7
6
|
const _hoisted_1 = { class: "amb-assembly-header" };
|
|
8
7
|
const _hoisted_2 = { class: "amb-assembly-header-type" };
|
|
9
8
|
const _hoisted_3 = { class: "amb-design-assembly-list" };
|
|
@@ -74,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
73
|
$emit("onSelectWidget", selIndex, selConfigure);
|
|
75
74
|
}
|
|
76
75
|
const isShowEvent = ref(true);
|
|
77
|
-
eventBus.$on("editEvent", ({ configureObj, event }) => {
|
|
76
|
+
window["$eventBus"].$on("editEvent", ({ configureObj, event }) => {
|
|
78
77
|
selectPageEventTab();
|
|
79
78
|
configureObjVal.value = configureObj;
|
|
80
79
|
editEventVal.value = event;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const commonUtil = require("./common-util.js");
|
|
4
|
-
const eventBus = require("./eventBus.js");
|
|
5
4
|
function formatConditionList(conditionList, attributeMap, fieldMap) {
|
|
6
5
|
if (conditionList) {
|
|
7
6
|
const jsonStr = JSON.parse(conditionList);
|
|
@@ -15,9 +14,7 @@ function formatConditionList(conditionList, attributeMap, fieldMap) {
|
|
|
15
14
|
for (var i = 0; i < conditionList.length; i++) {
|
|
16
15
|
const item = conditionList[i];
|
|
17
16
|
if (item && item.propName && attributeMap) {
|
|
18
|
-
const operatorsArr = getOperators(
|
|
19
|
-
fieldMap[item.propName]
|
|
20
|
-
);
|
|
17
|
+
const operatorsArr = getOperators(fieldMap[item.propName]);
|
|
21
18
|
if (operatorsArr && operatorsArr.length > 0) {
|
|
22
19
|
const operator = operatorsArr.filter((operItem) => {
|
|
23
20
|
return operItem.name === item.operator;
|
|
@@ -272,7 +269,7 @@ function getTopGroupHeaderColumnList(groupHeaders, columnItems) {
|
|
|
272
269
|
item.isLeaf = true;
|
|
273
270
|
}
|
|
274
271
|
});
|
|
275
|
-
eventBus.$emit("setFieldGroup", compositeHeaderFieldGroup);
|
|
272
|
+
window["$eventBus"].$emit("setFieldGroup", compositeHeaderFieldGroup);
|
|
276
273
|
columnItems.forEach((item) => {
|
|
277
274
|
if (item.props.base && item.props.base.prop == "$selection") {
|
|
278
275
|
topGroupHeaderList.unshift(item);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const assemblysConfig = require("../../../../utils/assemblys-config.js");
|
|
4
4
|
require("../../../../../../stores/page-store.js");
|
|
5
|
-
;/* empty css
|
|
5
|
+
;/* empty css */
|
|
6
6
|
const commonIconBind_vue_vue_type_script_setup_true_lang = require("../../common/common-icon-bind.vue.js");
|
|
7
7
|
const http = require("agilebuilder-ui/src/utils/request");
|
|
8
8
|
const commonFunctionCode_vue_vue_type_script_setup_true_lang = require("../../common/common-function-code.vue.js");
|
|
@@ -3,7 +3,7 @@ const vue = require("vue");
|
|
|
3
3
|
const assemblysConfig = require("../../../../utils/assemblys-config.js");
|
|
4
4
|
require("@element-plus/icons-vue");
|
|
5
5
|
const commonAttrSize_vue_vue_type_script_setup_true_lang = require("../../common/common-attr-size.vue.js");
|
|
6
|
-
;/* empty css
|
|
6
|
+
;/* empty css */
|
|
7
7
|
require("@element-plus/icons");
|
|
8
8
|
require("agilebuilder-ui/src/utils/request");
|
|
9
9
|
const dataoriginInputTable_vue_vue_type_script_setup_true_lang = require("../../form/common/dataorigin-input-table.vue.js");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
|
-
;/* empty css
|
|
3
|
+
;/* empty css */
|
|
4
4
|
const rowBackgroudColor = require("./row-backgroud-color.vue.js");
|
|
5
5
|
const commonStylePosition_vue_vue_type_script_setup_true_lang = require("../../common/common-style-position.vue.js");
|
|
6
6
|
const commonStyleMargin_vue_vue_type_script_setup_true_lang = require("../../common/common-style-margin.vue.js");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
li[data-v-
|
|
2
|
+
li[data-v-4524bd8e] {
|
|
3
3
|
color: #333;
|
|
4
4
|
}
|
|
5
|
-
.context-menu[data-v-
|
|
5
|
+
.context-menu[data-v-4524bd8e] {
|
|
6
6
|
position: fixed;
|
|
7
7
|
background: #fff;
|
|
8
8
|
z-index: 999;
|
|
@@ -10,7 +10,7 @@ li[data-v-73667c88] {
|
|
|
10
10
|
margin: 0;
|
|
11
11
|
margin-top: 30px;
|
|
12
12
|
}
|
|
13
|
-
.context-menu li[data-v-
|
|
13
|
+
.context-menu li[data-v-4524bd8e] {
|
|
14
14
|
min-width: 75px;
|
|
15
15
|
height: 28px;
|
|
16
16
|
line-height: 28px;
|
|
@@ -23,15 +23,15 @@ li[data-v-73667c88] {
|
|
|
23
23
|
/* background: #5893ef;*/
|
|
24
24
|
/* color: #fff;*/
|
|
25
25
|
/*}*/
|
|
26
|
-
.context-menuLi[data-v-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
.context-menuLi[data-v-4524bd8e]:hover {
|
|
27
|
+
background: #5893ef;
|
|
28
|
+
color: #fff;
|
|
29
29
|
}
|
|
30
|
-
.context-menu[data-v-
|
|
30
|
+
.context-menu[data-v-4524bd8e] {
|
|
31
31
|
border: 1px solid #eee;
|
|
32
32
|
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
33
33
|
border-radius: 5px;
|
|
34
34
|
}
|
|
35
|
-
li[data-v-
|
|
35
|
+
li[data-v-4524bd8e] {
|
|
36
36
|
list-style-type: none;
|
|
37
37
|
}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
const compositeHeader_vue_vue_type_script_setup_true_lang = require("./composite-header.vue2.js");
|
|
3
3
|
;/* empty css */
|
|
4
4
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
5
|
-
const CompositeHeader = /* @__PURE__ */ _pluginVue_exportHelper(compositeHeader_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-
|
|
5
|
+
const CompositeHeader = /* @__PURE__ */ _pluginVue_exportHelper(compositeHeader_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-4524bd8e"]]);
|
|
6
6
|
module.exports = CompositeHeader;
|
|
@@ -4,7 +4,6 @@ const iconsVue = require("@element-plus/icons-vue");
|
|
|
4
4
|
const commonUtil = require("../../../../utils/common-util.js");
|
|
5
5
|
const elementPlus = require("element-plus");
|
|
6
6
|
const dataTableUtil = require("../../../../utils/data-table-util.js");
|
|
7
|
-
const eventBus = require("../../../../utils/eventBus.js");
|
|
8
7
|
const _hoisted_1 = { key: 0 };
|
|
9
8
|
const _hoisted_2 = { style: { "display": "flex", "margin": "8px 0" } };
|
|
10
9
|
const _hoisted_3 = { key: 0 };
|
|
@@ -58,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
const fieldGroup = vue.ref([]);
|
|
61
|
-
eventBus.$on("setFieldGroup", (value) => {
|
|
60
|
+
window["$eventBus"].$on("setFieldGroup", (value) => {
|
|
62
61
|
if (value.length > 0) {
|
|
63
62
|
fieldGroup.value = value;
|
|
64
63
|
console.log("%c描述-164737", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", fieldGroup.value);
|
|
@@ -91,9 +90,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
91
90
|
notChooseListColumns.value = [];
|
|
92
91
|
listColumns.forEach((column) => {
|
|
93
92
|
if (column.props.base.prop !== "$selection" && column.props.base.prop !== "$index" && column.props.base.prop !== "operation") {
|
|
94
|
-
const hasColumns = groupHeaders.value.filter(
|
|
95
|
-
(item) => item.columnUuid && item.columnUuid === column.uuid
|
|
96
|
-
);
|
|
93
|
+
const hasColumns = groupHeaders.value.filter((item) => item.columnUuid && item.columnUuid === column.uuid);
|
|
97
94
|
if (!hasColumns || hasColumns.length === 0) {
|
|
98
95
|
notChooseListColumns.value.push(column);
|
|
99
96
|
}
|
|
@@ -373,7 +370,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
373
370
|
}
|
|
374
371
|
}
|
|
375
372
|
function hadleDragStart(draggingNode, event) {
|
|
376
|
-
eventBus.$emit("hadleDragging", true);
|
|
373
|
+
window["$eventBus"].$emit("hadleDragging", true);
|
|
377
374
|
dragNode.value = draggingNode;
|
|
378
375
|
}
|
|
379
376
|
function handleDrop(draggingNode, dropNode, dropType, ev) {
|
|
@@ -426,7 +423,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
426
423
|
}
|
|
427
424
|
}
|
|
428
425
|
setTimeout(() => {
|
|
429
|
-
eventBus.$emit("hadleDragging", false);
|
|
426
|
+
window["$eventBus"].$emit("hadleDragging", false);
|
|
430
427
|
}, 50);
|
|
431
428
|
console.log("%c描述-155324", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", dropData);
|
|
432
429
|
}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
const dataOrigin_vue_vue_type_script_setup_true_lang = require("./data-origin.vue2.js");
|
|
3
3
|
;/* empty css */
|
|
4
4
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
5
|
-
const DataOrigin = /* @__PURE__ */ _pluginVue_exportHelper(dataOrigin_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-
|
|
5
|
+
const DataOrigin = /* @__PURE__ */ _pluginVue_exportHelper(dataOrigin_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-d2060470"]]);
|
|
6
6
|
module.exports = DataOrigin;
|
|
@@ -9,7 +9,6 @@ const commonSelectTable_vue_vue_type_script_setup_true_lang = require("../../com
|
|
|
9
9
|
const Icons = require("@element-plus/icons");
|
|
10
10
|
const pageTableUtil = require("../../../../utils/page-table-util.js");
|
|
11
11
|
require("uuid");
|
|
12
|
-
const eventBus = require("../../../../utils/eventBus.js");
|
|
13
12
|
const stateButton = require("../../common/state-button.vue.js");
|
|
14
13
|
const dataOriginServiceIn_vue_vue_type_script_setup_true_lang = require("../../form/common/data-origin-service-in.vue.js");
|
|
15
14
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -64,7 +63,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
63
|
}
|
|
65
64
|
function saveCondition(table) {
|
|
66
65
|
props.configure.props.dataOrigin["sqlFilterCondition"] = JSON.stringify(table);
|
|
67
|
-
console.log(
|
|
66
|
+
console.log(
|
|
67
|
+
"%c描述-142553",
|
|
68
|
+
"color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",
|
|
69
|
+
props.configure.props.dataOrigin["sqlFilterCondition"]
|
|
70
|
+
);
|
|
68
71
|
}
|
|
69
72
|
function closeDefaultQuery() {
|
|
70
73
|
defaultQueryVisible.value = false;
|
|
@@ -74,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
77
|
}
|
|
75
78
|
function setConfigure(tableData) {
|
|
76
79
|
props.configure.items = tableData;
|
|
77
|
-
eventBus.$emit("reloadTable");
|
|
80
|
+
window["$eventBus"].$emit("reloadTable");
|
|
78
81
|
columnConfigClose();
|
|
79
82
|
}
|
|
80
83
|
function selectTable() {
|
|
@@ -119,7 +122,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
122
|
returnVisible.value = false;
|
|
120
123
|
}
|
|
121
124
|
function removeReturnSet(rowVal) {
|
|
122
|
-
props.configure.props.dataOrigin.returnSetList = props.configure.props.dataOrigin.returnSetList.filter(
|
|
125
|
+
props.configure.props.dataOrigin.returnSetList = props.configure.props.dataOrigin.returnSetList.filter(
|
|
126
|
+
(item) => item != rowVal
|
|
127
|
+
);
|
|
123
128
|
}
|
|
124
129
|
function columnConfigClose() {
|
|
125
130
|
columnConfigVisible.value = false;
|
|
@@ -338,7 +343,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
338
343
|
key: index,
|
|
339
344
|
onClick: ($event) => seleteSort(index),
|
|
340
345
|
style: { "margin-top": "10px" },
|
|
341
|
-
class: vue.normalizeClass(
|
|
346
|
+
class: vue.normalizeClass(
|
|
347
|
+
atPresentSortIndex.value === index ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline"
|
|
348
|
+
)
|
|
342
349
|
}, [
|
|
343
350
|
vue.createVNode(_component_el_select, {
|
|
344
351
|
modelValue: item.name,
|
|
@@ -440,7 +447,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
440
447
|
]),
|
|
441
448
|
_: 1
|
|
442
449
|
}, 512), [
|
|
443
|
-
[
|
|
450
|
+
[
|
|
451
|
+
vue.vShow,
|
|
452
|
+
__props.remote && (__props.configure.props.dataOrigin.optionValueSetType === "dataTable" || __props.configure.props.dataOrigin.optionValueSetType === "service")
|
|
453
|
+
]
|
|
444
454
|
]),
|
|
445
455
|
__props.configure.props.dataOrigin.optionValueSetType === "service" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
446
456
|
key: 4,
|
package/dist/lib/components/design/views/assemblys/data/component/table-children-column.vue.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const formDesignUtil = require("../../../../utils/form-design-util.js");
|
|
4
4
|
const vueDraggablePlus = require("vue-draggable-plus");
|
|
5
|
-
const eventBus = require("../../../../utils/eventBus.js");
|
|
6
5
|
const commonUtil = require("../../../../utils/common-util.js");
|
|
7
6
|
const objectDesign_vue_vue_type_script_setup_true_lang = require("../../object-design.vue.js");
|
|
8
7
|
const elementPlus = require("element-plus");
|
|
@@ -50,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
49
|
// table 表格总体数据
|
|
51
50
|
};
|
|
52
51
|
emit("closeMenuVisible");
|
|
53
|
-
eventBus.$emit("selectColumn", obj);
|
|
52
|
+
window["$eventBus"].$emit("selectColumn", obj);
|
|
54
53
|
setHeaderLabel(column.label);
|
|
55
54
|
} else {
|
|
56
55
|
return elementPlus.ElMessage.warning("组合表头顶级菜单不能进行列配置");
|
|
@@ -84,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
const compositeDragging = vue.ref(false);
|
|
87
|
-
eventBus.$on("hadleDragging", (val) => {
|
|
86
|
+
window["$eventBus"].$on("hadleDragging", (val) => {
|
|
88
87
|
compositeDragging.value = val;
|
|
89
88
|
});
|
|
90
89
|
function onSelectWidget(selIndex, objConfigure) {
|
|
@@ -6,7 +6,6 @@ const commonAttrSize_vue_vue_type_script_setup_true_lang = require("../../common
|
|
|
6
6
|
const dataLinkage_vue_vue_type_script_setup_true_lang = require("../../form/common/data-linkage.vue.js");
|
|
7
7
|
const commonVariableBind = require("../../common/common-variable-bind.vue.js");
|
|
8
8
|
const commonUtil = require("../../../../utils/common-util.js");
|
|
9
|
-
require("../../../../utils/eventBus.js");
|
|
10
9
|
require("agilebuilder-ui/src/utils/request");
|
|
11
10
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
11
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -9,7 +9,6 @@ const attrHeader = require("../../form/common/attr-header.vue.js");
|
|
|
9
9
|
const tablecolumnAttrBase_vue_vue_type_script_setup_true_lang = require("./tablecolumn-attr-base.vue.js");
|
|
10
10
|
const tablecolumnAttrStyle_vue_vue_type_script_setup_true_lang = require("./tablecolumn-attr-style.vue.js");
|
|
11
11
|
const tablecolumnAttrEvent_vue_vue_type_script_setup_true_lang = require("./tablecolumn-attr-event.vue.js");
|
|
12
|
-
const eventBus = require("../../../../utils/eventBus.js");
|
|
13
12
|
require("../../../../utils/assemblys-config.js");
|
|
14
13
|
const _hoisted_1 = {
|
|
15
14
|
key: 0,
|
|
@@ -40,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
39
|
let currentConfigType = vue.ref("base");
|
|
41
40
|
const ColumnData = vue.ref({});
|
|
42
41
|
const tableConfigure = vue.ref({});
|
|
43
|
-
eventBus.$on("selectColumn", (val) => {
|
|
42
|
+
window["$eventBus"].$on("selectColumn", (val) => {
|
|
44
43
|
ColumnData.value = val.columnData;
|
|
45
44
|
tableConfigure.value = val.tableConfigure;
|
|
46
45
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
/*不显示列样式*/
|
|
3
|
-
.hiddenBorder{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
.hiddenBorder {
|
|
4
|
+
border-right: solid 1px #ebebeb !important;
|
|
5
|
+
border-left: solid 1px #ebebeb !important;
|
|
6
|
+
background-color: #ebebeb !important;
|
|
7
7
|
}
|
|
8
8
|
/*选中列样式*/
|
|
9
|
-
.addBorder{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
.addBorder {
|
|
10
|
+
border-right: solid 1px #5893ef !important;
|
|
11
|
+
border-left: solid 1px #5893ef !important;
|
|
12
|
+
background-color: #5893ef !important;
|
|
13
|
+
color: #ffffff;
|
|
14
14
|
}
|
|
15
15
|
.ghost {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
opacity: 0.5;
|
|
17
|
+
background: #c8ebfb;
|
|
18
18
|
}
|
|
@@ -3,5 +3,5 @@ const tableDesign_vue_vue_type_script_setup_true_lang = require("./table-design.
|
|
|
3
3
|
;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const tableDesign = /* @__PURE__ */ _pluginVue_exportHelper(tableDesign_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-
|
|
6
|
+
const tableDesign = /* @__PURE__ */ _pluginVue_exportHelper(tableDesign_vue_vue_type_script_setup_true_lang, [["__scopeId", "data-v-03944dbc"]]);
|
|
7
7
|
module.exports = tableDesign;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
|
-
const eventBus = require("../../../../utils/eventBus.js");
|
|
4
3
|
const vueDraggablePlus = require("vue-draggable-plus");
|
|
5
4
|
const formDesignUtil = require("../../../../utils/form-design-util.js");
|
|
6
5
|
require("../../../../utils/assemblys-config.js");
|
|
@@ -33,9 +32,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
32
|
setup(__props, { emit: __emit }) {
|
|
34
33
|
const props = __props;
|
|
35
34
|
const emit = __emit;
|
|
36
|
-
const tableData = vue.ref([
|
|
37
|
-
{}
|
|
38
|
-
]);
|
|
35
|
+
const tableData = vue.ref([{}]);
|
|
39
36
|
const currentPage = vue.ref(1);
|
|
40
37
|
const pageSize = vue.ref(1);
|
|
41
38
|
const designStyle = vue.ref({});
|
|
@@ -79,31 +76,42 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
76
|
}
|
|
80
77
|
});
|
|
81
78
|
});
|
|
82
|
-
eventBus.$on("setHiddenColumsName", (data) => {
|
|
79
|
+
window["$eventBus"].$on("setHiddenColumsName", (data) => {
|
|
83
80
|
if (!data.value) {
|
|
84
81
|
hiddenColumsName.value.push(data.name);
|
|
85
82
|
} else {
|
|
86
83
|
hiddenColumsName.value = hiddenColumsName.value.filter((item) => item != data.name);
|
|
87
84
|
}
|
|
88
85
|
});
|
|
89
|
-
vue.watch(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
86
|
+
vue.watch(
|
|
87
|
+
props.configure.style,
|
|
88
|
+
() => {
|
|
89
|
+
formDesignUtil.caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
90
|
+
props.configure.runtime.style = designStyle.value;
|
|
91
|
+
props.configure.runtime.class = designClass.value;
|
|
92
|
+
props.configure.runtime.headerStyle = designHeaderStyle.value;
|
|
93
|
+
},
|
|
94
|
+
{ immediate: true }
|
|
95
|
+
);
|
|
96
|
+
vue.watch(
|
|
97
|
+
props.configure.props,
|
|
98
|
+
() => {
|
|
99
|
+
formDesignUtil.caculateComponentProps(props.configure, designProperty);
|
|
100
|
+
getRestsParameter();
|
|
101
|
+
props.configure.runtime.props = designProperty.value;
|
|
102
|
+
},
|
|
103
|
+
{ immediate: true }
|
|
104
|
+
);
|
|
105
|
+
vue.watch(
|
|
106
|
+
() => props.configure.props.isChangeGroupHeader,
|
|
107
|
+
() => {
|
|
108
|
+
if (props.configure.props.isChangeGroupHeader) {
|
|
109
|
+
listColumns.value = dataTableUtil.getColumnsWithGroupHeader(props.configure);
|
|
110
|
+
tableRef.value.doLayout();
|
|
111
|
+
}
|
|
104
112
|
}
|
|
105
|
-
|
|
106
|
-
eventBus.$on("reloadTable", () => {
|
|
113
|
+
);
|
|
114
|
+
window["$eventBus"].$on("reloadTable", () => {
|
|
107
115
|
listColumns.value = dataTableUtil.getColumnsWithGroupHeader(props.configure);
|
|
108
116
|
tableRef.value.doLayout();
|
|
109
117
|
});
|
|
@@ -118,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
118
126
|
let obj = {
|
|
119
127
|
columnData: {}
|
|
120
128
|
};
|
|
121
|
-
eventBus.$emit("selectColumn", obj);
|
|
129
|
+
window["$eventBus"].$emit("selectColumn", obj);
|
|
122
130
|
}
|
|
123
131
|
function headerContextmenu(column, event) {
|
|
124
132
|
var evt = event || window.event;
|
|
@@ -186,7 +194,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
186
194
|
};
|
|
187
195
|
props.configure.items.splice(columnDataIndex.value + 1, 0, newObj);
|
|
188
196
|
if (props.configure.props.base.isEnableGroupHeader) {
|
|
189
|
-
dataTableUtil.addColumnToGroupHeaders(
|
|
197
|
+
dataTableUtil.addColumnToGroupHeaders(
|
|
198
|
+
props.configure.items[columnDataIndex.value + 1],
|
|
199
|
+
null,
|
|
200
|
+
props.configure.props.groupHeaders
|
|
201
|
+
);
|
|
190
202
|
}
|
|
191
203
|
} else if (type === "deleteNode") {
|
|
192
204
|
elementPlus.ElMessageBox.confirm("当前操作会删除当前列", "Warning", {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
|
|
2
|
-
li[data-v-
|
|
3
|
-
|
|
2
|
+
li[data-v-03944dbc] {
|
|
3
|
+
color: #333;
|
|
4
4
|
}
|
|
5
|
-
.context-menu[data-v-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
.context-menu[data-v-03944dbc] {
|
|
6
|
+
position: fixed;
|
|
7
|
+
background: #fff;
|
|
8
|
+
z-index: 999;
|
|
9
|
+
padding: 5px;
|
|
10
|
+
margin: 0;
|
|
11
|
+
margin-top: 30px;
|
|
12
12
|
}
|
|
13
|
-
.context-menu li[data-v-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
.context-menu li[data-v-03944dbc] {
|
|
14
|
+
min-width: 75px;
|
|
15
|
+
height: 28px;
|
|
16
|
+
line-height: 28px;
|
|
17
|
+
text-align: left;
|
|
18
|
+
color: #1a1a1a;
|
|
19
|
+
cursor: pointer;
|
|
20
20
|
}
|
|
21
|
-
.context-menu li[data-v-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
.context-menu li[data-v-03944dbc]:hover {
|
|
22
|
+
background: #5893ef;
|
|
23
|
+
color: #fff;
|
|
24
24
|
}
|
|
25
|
-
.context-menu[data-v-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
.context-menu[data-v-03944dbc] {
|
|
26
|
+
border: 1px solid #eee;
|
|
27
|
+
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
28
|
+
border-radius: 5px;
|
|
29
29
|
}
|
|
30
|
-
li[data-v-
|
|
31
|
-
|
|
30
|
+
li[data-v-03944dbc] {
|
|
31
|
+
list-style-type: none;
|
|
32
32
|
}
|