super-page-runtime 2.2.80 → 2.2.86

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.
Files changed (41) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/standard-event.js +211 -214
  5. package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
  6. package/dist/es/components/runtime/utils/page-init-util.js +6 -5
  7. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
  11. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +127 -113
  14. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +87 -53
  15. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  16. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  18. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  20. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +38 -33
  22. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
  25. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +61 -59
  26. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +76 -72
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +8 -3
  30. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +32 -32
  32. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  33. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  35. package/dist/es/components/runtime/views/super-page-dialog.vue.js +11 -11
  36. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  37. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  38. package/dist/es/components/runtime/views/super-page.vue2.js +9 -7
  39. package/dist/es/index.js +1 -0
  40. package/dist/es/style.css +225 -99
  41. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { defineComponent as e, ref as o, onMounted as n, watch as r, resolveComponent as t, createElementBlock as i, openBlock as a, normalizeClass as u, normalizeStyle as l, unref as p, withDirectives as s, createVNode as c, createBlock as g, createCommentVNode as f, vShow as d, withCtx as m, Fragment as h, renderList as v, h as y } from "vue";
1
+ import { defineComponent as e, ref as o, onMounted as n, watch as r, resolveComponent as t, createElementBlock as i, openBlock as a, normalizeClass as u, normalizeStyle as p, unref as l, withDirectives as s, createVNode as c, createBlock as g, createCommentVNode as f, vShow as m, withCtx as d, Fragment as h, renderList as v, h as y } from "vue";
2
2
  import C from "../common/common-chart-header.vue.js";
3
- import { getSizeConfig as x, getChartDatasFromPage as b, getValueFromVariable as O, isPromise as w, setValueForVariableName as S, updateChartDatasourcesByComponent as j, caculateShowCondition as E } from "../../../../utils/page-helper-util.js";
3
+ import { getSizeConfig as b, getChartDatasFromPage as x, getValueFromVariable as O, isPromise as S, setValueForVariableName as w, updateChartDatasourcesByComponent as E, caculateShowCondition as j } from "../../../../utils/page-helper-util.js";
4
4
  import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
5
- import k from "./group-column.vue.js";
6
- import F from "./normal-column.vue.js";
5
+ import F from "./group-column.vue.js";
6
+ import k from "./normal-column.vue.js";
7
7
  import I from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn as R, getSummaryDataColumn as H, rowDataToColumn as T, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as D, getNewColumnConfig as P, summaryStatistics as U, replacePlaceholders as G, getIndexColumn as K, getHeaderCellStyleUtil as N, getRowStyleUtil as V, getCellStyleUtil as J, formatColContent as L } from "./chart-table-util.js";
9
- import { deepCopy as A } from "../../../../utils/common-util.js";
8
+ import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as V, computeFormula as _, getNewColumnConfig as z, summaryStatistics as D, replacePlaceholders as J, getIndexColumn as P, getHeaderCellStyleUtil as U, getRowStyleUtil as G, getCellStyleUtil as K, formatColContent as A } from "./chart-table-util.js";
9
+ import { deepCopy as L } from "../../../../utils/common-util.js";
10
10
  const q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: q2 }) {
11
11
  var _a;
12
- const B = e2, M = B.configure.runtime ? B.configure.runtime : {}, Q = M.style, W = M.class, X = M.dataConfig, Y = M.headerInfo ? M.headerInfo : {}, Z = o(null), ee = o(M.props.isEnableGroupHeader), oe = o([]), ne = o([]), re = o([]), te = o({}), ie = o(false), ae = o({}), ue = o({}), le = o({}), pe = [], se = o({}), ce = o({}), ge = o(null), fe = o(0);
13
- let de = [];
12
+ const B = e2, M = B.configure.runtime ? B.configure.runtime : {}, Q = M.style, W = M.class, X = M.dataConfig, Y = M.headerInfo ? M.headerInfo : {}, Z = o(null), ee = o(M.props.isEnableGroupHeader), oe = o([]), ne = o([]), re = o([]), te = o({}), ie = o(false), ae = o({}), ue = o({}), pe = o({}), le = [], se = o({}), ce = o({}), ge = o(null), fe = o(0);
13
+ let me = [];
14
14
  if (!B.configure.props.modelCustom) {
15
15
  if (ee.value) {
16
16
  const e3 = [];
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
19
19
  }), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
20
20
  if (B.configure.props.base.showIndex) {
21
21
  re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
22
- const e4 = K();
22
+ const e4 = P();
23
23
  e4 && (te.value.$index = e4);
24
24
  }
25
25
  }();
@@ -28,8 +28,8 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
28
28
  te.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (se.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (ce.value[e3.props.base.prop] = e3.formula);
29
29
  });
30
30
  }
31
- ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = R(B.configure), ie.value && (ue.value = H(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (le.value = H(B.configure, "group")));
32
- let me = 300, he = x(B.pageContext, B.configure);
31
+ ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
32
+ let de = 300, he = b(B.pageContext, B.configure);
33
33
  function ve() {
34
34
  const e3 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
35
35
  r(() => o2.reduce((e4, o3) => e4[o3], B.pageContext.entity), (e4) => {
@@ -39,11 +39,45 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
39
39
  function ye(e3) {
40
40
  if (e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
41
41
  !function(e4) {
42
- Re(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? de = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (ve(), de = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
43
- de && Ce(de, e4);
42
+ var _a2;
43
+ Re(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (ve(), me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
44
+ if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
45
+ let o2 = 10;
46
+ if ("fix" === B.configure.props.dataOrigin.itemNumSource) o2 = B.configure.props.dataOrigin.itemNumFix;
47
+ else if ("variable" === B.configure.props.dataOrigin.itemNumSource) {
48
+ o2 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable));
49
+ const n2 = B.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = n2 ? n2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(me));
50
+ r(() => t2.reduce((e5, o3) => e5[o3], B.pageContext.entity), (o3) => {
51
+ console.log("统计表格监听数据变量的变化 newVal:", o3), Ce(o3, i2, e4);
52
+ });
53
+ }
54
+ Ce(o2, me, e4);
55
+ } else be(me, e4);
44
56
  }(e3), e3.hasRender = true, X && (X.autoRefresh = false);
45
57
  }
46
- function Ce(e3, o2) {
58
+ function Ce(e3, o2, n2) {
59
+ var _a2;
60
+ if (e3 && e3 < o2.length) {
61
+ let r2 = [];
62
+ if (((_a2 = B.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) r2 = B.configure.props.dataOrigin.limitCountColumns;
63
+ else {
64
+ ne.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
65
+ r2.push(e4.props.base.prop);
66
+ });
67
+ }
68
+ if ((r2 == null ? void 0 : r2.length) > 0) {
69
+ const n3 = o2.slice(e3 - 1, o2.length), t2 = {};
70
+ let i2 = ne.value[0].props.base.prop;
71
+ "$index" === i2 && (i2 = ne.value[1].props.base.prop), n3.forEach((e4) => {
72
+ r2.forEach((o3) => {
73
+ void 0 === t2[o3] && (t2[o3] = 0), t2[o3] = t2[o3] + e4[o3];
74
+ });
75
+ }), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), t2[i2] = B.configure.props.dataOrigin.overItemAlias, o2.push(t2);
76
+ }
77
+ be(o2, n2);
78
+ } else be(o2, n2);
79
+ }
80
+ function be(e3, o2) {
47
81
  var _a2;
48
82
  if (xe("rowToColumn")) {
49
83
  if (e3 = T(e3, B.configure, ne.value), !ee.value) {
@@ -51,9 +85,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
51
85
  const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
52
86
  if ((!i2 || 0 === i2.length) && n2.length > 0) {
53
87
  const e5 = [];
54
- return e5.push(P("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
88
+ return e5.push(z("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
55
89
  if ("$GroupColumn" === o5) return;
56
- const r3 = P(o5, o5, n3 + 1, "string");
90
+ const r3 = z(o5, o5, n3 + 1, "string");
57
91
  e5.push(r3);
58
92
  }), e5;
59
93
  }
@@ -69,7 +103,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
69
103
  }), a2.forEach((o5) => {
70
104
  t2.forEach((r3) => {
71
105
  var _a3;
72
- const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = P(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
106
+ const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = z(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
73
107
  e5.push(i4);
74
108
  });
75
109
  }), e5;
@@ -77,7 +111,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
77
111
  }(B.configure, ne.value, e3);
78
112
  ne.value = o3;
79
113
  }
80
- } else xe("columnToRow") && (ee.value || (ne.value = _(B.configure)), e3 = z(e3, B.configure));
114
+ } else xe("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = V(e3, B.configure));
81
115
  if (B.configure.props.dataOrigin.dataFormatting) {
82
116
  const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
83
117
  if (o3) {
@@ -85,13 +119,13 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
85
119
  n2 && (e3 = n2);
86
120
  }
87
121
  }
88
- if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && D(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
89
- "frontend" === B.configure.pageination.type ? (fe.value = de.length, ke(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = de, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
122
+ if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && _(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
123
+ "frontend" === B.configure.pageination.type ? (fe.value = me.length, ke(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = me, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
90
124
  }(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
91
125
  const e4 = B.configure.props.highOrder.groupField;
92
126
  oe.value = function(e5, o3) {
93
127
  var _a3, _b;
94
- if (0 === le.value.length) return e5;
128
+ if (0 === pe.value.length) return e5;
95
129
  const n2 = [], r2 = (_a3 = B.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b = B.configure.items) == null ? void 0 : _b.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
96
130
  e5.forEach((e6) => {
97
131
  const n3 = o3.map((o4) => e6[o4]).join("|");
@@ -101,19 +135,19 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
101
135
  for (let e6 = 0; e6 < a2.length; e6++) {
102
136
  const o4 = a2[e6], i3 = {};
103
137
  t2 == null ? void 0 : t2.forEach((e7) => {
104
- const n3 = e7.props.base.prop, r3 = U(le.value[n3], o4, n3, B.pageContext);
138
+ const n3 = e7.props.base.prop, r3 = D(pe.value[n3], o4, n3, B.pageContext);
105
139
  i3[n3] = r3;
106
140
  }), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
107
141
  const n3 = e7.props.base.prop;
108
- i3[n3] = G(e7.props.base.summaryTitle, o4[0]);
109
- }), n2.push(i3), pe.push(n2.length - 1);
142
+ i3[n3] = J(e7.props.base.summaryTitle, o4[0]);
143
+ }), n2.push(i3), le.push(n2.length - 1);
110
144
  }
111
145
  return n2;
112
146
  }(oe.value, e4);
113
147
  }
114
148
  !function(e4) {
115
149
  if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
116
- const o3 = K();
150
+ const o3 = P();
117
151
  o3 && e4.unshift(o3);
118
152
  }
119
153
  }(ne.value);
@@ -121,35 +155,35 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
121
155
  function xe(e3) {
122
156
  return B.configure.props.dataOrigin.transition === e3 && B.configure.props.dataOrigin[e3].titleColumns && B.configure.props.dataOrigin[e3].titleColumns.length > 0 && B.configure.props.dataOrigin[e3].dataColumns && B.configure.props.dataOrigin[e3].dataColumns.length > 0;
123
157
  }
124
- function be(e3) {
158
+ function Oe(e3) {
125
159
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
126
- return N(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
160
+ return U(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
127
161
  }
128
- function Oe(e3) {
129
- return V(e3, pe, B);
162
+ function Se(e3) {
163
+ return G(e3, le, B);
130
164
  }
131
165
  function we(e3) {
132
166
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
133
- return J(e3, o2, B);
167
+ return K(e3, o2, B);
134
168
  }
135
- he && he.fixHeight && (me = he.fixHeight), he && he.maxHeight && (me = he.maxHeight), me && (me = Number(me + "")), n(() => {
136
- const e3 = b(B.pageContext, B.configure);
169
+ he && he.fixHeight && (de = he.fixHeight), he && he.maxHeight && (de = he.maxHeight), de && (de = Number(de + "")), n(() => {
170
+ const e3 = x(B.pageContext, B.configure);
137
171
  if (e3) ye(e3);
138
172
  else if ("variable" === B.configure.props.dataOrigin.dataSource) {
139
173
  ve();
140
174
  const o2 = O(B.pageContext.entity, B.configure.props.dataOrigin.variable);
141
- o2 && Ce(o2, e3);
175
+ o2 && be(o2, e3);
142
176
  }
143
177
  });
144
- const Se = (e3) => {
178
+ const Ee = (e3) => {
145
179
  const { columns: o2, data: n2 } = e3, r2 = [];
146
180
  return o2.forEach((e4, o3) => {
147
181
  if (ae.value[e4.property]) {
148
182
  const t2 = ae.value[e4.property].label;
149
- r2[o3] = y("div", {}, [G(t2, n2)]);
183
+ r2[o3] = y("div", {}, [J(t2, n2)]);
150
184
  } else if (ue.value[e4.property]) {
151
- const t2 = n2.filter((e5, o4) => !pe.includes(o4));
152
- r2[o3] = U(ue.value[e4.property], t2, e4.property, B.pageContext);
185
+ const t2 = n2.filter((e5, o4) => !le.includes(o4));
186
+ r2[o3] = D(ue.value[e4.property], t2, e4.property, B.pageContext);
153
187
  }
154
188
  }), r2;
155
189
  };
@@ -163,50 +197,50 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
163
197
  }
164
198
  } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(t2) && 0 === n2) return { rowspan: oe.value.length, colspan: 1 };
165
199
  }
166
- function Ee(e3, o2) {
167
- "frontend" === B.configure.pageination.type ? ke(e3, o2) : Fe(e3, o2);
168
- }
169
200
  function $e(e3, o2) {
170
- "frontend" === B.configure.pageination.type ? ke(e3, o2) : Fe(e3, o2);
201
+ "frontend" === B.configure.pageination.type ? ke(e3, o2) : Ie(e3, o2);
202
+ }
203
+ function Fe(e3, o2) {
204
+ "frontend" === B.configure.pageination.type ? ke(e3, o2) : Ie(e3, o2);
171
205
  }
172
206
  function ke(e3, o2) {
173
- de && (oe.value = de.slice((e3 - 1) * o2, e3 * o2));
207
+ me && (oe.value = me.slice((e3 - 1) * o2, e3 * o2));
174
208
  }
175
- function Fe(e3, o2) {
176
- B.configure.pageination.currentPageSet && S(B.pageContext.entity, B.configure.pageination.currentPageSet, e3), B.configure.pageination.pageSizeSet && S(B.pageContext.entity, B.configure.pageination.pageSizeSet, o2), j(B.pageContext, B.configure.uuid);
209
+ function Ie(e3, o2) {
210
+ B.configure.pageination.currentPageSet && w(B.pageContext.entity, B.configure.pageination.currentPageSet, e3), B.configure.pageination.pageSizeSet && w(B.pageContext.entity, B.configure.pageination.pageSizeSet, o2), E(B.pageContext, B.configure.uuid);
177
211
  }
178
- function Ie(e3) {
212
+ function Ne(e3) {
179
213
  const o2 = e3.showCondition;
180
- return E(B.pageContext, o2);
214
+ return j(B.pageContext, o2);
181
215
  }
182
216
  function Re(e3) {
183
217
  if (B.configure.props.modelCustom) {
184
218
  const o2 = $(B.pageContext, B.configure.props.modelCustom);
185
219
  if (o2) {
186
220
  const n2 = o2.apply(o2, [{ pageContext: B.pageContext, configureObj: B.configure, value: e3 }]);
187
- w(n2) ? n2.then((e4) => {
221
+ S(n2) ? n2.then((e4) => {
188
222
  ne.value = e4.columns;
189
223
  }) : ne.value = n2.columns;
190
224
  }
191
225
  }
192
226
  }
193
- function He(e3, o2, n2) {
227
+ function Te(e3, o2, n2) {
194
228
  e3.forEach((e4) => {
195
229
  const r2 = e4.props.base.prop, t2 = e4.props.base.name;
196
230
  let i2 = { name: r2, label: t2, i18nKey: t2 };
197
- e4.children && e4.childern.length > 0 && (i2.children = [], He(e4.children, i2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(i2);
231
+ e4.children && e4.childern.length > 0 && (i2.children = [], Te(e4.children, i2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(i2);
198
232
  });
199
233
  }
200
234
  return q2({ updateChartDatas: ye, exportChart: function() {
201
235
  let e3 = [], o2 = [];
202
236
  o2 = ee.value ? B.configure.props.groupHeaders : B.configure.items;
203
237
  let n2 = [];
204
- He(o2, e3, n2);
238
+ Te(o2, e3, n2);
205
239
  return { isTable: true, dataArr: function(e4) {
206
240
  let o3 = [];
207
- oe.value && (o3 = A(oe.value), o3.forEach((o4) => {
241
+ oe.value && (o3 = L(oe.value), o3.forEach((o4) => {
208
242
  e4.forEach((e5) => {
209
- const n3 = L(o4, e5.props.format, e5, B.pageContext, B.configure);
243
+ const n3 = A(o4, e5.props.format, e5, B.pageContext, B.configure);
210
244
  o4[e5.props.base.prop] = n3;
211
245
  });
212
246
  }));
@@ -214,7 +248,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
214
248
  }(n2), columns: e3 };
215
249
  } }), (o2, n2) => {
216
250
  const r2 = t("el-table");
217
- return a(), i("div", { style: l([p(Q), { display: "flex", "flex-direction": "column" }]), class: u([p(W), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: p(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, p(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": p(me), "header-cell-style": be, "row-style": Oe, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Se, "span-method": je }, { default: m(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ie(te.value[o3.columnUuid]) ? (a(), g(F, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ie(o3) ? (a(), g(F, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : f("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: Ee, onPageSizeChange: $e }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
251
+ return a(), i("div", { style: p([l(Q), { display: "flex", "flex-direction": "column" }]), class: u([l(W), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(de), "header-cell-style": Oe, "row-style": Se, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Ee, "span-method": je }, { default: d(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ne(te.value[o3.columnUuid]) ? (a(), g(k, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g(F, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ne(o3) ? (a(), g(k, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : f("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: $e, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
218
252
  };
219
253
  } });
220
254
  export {
@@ -2,21 +2,21 @@ import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a,
2
2
  import { ElMessage as p } from "element-plus";
3
3
  import { useI18n as m } from "vue-i18n";
4
4
  const c = { class: "dialog-footer" }, g = e({ __name: "remove-signer-dialog", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: g2 }) {
5
- const { t: f } = m(), v = e2, b = g2, h = t([]), k = t([]);
6
- function y(e3) {
5
+ const { t: f } = m(), v = e2, b = g2, h = t([]), y = t([]);
6
+ function k(e3) {
7
7
  h.value = e3;
8
8
  }
9
9
  function R() {
10
10
  0 !== h.value.length ? b("result", h.value) : p({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverUsers") });
11
11
  }
12
12
  return l(() => {
13
- k.value = function() {
13
+ y.value = function() {
14
14
  if (v.activeTasks && v.taskId) return v.activeTasks.filter((e3) => v.taskId !== e3.id ? e3.id : e3.ID ? e3.ID : null);
15
15
  return [];
16
16
  }();
17
17
  }), (e3, t2) => {
18
18
  const l2 = a("el-table-column"), p2 = a("el-table"), m2 = a("el-button"), g3 = a("el-dialog");
19
- return o(), s("div", null, [n(g3, { "model-value": "", title: e3.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: t2[1] || (t2[1] = (e4) => b("open")), onOpend: t2[2] || (t2[2] = (e4) => b("opend")), onClose: t2[3] || (t2[3] = (e4) => b("close")), onClosed: t2[4] || (t2[4] = (e4) => b("closed")) }, { footer: r(() => [u("div", c, [n(m2, { type: "primary", onClick: R }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(m2, { onClick: t2[0] || (t2[0] = (t3) => e3.$emit("close")) }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: r(() => [n(p2, { data: k.value, border: "", style: { width: "100%" }, onSelect: y }, { default: r(() => [n(l2, { type: "selection", width: "55" }), n(l2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
19
+ return o(), s("div", null, [n(g3, { "model-value": "", title: e3.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: t2[1] || (t2[1] = (e4) => b("open")), onOpend: t2[2] || (t2[2] = (e4) => b("opend")), onClose: t2[3] || (t2[3] = (e4) => b("close")), onClosed: t2[4] || (t2[4] = (e4) => b("closed")) }, { footer: r(() => [u("div", c, [n(m2, { type: "primary", onClick: R }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(m2, { type: "default", onClick: t2[0] || (t2[0] = (t3) => e3.$emit("close")) }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: r(() => [n(p2, { data: y.value, border: "", style: { width: "100%" }, onSelect: k }, { default: r(() => [n(l2, { type: "selection", width: "55" }), n(l2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
20
20
  };
21
21
  } });
22
22
  export {
@@ -22,7 +22,7 @@ const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dial
22
22
  $();
23
23
  }), v2({ refreshConditionList: $ }), (e3, t2) => {
24
24
  const l2 = o("el-input"), c2 = o("el-col"), m2 = o("el-button"), v3 = o("el-row"), h2 = o("el-table-column"), y2 = o("Delete"), b2 = o("el-icon"), x = o("el-table"), O = o("el-dialog");
25
- return n(), a("div", null, [s(O, { "model-value": "", title: e3.$t("superPageRuntimeMessage.saveCondition"), "close-on-click-modal": false, "append-to-body": "", width: "40%", "max-height": "400", onOpen: t2[2] || (t2[2] = (e4) => _("open")), onOpend: t2[3] || (t2[3] = (e4) => _("opend")), onClose: t2[4] || (t2[4] = (e4) => _("close")), onClosed: t2[5] || (t2[5] = (e4) => _("closed")) }, { footer: u(() => [d("div", f, [s(m2, { type: "primary", onClick: R }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), s(m2, { onClick: t2[1] || (t2[1] = (e4) => _("close")) }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: u(() => [s(v3, { style: { "padding-bottom": "10px" }, gutter: 10 }, { default: u(() => [s(c2, { span: 18 }, { default: u(() => [s(l2, { modelValue: w.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => w.value = e4), placeholder: e3.$t("superPageRuntimeMessage.pleaseInputConditionName") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }), s(c2, { span: 6 }, { default: u(() => [s(m2, { type: "primary", onClick: P }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.save")), 1)]), _: 1 })]), _: 1 })]), _: 1 }), s(x, { data: M.value, border: "", style: { width: "100%" }, onSelect: k }, { default: u(() => [s(h2, { type: "selection", align: "center", width: "55" }), s(h2, { prop: "name", label: e3.$t("superPageRuntimeMessage.conditionName") }, null, 8, ["label"]), s(h2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "60" }, { default: u((e4) => [s(b2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (t3) => {
25
+ return n(), a("div", null, [s(O, { "model-value": "", title: e3.$t("superPageRuntimeMessage.saveCondition"), "close-on-click-modal": false, "append-to-body": "", width: "40%", "max-height": "400", onOpen: t2[2] || (t2[2] = (e4) => _("open")), onOpend: t2[3] || (t2[3] = (e4) => _("opend")), onClose: t2[4] || (t2[4] = (e4) => _("close")), onClosed: t2[5] || (t2[5] = (e4) => _("closed")) }, { footer: u(() => [d("div", f, [s(m2, { type: "primary", onClick: R }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), s(m2, { type: "default", onClick: t2[1] || (t2[1] = (e4) => _("close")) }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: u(() => [s(v3, { style: { "padding-bottom": "10px" }, gutter: 10 }, { default: u(() => [s(c2, { span: 18 }, { default: u(() => [s(l2, { modelValue: w.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => w.value = e4), placeholder: e3.$t("superPageRuntimeMessage.pleaseInputConditionName") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }), s(c2, { span: 6 }, { default: u(() => [s(m2, { type: "primary", onClick: P }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.save")), 1)]), _: 1 })]), _: 1 })]), _: 1 }), s(x, { data: M.value, border: "", style: { width: "100%" }, onSelect: k }, { default: u(() => [s(h2, { type: "selection", align: "center", width: "55" }), s(h2, { prop: "name", label: e3.$t("superPageRuntimeMessage.conditionName") }, null, 8, ["label"]), s(h2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "60" }, { default: u((e4) => [s(b2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (t3) => {
26
26
  return l3 = e4.row, void g(l3.id).then(() => {
27
27
  p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
28
28
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, resolveComponent as l, createElementBlock as o, openBlock as n, createVNode as a, withCtx as s, createElementVNode as i, createTextVNode as u, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as t, resolveComponent as l, createElementBlock as o, openBlock as n, createVNode as a, withCtx as s, createElementVNode as u, createTextVNode as i, toDisplayString as d } from "vue";
2
2
  import { ElMessage as r } from "element-plus";
3
3
  import { useI18n as p } from "vue-i18n";
4
4
  const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: c2 }) {
@@ -11,7 +11,7 @@ const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog",
11
11
  }
12
12
  return (t2, r2) => {
13
13
  const p2 = l("el-table-column"), c3 = l("el-table"), g2 = l("el-button"), h2 = l("el-dialog");
14
- return n(), o("div", null, [a(h2, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: r2[1] || (r2[1] = (e3) => f("open")), onOpend: r2[2] || (r2[2] = (e3) => f("opend")), onClose: r2[3] || (r2[3] = (e3) => f("close")), onClosed: r2[4] || (r2[4] = (e3) => f("closed")) }, { footer: s(() => [i("div", m, [a(g2, { type: "primary", onClick: b }, { default: s(() => [u(d(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(g2, { onClick: r2[0] || (r2[0] = (e3) => f("close")) }, { default: s(() => [u(d(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [a(c3, { data: e2.taskInformitions, border: "", style: { width: "100%" }, onSelect: v }, { default: s(() => [a(p2, { type: "selection", width: "55" }), a(p2, { prop: "nodeName", label: t2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), a(p2, { prop: "nodeId", label: t2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
14
+ return n(), o("div", null, [a(h2, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: r2[1] || (r2[1] = (e3) => f("open")), onOpend: r2[2] || (r2[2] = (e3) => f("opend")), onClose: r2[3] || (r2[3] = (e3) => f("close")), onClosed: r2[4] || (r2[4] = (e3) => f("closed")) }, { footer: s(() => [u("div", m, [a(g2, { type: "primary", onClick: b }, { default: s(() => [i(d(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(g2, { type: "default", onClick: r2[0] || (r2[0] = (e3) => f("close")) }, { default: s(() => [i(d(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [a(c3, { data: e2.taskInformitions, border: "", style: { width: "100%" }, onSelect: v }, { default: s(() => [a(p2, { type: "selection", width: "55" }), a(p2, { prop: "nodeName", label: t2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), a(p2, { prop: "nodeId", label: t2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
15
15
  };
16
16
  } });
17
17
  export {
@@ -1,7 +1,7 @@
1
1
  import r from "./card-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = e(r, [["__scopeId", "data-v-fc66efb1"]]);
4
+ const t = e(r, [["__scopeId", "data-v-26138226"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
1
+ import { defineComponent as e, computed as o, ref as t, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as v, createTextVNode as x, toDisplayString as C } from "vue";
2
2
  import { ElCard as b } from "element-plus";
3
3
  import { SuperIcon as h } from "agilebuilder-ui";
4
4
  import { ArrowUp as k, ArrowDown as w } from "@element-plus/icons-vue";
@@ -9,19 +9,19 @@ const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
9
9
  var _a, _b;
10
10
  const _ = e2;
11
11
  _.configure.items || (_.configure.items = []);
12
- const R = t(() => {
12
+ const R = o(() => {
13
13
  var _a2;
14
14
  return [true, void 0].includes((_a2 = _.configure.props) == null ? void 0 : _a2.isCollapse);
15
- }), z = o(null), D = o(!((_a = _.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = _.configure.props) == null ? void 0 : _b.isCollapseShow)), q = _.configure.runtime ? _.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
15
+ }), z = t(null), D = t(!((_a = _.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = _.configure.props) == null ? void 0 : _b.isCollapseShow)), q = _.configure.runtime ? _.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
16
16
  return i(() => {
17
17
  n(() => {
18
18
  T(null, _.pageContext, _.configure, { componentRef: z.value, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
19
19
  });
20
20
  }), V2({ test: function() {
21
21
  _.configure.props.title = "teee";
22
- } }), (e3, t2) => {
23
- const o2 = r("el-button");
24
- return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (t3, o3) => (s(), l(S, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
22
+ } }), (e3, o2) => {
23
+ const t2 = r("el-link");
24
+ return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(t2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
25
25
  };
26
26
  } });
27
27
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./YxAffix.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-d053fb6d"]]);
4
+ const r = o(e, [["__scopeId", "data-v-9c39a9f5"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,76 +1,81 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, createElementBlock as r, openBlock as s, createCommentVNode as u, createElementVNode as f, normalizeStyle as c, normalizeClass as d, renderSlot as p } from "vue";
2
- const v = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: v2 }) {
3
- const m = e2, w = v2, h = t(null), g = t(null), x = t(false), y = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = () => {
1
+ import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, resolveDirective as r, createElementBlock as s, openBlock as u, normalizeStyle as f, withDirectives as c, normalizeClass as d, renderSlot as v } from "vue";
2
+ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: p2 }) {
3
+ const h = e2, m = p2, g = t(null), w = t(null), x = t(false), y = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = (e3) => {
4
+ e3.contentRect.height && (y.value.height = e3.contentRect.height);
5
+ }, S = () => {
4
6
  try {
5
- if (!g.value) return;
6
- const e3 = g.value.getBoundingClientRect(), t2 = T.value;
7
+ if (!w.value) return;
8
+ const e3 = w.value.getBoundingClientRect(), t2 = T.value;
7
9
  if (t2 === window) {
8
- const t3 = "top" === m.position ? e3.top <= m.offset : e3.bottom >= window.innerHeight - m.offset;
9
- B.value = 0, S(t3, e3);
10
- } else if (m.stickyInScrollContainer) {
10
+ const t3 = "top" === h.position ? e3.top <= h.offset : e3.bottom >= window.innerHeight - h.offset;
11
+ B.value = 0, R(t3, e3);
12
+ } else if (h.stickyInScrollContainer) {
11
13
  const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
12
- const t3 = ["top"].includes(m.position), o3 = ["bottom"].includes(m.position);
13
- if (!h.value) return { isTop: t3, isBottom: o3 };
14
- const n3 = h.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
14
+ const t3 = ["top"].includes(h.position), o3 = ["bottom"].includes(h.position);
15
+ if (!g.value) return { isTop: t3, isBottom: o3 };
16
+ const n3 = g.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
15
17
  return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 <= 0, isFixBottom: o3 && a2 <= 0 };
16
18
  })(o2);
17
- B.value = l2 ?? 0, S(n2 || i2 || false, e3);
19
+ B.value = l2 ?? 0, R(n2 || i2 || false, e3);
18
20
  }
19
21
  } catch (e3) {
20
22
  console.error(e3);
21
23
  }
22
- }, S = (e3, t2) => {
24
+ }, R = (e3, t2) => {
23
25
  var _a;
24
- e3 === x.value && ((_a = y.value) == null ? void 0 : _a.height) === `${t2.height}px` || (x.value = e3, w("change", e3), y.value = e3 ? { width: "100%", height: `${t2.height}px` } : {});
25
- }, C = () => {
26
- requestAnimationFrame(E);
26
+ t2.height && (e3 === x.value && ((_a = y.value) == null ? void 0 : _a.height) === `${t2.height}px` || (x.value = e3, m("change", e3), y.value = e3 ? { width: "100%", height: `${t2.height}px` } : {}));
27
+ }, z = () => {
28
+ requestAnimationFrame(S);
27
29
  };
28
- let L;
29
- const k = () => {
30
- x.value = false, clearTimeout(L), L = window.setTimeout(() => {
31
- E();
30
+ let C;
31
+ const L = () => {
32
+ x.value = false, clearTimeout(C), C = window.setTimeout(() => {
33
+ S();
32
34
  }, 100);
33
35
  };
34
36
  o(() => {
35
37
  setTimeout(() => {
36
38
  n(() => {
37
39
  try {
38
- m.enableIntervalUpdate && (I.value = setInterval(C, m.enableIntervalTime));
40
+ h.enableIntervalUpdate && (I.value = setInterval(z, h.enableIntervalTime));
39
41
  const e3 = (() => {
40
- if (m.autoDetectParentScroll && g.value) {
42
+ if (h.autoDetectParentScroll && w.value) {
41
43
  const e4 = [];
42
- let t2 = g.value.parentElement;
44
+ let t2 = w.value.parentElement;
43
45
  for (; t2 && t2 !== document.body; ) {
44
46
  const { overflowY: o2 } = window.getComputedStyle(t2);
45
47
  /(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
46
48
  }
47
49
  return [...e4, window];
48
50
  }
49
- if ("string" == typeof m.target) {
50
- const e4 = document.querySelector(m.target);
51
+ if ("string" == typeof h.target) {
52
+ const e4 = document.querySelector(h.target);
51
53
  return [...e4 ? [e4] : [], window];
52
54
  }
53
55
  return [window];
54
56
  })();
55
- console.log("检测父级滚动节点", e3), b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", C)), window.addEventListener("resize", k), E();
57
+ console.log("检测父级滚动节点", e3), b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
56
58
  } catch (e3) {
57
59
  console.error(e3);
58
60
  }
59
61
  });
60
62
  }, 100);
61
63
  }), i(() => {
62
- T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", C)), window.removeEventListener("resize", k), clearTimeout(L), I.value && clearInterval(I.value);
64
+ T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", z)), window.removeEventListener("resize", L), clearTimeout(C), I.value && clearInterval(I.value);
63
65
  }), l(() => {
64
66
  n(() => {
65
- C();
67
+ z();
66
68
  });
67
69
  });
68
- const z = a(() => {
69
- var _a;
70
- return x.value ? { position: "fixed", width: `${(_a = g.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + B.value}px` } : { position: "relative" };
70
+ const F = a(() => {
71
+ var _a, _b;
72
+ return x.value && ((_a = w.value) == null ? void 0 : _a.offsetWidth) ? { position: "fixed", width: `${(_b = w.value) == null ? void 0 : _b.offsetWidth}px`, zIndex: h.zIndex, [h.position]: `${h.offset + B.value}px` } : { position: "relative" };
71
73
  });
72
- return (e3, t2) => (s(), r("div", { ref_key: "affixMainRef", ref: h, class: "yx-affix" }, [x.value ? (s(), r("div", { key: 0, style: c(y.value), class: "yx-affix-placeholder" }, null, 4)) : u("", true), f("div", { ref_key: "affixRef", ref: g, style: c(z.value), class: d({ "yx-affix-content": true, "is-fixed": x.value, "is-top": "top" === m.position, "is-bottom": "bottom" === m.position }) }, [p(e3.$slots, "default", {}, void 0, true)], 6)], 512));
74
+ return (e3, t2) => {
75
+ const o2 = r("resize");
76
+ return u(), s("div", { ref_key: "affixMainRef", ref: g, class: "yx-affix", style: f({ height: x.value ? y.value.height : void 0 }) }, [c((u(), s("div", { ref_key: "affixRef", ref: w, style: f(F.value), class: d([{ "is-fixed": x.value, "is-top": "top" === h.position, "is-bottom": "bottom" === h.position }, "yx-affix-content"]) }, [v(e3.$slots, "default", {}, void 0, true)], 6)), [[o2, E]])], 4);
77
+ };
73
78
  } });
74
79
  export {
75
- v as default
80
+ p as default
76
81
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./tabs-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(t, [["__scopeId", "data-v-3a587c94"]]);
4
+ const r = e(t, [["__scopeId", "data-v-0cf3e10d"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./tools-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = t(o, [["__scopeId", "data-v-445a411e"]]);
4
+ const e = t(o, [["__scopeId", "data-v-89de1a38"]]);
5
5
  export {
6
6
  e as default
7
7
  };