super-page-runtime 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +60 -52
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/common-util.js +62 -47
- package/dist/es/components/runtime/utils/events/standard-event.js +3 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +22 -22
- package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +60 -47
- package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
- package/dist/es/components/runtime/utils/table-utils.js +57 -32
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +10 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +29 -21
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +129 -129
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -22
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +48 -48
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +23 -22
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +60 -51
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +69 -67
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/style.css +82 -82
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as l, 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 f, gridSelectionChange as d, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
6
|
-
import { popupToPage as
|
|
6
|
+
import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as M, getCellStyleUtil as F, getHeaderCellStyleUtil as $ } from "../../chart/table/chart-table-util.js";
|
|
@@ -26,9 +26,9 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
26
26
|
return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, L);
|
|
27
27
|
} }), ae = A;
|
|
28
28
|
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
|
|
29
|
+
const le = t(null);
|
|
30
|
+
function ie() {
|
|
31
|
+
le.value && (oe.value.subTableData = null, le.value.reloadSubTableData(G));
|
|
32
32
|
}
|
|
33
33
|
function ue(e3) {
|
|
34
34
|
if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = B.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = B.entity.data, oe.value.extraParam.contextMap = B.entity.context, oe.value.extraParam.taskMap = B.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
|
|
@@ -90,7 +90,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
90
90
|
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
|
|
91
91
|
e5.push(t4);
|
|
92
92
|
}
|
|
93
|
-
return
|
|
93
|
+
return R(B, N, e5, me), e5;
|
|
94
94
|
}();
|
|
95
95
|
oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
|
|
96
96
|
}(), c(oe.value, z, B, N);
|
|
@@ -105,20 +105,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
105
105
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
106
106
|
const o2 = n2.propName;
|
|
107
107
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
108
|
-
t2[e3].indexOf(o2) >= 0 &&
|
|
108
|
+
t2[e3].indexOf(o2) >= 0 && ie();
|
|
109
109
|
}
|
|
110
110
|
}), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
|
|
111
|
-
|
|
111
|
+
ie();
|
|
112
112
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
113
113
|
!function(e5) {
|
|
114
114
|
Ee(e5), fe = setTimeout(() => {
|
|
115
|
-
|
|
115
|
+
le.value && (le.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
|
|
116
116
|
}, 10);
|
|
117
117
|
}(e4);
|
|
118
118
|
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
119
|
-
|
|
119
|
+
le.value.pickFileDone(e4);
|
|
120
120
|
}), P.$on(G + "-scanDone", (e4) => {
|
|
121
|
-
|
|
121
|
+
le.value.scanDone(e4);
|
|
122
122
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
123
123
|
}), o(() => {
|
|
124
124
|
pe && clearTimeout(pe), fe && clearTimeout(fe);
|
|
@@ -130,16 +130,16 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
130
130
|
if (!e3) return;
|
|
131
131
|
return ge.value[e3.uuid] = e3, he;
|
|
132
132
|
}
|
|
133
|
-
function he(e3, t2, n2, o2, a2,
|
|
134
|
-
const
|
|
135
|
-
u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click",
|
|
133
|
+
function he(e3, t2, n2, o2, a2, l2) {
|
|
134
|
+
const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: l2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[l2.sourceButton.uuid], r2 = N;
|
|
135
|
+
u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", i2);
|
|
136
136
|
}
|
|
137
|
-
function Se(e3, t2, n2, o2, a2,
|
|
137
|
+
function Se(e3, t2, n2, o2, a2, l2) {
|
|
138
138
|
if (!w(L.pageContext, N.props.base.showOperationCondition)) return false;
|
|
139
|
-
const
|
|
139
|
+
const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
|
|
140
140
|
let r2 = true;
|
|
141
|
-
if (
|
|
142
|
-
const e4 =
|
|
141
|
+
if (i2 && null !== i2) {
|
|
142
|
+
const e4 = i2.get("all_fields");
|
|
143
143
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
144
144
|
}
|
|
145
145
|
if (true === r2 && V && u2 && null !== u2) {
|
|
@@ -148,20 +148,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
148
148
|
}
|
|
149
149
|
return r2;
|
|
150
150
|
}
|
|
151
|
-
function we(e3, t2, n2, o2, a2,
|
|
152
|
-
let
|
|
153
|
-
return true ===
|
|
151
|
+
function we(e3, t2, n2, o2, a2, l2) {
|
|
152
|
+
let i2 = Se();
|
|
153
|
+
return true === i2 && (i2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), i2;
|
|
154
154
|
}
|
|
155
|
-
function Te(e3, t2, n2, o2, a2,
|
|
156
|
-
const
|
|
155
|
+
function Te(e3, t2, n2, o2, a2, l2) {
|
|
156
|
+
const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
|
|
157
157
|
let r2 = true;
|
|
158
|
-
if (
|
|
159
|
-
const e4 =
|
|
158
|
+
if (i2 && null !== i2) {
|
|
159
|
+
const e4 = i2.get("all_fields");
|
|
160
160
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
161
161
|
}
|
|
162
162
|
if (true === r2 && V && u2 && null !== u2) {
|
|
163
163
|
let e4 = u2.get(V);
|
|
164
|
-
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (
|
|
164
|
+
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (l2) r2 = true;
|
|
165
165
|
else {
|
|
166
166
|
const t3 = function(e5) {
|
|
167
167
|
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
@@ -172,27 +172,27 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
172
172
|
}
|
|
173
173
|
return r2;
|
|
174
174
|
}
|
|
175
|
-
function xe(e3, t2, n2, o2, a2,
|
|
176
|
-
let
|
|
177
|
-
return true ===
|
|
175
|
+
function xe(e3, t2, n2, o2, a2, l2) {
|
|
176
|
+
let i2 = Te(0, 0, n2, 0, 0, l2);
|
|
177
|
+
return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
|
|
178
178
|
}
|
|
179
179
|
function Ce(e3, t2, n2, o2, a2) {
|
|
180
|
-
|
|
180
|
+
le.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2 });
|
|
181
181
|
}
|
|
182
182
|
function De(e3, t2, n2, o2, a2) {
|
|
183
|
-
|
|
183
|
+
le.value.deleteRow(a2, G, false);
|
|
184
184
|
}
|
|
185
185
|
function ye(e3) {
|
|
186
186
|
T(X, Y, e3);
|
|
187
187
|
}
|
|
188
188
|
function Pe(e3) {
|
|
189
|
-
B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] = { pageSize
|
|
189
|
+
B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ie(e3) {
|
|
192
192
|
const t2 = e3.key, n2 = e3.value;
|
|
193
193
|
B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Re(e3) {
|
|
196
196
|
const t2 = B.code + "_";
|
|
197
197
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
198
198
|
}
|
|
@@ -245,7 +245,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
245
245
|
const e3 = re();
|
|
246
246
|
e3 ? de(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
|
|
247
247
|
}(), j2({ createRow: function() {
|
|
248
|
-
return
|
|
248
|
+
return le.value.createRow(G);
|
|
249
249
|
}, getSelections: function() {
|
|
250
250
|
return J.value;
|
|
251
251
|
}, getSelectionIds: function() {
|
|
@@ -258,34 +258,34 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
258
258
|
}, getTableConfigure: function() {
|
|
259
259
|
return N;
|
|
260
260
|
}, validatorSunTableListData: function() {
|
|
261
|
-
return
|
|
261
|
+
return le.value.validatorSunTableListData();
|
|
262
262
|
}, getValue: Ne, setValue: Ee, getTableSelectOptions: function() {
|
|
263
|
-
if (
|
|
263
|
+
if (le.value) return le.value.getTableSelectOptions(G);
|
|
264
264
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
265
|
-
|
|
265
|
+
le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
|
|
266
266
|
}, doLayout: function(e3) {
|
|
267
|
-
|
|
267
|
+
le.value && le.value.doLayout(e3);
|
|
268
268
|
}, changeOperationAddState: function(e3) {
|
|
269
|
-
|
|
269
|
+
le.value && le.value.changeOperationAddState(e3);
|
|
270
270
|
}, scrollTo: function(e3, t2) {
|
|
271
|
-
|
|
271
|
+
le.value && le.value.scrollTo(e3, t2);
|
|
272
272
|
}, setScrollTop: function(e3) {
|
|
273
|
-
|
|
273
|
+
le.value && le.value.setScrollTop(e3);
|
|
274
274
|
}, setScrollLeft: function(e3) {
|
|
275
|
-
|
|
275
|
+
le.value && le.value.setScrollLeft(e3);
|
|
276
276
|
}, getSuperGridRef: function() {
|
|
277
|
-
return
|
|
277
|
+
return le.value;
|
|
278
278
|
}, getSuperGridTableRef: function() {
|
|
279
|
-
return
|
|
279
|
+
return le.value.getSuperGridRef();
|
|
280
280
|
}, setCurrentRowIndex: function(e3) {
|
|
281
281
|
var _a;
|
|
282
|
-
(_a =
|
|
282
|
+
(_a = le.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
283
283
|
}, setScrollTopByRowIndex: function(e3) {
|
|
284
284
|
var _a;
|
|
285
|
-
(_a =
|
|
285
|
+
(_a = le.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
286
286
|
} }), (e3, t2) => {
|
|
287
287
|
const n2 = a("super-grid");
|
|
288
|
-
return
|
|
288
|
+
return i(), l("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: le, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
|
|
289
289
|
};
|
|
290
290
|
} });
|
|
291
291
|
export {
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t,
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
s.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
|
|
14
|
-
const S = c.configure.runtime ? c.configure.runtime : {};
|
|
15
|
-
S.style, S.class;
|
|
16
|
-
const v = t(null);
|
|
17
|
-
function m(e3) {
|
|
18
|
-
c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as o, createBlock as l, createCommentVNode as a, unref as r } from "vue";
|
|
2
|
+
import i from "./sub-table-runtime.vue.js";
|
|
3
|
+
import c from "./main-table-runtime.vue.js";
|
|
4
|
+
const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
|
|
5
|
+
const s = e2, g = s.pageContext.pageType, p = t(null), d = s.configure.uuid, v = s.pageContext.superGridItems, S = v ? v[d] : null;
|
|
6
|
+
p.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
|
|
7
|
+
const T = s.configure.runtime ? s.configure.runtime : {};
|
|
8
|
+
T.style, T.class;
|
|
9
|
+
const C = t(true), b = t(null);
|
|
10
|
+
let m = null;
|
|
11
|
+
function E(e3) {
|
|
12
|
+
s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
19
13
|
}
|
|
20
|
-
return
|
|
21
|
-
|
|
14
|
+
return n(() => {
|
|
15
|
+
m && clearTimeout(m);
|
|
16
|
+
}), f2({ refresh: function(e3, t2, n2, u2) {
|
|
17
|
+
if (g && "list" === g) return b.value.refresh(e3, t2, n2, u2);
|
|
22
18
|
}, createRow: function() {
|
|
23
|
-
return
|
|
19
|
+
return b.value.createRow();
|
|
24
20
|
}, clearSelections: function() {
|
|
25
|
-
return
|
|
21
|
+
return b.value.clearSelections();
|
|
26
22
|
}, getSelections: function() {
|
|
27
|
-
return
|
|
23
|
+
return b.value.getSelections();
|
|
28
24
|
}, getSelectionIds: function() {
|
|
29
|
-
return
|
|
25
|
+
return b.value.getSelectionIds();
|
|
30
26
|
}, getTableConfigure: function() {
|
|
31
|
-
return
|
|
27
|
+
return b.value.getTableConfigure();
|
|
32
28
|
}, isDeleteChange: function(e3) {
|
|
33
|
-
|
|
29
|
+
g && "list" === g && b.value.isDeleteChange(e3);
|
|
34
30
|
}, validatorSunTableListData: function() {
|
|
35
|
-
if (
|
|
31
|
+
if (g && "form" === g) return b.value.validatorSunTableListData();
|
|
36
32
|
}, showMobileSearch: function() {
|
|
37
|
-
|
|
33
|
+
b.value.showMobileSearch();
|
|
38
34
|
}, getTableSelectOptions: function() {
|
|
39
|
-
if (
|
|
35
|
+
if (b.value) return b.value.getTableSelectOptions();
|
|
40
36
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
41
|
-
|
|
37
|
+
b.value && b.value.dynamicControlTableEdit(e3, t2, n2);
|
|
42
38
|
}, getTableUuid: function() {
|
|
43
|
-
return
|
|
39
|
+
return s.configure.uuid;
|
|
44
40
|
}, doLayout: function(e3) {
|
|
45
|
-
|
|
41
|
+
b.value && b.value.doLayout(e3);
|
|
46
42
|
}, changeOperationAddState: function(e3) {
|
|
47
|
-
|
|
43
|
+
b.value && b.value.changeOperationAddState(e3);
|
|
48
44
|
}, scrollTo: function(e3, t2) {
|
|
49
45
|
var _a;
|
|
50
|
-
(_a =
|
|
46
|
+
(_a = b.value) == null ? void 0 : _a.scrollTo(e3, t2);
|
|
51
47
|
}, setScrollTop: function(e3) {
|
|
52
48
|
var _a;
|
|
53
|
-
(_a =
|
|
49
|
+
(_a = b.value) == null ? void 0 : _a.setScrollTop(e3);
|
|
54
50
|
}, setScrollLeft: function(e3) {
|
|
55
51
|
var _a;
|
|
56
|
-
(_a =
|
|
52
|
+
(_a = b.value) == null ? void 0 : _a.setScrollLeft(e3);
|
|
57
53
|
}, getSuperGridRef: function() {
|
|
58
54
|
var _a;
|
|
59
|
-
return (_a =
|
|
55
|
+
return (_a = b.value) == null ? void 0 : _a.getSuperGridRef();
|
|
60
56
|
}, getSuperGridTableRef: function() {
|
|
61
57
|
var _a;
|
|
62
|
-
return (_a =
|
|
58
|
+
return (_a = b.value) == null ? void 0 : _a.getSuperGridTableRef();
|
|
63
59
|
}, setCurrentRowIndex: function(e3) {
|
|
64
60
|
var _a;
|
|
65
|
-
(_a =
|
|
61
|
+
(_a = b.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
66
62
|
}, setScrollTopByRowIndex: function(e3) {
|
|
67
63
|
var _a;
|
|
68
|
-
(_a =
|
|
69
|
-
}
|
|
64
|
+
(_a = b.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
65
|
+
}, reloadSubTable: function() {
|
|
66
|
+
C.value = false, m = setTimeout(() => {
|
|
67
|
+
C.value = true;
|
|
68
|
+
}, 10);
|
|
69
|
+
} }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), l(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (o(), l(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
|
|
70
70
|
} });
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
f as default
|
|
73
73
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./tree-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-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-89330064"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
|
|
2
2
|
import T from "../../../../../../assets/folder.png.js";
|
|
3
3
|
import I from "../../../../../../assets/file.png.js";
|
|
4
4
|
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
@@ -13,14 +13,14 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
13
13
|
((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
|
|
14
14
|
if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
|
|
15
15
|
const a2 = e3.functionCodes[t2];
|
|
16
|
-
if (B(a2)) return void q.value.push(e3);
|
|
16
|
+
if (B(a2, X.pageContext.systemCode)) return void q.value.push(e3);
|
|
17
17
|
}
|
|
18
18
|
else q.value.push(e3);
|
|
19
19
|
}) : q.value = X.configure.props.contextMenus);
|
|
20
20
|
let F = V(X.pageContext, X.configure);
|
|
21
21
|
const G = a({ get: () => L(Y, F), set(e3) {
|
|
22
22
|
b(Y, F, e3);
|
|
23
|
-
} }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]),
|
|
23
|
+
} }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), de = t(null), ue = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
|
|
24
24
|
n(() => {
|
|
25
25
|
l(() => {
|
|
26
26
|
const e3 = G.value;
|
|
@@ -28,21 +28,21 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
28
28
|
});
|
|
29
29
|
}), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
|
|
30
30
|
oe.value = e3, le.value = true;
|
|
31
|
-
}), o(
|
|
31
|
+
}), o(ue, (e3) => {
|
|
32
32
|
ie.value = true, te.value.filter(e3);
|
|
33
33
|
});
|
|
34
34
|
const pe = (e3, t2) => !e3 || t2.name.includes(e3);
|
|
35
35
|
function ve(e3, t2, a2) {
|
|
36
|
-
|
|
36
|
+
de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
|
|
37
37
|
}
|
|
38
38
|
function fe(e3, t2) {
|
|
39
39
|
let a2 = "0";
|
|
40
40
|
a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
|
|
41
|
-
const n2 = { parentNodeId: e4, data: t3.data, searchValue:
|
|
41
|
+
const n2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
|
|
42
42
|
M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
|
|
43
43
|
if (ie.value = false, a3(n3), "0" === e4) {
|
|
44
44
|
!function(e5, t4) {
|
|
45
|
-
const a4 = { parentNodeId: e5, data: t4.data, searchValue:
|
|
45
|
+
const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
|
|
46
46
|
M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
|
|
47
47
|
ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
|
|
48
48
|
});
|
|
@@ -54,10 +54,10 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
54
54
|
const ge = t({}), me = (e3, t2, a2, n2) => {
|
|
55
55
|
if (se.value) return void z.warning("请先保存当前编辑节点!");
|
|
56
56
|
document.removeEventListener("click", he), ge.value = a2, A.value = true;
|
|
57
|
-
const { clientX: l2, clientY: o2 } = e3,
|
|
58
|
-
if (
|
|
59
|
-
const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } =
|
|
60
|
-
|
|
57
|
+
const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
|
|
58
|
+
if (d2) {
|
|
59
|
+
const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = d2, u2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
|
|
60
|
+
d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
|
|
61
61
|
}
|
|
62
62
|
document.addEventListener("click", he);
|
|
63
63
|
}, he = () => {
|
|
@@ -89,7 +89,7 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
89
89
|
te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
|
|
90
90
|
};
|
|
91
91
|
return U2({ getSelectNode: function() {
|
|
92
|
-
return
|
|
92
|
+
return de.value;
|
|
93
93
|
}, expandNode: function(e3) {
|
|
94
94
|
e3.loaded = false, e3.expand();
|
|
95
95
|
}, loadTreeNodes: function() {
|
|
@@ -106,8 +106,8 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
106
106
|
te.value.setChecked(e3, t2, a2);
|
|
107
107
|
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (e3, t2) => {
|
|
108
108
|
var _a2;
|
|
109
|
-
const a2 =
|
|
110
|
-
return i(),
|
|
109
|
+
const a2 = d("el-input"), n2 = d("el-button"), l2 = d("SuperIcon"), o2 = d("el-tree");
|
|
110
|
+
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => ue.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
|
|
111
111
|
"" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? w(e5, X.configure, X.pageContext).then((t3) => {
|
|
112
112
|
ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
|
|
113
113
|
}) : E(e5, X.configure, X.pageContext).then((t3) => {
|
|
@@ -115,7 +115,7 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
115
115
|
})) : z.warning("请输入节点名称");
|
|
116
116
|
})(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
|
|
117
117
|
re.value && e4.data.nodeId === re.value && te.value.remove(e4), Ce();
|
|
118
|
-
})(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(),
|
|
118
|
+
})(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), u("span", { key: 1, title: o3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(l2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e4, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
|
|
119
119
|
if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
120
120
|
else if ("delete" === e5.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
121
121
|
ke(e5);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as g, unref as m, withCtx as d, resolveDynamicComponent as f, toDisplayString as v } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
@@ -8,24 +8,25 @@ import { getComponentRef as D } from "../../../../utils/global-refs.js";
|
|
|
8
8
|
import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
10
10
|
import S from "../../../../utils/eventBus.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { functions as U } from "../../../../utils/api/page-expose-util.js";
|
|
12
|
+
const F = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
13
|
+
const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, G = C(q.pageContext, q.configure), H = t({ get: () => y(z, G), set(e3) {
|
|
14
|
+
x(z, G, e3);
|
|
15
|
+
} }), P = q.configure.runtime ? q.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
|
|
15
16
|
let t2 = {};
|
|
16
17
|
if (e3) for (let o2 in e3) {
|
|
17
18
|
const a2 = e3[o2];
|
|
18
19
|
t2[o2] = b(q.pageContext, a2);
|
|
19
20
|
}
|
|
20
21
|
return t2;
|
|
21
|
-
}(
|
|
22
|
-
function
|
|
22
|
+
}(P.customParams ? P.customParams : {}), K = E(q.pageContext), L = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
|
|
23
|
+
function M(e3, t2) {
|
|
23
24
|
j(z, e3, t2);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
V(q.pageContext, e3);
|
|
26
|
+
function N(e3) {
|
|
27
|
+
U.isHasFieldAuthPermission(q.configure) ? V(q.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", G ? G.join(".") : "");
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function Q() {
|
|
29
30
|
const e3 = q.pageContext.tableUuids;
|
|
30
31
|
e3 && e3.forEach((e4) => {
|
|
31
32
|
const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
|
|
@@ -33,27 +34,27 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
|
|
36
|
-
const
|
|
37
|
-
function
|
|
38
|
-
k(
|
|
37
|
+
const T = q.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
|
|
38
|
+
function te(e3) {
|
|
39
|
+
k(H.value, q.pageContext, q.configure, e3);
|
|
39
40
|
}
|
|
40
41
|
return a(() => {
|
|
41
|
-
S.$on(
|
|
42
|
+
S.$on(X.value + "-scanDone", (e3) => {
|
|
42
43
|
const t2 = e3.result;
|
|
43
|
-
x(z,
|
|
44
|
-
}), S.$on(
|
|
45
|
-
|
|
44
|
+
x(z, G, t2);
|
|
45
|
+
}), S.$on(X.value + "-pickFileDone", (e3) => {
|
|
46
|
+
X.value, Y.value.pickFileDone(e3);
|
|
46
47
|
}), n(() => {
|
|
47
|
-
const e3 =
|
|
48
|
-
R(e3, q.pageContext, q.configure, { formItemRef:
|
|
48
|
+
const e3 = H.value;
|
|
49
|
+
R(e3, q.pageContext, q.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
49
50
|
});
|
|
50
51
|
}), i(() => {
|
|
51
|
-
S.$off(
|
|
52
|
+
S.$off(X.value + "-scanDone"), S.$off(X.value + "-pickFileDone");
|
|
52
53
|
}), $2({ getCustomRef: function() {
|
|
53
|
-
return
|
|
54
|
+
return Y.value;
|
|
54
55
|
} }), (e3, t2) => {
|
|
55
56
|
const o2 = u("el-form-item");
|
|
56
|
-
return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref:
|
|
57
|
+
return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: g(m(A)), "label-width": W.value.labelWidth, style: c(m(I)) }, { label: d(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: d(() => [L.value ? (p(), r("div", F, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", O, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
57
58
|
};
|
|
58
59
|
} });
|
|
59
60
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -70,7 +70,7 @@ const q = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
70
70
|
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), l2 = i("el-form-item");
|
|
71
71
|
return p(), r(l2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: c(v(ue)), "label-width": Q.value.labelWidth, style: s(v(ae)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: s({ ...v(ie), ...v(re) }) }, [Q.value.prefixType ? (p(), r(D, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [m(x(v(P)(Q.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: B.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (e4) => function(e5) {
|
|
72
72
|
let t3 = b(L, F);
|
|
73
|
-
t3 = t3.trim(), h(L, F, t3), _(e5, z.pageContext, z.configure, "blur");
|
|
73
|
+
null != t3 && (t3 = t3.trim()), h(L, F, t3), _(e5, z.pageContext, z.configure, "blur");
|
|
74
74
|
}(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, d({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : g("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), se.value ? (p(), r(o2, { key: 0, onClose: ve })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
75
75
|
};
|
|
76
76
|
} });
|