super-page-runtime 2.3.17-sit2 → 2.3.17-sit4

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.
@@ -7,20 +7,21 @@ import { dynamicControlTableEdit as f, disabledAllFields as p, updateFormItemEdi
7
7
  import { deepCopy as g, getBaseUrl as y } from "../common-util.js";
8
8
  import { replacePrefix as b, isMobileBrowser as h } from "agilebuilder-ui/src/utils/common-util";
9
9
  import { getFormModelFields as E, getModelFields as P } from "../page-init-util.js";
10
- import { getCustomFunc as k } from "../events/event-util.js";
11
- import { isHasFieldPermissionAuth as C } from "../table-utils.js";
12
- const v = { showElement: function(e2, t2, n2) {
13
- n2 ? O(e2, "showElement", t2) : t2.forEach((t3) => {
10
+ import { getCustomFunc as C } from "../events/event-util.js";
11
+ import { isHasFieldPermissionAuth as k } from "../table-utils.js";
12
+ import "dayjs";
13
+ const T = { showElement: function(e2, t2, n2) {
14
+ n2 ? V(e2, "showElement", t2) : t2.forEach((t3) => {
14
15
  const n3 = s(e2, t3);
15
16
  n3 && n3.show();
16
17
  });
17
18
  }, hideElement: function(e2, t2, n2) {
18
- n2 ? O(e2, "hideElement", t2) : t2.forEach((t3) => {
19
+ n2 ? V(e2, "hideElement", t2) : t2.forEach((t3) => {
19
20
  const n3 = s(e2, t3);
20
21
  n3 && n3.hide();
21
22
  });
22
23
  }, enableElement: function(e2, t2, n2) {
23
- n2 ? O(e2, "enableElement", t2) : t2.forEach((t3) => {
24
+ n2 ? V(e2, "enableElement", t2) : t2.forEach((t3) => {
24
25
  const n3 = s(e2, t3);
25
26
  if (n3) {
26
27
  const e3 = n3.getConfigure();
@@ -28,7 +29,7 @@ const v = { showElement: function(e2, t2, n2) {
28
29
  }
29
30
  });
30
31
  }, disableElement: function(e2, t2, n2) {
31
- n2 ? O(e2, "disableElement", t2) : t2.forEach((t3) => {
32
+ n2 ? V(e2, "disableElement", t2) : t2.forEach((t3) => {
32
33
  const n3 = s(e2, t3);
33
34
  if (n3) {
34
35
  const e3 = n3.getConfigure();
@@ -48,7 +49,7 @@ const v = { showElement: function(e2, t2, n2) {
48
49
  o(e2.entity, i2.startsWith("${") ? i2 : "${" + t2 + "." + i2 + "}", n2[i2]);
49
50
  });
50
51
  }, dynamicControlFormEdit: function(e2, t2, n2) {
51
- n2 ? O(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
52
+ n2 ? V(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
52
53
  }, disabledAllFields(e2) {
53
54
  p(e2);
54
55
  }, dynamicControlTableEdit(e2, t2, n2) {
@@ -96,11 +97,11 @@ const v = { showElement: function(e2, t2, n2) {
96
97
  } else if (e3.name && ("select" === e3.name && ((_j = (_i = e3.props) == null ? void 0 : _i.base) == null ? void 0 : _j.multiple) || "checkbox" === e3.name)) {
97
98
  const t2 = E(o2, e3), a2 = n(r2, t2);
98
99
  if (a2) {
99
- const e4 = V(a2.split(","), s3);
100
+ const e4 = j(a2.split(","), s3);
100
101
  i(r2, t2, e4);
101
102
  }
102
103
  } else {
103
- const t2 = E(o2, e3), a2 = V(n(r2, t2), s3);
104
+ const t2 = E(o2, e3), a2 = j(n(r2, t2), s3);
104
105
  i(r2, t2, a2);
105
106
  }
106
107
  }
@@ -111,41 +112,53 @@ const v = { showElement: function(e2, t2, n2) {
111
112
  if (e2.indexOf("__") > 0 && (t2 = e2.substring(e2.lastIndexOf("__") + 2)), t2) {
112
113
  const i2 = a(o2, t2);
113
114
  if (i2) {
114
- const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = P(t3, o3), s3 = n(r2, a2);
115
- T(i2.getTableSelectOptions(e2), s3);
115
+ const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = P(t3, o3), s3 = n(r2, a2), l3 = i2.getTableSelectOptions(e2), c3 = i2.getColumns(), u2 = {}, m2 = {};
116
+ c3 && c3.length > 0 && c3.forEach((e3) => {
117
+ "DATE" !== e3.dataType && "TIME" !== e3.dataType || (m2[e3.prop] = e3);
118
+ }), u2.formatDateColumns = m2, v(l3, s3, u2, i2);
116
119
  }
117
120
  }
118
121
  }
119
122
  return r2.data;
120
- }, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => k(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
123
+ }, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => C(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
121
124
  var _a, _b, _c, _d;
122
125
  return !(void 0 !== ((_b = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isHasFieldAuthPermission) && !((_d = (_c = e2 == null ? void 0 : e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isHasFieldAuthPermission));
123
126
  }, isHasFieldAuth(e2, t2) {
124
- C(e2, null, t2);
127
+ k(e2, null, t2);
125
128
  }, isHasFieldAuthWithTable(e2, t2, n2) {
126
- C(e2, t2, n2);
129
+ k(e2, t2, n2);
127
130
  } };
128
- function T(e2, t2) {
129
- e2 && t2 && t2.forEach((t3) => {
130
- Object.keys(e2).forEach((n2) => {
131
- const i2 = t3[n2], o2 = e2[n2], a2 = o2.options, s2 = o2.column;
132
- let r2;
133
- if (s2 && s2.componentType && ("multiselect" === s2.componentType || "checkbox" === s2.componentType)) {
134
- if (i2) {
135
- r2 = V(i2.split(","), a2);
136
- }
137
- } else r2 = V(i2, a2);
138
- t3[n2] = r2;
131
+ function v(e2, t2, n2, i2) {
132
+ if (e2 && t2) {
133
+ const o2 = i2.getSuperGridRef();
134
+ t2.forEach((t3) => {
135
+ if (n2 == null ? void 0 : n2.formatDateColumns) {
136
+ const e3 = n2.formatDateColumns;
137
+ Object.keys(e3).forEach((n3) => {
138
+ const i3 = e3[n3];
139
+ t3[n3] && (t3[n3] = o2.rowDoFormat(i3, t3[n3]));
140
+ });
141
+ }
142
+ Object.keys(e2).forEach((n3) => {
143
+ const i3 = t3[n3], o3 = e2[n3], a2 = o3.options, s2 = o3.column;
144
+ let r2;
145
+ if (s2 && s2.componentType && ("multiselect" === s2.componentType || "checkbox" === s2.componentType)) {
146
+ if (i3) {
147
+ r2 = j(i3.split(","), a2);
148
+ }
149
+ } else r2 = j(i3, a2);
150
+ t3[n3] = r2;
151
+ });
139
152
  });
140
- });
153
+ }
141
154
  }
142
- function V(e2, t2) {
155
+ function j(e2, t2) {
143
156
  let n2;
144
157
  return null != e2 && t2 && (Array.isArray(e2) ? (n2 = "", e2.forEach((i2) => {
145
- n2 = n2 + j(e2, t2) + ",";
146
- }), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = j(e2, t2))), n2;
158
+ n2 = n2 + O(e2, t2) + ",";
159
+ }), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = O(e2, t2))), n2;
147
160
  }
148
- function j(e2, t2) {
161
+ function O(e2, t2) {
149
162
  let n2 = e2;
150
163
  if (null != e2 && t2) for (let i2 = 0; i2 < t2.length; i2++) {
151
164
  const o2 = t2[i2].value, a2 = t2[i2].label ? t2[i2].label : t2[i2].name;
@@ -156,9 +169,9 @@ function j(e2, t2) {
156
169
  }
157
170
  return n2;
158
171
  }
159
- function O(e2, t2, n2) {
172
+ function V(e2, t2, n2) {
160
173
  e2.initInfo || (e2.initInfo = {}), e2.initInfo[t2] = n2;
161
174
  }
162
175
  export {
163
- v as functions
176
+ T as functions
164
177
  };
@@ -386,7 +386,8 @@ function L(e2, s2, o2, a2) {
386
386
  });
387
387
  }(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
388
388
  y(e2, s2);
389
- }).catch((e3) => {
389
+ }).catch((t2) => {
390
+ window.$message.error("导出失败..."), y(e2, s2);
390
391
  });
391
392
  }
392
393
  function B() {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as t, onMounted as i, onUnmounted as o, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
2
2
  import f from "../../object-render.vue.js";
3
- import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
4
- import { ElLoading as y, ElMessage as C } from "element-plus";
3
+ import { updateChartDatasources as v, getValueFromVariable as y } from "../../../../utils/page-helper-util.js";
4
+ import { ElLoading as h, ElMessage as C } from "element-plus";
5
5
  import b from "agilebuilder-ui/src/utils/request";
6
6
  import "agilebuilder-ui/src/utils/common-util";
7
7
  import "agilebuilder-ui/src/utils/util";
@@ -15,13 +15,14 @@ import "vue-i18n";
15
15
  import "agilebuilder-ui/src/utils/auth";
16
16
  import "axios";
17
17
  import "../../../../utils/events/print-label.js";
18
+ import "dayjs";
18
19
  const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
19
20
  } } }, setup(e2, { expose: x2 }) {
20
- const N = e2, _ = t(false), J = t({}), j = t(0);
21
+ const N = e2, _ = t(false), j = t({}), J = t(0);
21
22
  let I;
22
23
  i(() => {
23
24
  I = setTimeout(() => {
24
- J.value = JSON.parse(JSON.stringify(N.pageContext.entity));
25
+ j.value = JSON.parse(JSON.stringify(N.pageContext.entity));
25
26
  }, 200);
26
27
  }), o(() => {
27
28
  I && clearTimeout(I);
@@ -29,7 +30,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
29
30
  const k = t([]), w = () => {
30
31
  _.value = false;
31
32
  }, T = () => {
32
- const e3 = y.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
33
+ const e3 = h.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
33
34
  v(N.pageContext, N.pageContext.initChartServiceConfigs, null, false).then(() => {
34
35
  _.value = false;
35
36
  }).finally(() => {
@@ -37,26 +38,26 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
37
38
  });
38
39
  };
39
40
  function H() {
40
- N.pageContext.entity = JSON.parse(JSON.stringify(J.value)), j.value++;
41
+ N.pageContext.entity = JSON.parse(JSON.stringify(j.value)), J.value++;
41
42
  }
42
43
  function A() {
43
44
  const e3 = {};
44
45
  N.pageContext.variables.forEach((t3) => {
45
46
  const i3 = "${page." + t3.name + "}";
46
- e3[i3] = h(N.pageContext.entity, i3, null);
47
+ e3[i3] = y(N.pageContext.entity, i3, null);
47
48
  });
48
49
  let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), i2 = {};
49
50
  t2 && (i2 = JSON.parse(t2)), i2[N.configure.homeChartSettingUserId] = e3;
50
51
  const o2 = JSON.stringify(e3);
51
- window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
52
+ window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), j.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
52
53
  C.success("保存成功"), T();
53
54
  });
54
55
  }
55
56
  return x2({ openSearch: () => {
56
57
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
57
58
  } }), (t2, i2) => {
58
- const o2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
59
- return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
59
+ const o2 = l("el-empty"), v2 = l("el-form"), y2 = l("el-button"), h2 = l("el-dialog");
60
+ return r(), a(h2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: J.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(y2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(y2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(y2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
60
61
  };
61
62
  } });
62
63
  export {
@@ -1,7 +1,7 @@
1
- import r from "./card-runtime.vue2.js";
1
+ import e from "./card-runtime.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = e(r, [["__scopeId", "data-v-26138226"]]);
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = r(e, [["__scopeId", "data-v-4e203ead"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -368,6 +368,9 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
368
368
  }, handleSearch: function(e3, t2) {
369
369
  var _a;
370
370
  return (_a = ue.value) == null ? void 0 : _a.handleSearch(e3, t2);
371
+ }, getColumns: function() {
372
+ var _a;
373
+ return (_a = ue.value) == null ? void 0 : _a.getColumns();
371
374
  } }), (e3, t2) => {
372
375
  const n2 = a("super-grid");
373
376
  return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), isDialog: u(Y).isDialog, onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, z);
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
- import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
- import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
6
  import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
@@ -14,7 +14,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
14
14
  const N = E.configure.runtime ? E.configure.runtime : {};
15
15
  L.isTest ? N.value = E.configure.runtime ? E.configure.runtime : {} : L.tableRuntimes && L.tableRuntimes[B.uuid] && (B = JSON.parse(L.tableRuntimes[B.uuid].configure), N.value = B.runtime ? B.runtime : {});
16
16
  const G = O(L.code, L.version, B.uuid), H = L.entity.data, V = B.code ? B.code : G, U = k(L), z = N && N.events ? N.events : [], q = t([]), J = L.superGridItems, K = J ? J[B.uuid] : null, Q = N.style, W = N.class, X = E.pageContext.entity ? E.pageContext.entity : {};
17
- let Y = C(E.configure, V), Z = _(L.backendUrl, L.isTest);
17
+ let Y = D(E.configure, V), Z = _(L.backendUrl, L.isTest);
18
18
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
19
19
  const ee = t(false);
20
20
  let te = t(0);
@@ -37,7 +37,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
37
37
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
38
38
  }
39
39
  oe.value.showOperationButton = !(!B.props || !B.props.base) && B.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = B.props && B.props.otherSettings ? B.props.otherSettings.tableRecordMaxNum : null;
40
- let t2 = D(L, B);
40
+ let t2 = C(L, B);
41
41
  t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
42
42
  }
43
43
  function re() {
@@ -84,11 +84,11 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
84
84
  const n2 = function() {
85
85
  let e5 = [], t3 = w(E.pageContext, B.props.base.showOperationCondition);
86
86
  if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
87
- const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
87
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
88
88
  e5.push(t4);
89
89
  }
90
90
  if (t3 && Te(null, null, null, null, null, true)) {
91
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
91
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
92
92
  e5.push(t4);
93
93
  }
94
94
  return I(L, B, e5, me), e5;
@@ -178,10 +178,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
178
178
  let i2 = Te(0, 0, n2, 0, 0, a2);
179
179
  return true === i2 && (i2 = w(E.pageContext, B.props.base.showDeleteBtnCondition, n2)), i2;
180
180
  }
181
- function De(e3, t2, n2, o2, l2) {
181
+ function Ce(e3, t2, n2, o2, l2) {
182
182
  ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
183
183
  }
184
- function Ce(e3, t2, n2, o2, l2) {
184
+ function De(e3, t2, n2, o2, l2) {
185
185
  ae.value.deleteRow(l2, G, false);
186
186
  }
187
187
  function ye(e3) {
@@ -291,6 +291,9 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
291
291
  }, addRequiredClass: function(e3, t2, n2) {
292
292
  var _a2;
293
293
  (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
294
+ }, getColumns: function() {
295
+ var _a2;
296
+ return (_a2 = ae.value) == null ? void 0 : _a2.getColumns();
294
297
  } }), (e3, t2) => {
295
298
  const n2 = l("super-grid");
296
299
  return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(L).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Ee, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Le }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as a, createBlock as o, createCommentVNode as l, unref as r } from "vue";
1
+ import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as o, createBlock as a, createCommentVNode as l, unref as r } from "vue";
2
2
  import i from "./sub-table-runtime.vue.js";
3
3
  import c from "./main-table-runtime.vue.js";
4
4
  const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
@@ -75,7 +75,10 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
75
75
  }, handleSearch: function(e3, t2) {
76
76
  var _a;
77
77
  (_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
78
- } }), (e3, t2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
78
+ }, getColumns: function() {
79
+ var _a;
80
+ return (_a = b.value) == null ? void 0 : _a.getColumns();
81
+ } }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), a(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (o(), a(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
79
82
  } });
80
83
  export {
81
84
  f as default
@@ -1,7 +1,7 @@
1
1
  import e from "./label-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-9eb6b26e"]]);
4
+ const t = r(e, [["__scopeId", "data-v-2ffad4a6"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -28,7 +28,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
28
28
  W.value = e3 || [];
29
29
  } }), (e3, t2) => {
30
30
  const l2 = u("el-form-item");
31
- return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-right" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
31
+ return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
32
32
  };
33
33
  } });
34
34
  export {
@@ -1,121 +1,124 @@
1
- import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as r, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, createElementBlock as d, Fragment as h, renderList as y, createCommentVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
2
- import { setVariableValue as _, getOptionDatasFromPage as w, queryOptionDatasources as S, autoSetAfterSelect as k, getVariableValue as T } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as A, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
5
- import V from "../common/title-suffix-element.vue.js";
6
- import { $t as I } from "../../../../utils/i18n-util.js";
7
- import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
8
- import { CopyDocument as q } from "@element-plus/icons-vue";
9
- import z from "clipboard";
10
- import { ElMessage as E } from "element-plus";
11
- import { useI18n as P } from "vue-i18n";
12
- const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }, W = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, B = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
- const { t: F } = P(), U = e2, $ = t(null), G = U.pageContext.entity ? U.pageContext.entity : {};
14
- let H = j(U.pageContext, U.configure);
15
- const J = U.configure.runtime ? U.configure.runtime : {}, K = J.style, L = J.class, N = J.headerStyle, Q = J.titleExceedStyle, X = t(J.props ? J.props : {});
16
- let Y = [];
17
- const Z = "copyBtn_" + U.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
- function ee() {
19
- let e3 = T(G, H);
20
- return null != e3 && (e3 = String(e3)), X.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
1
+ import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as n, nextTick as u, resolveComponent as r, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, withKeys as d, withModifiers as h, createElementBlock as y, Fragment as x, renderList as b, createCommentVNode as C, toDisplayString as w, createTextVNode as _ } from "vue";
2
+ import { setVariableValue as S, getOptionDatasFromPage as k, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as A } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as V, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
5
+ import M from "../common/title-suffix-element.vue.js";
6
+ import { $t as q } from "../../../../utils/i18n-util.js";
7
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
8
+ import { CopyDocument as E } from "@element-plus/icons-vue";
9
+ import O from "clipboard";
10
+ import { ElMessage as P } from "element-plus";
11
+ import { useI18n as D } from "vue-i18n";
12
+ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }, F = { style: { float: "left" } }, K = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, U = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
13
+ const { t: $ } = D(), G = e2, H = t(null), J = G.pageContext.entity ? G.pageContext.entity : {};
14
+ let L = R(G.pageContext, G.configure);
15
+ const N = G.configure.runtime ? G.configure.runtime : {}, Q = N.style, X = N.class, Y = N.headerStyle, Z = N.titleExceedStyle, ee = t(N.props ? N.props : {});
16
+ let te = [];
17
+ const le = "copyBtn_" + G.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
+ function oe() {
19
+ let e3 = A(J, L);
20
+ return null != e3 && (e3 = String(e3)), ee.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
21
21
  }
22
- const te = l({ get: () => ee(), set(e3) {
23
- const t2 = ee();
24
- Y = Array.isArray(t2) ? [...t2] : t2;
22
+ const ae = l({ get: () => oe(), set(e3) {
23
+ const t2 = oe();
24
+ te = Array.isArray(t2) ? [...t2] : t2;
25
25
  let l2 = e3;
26
- if (X.value.multiple) {
27
- l2 = !!X.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
26
+ if (ee.value.multiple) {
27
+ l2 = !!ee.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
28
28
  }
29
- _(G, H, l2), null != l2 && ($.value = "");
30
- } }), le = t(X.value.options ? X.value.options : []), oe = w(U.pageContext, U.configure);
31
- oe.length > 0 && (le.value = oe);
32
- const ae = t(false), ue = U.configure.props && U.configure.props.dataOrigin ? U.configure.props.dataOrigin : {}, ne = ue.optionValueSetType;
33
- let re = [];
34
- const ie = X.value.optionconfigInfo ? X.value.optionconfigInfo : {};
35
- if ("dynamicData" == ne || "dataTable" == ne || "service" == ne) {
36
- if ("remote" == ue.filterType) {
29
+ S(J, L, l2), null != l2 && (H.value = "");
30
+ } }), ne = t(ee.value.options ? ee.value.options : []), ue = k(G.pageContext, G.configure);
31
+ ue.length > 0 && (ne.value = ue);
32
+ const re = t(false), ie = G.configure.props && G.configure.props.dataOrigin ? G.configure.props.dataOrigin : {}, se = ie.optionValueSetType;
33
+ let pe = [];
34
+ const ce = ee.value.optionconfigInfo ? ee.value.optionconfigInfo : {};
35
+ if ("dynamicData" == se || "dataTable" == se || "service" == se) {
36
+ if ("remote" == ie.filterType) {
37
37
  let e3;
38
- X.value.filterable = true, X.value.remote = true, X.value.remoteShowSuffix = true, X.value.remoteMethod = function(t2) {
39
- e3 !== t2 && (e3 = t2, ae.value = true, S(U.pageContext, ie, t2).then((e4) => {
40
- ae.value = false;
38
+ ee.value.filterable = true, ee.value.remote = true, ee.value.remoteShowSuffix = true, ee.value.remoteMethod = function(t2) {
39
+ e3 !== t2 && (e3 = t2, re.value = true, T(G.pageContext, ce, t2).then((e4) => {
40
+ re.value = false;
41
41
  }).then((e4) => {
42
- ae.value = false;
42
+ re.value = false;
43
43
  }));
44
44
  };
45
45
  }
46
- if (ue.autoSets) for (let e3 of ue.autoSets) e3.source && re.push(e3);
46
+ if (ie.autoSets) for (let e3 of ie.autoSets) e3.source && pe.push(e3);
47
47
  }
48
- U.configure && U.configure.props && U.configure.props.base && U.configure.props.base.optionProp && re.push({ source: "label", target: U.configure.props.base.optionProp }), X.value.changeMethod = function(e3) {
48
+ G.configure && G.configure.props && G.configure.props.base && G.configure.props.base.optionProp && pe.push({ source: "label", target: G.configure.props.base.optionProp }), ee.value.changeMethod = function(e3) {
49
49
  let t2, l2 = null;
50
- le.value && null != e3 && null != e3 && (l2 = le.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
51
- re.length > 0 && k(U.configure, U.pageContext, re, l2, [X.value.prop]);
50
+ ne.value && null != e3 && null != e3 && (l2 = ne.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
51
+ pe.length > 0 && j(G.configure, G.pageContext, pe, l2, [ee.value.prop]);
52
52
  l2 && l2.length > 0 && (t2 = l2[0]);
53
53
  let o2 = {};
54
54
  t2 && (o2.extendParams = t2);
55
- o2.options = le.value, o2.oldValue = Y, A(e3, U.pageContext, U.configure, "change", o2);
55
+ o2.options = ne.value, o2.oldValue = te, V(e3, G.pageContext, G.configure, "change", o2);
56
56
  };
57
- const se = X.value.monitorFields, pe = [];
58
- if (se) {
57
+ const fe = ee.value.monitorFields, ve = [];
58
+ if (fe) {
59
59
  const e3 = [];
60
- for (let t2 of se) if (t2.startsWith("${")) {
60
+ for (let t2 of fe) if (t2.startsWith("${")) {
61
61
  t2 = t2.substring(2, t2.length - 1);
62
62
  const l2 = t2.split(".");
63
- "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (pe.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
63
+ "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (ve.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
64
64
  }
65
- for (let t2 of e3) o(G[t2], () => {
66
- ve();
65
+ for (let t2 of e3) o(J[t2], () => {
66
+ de();
67
67
  });
68
68
  }
69
- let ce = "", fe = false;
70
- function ve() {
71
- fe && clearTimeout(fe), fe = setTimeout(function() {
69
+ let ge = "", me = false;
70
+ function de() {
71
+ me && clearTimeout(me), me = setTimeout(function() {
72
72
  const e3 = function() {
73
73
  let e4 = [];
74
- for (let t2 of pe) e4.push(T(G, t2));
74
+ for (let t2 of ve) e4.push(A(J, t2));
75
75
  return e4.join(",");
76
76
  }();
77
- e3 != ce && (ce = e3, ie.watchAttrValue = e3, S(U.pageContext, ie, void 0).then((e4) => {
78
- ae.value = false;
77
+ e3 != ge && (ge = e3, ce.watchAttrValue = e3, T(G.pageContext, ce, void 0).then((e4) => {
78
+ re.value = false;
79
79
  }));
80
80
  }, 200);
81
81
  }
82
82
  a(() => {
83
- fe && clearTimeout(fe);
83
+ me && clearTimeout(me);
84
84
  });
85
- const ge = t(null), me = t(null), de = t(null);
86
- function he() {
87
- const e3 = ee();
85
+ const he = t(null), ye = t(null), xe = t(null);
86
+ function be() {
87
+ const e3 = oe();
88
88
  if (null != e3 && "" !== e3 && e3.length > 0) {
89
89
  let t2 = "";
90
- return "string" == typeof e3 ? le.value.length > 0 ? le.value.forEach((l2) => {
90
+ return "string" == typeof e3 ? ne.value.length > 0 ? ne.value.forEach((l2) => {
91
91
  l2.value === e3 && (t2 = l2.label);
92
- }) : t2 = e3 : le.value.length > 0 ? (le.value.forEach((l2) => {
92
+ }) : t2 = e3 : ne.value.length > 0 ? (ne.value.forEach((l2) => {
93
93
  e3.forEach((e4) => {
94
94
  l2.value === e4 && (t2 = t2 + l2.label + ",");
95
95
  });
96
96
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
97
97
  }
98
98
  }
99
- return u(() => {
100
- const e3 = new z("#" + Z, { text: function() {
101
- return he();
99
+ return n(() => {
100
+ const e3 = new O("#" + le, { text: function() {
101
+ return be();
102
102
  } });
103
103
  e3.on("success", () => {
104
- E({ showClose: true, type: "success", message: F("superPageRuntimeMessage.copySuccess") });
104
+ P({ showClose: true, type: "success", message: $("superPageRuntimeMessage.copySuccess") });
105
105
  }), e3.on("error", (e4) => {
106
- }), n(() => {
107
- const e4 = te.value;
108
- R(e4, U.pageContext, U.configure, { formItemRef: ge.value, componentRef: me.value, titleRef: de.value, value: e4, entity: U.pageContext.entity.data, pageData: U.pageContext.entity.page });
106
+ }), u(() => {
107
+ const e4 = ae.value;
108
+ I(e4, G.pageContext, G.configure, { formItemRef: he.value, componentRef: ye.value, titleRef: xe.value, value: e4, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
109
109
  });
110
- }), B2({ updateOptions: function(e3) {
111
- le.value = e3 || [];
110
+ }), U2({ updateOptions: function(e3) {
111
+ ne.value = e3 || [];
112
112
  }, addRequiredClass: function() {
113
- $.value = M();
114
- }, getSelectItemsTitle: he }), (e3, t2) => {
115
- const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
116
- return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(I)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(A)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), default: v(() => [m("span", D, [g(l2, { id: Z }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
113
+ H.value = z();
114
+ }, getSelectItemsTitle: be, getOptions: function() {
115
+ return ne.value;
116
+ } }), (e3, t2) => {
117
+ const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), n2 = r("el-popover"), u2 = r("el-form-item");
118
+ return s(), i(u2, { ref_key: "formItemRef", ref: he, required: !!ee.value.required, class: c(f(X) + (H.value ? " " + H.value : "")), "label-width": ee.value.labelWidth, style: p(f(Q)) }, { label: v(() => [ee.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: xe, style: p({ ...f(Y), ...f(Z) }) }, [ee.value.prefixType ? (s(), i(M, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), y(x, { key: 1 }, [_(w(f(q)(ee.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(n2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: ye, style: { width: "100%" }, disabled: "disabled" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, multiple: ee.value.multiple, "collapse-tags": ee.value.collapseTags, "collapse-tags-tooltip": ee.value.collapseTagsTooltip, filterable: ee.value.filterable, "allow-create": ee.value.allowCreate, placeholder: ee.value.placeholder, "remote-show-suffix": ee.value.remoteShowSuffix, remote: ee.value.remote, "remote-method": ee.value.remoteMethod, loading: re.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
119
+ }, ["stop"]), ["space"])), onChange: ee.value.changeMethod, modelValue: ae.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ae.value = e4) }, { default: v(() => [(s(true), y(x, null, b(ne.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(V)(t3.value, e3.pageContext, e3.configure, "click", { values: ae.value }) }, { default: v(() => [t3._description_ ? (s(), y(x, { key: 0 }, [m("span", F, w(t3.label), 1), m("span", K, w(t3._description_), 1)], 64)) : C("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])])]), default: v(() => [m("span", W, [g(l2, { id: le }, { default: v(() => [g(f(E))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
117
120
  };
118
121
  } });
119
122
  export {
120
- B as default
123
+ U as default
121
124
  };
package/dist/es/style.css CHANGED
@@ -390,10 +390,10 @@
390
390
  }
391
391
  .yx-affix .yx-affix-content.is-fixed.is-bottom[data-v-a994b02d] {
392
392
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
393
- }.yx-card-box-view-main[data-v-26138226] > .el-card__header {
393
+ }.yx-card-box-view-main[data-v-4e203ead] > .el-card__header {
394
394
  position: relative;
395
395
  }
396
- .yx-card-box-view-main .yx-card-box-view-header[data-v-26138226] {
396
+ .yx-card-box-view-main .yx-card-box-view-header[data-v-4e203ead] {
397
397
  display: flex;
398
398
  flex-direction: row;
399
399
  justify-content: space-between;
@@ -401,12 +401,12 @@
401
401
  gap: 15px;
402
402
  flex: 1 1 auto;
403
403
  }
404
- .yx-card-box-view-main .yx-card-box-view-title[data-v-26138226] {
404
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-4e203ead] {
405
405
  position: relative;
406
406
  z-index: 2;
407
407
  flex: 1 1 auto;
408
408
  }
409
- .yx-card-box-view-main .yx-card-box-view-title[data-v-26138226]::after {
409
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-4e203ead]::after {
410
410
  content: " ";
411
411
  position: absolute;
412
412
  left: 0;
@@ -415,32 +415,46 @@
415
415
  right: 0;
416
416
  z-index: 0;
417
417
  }
418
- .yx-card-box-view-main[data-collapse=false][data-v-26138226] > .el-card__body {
418
+ .yx-card-box-view-main[data-collapse=false][data-v-4e203ead] > .el-card__body {
419
419
  display: none;
420
420
  }
421
- .yx-card-box-view-context[data-v-26138226] {
421
+ .yx-card-box-view-main[data-v-4e203ead] {
422
+ display: flex;
423
+ flex-direction: column;
424
+ }
425
+ .yx-card-box-view-main[data-v-4e203ead] > .el-card__body {
426
+ flex: 1;
427
+ overflow: hidden;
428
+ display: flex;
429
+ flex-direction: column;
430
+ }
431
+ .yx-card-box-view-context[data-v-4e203ead] {
432
+ flex: 1;
433
+ overflow: auto;
434
+ }
435
+ .yx-card-box-view-context[data-v-4e203ead] {
422
436
  gap: var(--layout-form-flex-gap, 15px);
423
437
  }
424
- .yx-card-box-view-context[data-v-26138226] > div {
438
+ .yx-card-box-view-context[data-v-4e203ead] > div {
425
439
  width: 100%;
426
440
  }
427
- .yx-card-box-view-context[data-v-26138226] > div[style*="display: inline-block"] {
441
+ .yx-card-box-view-context[data-v-4e203ead] > div[style*="display: inline-block"] {
428
442
  width: auto;
429
443
  }
430
- .yx-card-box-view-context[data-v-26138226] > .el-form-item {
444
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item {
431
445
  margin: 0;
432
446
  }
433
- .yx-card-box-view-context[data-v-26138226] > .el-form-item[class*=el-col-8] {
447
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item[class*=el-col-8] {
434
448
  flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
435
449
  }
436
450
  @media (max-width: 768px) {
437
- .yx-card-box-view-context[data-v-26138226] > .el-form-item[class*=el-col-8] {
451
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item[class*=el-col-8] {
438
452
  max-width: none;
439
453
  flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 1) / 2);
440
454
  }
441
455
  }
442
456
  @media (max-width: 600px) {
443
- .yx-card-box-view-context[data-v-26138226] > .el-form-item[class*=el-col-8] {
457
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item[class*=el-col-8] {
444
458
  width: 100%;
445
459
  max-width: none;
446
460
  flex: auto;
@@ -787,40 +801,40 @@
787
801
  }.el-form-item[data-v-96fc65d8] {
788
802
  margin-bottom: 0px;
789
803
  }
790
- .el-form-item[data-v-9eb6b26e] {
804
+ .el-form-item[data-v-2ffad4a6] {
791
805
  margin-bottom: 0px;
792
806
  }
793
807
 
794
- /* 整体对齐样式 - 靠右 */
795
- .form-item-align-right[data-v-9eb6b26e] {
796
- justify-content: flex-end;
808
+ /* 整体对齐样式 - 靠左 */
809
+ .form-item-align-flex-start[data-v-2ffad4a6] {
810
+ justify-content: flex-start;
797
811
  }
798
- .form-item-align-right[data-v-9eb6b26e] .el-form-item__label {
812
+ .form-item-align-flex-start[data-v-2ffad4a6] .el-form-item__label {
799
813
  flex: none;
800
814
  }
801
- .form-item-align-right[data-v-9eb6b26e] .el-form-item__content {
815
+ .form-item-align-flex-start[data-v-2ffad4a6] .el-form-item__content {
802
816
  flex: none;
803
817
  }
804
818
 
805
819
  /* 整体对齐样式 - 居中 */
806
- .form-item-align-center[data-v-9eb6b26e] {
820
+ .form-item-align-center[data-v-2ffad4a6] {
807
821
  justify-content: center;
808
822
  }
809
- .form-item-align-center[data-v-9eb6b26e] .el-form-item__label {
823
+ .form-item-align-center[data-v-2ffad4a6] .el-form-item__label {
810
824
  flex: none;
811
825
  }
812
- .form-item-align-center[data-v-9eb6b26e] .el-form-item__content {
826
+ .form-item-align-center[data-v-2ffad4a6] .el-form-item__content {
813
827
  flex: none;
814
828
  }
815
829
 
816
- /* 整体对齐样式 - 靠左 */
817
- .form-item-align-left[data-v-9eb6b26e] {
818
- justify-content: flex-start;
830
+ /* 整体对齐样式 - 靠右 */
831
+ .form-item-align-flex-end[data-v-2ffad4a6] {
832
+ justify-content: flex-end;
819
833
  }
820
- .form-item-align-left[data-v-9eb6b26e] .el-form-item__label {
834
+ .form-item-align-flex-end[data-v-2ffad4a6] .el-form-item__label {
821
835
  flex: none;
822
836
  }
823
- .form-item-align-left[data-v-9eb6b26e] .el-form-item__content {
837
+ .form-item-align-flex-end[data-v-2ffad4a6] .el-form-item__content {
824
838
  flex: none;
825
839
  }
826
840
  .amb-button-group-main[data-v-9d55ce0b] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.17-sit2",
3
+ "version": "2.3.17-sit4",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -49,7 +49,7 @@
49
49
  "@vitejs/plugin-vue-jsx": "^3.1.0",
50
50
  "@vue/eslint-config-prettier": "^8.0.0",
51
51
  "@vue/test-utils": "^2.4.4",
52
- "agilebuilder-ui": "1.1.59-sit3",
52
+ "agilebuilder-ui": "1.1.59-sit7",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",