orion-design 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Edittable/index.js +200 -182
- package/dist/components/Edittable/index.js.map +1 -1
- package/dist/request/leaf7/Leaf7EncryptRequestParser.js +22 -12
- package/dist/request/leaf7/Leaf7EncryptRequestParser.js.map +1 -1
- package/dist/request/leaf7/types.d.ts +3 -0
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
@@ -1,19 +1,19 @@
|
|
1
|
-
import { isString as
|
2
|
-
import { defineComponent as
|
3
|
-
import { withInstall as
|
4
|
-
import { ElTable as
|
1
|
+
import { isString as q, isArray as ge, isFunction as he } from "lodash-es";
|
2
|
+
import { defineComponent as N, ref as be, computed as J, createVNode as r, createTextVNode as fe, isVNode as Z } from "vue";
|
3
|
+
import { withInstall as we } from "../_util/vue/install.js";
|
4
|
+
import { ElTable as Se, ElTableColumn as v, ElButton as Ce } from "element-plus";
|
5
5
|
import ye from "../_antd_util/classNames.js";
|
6
|
-
import { number2string as xe, formatDate as
|
6
|
+
import { number2string as xe, formatDate as K, getSingleCodeContent as Ae, getMultiCodeContent as Ee } from "./utils/index.js";
|
7
7
|
import Be from "dayjs";
|
8
8
|
import { S as Oe } from "../../index-CvcZkdiG.js";
|
9
|
-
import
|
10
|
-
import
|
9
|
+
import Ne from "../../error/OrionError.js";
|
10
|
+
import ve from "./hooks/useColumns.js";
|
11
11
|
import De from "../Pagetable/hooks/useCode.js";
|
12
|
-
import { _ as
|
13
|
-
function
|
14
|
-
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !
|
12
|
+
import { _ as _e, e as Re, c as Ve, f as Te, d as ke, a as Ie, b as Pe } from "../../LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js";
|
13
|
+
function W(l) {
|
14
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !Z(l);
|
15
15
|
}
|
16
|
-
const
|
16
|
+
const Me = () => ({
|
17
17
|
data: Array,
|
18
18
|
showRowNumber: {
|
19
19
|
type: Boolean,
|
@@ -32,44 +32,62 @@ const je = () => ({
|
|
32
32
|
rowStyle: [Object, Function],
|
33
33
|
cellClassName: [String, Function],
|
34
34
|
cellStyle: [Object, Function]
|
35
|
-
}),
|
35
|
+
}), T = (l = !0, h, A) => l ? h ? h(A) : !0 : !1, X = (l, h) => q(l) || ge(l) ? De(l).value : he(l) ? l(h) : null, je = /* @__PURE__ */ N({
|
36
36
|
name: "OEdittable",
|
37
37
|
inheritAttrs: !1,
|
38
|
-
props:
|
38
|
+
props: Me(),
|
39
39
|
emits: ["selectionChange", "currentRowChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick"],
|
40
40
|
setup(l, {
|
41
41
|
slots: h,
|
42
42
|
attrs: A,
|
43
|
-
emit:
|
43
|
+
emit: w,
|
44
44
|
expose: B
|
45
45
|
}) {
|
46
|
-
const R =
|
46
|
+
const R = be(), I = J(() => ({})), k = ve(h), $ = J(() => {
|
47
|
+
let O = [];
|
48
|
+
l.showRowNumber && O.push({
|
49
|
+
type: "__showRowNumber__"
|
50
|
+
}), l.selectionMode && O.push({
|
51
|
+
type: "__selectionMode__"
|
52
|
+
});
|
53
|
+
function F(P) {
|
54
|
+
if (P)
|
55
|
+
for (let M = 0; M < P.length; M++) {
|
56
|
+
const j = P[M];
|
57
|
+
j.type === "OPagetableColumngroup" ? F(j.children) : O.push({
|
58
|
+
...j
|
59
|
+
});
|
60
|
+
}
|
61
|
+
}
|
62
|
+
return F(k.value), O;
|
63
|
+
});
|
47
64
|
return B({
|
48
65
|
clearSelection: () => {
|
49
66
|
R.value.clearSelection();
|
50
67
|
},
|
51
68
|
getSelectionRows: () => R.value.getSelectionRows(),
|
52
|
-
toggleRowSelection: (...
|
69
|
+
toggleRowSelection: (...O) => R.value.toggleRowSelection(...O),
|
53
70
|
toggleAllSelection: () => R.value.toggleAllSelection(),
|
54
|
-
setCurrentRow: (...
|
55
|
-
scrollTo: (...
|
71
|
+
setCurrentRow: (...O) => R.value.setCurrentRow(...O),
|
72
|
+
scrollTo: (...O) => R.value.scrollTo(...O),
|
73
|
+
columns: $
|
56
74
|
}), () => {
|
57
75
|
const {
|
58
|
-
data:
|
76
|
+
data: O
|
59
77
|
} = l, {
|
60
|
-
selectionMode:
|
78
|
+
selectionMode: F = !1
|
61
79
|
} = l, {
|
62
|
-
showRowNumber:
|
80
|
+
showRowNumber: P = !0
|
63
81
|
} = l, {
|
64
|
-
currentRowMode:
|
82
|
+
currentRowMode: M = !1
|
65
83
|
} = l, {
|
66
|
-
size:
|
84
|
+
size: j = "default"
|
67
85
|
} = l, {
|
68
|
-
rowClassName:
|
69
|
-
rowStyle:
|
70
|
-
cellClassName:
|
71
|
-
cellStyle:
|
72
|
-
} = l,
|
86
|
+
rowClassName: U,
|
87
|
+
rowStyle: L,
|
88
|
+
cellClassName: z,
|
89
|
+
cellStyle: Y
|
90
|
+
} = l, ee = ye("orion-edittable"), te = () => r(v, {
|
73
91
|
type: "index",
|
74
92
|
label: "No",
|
75
93
|
headerAlign: "center",
|
@@ -78,13 +96,13 @@ const je = () => ({
|
|
78
96
|
fixed: "left",
|
79
97
|
showOverflowTooltip: !0,
|
80
98
|
index: (e) => e + 1
|
81
|
-
}, null),
|
99
|
+
}, null), le = () => r(v, {
|
82
100
|
type: "selection",
|
83
101
|
headerAlign: "center",
|
84
102
|
align: "center",
|
85
103
|
width: 40,
|
86
104
|
fixed: "left"
|
87
|
-
}, null),
|
105
|
+
}, null), ne = (e) => {
|
88
106
|
const {
|
89
107
|
name: t,
|
90
108
|
head: i,
|
@@ -94,7 +112,7 @@ const je = () => ({
|
|
94
112
|
fixed: g,
|
95
113
|
editable: s,
|
96
114
|
cellEditable: d,
|
97
|
-
maxlength:
|
115
|
+
maxlength: u,
|
98
116
|
placeholder: b
|
99
117
|
} = e;
|
100
118
|
return r(v, {
|
@@ -107,27 +125,27 @@ const je = () => ({
|
|
107
125
|
showOverflowTooltip: !0
|
108
126
|
}, {
|
109
127
|
header: () => {
|
110
|
-
var
|
111
|
-
return (a = (
|
128
|
+
var c, a;
|
129
|
+
return (a = (c = e.children) == null ? void 0 : c.head) == null ? void 0 : a.call(c);
|
112
130
|
},
|
113
|
-
default: (
|
131
|
+
default: (c) => {
|
114
132
|
const {
|
115
133
|
row: a,
|
116
134
|
column: n
|
117
|
-
} =
|
118
|
-
return o ? r(
|
135
|
+
} = c, o = T(s, d, a), p = a[n.property];
|
136
|
+
return o ? r(_e, {
|
119
137
|
modelValue: p,
|
120
138
|
"onUpdate:modelValue": (E) => {
|
121
139
|
a[n.property] = E;
|
122
140
|
},
|
123
|
-
maxlength:
|
141
|
+
maxlength: u,
|
124
142
|
placeholder: b
|
125
143
|
}, null) : r("div", {
|
126
144
|
class: "cell-stringinput"
|
127
145
|
}, [p]);
|
128
146
|
}
|
129
147
|
});
|
130
|
-
},
|
148
|
+
}, oe = (e) => {
|
131
149
|
const {
|
132
150
|
name: t,
|
133
151
|
head: i,
|
@@ -137,9 +155,9 @@ const je = () => ({
|
|
137
155
|
fixed: g,
|
138
156
|
editable: s,
|
139
157
|
cellEditable: d,
|
140
|
-
maxlength:
|
158
|
+
maxlength: u,
|
141
159
|
placeholder: b,
|
142
|
-
fillMapping:
|
160
|
+
fillMapping: c
|
143
161
|
} = e;
|
144
162
|
return r(v, {
|
145
163
|
label: i,
|
@@ -155,49 +173,49 @@ const je = () => ({
|
|
155
173
|
return (n = (a = e.children) == null ? void 0 : a.head) == null ? void 0 : n.call(a);
|
156
174
|
},
|
157
175
|
default: (a) => {
|
158
|
-
var f,
|
176
|
+
var f, S;
|
159
177
|
const {
|
160
178
|
row: n,
|
161
179
|
column: o
|
162
|
-
} = a, p = (
|
180
|
+
} = a, p = (S = (f = e.children) == null ? void 0 : f.default) == null ? void 0 : S.call(f, {
|
163
181
|
rowData: n,
|
164
182
|
column: o,
|
165
183
|
rowIndex: a.$index
|
166
|
-
}), E =
|
167
|
-
return E ? r(
|
168
|
-
modelValue:
|
184
|
+
}), E = T(s, d, n), D = n[o.property];
|
185
|
+
return E ? r(Re, {
|
186
|
+
modelValue: D,
|
169
187
|
"onUpdate:modelValue": (y) => {
|
170
188
|
n[o.property] = y;
|
171
189
|
},
|
172
|
-
maxlength:
|
190
|
+
maxlength: u,
|
173
191
|
placeholder: b,
|
174
192
|
onClear: () => {
|
175
|
-
if (
|
176
|
-
const y =
|
177
|
-
for (let
|
178
|
-
const
|
179
|
-
n[
|
193
|
+
if (q(c)) {
|
194
|
+
const y = c.split(",");
|
195
|
+
for (let _ = 0; _ < y.length; _++) {
|
196
|
+
const V = y[_].split(":")[0].trim();
|
197
|
+
n[V] = void 0;
|
180
198
|
}
|
181
199
|
}
|
182
200
|
},
|
183
201
|
onSelect: (y) => {
|
184
|
-
if (
|
185
|
-
const
|
186
|
-
for (let
|
187
|
-
const
|
188
|
-
n[
|
202
|
+
if (q(c)) {
|
203
|
+
const _ = c.split(",");
|
204
|
+
for (let V = 0; V < _.length; V++) {
|
205
|
+
const H = _[V].split(":")[0].trim(), Q = _[V].split(":")[1].trim(), me = y[Q];
|
206
|
+
n[H] = me;
|
189
207
|
}
|
190
208
|
} else
|
191
|
-
|
209
|
+
c && c(n, y);
|
192
210
|
}
|
193
|
-
},
|
211
|
+
}, W(p) ? p : {
|
194
212
|
default: () => [p]
|
195
213
|
}) : r("div", {
|
196
214
|
class: "cell-lovinput"
|
197
|
-
}, [
|
215
|
+
}, [D]);
|
198
216
|
}
|
199
217
|
});
|
200
|
-
},
|
218
|
+
}, re = (e) => {
|
201
219
|
const {
|
202
220
|
name: t,
|
203
221
|
head: i,
|
@@ -218,26 +236,26 @@ const je = () => ({
|
|
218
236
|
showOverflowTooltip: !0
|
219
237
|
}, {
|
220
238
|
header: () => {
|
221
|
-
var
|
222
|
-
return (b = (
|
239
|
+
var u, b;
|
240
|
+
return (b = (u = e.children) == null ? void 0 : u.head) == null ? void 0 : b.call(u);
|
223
241
|
},
|
224
|
-
default: (
|
242
|
+
default: (u) => {
|
225
243
|
const {
|
226
244
|
row: b,
|
227
|
-
column:
|
228
|
-
} =
|
245
|
+
column: c
|
246
|
+
} = u, a = T(s, d, b), n = b[c.property];
|
229
247
|
return r("div", {
|
230
248
|
class: "cell-checkbox"
|
231
|
-
}, [r(
|
249
|
+
}, [r(Ve, {
|
232
250
|
modelValue: n,
|
233
251
|
"onUpdate:modelValue": (o) => {
|
234
|
-
b[
|
252
|
+
b[c.property] = o;
|
235
253
|
},
|
236
254
|
disabled: !a
|
237
255
|
}, null)]);
|
238
256
|
}
|
239
257
|
});
|
240
|
-
},
|
258
|
+
}, ie = (e) => {
|
241
259
|
const {
|
242
260
|
name: t,
|
243
261
|
head: i,
|
@@ -247,15 +265,15 @@ const je = () => ({
|
|
247
265
|
fixed: g,
|
248
266
|
thousandsSeparator: s = !0,
|
249
267
|
percentage: d = !1,
|
250
|
-
editable:
|
268
|
+
editable: u,
|
251
269
|
cellEditable: b,
|
252
|
-
placeholder:
|
270
|
+
placeholder: c,
|
253
271
|
min: a,
|
254
272
|
max: n,
|
255
273
|
step: o,
|
256
274
|
stepStrictly: p,
|
257
275
|
precision: E,
|
258
|
-
controls:
|
276
|
+
controls: D = !1,
|
259
277
|
controlsPosition: f
|
260
278
|
} = e;
|
261
279
|
return r(v, {
|
@@ -268,33 +286,33 @@ const je = () => ({
|
|
268
286
|
showOverflowTooltip: !0
|
269
287
|
}, {
|
270
288
|
header: () => {
|
271
|
-
var
|
272
|
-
return (y = (
|
289
|
+
var S, y;
|
290
|
+
return (y = (S = e.children) == null ? void 0 : S.head) == null ? void 0 : y.call(S);
|
273
291
|
},
|
274
|
-
default: (
|
292
|
+
default: (S) => {
|
275
293
|
const {
|
276
294
|
row: y,
|
277
|
-
column:
|
278
|
-
} =
|
279
|
-
return
|
280
|
-
modelValue:
|
281
|
-
"onUpdate:modelValue": (
|
282
|
-
y[
|
295
|
+
column: _
|
296
|
+
} = S, V = T(u, b, y), H = y[_.property];
|
297
|
+
return V ? r(Te, {
|
298
|
+
modelValue: H,
|
299
|
+
"onUpdate:modelValue": (Q) => {
|
300
|
+
y[_.property] = Q;
|
283
301
|
},
|
284
|
-
placeholder:
|
302
|
+
placeholder: c,
|
285
303
|
min: a,
|
286
304
|
max: n,
|
287
305
|
step: o,
|
288
306
|
stepStrictly: p,
|
289
307
|
precision: E,
|
290
|
-
controls:
|
308
|
+
controls: D,
|
291
309
|
controlsPosition: f
|
292
310
|
}, null) : r("div", {
|
293
311
|
class: "cell-numberinput"
|
294
|
-
}, [xe(
|
312
|
+
}, [xe(H, s, E, d === !0 || d === "")]);
|
295
313
|
}
|
296
314
|
});
|
297
|
-
},
|
315
|
+
}, ae = (e) => {
|
298
316
|
const {
|
299
317
|
name: t,
|
300
318
|
head: i,
|
@@ -304,9 +322,9 @@ const je = () => ({
|
|
304
322
|
fixed: g,
|
305
323
|
editable: s,
|
306
324
|
cellEditable: d,
|
307
|
-
maxlength:
|
325
|
+
maxlength: u,
|
308
326
|
placeholder: b,
|
309
|
-
clearable:
|
327
|
+
clearable: c = !1,
|
310
328
|
format: a = "YYYYMMDDHHmmss",
|
311
329
|
sourceFormat: n
|
312
330
|
} = e;
|
@@ -327,27 +345,27 @@ const je = () => ({
|
|
327
345
|
const {
|
328
346
|
row: p,
|
329
347
|
column: E
|
330
|
-
} = o,
|
331
|
-
return
|
348
|
+
} = o, D = T(s, d, p), f = p[E.property];
|
349
|
+
return D ? r(ke, {
|
332
350
|
modelValue: p[E.property],
|
333
|
-
"onUpdate:modelValue": (
|
334
|
-
p[E.property] =
|
351
|
+
"onUpdate:modelValue": (S) => {
|
352
|
+
p[E.property] = S;
|
335
353
|
},
|
336
|
-
maxlength:
|
354
|
+
maxlength: u,
|
337
355
|
placeholder: b,
|
338
|
-
clearable:
|
356
|
+
clearable: c,
|
339
357
|
format: a,
|
340
358
|
sourceFormat: n
|
341
359
|
}, null) : f instanceof Date || Be.isDayjs(f) ? r("div", {
|
342
360
|
class: "cell-dateinput"
|
343
|
-
}, [
|
361
|
+
}, [K(f, a)]) : n && a ? r("div", {
|
344
362
|
class: "cell-dateinput"
|
345
|
-
}, [
|
363
|
+
}, [K(f, n, a)]) : r("div", {
|
346
364
|
class: "cell-dateinput"
|
347
365
|
}, [f]);
|
348
366
|
}
|
349
367
|
});
|
350
|
-
},
|
368
|
+
}, se = (e) => {
|
351
369
|
const {
|
352
370
|
name: t,
|
353
371
|
head: i,
|
@@ -357,9 +375,9 @@ const je = () => ({
|
|
357
375
|
fixed: g,
|
358
376
|
editable: s,
|
359
377
|
cellEditable: d,
|
360
|
-
code:
|
378
|
+
code: u,
|
361
379
|
placeholder: b,
|
362
|
-
clearable:
|
380
|
+
clearable: c,
|
363
381
|
filterable: a
|
364
382
|
} = e;
|
365
383
|
return r(v, {
|
@@ -379,24 +397,24 @@ const je = () => ({
|
|
379
397
|
const {
|
380
398
|
row: o,
|
381
399
|
column: p
|
382
|
-
} = n, E =
|
400
|
+
} = n, E = T(s, d, o), D = o[p.property];
|
383
401
|
let f;
|
384
|
-
const
|
385
|
-
return
|
402
|
+
const S = X(u, o);
|
403
|
+
return S ? f = Ae(S, D) : f = null, E ? r(Ie, {
|
386
404
|
modelValue: o[p.property],
|
387
405
|
"onUpdate:modelValue": (y) => {
|
388
406
|
o[p.property] = y;
|
389
407
|
},
|
390
|
-
code:
|
408
|
+
code: S,
|
391
409
|
placeholder: b,
|
392
|
-
clearable:
|
410
|
+
clearable: c,
|
393
411
|
filterable: a
|
394
412
|
}, null) : r("div", {
|
395
413
|
class: "cell-singleselect"
|
396
414
|
}, [f]);
|
397
415
|
}
|
398
416
|
});
|
399
|
-
},
|
417
|
+
}, de = (e) => {
|
400
418
|
const {
|
401
419
|
name: t,
|
402
420
|
head: i,
|
@@ -406,9 +424,9 @@ const je = () => ({
|
|
406
424
|
fixed: g,
|
407
425
|
editable: s,
|
408
426
|
cellEditable: d,
|
409
|
-
code:
|
427
|
+
code: u,
|
410
428
|
placeholder: b,
|
411
|
-
collapseTags:
|
429
|
+
collapseTags: c = !0,
|
412
430
|
collapseTagsTooltip: a
|
413
431
|
} = e;
|
414
432
|
return r(v, {
|
@@ -428,24 +446,24 @@ const je = () => ({
|
|
428
446
|
const {
|
429
447
|
row: o,
|
430
448
|
column: p
|
431
|
-
} = n, E =
|
449
|
+
} = n, E = T(s, d, o), D = o[p.property];
|
432
450
|
let f;
|
433
|
-
const
|
434
|
-
return
|
451
|
+
const S = X(u, o);
|
452
|
+
return S ? f = Ee(S, D) : f = null, E ? r(Pe, {
|
435
453
|
modelValue: o[p.property],
|
436
454
|
"onUpdate:modelValue": (y) => {
|
437
455
|
o[p.property] = y;
|
438
456
|
},
|
439
|
-
code:
|
457
|
+
code: S,
|
440
458
|
placeholder: b,
|
441
|
-
collapseTags:
|
459
|
+
collapseTags: c,
|
442
460
|
collapseTagsTooltip: a
|
443
461
|
}, null) : r("div", {
|
444
462
|
class: "cell-multiselect"
|
445
463
|
}, [f]);
|
446
464
|
}
|
447
465
|
});
|
448
|
-
},
|
466
|
+
}, ue = (e) => {
|
449
467
|
const {
|
450
468
|
name: t,
|
451
469
|
head: i,
|
@@ -463,15 +481,15 @@ const je = () => ({
|
|
463
481
|
fixed: g
|
464
482
|
}, {
|
465
483
|
default: (s) => {
|
466
|
-
var
|
467
|
-
const d = (b = (
|
484
|
+
var u, b;
|
485
|
+
const d = (b = (u = e.children) == null ? void 0 : u.default) == null ? void 0 : b.call(u, {
|
468
486
|
rowData: s.row,
|
469
487
|
column: e,
|
470
488
|
rowIndex: s.$index
|
471
489
|
});
|
472
490
|
return r("div", {
|
473
491
|
class: "cell-buttongroup"
|
474
|
-
}, [r(Oe, null,
|
492
|
+
}, [r(Oe, null, W(d) ? d : {
|
475
493
|
default: () => [d]
|
476
494
|
})]);
|
477
495
|
},
|
@@ -491,9 +509,9 @@ const je = () => ({
|
|
491
509
|
label: t,
|
492
510
|
headerAlign: i
|
493
511
|
}, {
|
494
|
-
default: (C) =>
|
512
|
+
default: (C) => G(m)
|
495
513
|
});
|
496
|
-
},
|
514
|
+
}, pe = (e) => {
|
497
515
|
const {
|
498
516
|
name: t,
|
499
517
|
head: i,
|
@@ -509,8 +527,8 @@ const je = () => ({
|
|
509
527
|
fixed: x
|
510
528
|
}, {
|
511
529
|
default: (g) => {
|
512
|
-
var d,
|
513
|
-
const s = (
|
530
|
+
var d, u;
|
531
|
+
const s = (u = (d = e.children) == null ? void 0 : d.default) == null ? void 0 : u.call(d, {
|
514
532
|
rowData: g.row,
|
515
533
|
column: e,
|
516
534
|
rowIndex: g.$index
|
@@ -524,69 +542,69 @@ const je = () => ({
|
|
524
542
|
return (s = (g = e.children) == null ? void 0 : g.head) == null ? void 0 : s.call(g);
|
525
543
|
}
|
526
544
|
});
|
527
|
-
},
|
545
|
+
}, G = (e) => e == null ? void 0 : e.map((t) => {
|
528
546
|
if (t.type === "OEdittableColumnString")
|
529
|
-
return le(t);
|
530
|
-
if (t.type === "OEdittableColumnLov")
|
531
547
|
return ne(t);
|
532
|
-
if (t.type === "
|
548
|
+
if (t.type === "OEdittableColumnLov")
|
533
549
|
return oe(t);
|
534
|
-
if (t.type === "
|
550
|
+
if (t.type === "OEdittableColumnCheckbox")
|
535
551
|
return re(t);
|
536
|
-
if (t.type === "
|
552
|
+
if (t.type === "OEdittableColumnNumber")
|
537
553
|
return ie(t);
|
538
|
-
if (t.type === "
|
554
|
+
if (t.type === "OEdittableColumnDate")
|
539
555
|
return ae(t);
|
540
|
-
if (t.type === "
|
556
|
+
if (t.type === "OEdittableColumnSingleselect")
|
541
557
|
return se(t);
|
542
|
-
if (t.type === "
|
558
|
+
if (t.type === "OEdittableColumnMultiselect")
|
543
559
|
return de(t);
|
560
|
+
if (t.type === "OEdittableColumnButtongroup")
|
561
|
+
return ue(t);
|
544
562
|
if (t.type === "OEdittableColumngroup")
|
545
563
|
return ce(t);
|
546
564
|
if (t.type === "OEdittableColumnDiy")
|
547
|
-
return
|
548
|
-
throw new
|
565
|
+
return pe(t);
|
566
|
+
throw new Ne(`OEdittable不能正确渲染'${t.type}'子组件。`);
|
549
567
|
});
|
550
568
|
return r("div", {
|
551
|
-
class: [
|
552
|
-
style: [
|
553
|
-
}, [r(
|
569
|
+
class: [ee, A.class],
|
570
|
+
style: [I.value, A.style]
|
571
|
+
}, [r(Se, {
|
554
572
|
ref: R,
|
555
573
|
border: !0,
|
556
|
-
data:
|
574
|
+
data: O,
|
557
575
|
height: "100%",
|
558
576
|
style: {
|
559
577
|
width: "100%"
|
560
578
|
},
|
561
|
-
"onSelection-change": (e) =>
|
562
|
-
"highlight-current-row":
|
563
|
-
"onCurrent-change": (e, t) =>
|
564
|
-
"onRow-click": (e, t, i) =>
|
579
|
+
"onSelection-change": (e) => w("selectionChange", e),
|
580
|
+
"highlight-current-row": M,
|
581
|
+
"onCurrent-change": (e, t) => w("currentRowChange", e, t),
|
582
|
+
"onRow-click": (e, t, i) => w("rowClick", e, {
|
565
583
|
name: t.property,
|
566
584
|
head: t.label
|
567
585
|
}, i),
|
568
|
-
"onRow-dblclick": (e, t, i) =>
|
586
|
+
"onRow-dblclick": (e, t, i) => w("rowDblclick", e, {
|
569
587
|
name: t.property,
|
570
588
|
head: t.label
|
571
589
|
}, i),
|
572
|
-
"onCell-click": (e, t, i, m) =>
|
590
|
+
"onCell-click": (e, t, i, m) => w("cellClick", e, {
|
573
591
|
name: t.property,
|
574
592
|
head: t.label
|
575
593
|
}, i, m),
|
576
|
-
"onCell-dblclick": (e, t, i, m) =>
|
594
|
+
"onCell-dblclick": (e, t, i, m) => w("cellDblclick", e, {
|
577
595
|
name: t.property,
|
578
596
|
head: t.label
|
579
597
|
}, i, m),
|
580
|
-
size:
|
581
|
-
rowClassName: (e) => typeof
|
598
|
+
size: j,
|
599
|
+
rowClassName: (e) => typeof U == "string" ? U : typeof U == "function" ? U({
|
582
600
|
rowData: e.row,
|
583
601
|
rowIndex: e.rowIndex
|
584
602
|
}) : "row-class-name_not_valid",
|
585
|
-
rowStyle: (e) => typeof
|
603
|
+
rowStyle: (e) => typeof L == "function" ? L({
|
586
604
|
rowData: e.row,
|
587
605
|
rowIndex: e.rowIndex
|
588
|
-
}) : typeof
|
589
|
-
cellClassName: (e) => typeof
|
606
|
+
}) : typeof L == "object" ? L : {},
|
607
|
+
cellClassName: (e) => typeof z == "string" ? z : typeof z == "function" ? z({
|
590
608
|
rowData: e.row,
|
591
609
|
column: {
|
592
610
|
name: e.column.property,
|
@@ -595,7 +613,7 @@ const je = () => ({
|
|
595
613
|
rowIndex: e.rowIndex,
|
596
614
|
columnIndex: e.columnIndex
|
597
615
|
}) : "cell-class-name_not_valid",
|
598
|
-
cellStyle: (e) => typeof
|
616
|
+
cellStyle: (e) => typeof Y == "function" ? Y({
|
599
617
|
rowData: e.row,
|
600
618
|
column: {
|
601
619
|
name: e.column.property,
|
@@ -603,20 +621,20 @@ const je = () => ({
|
|
603
621
|
},
|
604
622
|
rowIndex: e.rowIndex,
|
605
623
|
columnIndex: e.columnIndex
|
606
|
-
}) : typeof
|
624
|
+
}) : typeof Y == "object" ? Y : {}
|
607
625
|
}, {
|
608
|
-
default: () => [
|
626
|
+
default: () => [P && te(), F && le(), G(k.value)]
|
609
627
|
})]);
|
610
628
|
};
|
611
629
|
}
|
612
|
-
}), $e = () => ({}), Fe = /* @__PURE__ */
|
630
|
+
}), $e = () => ({}), Fe = /* @__PURE__ */ N({
|
613
631
|
name: "OQuerytableColumnIndex",
|
614
632
|
inheritAttrs: !1,
|
615
633
|
props: $e(),
|
616
634
|
setup(l, {
|
617
635
|
slots: h,
|
618
636
|
attrs: A,
|
619
|
-
emit:
|
637
|
+
emit: w,
|
620
638
|
expose: B
|
621
639
|
}) {
|
622
640
|
return () => null;
|
@@ -634,14 +652,14 @@ const je = () => ({
|
|
634
652
|
// input属性
|
635
653
|
maxlength: [String, Number],
|
636
654
|
placeholder: String
|
637
|
-
}), Le = /* @__PURE__ */
|
655
|
+
}), Le = /* @__PURE__ */ N({
|
638
656
|
name: "OEdittableColumnString",
|
639
657
|
inheritAttrs: !1,
|
640
658
|
props: Ue(),
|
641
659
|
setup(l, {
|
642
660
|
slots: h,
|
643
661
|
attrs: A,
|
644
|
-
emit:
|
662
|
+
emit: w,
|
645
663
|
expose: B
|
646
664
|
}) {
|
647
665
|
return () => null;
|
@@ -660,7 +678,7 @@ const je = () => ({
|
|
660
678
|
maxlength: [String, Number],
|
661
679
|
placeholder: String,
|
662
680
|
fillMapping: [String, Function]
|
663
|
-
}), Ye = /* @__PURE__ */
|
681
|
+
}), Ye = /* @__PURE__ */ N({
|
664
682
|
name: "OEdittableColumnLov",
|
665
683
|
inheritAttrs: !1,
|
666
684
|
props: ze(),
|
@@ -668,7 +686,7 @@ const je = () => ({
|
|
668
686
|
setup(l, {
|
669
687
|
slots: h,
|
670
688
|
attrs: A,
|
671
|
-
emit:
|
689
|
+
emit: w,
|
672
690
|
expose: B
|
673
691
|
}) {
|
674
692
|
return () => null;
|
@@ -683,14 +701,14 @@ const je = () => ({
|
|
683
701
|
// 是否可编辑
|
684
702
|
editable: Boolean,
|
685
703
|
cellEditable: Boolean
|
686
|
-
}), Qe = /* @__PURE__ */
|
704
|
+
}), Qe = /* @__PURE__ */ N({
|
687
705
|
name: "OEdittableColumnCheckbox",
|
688
706
|
inheritAttrs: !1,
|
689
707
|
props: He(),
|
690
708
|
setup(l, {
|
691
709
|
slots: h,
|
692
710
|
attrs: A,
|
693
|
-
emit:
|
711
|
+
emit: w,
|
694
712
|
expose: B
|
695
713
|
}) {
|
696
714
|
return () => null;
|
@@ -724,14 +742,14 @@ const je = () => ({
|
|
724
742
|
precision: Number,
|
725
743
|
controls: Boolean,
|
726
744
|
controlsPosition: String
|
727
|
-
}), Ge = /* @__PURE__ */
|
745
|
+
}), Ge = /* @__PURE__ */ N({
|
728
746
|
name: "OEdittableColumnNumber",
|
729
747
|
inheritAttrs: !1,
|
730
748
|
props: qe(),
|
731
749
|
setup(l, {
|
732
750
|
slots: h,
|
733
751
|
attrs: A,
|
734
|
-
emit:
|
752
|
+
emit: w,
|
735
753
|
expose: B
|
736
754
|
}) {
|
737
755
|
return () => null;
|
@@ -752,14 +770,14 @@ const je = () => ({
|
|
752
770
|
clearable: Boolean,
|
753
771
|
format: String,
|
754
772
|
sourceFormat: String
|
755
|
-
}), Ke = /* @__PURE__ */
|
773
|
+
}), Ke = /* @__PURE__ */ N({
|
756
774
|
name: "OEdittableColumnDate",
|
757
775
|
inheritAttrs: !1,
|
758
776
|
props: Je(),
|
759
777
|
setup(l, {
|
760
778
|
slots: h,
|
761
779
|
attrs: A,
|
762
|
-
emit:
|
780
|
+
emit: w,
|
763
781
|
expose: B
|
764
782
|
}) {
|
765
783
|
return () => null;
|
@@ -780,14 +798,14 @@ const je = () => ({
|
|
780
798
|
placeholder: String,
|
781
799
|
clearable: Boolean,
|
782
800
|
filterable: Boolean
|
783
|
-
}), Xe = /* @__PURE__ */
|
801
|
+
}), Xe = /* @__PURE__ */ N({
|
784
802
|
name: "OEdittableColumnSingleselect",
|
785
803
|
inheritAttrs: !1,
|
786
804
|
props: We(),
|
787
805
|
setup(l, {
|
788
806
|
slots: h,
|
789
807
|
attrs: A,
|
790
|
-
emit:
|
808
|
+
emit: w,
|
791
809
|
expose: B
|
792
810
|
}) {
|
793
811
|
return () => null;
|
@@ -808,14 +826,14 @@ const je = () => ({
|
|
808
826
|
placeholder: String,
|
809
827
|
collapseTags: Boolean,
|
810
828
|
collapseTagsTooltip: Boolean
|
811
|
-
}), et = /* @__PURE__ */
|
829
|
+
}), et = /* @__PURE__ */ N({
|
812
830
|
name: "OEdittableColumnMultiselect",
|
813
831
|
inheritAttrs: !1,
|
814
832
|
props: Ze(),
|
815
833
|
setup(l, {
|
816
834
|
slots: h,
|
817
835
|
attrs: A,
|
818
|
-
emit:
|
836
|
+
emit: w,
|
819
837
|
expose: B
|
820
838
|
}) {
|
821
839
|
return () => null;
|
@@ -827,7 +845,7 @@ const je = () => ({
|
|
827
845
|
name: String,
|
828
846
|
width: [String, Number],
|
829
847
|
fixed: [Boolean, String]
|
830
|
-
}), lt = /* @__PURE__ */
|
848
|
+
}), lt = /* @__PURE__ */ N({
|
831
849
|
name: "OEdittableColumnButtongroup",
|
832
850
|
inheritAttrs: !1,
|
833
851
|
props: tt(),
|
@@ -835,18 +853,18 @@ const je = () => ({
|
|
835
853
|
setup(l, {
|
836
854
|
slots: h,
|
837
855
|
attrs: A,
|
838
|
-
emit:
|
856
|
+
emit: w,
|
839
857
|
expose: B
|
840
858
|
}) {
|
841
859
|
return () => null;
|
842
860
|
}
|
843
861
|
});
|
844
862
|
function nt(l) {
|
845
|
-
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !
|
863
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !Z(l);
|
846
864
|
}
|
847
865
|
const ot = () => ({
|
848
866
|
type: String
|
849
|
-
}), rt = /* @__PURE__ */
|
867
|
+
}), rt = /* @__PURE__ */ N({
|
850
868
|
name: "OEdittableCellButton",
|
851
869
|
inheritAttrs: !1,
|
852
870
|
props: ot(),
|
@@ -854,38 +872,38 @@ const ot = () => ({
|
|
854
872
|
setup(l, {
|
855
873
|
slots: h,
|
856
874
|
attrs: A,
|
857
|
-
emit:
|
875
|
+
emit: w,
|
858
876
|
expose: B
|
859
877
|
}) {
|
860
|
-
const R = (
|
861
|
-
|
878
|
+
const R = (I) => {
|
879
|
+
w("click", I);
|
862
880
|
};
|
863
881
|
return () => {
|
864
|
-
var
|
882
|
+
var $;
|
865
883
|
const {
|
866
|
-
type:
|
867
|
-
} = l,
|
884
|
+
type: I
|
885
|
+
} = l, k = ($ = h.default) == null ? void 0 : $.call(h);
|
868
886
|
return r(Ce, {
|
869
887
|
link: !0,
|
870
|
-
type:
|
888
|
+
type: I,
|
871
889
|
size: "small",
|
872
890
|
onClick: R
|
873
|
-
}, nt(
|
874
|
-
default: () => [
|
891
|
+
}, nt(k) ? k : {
|
892
|
+
default: () => [k]
|
875
893
|
});
|
876
894
|
};
|
877
895
|
}
|
878
896
|
}), it = () => ({
|
879
897
|
head: String,
|
880
898
|
headAlign: String
|
881
|
-
}), at = /* @__PURE__ */
|
899
|
+
}), at = /* @__PURE__ */ N({
|
882
900
|
name: "OEdittableColumngroup",
|
883
901
|
inheritAttrs: !1,
|
884
902
|
props: it(),
|
885
903
|
setup(l, {
|
886
904
|
slots: h,
|
887
905
|
attrs: A,
|
888
|
-
emit:
|
906
|
+
emit: w,
|
889
907
|
expose: B
|
890
908
|
}) {
|
891
909
|
return () => null;
|
@@ -896,7 +914,7 @@ const ot = () => ({
|
|
896
914
|
name: String,
|
897
915
|
width: [String, Number],
|
898
916
|
fixed: [Boolean, String]
|
899
|
-
}), dt = /* @__PURE__ */
|
917
|
+
}), dt = /* @__PURE__ */ N({
|
900
918
|
name: "OEdittableColumnDiy",
|
901
919
|
inheritAttrs: !1,
|
902
920
|
props: st(),
|
@@ -904,12 +922,12 @@ const ot = () => ({
|
|
904
922
|
setup(l, {
|
905
923
|
slots: h,
|
906
924
|
attrs: A,
|
907
|
-
emit:
|
925
|
+
emit: w,
|
908
926
|
expose: B
|
909
927
|
}) {
|
910
928
|
return () => null;
|
911
929
|
}
|
912
|
-
}), vt =
|
930
|
+
}), vt = we(je, {
|
913
931
|
EdittableColumnIndex: Fe,
|
914
932
|
EdittableColumnString: Le,
|
915
933
|
EdittableColumnLov: Ye,
|