super-page-runtime 2.3.40 → 2.3.41
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 +64 -52
- package/dist/es/components/runtime/utils/events/event-util.js +198 -186
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +488 -509
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +51 -51
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +45 -43
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +5 -5
- package/dist/es/style.css +10 -10
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
21
21
|
const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
|
|
22
22
|
oe.value = function() {
|
|
23
23
|
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender:
|
|
24
|
+
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
25
|
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
|
|
26
26
|
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
@@ -47,7 +47,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
47
47
|
}
|
|
48
48
|
t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
|
|
49
49
|
let n2 = C(j, z);
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
50
|
+
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Be;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
53
|
if (z.props && z.props.otherSettings) {
|
|
@@ -76,6 +76,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
76
76
|
}
|
|
77
77
|
function be(e3) {
|
|
78
78
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
|
+
var _a2;
|
|
79
80
|
e4 || (e4 = oe.value);
|
|
80
81
|
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
81
82
|
if (t3 && null != t3) {
|
|
@@ -92,18 +93,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
92
93
|
}
|
|
93
94
|
e4.operations || (e4.operations = {});
|
|
94
95
|
const o2 = function() {
|
|
95
|
-
let e5 = []
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
e5.push(
|
|
96
|
+
let e5 = [];
|
|
97
|
+
if (we(null, null, null, null, null, true, "canAdd")) {
|
|
98
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: Te, isStandard: true };
|
|
99
|
+
e5.push(t4);
|
|
99
100
|
}
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
e5.push(
|
|
101
|
+
if (xe(null, null, null, null, null, true)) {
|
|
102
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Ce, isStandard: true };
|
|
103
|
+
e5.push(t4);
|
|
103
104
|
}
|
|
104
|
-
return R(j, z, e5,
|
|
105
|
+
return R(j, z, e5, he), e5;
|
|
105
106
|
}();
|
|
106
|
-
|
|
107
|
+
((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = me);
|
|
108
|
+
e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete");
|
|
107
109
|
}(e3), c(e3, B, j, z);
|
|
108
110
|
const t2 = j.customEvents;
|
|
109
111
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
@@ -111,6 +113,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
111
113
|
function ge() {
|
|
112
114
|
j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
|
|
113
115
|
}
|
|
116
|
+
function me() {
|
|
117
|
+
return w($.pageContext, z.props.base.showOperationCondition);
|
|
118
|
+
}
|
|
114
119
|
n(() => {
|
|
115
120
|
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
116
121
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
@@ -122,7 +127,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
122
127
|
ae();
|
|
123
128
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
124
129
|
!function(e5) {
|
|
125
|
-
|
|
130
|
+
Ge(e5), de = setTimeout(() => {
|
|
126
131
|
ie.value && (ie.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
|
|
127
132
|
}, 10);
|
|
128
133
|
}(e4);
|
|
@@ -136,16 +141,16 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
136
141
|
const e3 = z.uuid;
|
|
137
142
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
143
|
});
|
|
139
|
-
const
|
|
140
|
-
function
|
|
144
|
+
const ve = t({});
|
|
145
|
+
function he(e3) {
|
|
141
146
|
if (!e3) return;
|
|
142
|
-
return
|
|
147
|
+
return ve.value[e3.uuid] = e3, Se;
|
|
143
148
|
}
|
|
144
|
-
function
|
|
145
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 =
|
|
149
|
+
function Se(e3, t2, n2, o2, l2, i2) {
|
|
150
|
+
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], r2 = z;
|
|
146
151
|
u2.props.base.tableUuid = r2.uuid, S(null, j, u2, "click", a2);
|
|
147
152
|
}
|
|
148
|
-
function
|
|
153
|
+
function we(e3, t2, n2, o2, l2, i2, a2) {
|
|
149
154
|
a2 || (a2 = "canAdd");
|
|
150
155
|
if (!w($.pageContext, z.props.base.showOperationCondition)) return false;
|
|
151
156
|
const u2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
|
|
@@ -160,11 +165,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
160
165
|
}
|
|
161
166
|
return s2;
|
|
162
167
|
}
|
|
163
|
-
function
|
|
164
|
-
let a2 =
|
|
168
|
+
function Te(e3, t2, n2, o2, l2, i2) {
|
|
169
|
+
let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
|
|
165
170
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
166
171
|
}
|
|
167
|
-
function
|
|
172
|
+
function xe(e3, t2, n2, o2, l2, i2) {
|
|
168
173
|
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
169
174
|
let r2 = true;
|
|
170
175
|
if (a2 && null !== a2) {
|
|
@@ -184,94 +189,94 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
184
189
|
}
|
|
185
190
|
return r2;
|
|
186
191
|
}
|
|
187
|
-
function
|
|
188
|
-
let a2 =
|
|
192
|
+
function Ce(e3, t2, n2, o2, l2, i2) {
|
|
193
|
+
let a2 = xe(0, 0, n2, 0, 0, i2);
|
|
189
194
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
190
195
|
}
|
|
191
|
-
function
|
|
196
|
+
function De(e3, t2, n2, o2, l2) {
|
|
192
197
|
ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
193
|
-
|
|
198
|
+
qe(l2);
|
|
194
199
|
});
|
|
195
200
|
}
|
|
196
|
-
function
|
|
201
|
+
function ye(e3, t2, n2, o2, l2, i2, a2, u2) {
|
|
197
202
|
ie.value.deleteRow(l2, G, false, a2, u2, n2);
|
|
198
203
|
}
|
|
199
|
-
function
|
|
204
|
+
function Pe(e3) {
|
|
200
205
|
T(X, Y, e3);
|
|
201
206
|
}
|
|
202
|
-
function
|
|
207
|
+
function Ie(e3) {
|
|
203
208
|
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
|
|
204
209
|
}
|
|
205
|
-
function
|
|
210
|
+
function Re(e3) {
|
|
206
211
|
const t2 = e3.key, n2 = e3.value;
|
|
207
212
|
j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
|
|
208
213
|
}
|
|
209
|
-
function
|
|
214
|
+
function Oe(e3) {
|
|
210
215
|
const t2 = j.code + "_";
|
|
211
216
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
212
217
|
}
|
|
213
|
-
function
|
|
218
|
+
function _e(e3) {
|
|
214
219
|
const t2 = j.entity.data;
|
|
215
220
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
216
221
|
}
|
|
217
|
-
function
|
|
222
|
+
function ke(e3, t2) {
|
|
218
223
|
if (void 0 !== t2) {
|
|
219
224
|
q.value = e3;
|
|
220
225
|
p(j, z, { selection: e3, row: t2 });
|
|
221
226
|
}
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function Ae(e3) {
|
|
224
229
|
q.value = e3;
|
|
225
230
|
d(j, z, { selection: e3 });
|
|
226
231
|
}
|
|
227
|
-
function
|
|
232
|
+
function Me(e3) {
|
|
228
233
|
f(j, z, { newSelection: e3 });
|
|
229
234
|
}
|
|
230
|
-
function
|
|
235
|
+
function Ee(e3, t2, n2, o2) {
|
|
231
236
|
b(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
237
|
}
|
|
233
|
-
function
|
|
238
|
+
function Ne(e3, t2, n2, o2) {
|
|
234
239
|
g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
240
|
}
|
|
236
|
-
function
|
|
241
|
+
function Fe(e3, t2, n2) {
|
|
237
242
|
m(j, z, { row: e3, column: t2, event: n2 });
|
|
238
243
|
}
|
|
239
|
-
function
|
|
244
|
+
function $e(e3, t2, n2) {
|
|
240
245
|
v(j, z, { row: e3, column: t2, event: n2 });
|
|
241
246
|
}
|
|
242
|
-
function
|
|
247
|
+
function je(e3, t2) {
|
|
243
248
|
h(j, z, { column: e3, event: t2 });
|
|
244
249
|
}
|
|
245
|
-
function
|
|
250
|
+
function ze(e3) {
|
|
246
251
|
j.entity.data = e3;
|
|
247
252
|
}
|
|
248
|
-
function
|
|
253
|
+
function Ve() {
|
|
249
254
|
return x(X, Y);
|
|
250
255
|
}
|
|
251
|
-
function
|
|
256
|
+
function Ge(e3) {
|
|
252
257
|
return T(X, Y, e3);
|
|
253
258
|
}
|
|
254
|
-
function
|
|
259
|
+
function He(e3) {
|
|
255
260
|
return A(e3, null, $);
|
|
256
261
|
}
|
|
257
|
-
function
|
|
262
|
+
function Le(e3) {
|
|
258
263
|
return M(e3, e3.cellStyle, $);
|
|
259
264
|
}
|
|
260
|
-
function
|
|
265
|
+
function Ue(e3) {
|
|
261
266
|
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
262
267
|
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
263
268
|
}
|
|
264
|
-
function
|
|
269
|
+
function Be({ row: e3, editConditions: t2 }) {
|
|
265
270
|
let n2 = true;
|
|
266
271
|
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
267
272
|
}
|
|
268
|
-
function
|
|
273
|
+
function qe(e3) {
|
|
269
274
|
var _a2;
|
|
270
275
|
(_a2 = ie.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
|
|
271
276
|
}
|
|
272
277
|
return function(e3) {
|
|
273
278
|
const t2 = re();
|
|
274
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
279
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), be(e3));
|
|
275
280
|
}(oe.value), N2({ createRow: function() {
|
|
276
281
|
return ie.value.createRow(G);
|
|
277
282
|
}, getSelections: function() {
|
|
@@ -287,7 +292,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
287
292
|
return z;
|
|
288
293
|
}, validatorSunTableListData: function() {
|
|
289
294
|
return ie.value.validatorSunTableListData();
|
|
290
|
-
}, getValue:
|
|
295
|
+
}, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
|
|
291
296
|
if (ie.value) return ie.value.getTableSelectOptions(G);
|
|
292
297
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
293
298
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
@@ -308,7 +313,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
308
313
|
}, setCurrentRowIndex: function(e3) {
|
|
309
314
|
var _a2;
|
|
310
315
|
(_a2 = ie.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
|
|
311
|
-
}, setScrollTopByRowIndex:
|
|
316
|
+
}, setScrollTopByRowIndex: qe, getTableData: function() {
|
|
312
317
|
var _a2;
|
|
313
318
|
return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
|
|
314
319
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
@@ -322,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
322
327
|
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
323
328
|
} }), (e3, t2) => {
|
|
324
329
|
const n2 = l("super-grid");
|
|
325
|
-
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect:
|
|
330
|
+
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
326
331
|
};
|
|
327
332
|
} });
|
|
328
333
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as r, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as r, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as d, unref as c, createSlots as p, withCtx as s, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as
|
|
5
|
-
import { handleAfterInitEvent as
|
|
6
|
-
import
|
|
4
|
+
import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as V, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent as T, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import j from "../common/title-suffix-element.vue.js";
|
|
7
7
|
import R from "dayjs";
|
|
8
8
|
import { $t as Y } from "../../../../utils/i18n-util.js";
|
|
9
9
|
import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
|
|
10
|
-
import { DatePickerRange as D } from "agilebuilder-ui";
|
|
11
|
-
const
|
|
10
|
+
import { DatePickerRange as D, DateQuarterPicker as S } from "agilebuilder-ui";
|
|
11
|
+
const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
12
12
|
var _a;
|
|
13
|
-
const w = e2,
|
|
14
|
-
let
|
|
15
|
-
if (w.pageContext.modelFieldsMap &&
|
|
16
|
-
const e3 = x(
|
|
13
|
+
const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, M = w.configure.runtime ? w.configure.runtime : {}, U = M.style, $ = M.class, I = M.headerStyle, N = M.titleExceedStyle, W = a(M.props ? M.props : {});
|
|
14
|
+
let E = y(w.pageContext, w.configure, W.value.prop);
|
|
15
|
+
if (w.pageContext.modelFieldsMap && E && E.length > 0 && "data" === E[0]) {
|
|
16
|
+
const e3 = x(E, w.pageContext);
|
|
17
17
|
e3 && function(e4) {
|
|
18
18
|
const a2 = e4.dataType;
|
|
19
|
-
|
|
19
|
+
k(a2) && ("year" === W.value.dateType && "YYYY" === W.value.valueFormat || "month" === W.value.dateType && "YYYY-MM" === W.value.valueFormat) && (W.value.valueFormat = "x");
|
|
20
20
|
}(e3);
|
|
21
21
|
}
|
|
22
|
-
let
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
let e3 =
|
|
22
|
+
let O = null, G = false;
|
|
23
|
+
if (W.value.dateType && W.value.dateType.includes("range")) {
|
|
24
|
+
G = true;
|
|
25
|
+
let e3 = W.value.prop2;
|
|
26
26
|
e3 && e3.startsWith("${") || (e3 = "${page." + w.configure.uuid + "-2}");
|
|
27
|
-
const a2 = b(
|
|
28
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
29
|
-
const e4 = b(
|
|
30
|
-
if (null != e4 && "" !== e4) F(
|
|
31
|
-
else if (((_a =
|
|
32
|
-
const e5 =
|
|
27
|
+
const a2 = b(B, e3, null);
|
|
28
|
+
if (e3 = e3.substring(2, e3.length - 1), O = e3.split("."), !(a2 || B.data && (B.data.id || B.data.ID)) && W.value.defaultValue2) {
|
|
29
|
+
const e4 = b(B, W.value.defaultValue2);
|
|
30
|
+
if (null != e4 && "" !== e4) F(B, O, e4);
|
|
31
|
+
else if (((_a = W.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
|
|
32
|
+
const e5 = W.value.moreDefaultValue2;
|
|
33
33
|
for (let a3 = 0; a3 < e5.length; a3++) {
|
|
34
|
-
const l2 = b(
|
|
34
|
+
const l2 = b(B, e5[a3]);
|
|
35
35
|
if (null != l2 && "" !== l2) {
|
|
36
|
-
F(
|
|
36
|
+
F(B, O, l2);
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
43
|
+
const H = a(null), J = a(null), K = a(null);
|
|
44
|
+
function L(e3, a2) {
|
|
45
45
|
if (!e3) return e3;
|
|
46
46
|
if (a2) {
|
|
47
47
|
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
@@ -50,53 +50,53 @@ const S = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
50
50
|
let t2 = null;
|
|
51
51
|
return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), t2;
|
|
52
52
|
} catch (a3) {
|
|
53
|
-
return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${
|
|
53
|
+
return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${W.value.valueFormat}`), e3;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return e3;
|
|
57
57
|
}
|
|
58
58
|
if (l(() => {
|
|
59
59
|
t(() => {
|
|
60
|
-
const e3 =
|
|
61
|
-
|
|
60
|
+
const e3 = Q.value;
|
|
61
|
+
T(e3, w.pageContext, w.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
const e3 =
|
|
65
|
-
e3 !== a2 && F(
|
|
63
|
+
}), E) {
|
|
64
|
+
const e3 = V(B, E), a2 = L(e3, W.value.valueFormat);
|
|
65
|
+
e3 !== a2 && F(B, E, a2);
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
const e3 =
|
|
69
|
-
e3 !== a2 && F(
|
|
67
|
+
if (O) {
|
|
68
|
+
const e3 = V(B, O), a2 = L(e3, W.value.valueFormat);
|
|
69
|
+
e3 !== a2 && F(B, O, a2);
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
71
|
+
const Q = o({ get() {
|
|
72
|
+
if (G) {
|
|
73
73
|
const e3 = [];
|
|
74
|
-
let a2 =
|
|
75
|
-
e3.push(
|
|
76
|
-
let l2 =
|
|
77
|
-
return e3.push(
|
|
74
|
+
let a2 = V(B, E);
|
|
75
|
+
e3.push(L(a2, W.value.valueFormat));
|
|
76
|
+
let l2 = V(B, O);
|
|
77
|
+
return e3.push(L(l2, W.value.valueFormat)), e3;
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return L(V(B, E), W.value.valueFormat);
|
|
80
80
|
}, set(e3) {
|
|
81
|
-
|
|
82
|
-
} }),
|
|
83
|
-
if (
|
|
84
|
-
const e3 =
|
|
81
|
+
G ? Array.isArray(e3) ? (F(B, E, e3[0]), F(B, O, e3[1]), A.value = "") : null === e3 && (F(B, E, null), F(B, O, null)) : (F(B, E, e3), null != e3 && (A.value = ""));
|
|
82
|
+
} }), X = a(C(W.value.dateScopeDetails, W.value.sourceType, W.value.dateType));
|
|
83
|
+
if (W.value.shortcutsFunc) {
|
|
84
|
+
const e3 = z(w.pageContext, W.value.shortcutsFunc);
|
|
85
85
|
if (e3) {
|
|
86
86
|
let a2 = e3.apply(e3, [{ pageContext: w.pageContext, configureObj: w.configure }]);
|
|
87
87
|
if (a2) {
|
|
88
|
-
Array.isArray(a2) || (a2 = [a2]),
|
|
89
|
-
for (let e4 of a2) e4.text && e4.value &&
|
|
88
|
+
Array.isArray(a2) || (a2 = [a2]), X.value || (X.value = []);
|
|
89
|
+
for (let e4 of a2) e4.text && e4.value && X.value.push(e4);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
return
|
|
94
|
-
|
|
93
|
+
return q2({ addRequiredClass: function() {
|
|
94
|
+
A.value = _();
|
|
95
95
|
} }), (a2, l2) => {
|
|
96
96
|
const t2 = r("el-time-picker"), o2 = r("el-date-picker"), y2 = r("el-form-item");
|
|
97
|
-
return n(), u(y2, { ref_key: "formItemRef", ref:
|
|
97
|
+
return n(), u(y2, { ref_key: "formItemRef", ref: H, required: W.value.required, class: d(c($) + (A.value ? " " + A.value : "")), "label-width": W.value.labelWidth, style: i(c(U)) }, p({ default: s(() => ["time" == W.value.dateType || "timerange" == W.value.dateType ? (n(), u(t2, { key: 0, ref_key: "componentRef", ref: J, "is-range": "timerange" == W.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: W.value.clearable, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, size: W.value.size, placeholder: W.value.placeholder, "start-placeholder": W.value.placeholder, "end-placeholder": W.value.endPlaceholder ? W.value.endPlaceholder : W.value.placeholder, "unlink-panels": true, format: W.value.format, "value-format": W.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), shortcuts: X.value, type: W.value.dateType, onChange: l2[1] || (l2[1] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== W.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes(W.value.dateType) ? (n(), u(c(D), { key: 1, modelValue: Q.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => Q.value = e3), type: W.value.dateType, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, clearable: W.value.clearable, format: W.value.format, "value-format": W.value.valueFormat, placeholder: W.value.placeholder, "start-placeholder": W.value.placeholder, "end-placeholder": W.value.endPlaceholder ? W.value.endPlaceholder : W.value.placeholder, size: W.value.size, shortcuts: X.value, onChange: l2[8] || (l2[8] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[9] || (l2[9] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[10] || (l2[10] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === W.value.dateType ? (n(), u(c(S), { key: 2, modelValue: Q.value, "onUpdate:modelValue": l2[14] || (l2[14] = (e3) => Q.value = e3), type: W.value.dateType, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, clearable: W.value.clearable, format: W.value.format, "value-format": W.value.valueFormat, placeholder: W.value.placeholder, size: W.value.size, onChange: l2[15] || (l2[15] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[16] || (l2[16] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[17] || (l2[17] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onClear: l2[18] || (l2[18] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), u(o2, { key: 3, ref_key: "componentRef", ref: J, clearable: W.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, size: W.value.size, placeholder: W.value.placeholder, "start-placeholder": W.value.placeholder, "end-placeholder": W.value.endPlaceholder ? W.value.endPlaceholder : W.value.placeholder, format: W.value.format, "value-format": W.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[19] || (l2[19] = (e3) => Q.value = e3), shortcuts: X.value, type: W.value.dateType, onChange: l2[20] || (l2[20] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[21] || (l2[21] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[22] || (l2[22] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[23] || (l2[23] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[24] || (l2[24] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[25] || (l2[25] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: s(() => [v("div", { ref_key: "titleRef", ref: K, style: i({ ...c(I), ...c(N) }) }, [W.value.prefixType ? (n(), u(j, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(c(Y)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
98
98
|
};
|
|
99
99
|
} });
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
q as default
|
|
102
102
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,79 +1,81 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import { SuperIcon as
|
|
1
|
+
import { defineComponent as e, ref as n, computed as t, onMounted as l, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as y, createCommentVNode as m, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as k, Fragment as T } from "vue";
|
|
2
|
+
import { SuperIcon as I } from "agilebuilder-ui";
|
|
3
3
|
import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as
|
|
6
|
-
import { formatScanRuleSets as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
import { addRequiredClassUtil as
|
|
5
|
+
import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as L } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import N from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as q, isDingTalkEnv as D } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import J from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as M } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
12
12
|
const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
|
-
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A =
|
|
14
|
+
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = n("text");
|
|
15
15
|
let E = w(F.pageContext, F.configure);
|
|
16
16
|
if (F.pageContext.modelFieldsMap) {
|
|
17
17
|
const e3 = V(E, F.pageContext);
|
|
18
18
|
e3 && (A.value = h(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const H =
|
|
20
|
+
const H = n(q()), U = F.pageContext.code, W = n(E && E.length > 0 ? U + "__" + E.join("__") : null), G = n(null), K = t({ get: () => _($, E), set(e3) {
|
|
21
21
|
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
-
} }), Q =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let
|
|
22
|
+
} }), Q = n(null), X = n(null), Y = n(null);
|
|
23
|
+
F.configure.props.suffixLinkPage && !F.configure.props.linkPage && (F.configure.props.linkPage = F.configure.props.suffixLinkPage);
|
|
24
|
+
const Z = F.configure.runtime ? F.configure.runtime : {}, ee = n(Z.props ? Z.props : {}), ne = n(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
25
|
+
let te = false;
|
|
26
|
+
D() && (te = true);
|
|
27
|
+
let le = "";
|
|
26
28
|
const oe = navigator.userAgent;
|
|
27
|
-
|
|
28
|
-
const ae = !(!H.value || !
|
|
29
|
+
le = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
30
|
+
const ae = !(!H.value || !le || "app" !== le), ue = n(!!((ae || te) && ne.value || H.value && ne.value && "https:" === window.location.protocol));
|
|
29
31
|
let ie = {};
|
|
30
|
-
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (
|
|
32
|
+
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(ee.value.scan.ruleList).then((e3) => {
|
|
31
33
|
ie = e3;
|
|
32
34
|
}), u(() => K.value, (e3) => {
|
|
33
35
|
e3 = e3.trim();
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
+
const n2 = O(e3, ie);
|
|
37
|
+
n2 && L(F.pageContext, n2.scanSet, n2.params);
|
|
36
38
|
}));
|
|
37
|
-
const re = Z.style,
|
|
38
|
-
function
|
|
39
|
+
const re = Z.style, pe = Z.class, se = Z.headerStyle, ce = Z.titleExceedStyle;
|
|
40
|
+
function fe(e3) {
|
|
39
41
|
return b($, E, e3);
|
|
40
42
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
W.value, JSON.stringify(e3),
|
|
43
|
+
l(() => {
|
|
44
|
+
J.$on(W.value + "-scanDone", (e3) => {
|
|
45
|
+
W.value, JSON.stringify(e3), fe(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
44
46
|
}), o(() => {
|
|
45
47
|
var _a2;
|
|
46
48
|
const e3 = K.value;
|
|
47
|
-
j(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ue.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) &&
|
|
49
|
+
j(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ue.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ge();
|
|
48
50
|
});
|
|
49
51
|
}), a(() => {
|
|
50
|
-
|
|
52
|
+
J.$off(W.value + "-scanDone");
|
|
51
53
|
});
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
if (ae ||
|
|
54
|
+
const ve = n(false);
|
|
55
|
+
function ge() {
|
|
56
|
+
if (ae || te) {
|
|
55
57
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
56
|
-
|
|
57
|
-
} else if (H.value) if ("https:" === window.location.protocol)
|
|
58
|
+
te && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
59
|
+
} else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
58
60
|
else {
|
|
59
61
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
60
62
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
61
63
|
}
|
|
62
|
-
else
|
|
64
|
+
else ve.value = true;
|
|
63
65
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
66
|
+
function ye(e3) {
|
|
67
|
+
ve.value = false, fe(e3);
|
|
66
68
|
}
|
|
67
69
|
return B2({ getValue: function() {
|
|
68
70
|
return _($, E);
|
|
69
|
-
}, setValue:
|
|
70
|
-
G.value =
|
|
71
|
-
} }), (
|
|
72
|
-
const
|
|
73
|
-
return
|
|
74
|
-
let
|
|
75
|
-
null !=
|
|
76
|
-
}(e3)), onFocus:
|
|
71
|
+
}, setValue: fe, scanClick: ge, addRequiredClass: function() {
|
|
72
|
+
G.value = z();
|
|
73
|
+
} }), (n2, t2) => {
|
|
74
|
+
const l2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
75
|
+
return p(), r(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(f(pe) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: s(f(re)) }, v({ default: g(() => [y(l2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => K.value = e3), onInput: t2[6] || (t2[6] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "input")), onChange: t2[7] || (t2[7] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "change")), onBlur: t2[8] || (t2[8] = (e3) => function(e4) {
|
|
76
|
+
let n3 = _($, E);
|
|
77
|
+
null != n3 && (n3 = n3.trim()), b($, E, n3), S(e4, F.pageContext, F.configure, "blur");
|
|
78
|
+
}(e3)), onFocus: t2[9] || (t2[9] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "focus")), onClick: t2[10] || (t2[10] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "click")), onClear: t2[11] || (t2[11] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "clear")) }, v({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[0] || (t2[0] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[1] || (t2[1] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: g(() => [ee.value.sufIconType && ee.value.sufIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[2] || (t2[2] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: g(() => [ue.value ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e3) => ge()) })) : m("", true), ee.value.sufIconType && ee.value.sufIconValue ? (p(), r(f(I), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[4] || (t2[4] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (p(), r(o2, { key: 0, onClose: ye })) : m("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: s({ ...f(se), ...f(ce) }) }, [ee.value.prefixType ? (p(), r(N, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (p(), k(T, { key: 1 }, [d(x(f(M)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
77
79
|
};
|
|
78
80
|
} });
|
|
79
81
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./label-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-c76703c3"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|