orion-design 0.1.28 → 0.1.29
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/components/Form/index.js +308 -306
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +16 -0
- package/dist/components/LovTable/index.d.ts +8 -0
- package/dist/components/Pagetable/Pagetable.d.ts +7 -0
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +75 -0
- package/dist/components/Pagetable/hooks/useColumns.js +6 -6
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/index.d.ts +7 -0
- package/dist/components/Pagetable/index.js +297 -243
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/interface.d.ts +1 -0
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +75 -0
- package/dist/components/Querytable/hooks/useColumns.js +6 -6
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +2 -0
- package/dist/components/Querytable/index.js +227 -180
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/components.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components-J6-qau6Y.js +73 -0
- package/dist/components-J6-qau6Y.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- 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
- package/dist/components-0PErqPHo.js +0 -72
- package/dist/components-0PErqPHo.js.map +0 -1
@@ -1,36 +1,36 @@
|
|
1
1
|
import "lodash-es";
|
2
|
-
import { defineComponent as C, ref as
|
3
|
-
import { withInstall as
|
4
|
-
import { ElTable as
|
5
|
-
import
|
6
|
-
import { arrayType as
|
7
|
-
import { number2string as
|
8
|
-
import
|
9
|
-
import { S as
|
10
|
-
import
|
11
|
-
import
|
2
|
+
import { defineComponent as C, ref as X, computed as Z, createVNode as o, createTextVNode as ee, isVNode as P } from "vue";
|
3
|
+
import { withInstall as te } from "../_util/vue/install.js";
|
4
|
+
import { ElTable as le, ElTableColumn as w, ElButton as re } from "element-plus";
|
5
|
+
import ne from "../_util/classNames.js";
|
6
|
+
import { arrayType as oe, booleanType as v, stringType as l, someType as c, numberType as ae } from "../_util/type.js";
|
7
|
+
import { number2string as se, formatDate as R, getSingleCodeContent as N, getMultiCodeContent as q } from "./utils/index.js";
|
8
|
+
import ue from "dayjs";
|
9
|
+
import { S as ie } from "../../index-BbsXWo7C.js";
|
10
|
+
import ce from "../../error/OrionError.js";
|
11
|
+
import de from "./hooks/useColumns.js";
|
12
12
|
import M from "../../Throne/index.js";
|
13
|
-
function
|
14
|
-
return typeof
|
13
|
+
function pe(r) {
|
14
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !P(r);
|
15
15
|
}
|
16
|
-
const
|
17
|
-
data:
|
16
|
+
const me = () => ({
|
17
|
+
data: oe(),
|
18
18
|
showRowNumber: v(!0),
|
19
19
|
selectionMode: v(!1),
|
20
20
|
currentRowMode: v(!1),
|
21
|
-
size:
|
22
|
-
}),
|
21
|
+
size: l()
|
22
|
+
}), he = /* @__PURE__ */ C({
|
23
23
|
name: "OQuerytable",
|
24
24
|
inheritAttrs: !1,
|
25
|
-
props:
|
25
|
+
props: me(),
|
26
26
|
emits: ["selectionChange", "currentRowChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick"],
|
27
|
-
setup(
|
28
|
-
slots:
|
29
|
-
attrs:
|
27
|
+
setup(r, {
|
28
|
+
slots: m,
|
29
|
+
attrs: f,
|
30
30
|
emit: i,
|
31
31
|
expose: b
|
32
32
|
}) {
|
33
|
-
const S =
|
33
|
+
const S = X(), B = Z(() => ({})), k = de(m);
|
34
34
|
return b({
|
35
35
|
clearSelection: () => {
|
36
36
|
S.value.clearSelection();
|
@@ -43,47 +43,73 @@ const pe = () => ({
|
|
43
43
|
}), () => {
|
44
44
|
const {
|
45
45
|
data: Q
|
46
|
-
} =
|
46
|
+
} = r, {
|
47
47
|
selectionMode: j = !1
|
48
|
-
} =
|
48
|
+
} = r, {
|
49
49
|
showRowNumber: I = !0
|
50
|
-
} =
|
50
|
+
} = r, {
|
51
51
|
currentRowMode: V = !1
|
52
|
-
} =
|
53
|
-
size:
|
54
|
-
} =
|
52
|
+
} = r, {
|
53
|
+
size: L = "default"
|
54
|
+
} = r, $ = ne("orion-querytable"), z = () => o(w, {
|
55
55
|
type: "index",
|
56
56
|
label: "No",
|
57
57
|
width: 56,
|
58
58
|
fixed: "left",
|
59
59
|
showOverflowTooltip: !0,
|
60
60
|
index: (t) => t + 1
|
61
|
-
}, null),
|
61
|
+
}, null), E = () => o(w, {
|
62
62
|
type: "selection",
|
63
63
|
width: 40,
|
64
64
|
fixed: "left"
|
65
|
-
}, null),
|
65
|
+
}, null), Y = (t) => {
|
66
66
|
const {
|
67
67
|
name: e,
|
68
68
|
head: n,
|
69
69
|
headAlign: s,
|
70
|
-
width:
|
70
|
+
width: p,
|
71
71
|
fixed: h
|
72
72
|
} = t;
|
73
73
|
return o(w, {
|
74
74
|
label: n,
|
75
75
|
headerAlign: s,
|
76
76
|
prop: e,
|
77
|
-
width:
|
77
|
+
width: p,
|
78
78
|
fixed: h,
|
79
79
|
showOverflowTooltip: !0
|
80
80
|
}, null);
|
81
|
+
}, F = (t) => {
|
82
|
+
const {
|
83
|
+
name: e,
|
84
|
+
head: n,
|
85
|
+
headAlign: s,
|
86
|
+
width: p,
|
87
|
+
fixed: h
|
88
|
+
} = t;
|
89
|
+
return o(w, {
|
90
|
+
label: n,
|
91
|
+
headerAlign: s,
|
92
|
+
prop: e,
|
93
|
+
width: p,
|
94
|
+
fixed: h,
|
95
|
+
showOverflowTooltip: !0
|
96
|
+
}, {
|
97
|
+
default: (a) => {
|
98
|
+
const {
|
99
|
+
row: d,
|
100
|
+
column: u
|
101
|
+
} = a;
|
102
|
+
return o("span", {
|
103
|
+
class: "cell-linkcolumn"
|
104
|
+
}, [d[u.property]]);
|
105
|
+
}
|
106
|
+
});
|
81
107
|
}, H = (t) => {
|
82
108
|
const {
|
83
109
|
name: e,
|
84
110
|
head: n,
|
85
111
|
headAlign: s,
|
86
|
-
width:
|
112
|
+
width: p,
|
87
113
|
fixed: h
|
88
114
|
} = t, {
|
89
115
|
thousandsSeparator: a = !0,
|
@@ -95,18 +121,18 @@ const pe = () => ({
|
|
95
121
|
headerAlign: s,
|
96
122
|
align: "right",
|
97
123
|
prop: e,
|
98
|
-
width:
|
124
|
+
width: p,
|
99
125
|
fixed: h,
|
100
126
|
showOverflowTooltip: !0
|
101
127
|
}, {
|
102
|
-
default: (
|
128
|
+
default: (g) => {
|
103
129
|
const {
|
104
130
|
row: x,
|
105
|
-
column:
|
106
|
-
} =
|
131
|
+
column: y
|
132
|
+
} = g;
|
107
133
|
return o("span", {
|
108
134
|
class: "cell-numbercolumn"
|
109
|
-
}, [
|
135
|
+
}, [se(x[y.property], a, d, u === !0 || u === "")]);
|
110
136
|
}
|
111
137
|
});
|
112
138
|
}, _ = (t) => {
|
@@ -114,7 +140,7 @@ const pe = () => ({
|
|
114
140
|
name: e,
|
115
141
|
head: n,
|
116
142
|
headAlign: s,
|
117
|
-
width:
|
143
|
+
width: p,
|
118
144
|
fixed: h,
|
119
145
|
sourceFormat: a,
|
120
146
|
format: d = "YYYYMMDDHHmmss"
|
@@ -123,16 +149,16 @@ const pe = () => ({
|
|
123
149
|
label: n,
|
124
150
|
headerAlign: s,
|
125
151
|
prop: e,
|
126
|
-
width:
|
152
|
+
width: p,
|
127
153
|
fixed: h,
|
128
154
|
showOverflowTooltip: !0
|
129
155
|
}, {
|
130
156
|
default: (u) => {
|
131
157
|
const {
|
132
|
-
row:
|
158
|
+
row: g,
|
133
159
|
column: x
|
134
|
-
} = u,
|
135
|
-
return
|
160
|
+
} = u, y = g[x.property];
|
161
|
+
return y instanceof Date || ue.isDayjs(y) ? o("div", null, [R(y, d)]) : a && d ? o("div", null, [R(y, a, d)]) : o("div", null, [y]);
|
136
162
|
}
|
137
163
|
});
|
138
164
|
}, G = (t) => {
|
@@ -140,7 +166,7 @@ const pe = () => ({
|
|
140
166
|
name: e,
|
141
167
|
head: n,
|
142
168
|
headAlign: s,
|
143
|
-
width:
|
169
|
+
width: p,
|
144
170
|
fixed: h
|
145
171
|
} = t, {
|
146
172
|
code: a
|
@@ -149,17 +175,17 @@ const pe = () => ({
|
|
149
175
|
label: n,
|
150
176
|
headerAlign: s,
|
151
177
|
prop: e,
|
152
|
-
width:
|
178
|
+
width: p,
|
153
179
|
fixed: h,
|
154
180
|
showOverflowTooltip: !0
|
155
181
|
}, {
|
156
182
|
default: (d) => {
|
157
183
|
const {
|
158
184
|
row: u,
|
159
|
-
column:
|
160
|
-
} = d, x = u[
|
161
|
-
let
|
162
|
-
return a ? typeof a == "string" ? (
|
185
|
+
column: g
|
186
|
+
} = d, x = u[g.property];
|
187
|
+
let y, A, O;
|
188
|
+
return a ? typeof a == "string" ? (y = a, A = M.getCode(y), O = N(A.value, x)) : (A = a, O = N(A, x)) : O = null, o("span", {
|
163
189
|
class: "cell-singleselect"
|
164
190
|
}, [O]);
|
165
191
|
}
|
@@ -169,7 +195,7 @@ const pe = () => ({
|
|
169
195
|
name: e,
|
170
196
|
head: n,
|
171
197
|
headAlign: s,
|
172
|
-
width:
|
198
|
+
width: p,
|
173
199
|
fixed: h
|
174
200
|
} = t, {
|
175
201
|
code: a
|
@@ -178,17 +204,17 @@ const pe = () => ({
|
|
178
204
|
label: n,
|
179
205
|
headerAlign: s,
|
180
206
|
prop: e,
|
181
|
-
width:
|
207
|
+
width: p,
|
182
208
|
fixed: h,
|
183
209
|
showOverflowTooltip: !0
|
184
210
|
}, {
|
185
211
|
default: (d) => {
|
186
212
|
const {
|
187
213
|
row: u,
|
188
|
-
column:
|
189
|
-
} = d, x = u[
|
190
|
-
let
|
191
|
-
return a ? typeof a == "string" ? (
|
214
|
+
column: g
|
215
|
+
} = d, x = u[g.property];
|
216
|
+
let y, A, O;
|
217
|
+
return a ? typeof a == "string" ? (y = a, A = M.getCode(y), O = q(A.value, x)) : (A = a, O = q(A, x)) : O = null, o("span", {
|
192
218
|
class: "cell-multiselect"
|
193
219
|
}, [O]);
|
194
220
|
}
|
@@ -198,31 +224,31 @@ const pe = () => ({
|
|
198
224
|
name: e,
|
199
225
|
head: n,
|
200
226
|
headAlign: s,
|
201
|
-
width:
|
227
|
+
width: p,
|
202
228
|
fixed: h
|
203
229
|
} = t;
|
204
230
|
return o(w, {
|
205
231
|
label: n,
|
206
232
|
headerAlign: s,
|
207
233
|
prop: e,
|
208
|
-
width:
|
234
|
+
width: p,
|
209
235
|
fixed: h
|
210
236
|
}, {
|
211
237
|
default: (a) => {
|
212
|
-
var u,
|
213
|
-
const d = (
|
238
|
+
var u, g;
|
239
|
+
const d = (g = (u = t.children) == null ? void 0 : u.default) == null ? void 0 : g.call(u, {
|
214
240
|
rowData: a.row,
|
215
241
|
column: t,
|
216
242
|
rowIndex: a.$index
|
217
243
|
});
|
218
244
|
return o("div", {
|
219
245
|
class: "cell-buttongroup"
|
220
|
-
}, [o(
|
246
|
+
}, [o(ie, null, pe(d) ? d : {
|
221
247
|
default: () => [d]
|
222
248
|
})]);
|
223
249
|
}
|
224
250
|
});
|
225
|
-
},
|
251
|
+
}, U = (t) => {
|
226
252
|
const {
|
227
253
|
head: e,
|
228
254
|
headAlign: n
|
@@ -233,37 +259,39 @@ const pe = () => ({
|
|
233
259
|
label: e,
|
234
260
|
headerAlign: n
|
235
261
|
}, {
|
236
|
-
default: (
|
262
|
+
default: (p) => T(s)
|
237
263
|
});
|
238
|
-
},
|
264
|
+
}, W = (t) => {
|
239
265
|
const {
|
240
266
|
name: e,
|
241
267
|
head: n,
|
242
268
|
headAlign: s,
|
243
|
-
width:
|
269
|
+
width: p,
|
244
270
|
fixed: h
|
245
271
|
} = t;
|
246
272
|
return o(w, {
|
247
273
|
label: n,
|
248
274
|
headerAlign: s,
|
249
275
|
prop: e,
|
250
|
-
width:
|
276
|
+
width: p,
|
251
277
|
fixed: h
|
252
278
|
}, {
|
253
279
|
default: (a) => {
|
254
|
-
var u,
|
255
|
-
const d = (
|
280
|
+
var u, g;
|
281
|
+
const d = (g = (u = t.children) == null ? void 0 : u.default) == null ? void 0 : g.call(u, {
|
256
282
|
rowData: a.row,
|
257
283
|
column: t,
|
258
284
|
rowIndex: a.$index
|
259
285
|
});
|
260
286
|
return o("div", {
|
261
287
|
class: "cell-diy"
|
262
|
-
}, [d,
|
288
|
+
}, [d, ee(" ")]);
|
263
289
|
}
|
264
290
|
});
|
265
|
-
},
|
291
|
+
}, T = (t) => t == null ? void 0 : t.map((e) => {
|
266
292
|
if (e.type === "OQuerytableColumnString")
|
293
|
+
return Y(e);
|
294
|
+
if (e.type === "OQuerytableColumnLink")
|
267
295
|
return F(e);
|
268
296
|
if (e.type === "OQuerytableColumnNumber")
|
269
297
|
return H(e);
|
@@ -276,15 +304,15 @@ const pe = () => ({
|
|
276
304
|
if (e.type === "OQuerytableColumnButtongroup")
|
277
305
|
return K(e);
|
278
306
|
if (e.type === "OQuerytableColumngroup")
|
279
|
-
return L(e);
|
280
|
-
if (e.type === "OQuerytableColumnDiy")
|
281
307
|
return U(e);
|
282
|
-
|
308
|
+
if (e.type === "OQuerytableColumnDiy")
|
309
|
+
return W(e);
|
310
|
+
throw new ce(`OQuerytable不能正确渲染'${e.type}'子组件。`);
|
283
311
|
});
|
284
312
|
return o("div", {
|
285
|
-
class: [
|
286
|
-
style: [B.value,
|
287
|
-
}, [o(
|
313
|
+
class: [$, f.class],
|
314
|
+
style: [B.value, f.style]
|
315
|
+
}, [o(le, {
|
288
316
|
ref: S,
|
289
317
|
border: !0,
|
290
318
|
data: Q,
|
@@ -311,155 +339,173 @@ const pe = () => ({
|
|
311
339
|
name: e.property,
|
312
340
|
head: e.label
|
313
341
|
}, n, s),
|
314
|
-
size:
|
342
|
+
size: L
|
315
343
|
}, {
|
316
|
-
default: () => [I &&
|
344
|
+
default: () => [I && z(), j && E(), T(k.value)]
|
317
345
|
})]);
|
318
346
|
};
|
319
347
|
}
|
320
|
-
}),
|
348
|
+
}), fe = () => ({}), ge = /* @__PURE__ */ C({
|
321
349
|
name: "OQuerytableColumnIndex",
|
322
350
|
inheritAttrs: !1,
|
323
|
-
props:
|
324
|
-
setup(
|
325
|
-
slots:
|
326
|
-
attrs:
|
351
|
+
props: fe(),
|
352
|
+
setup(r, {
|
353
|
+
slots: m,
|
354
|
+
attrs: f,
|
327
355
|
emit: i,
|
328
356
|
expose: b
|
329
357
|
}) {
|
330
358
|
return () => null;
|
331
359
|
}
|
332
|
-
}),
|
333
|
-
head:
|
334
|
-
headAlign:
|
335
|
-
name:
|
360
|
+
}), ye = () => ({
|
361
|
+
head: l(),
|
362
|
+
headAlign: l(),
|
363
|
+
name: l(),
|
336
364
|
width: c([Boolean, String]),
|
337
365
|
fixed: c([Boolean, String])
|
338
|
-
}),
|
366
|
+
}), be = /* @__PURE__ */ C({
|
339
367
|
name: "OQuerytableColumnString",
|
340
368
|
inheritAttrs: !1,
|
341
|
-
props:
|
342
|
-
setup(
|
343
|
-
slots:
|
344
|
-
attrs:
|
369
|
+
props: ye(),
|
370
|
+
setup(r, {
|
371
|
+
slots: m,
|
372
|
+
attrs: f,
|
373
|
+
emit: i,
|
374
|
+
expose: b
|
375
|
+
}) {
|
376
|
+
return () => null;
|
377
|
+
}
|
378
|
+
}), Ce = () => ({
|
379
|
+
head: l(),
|
380
|
+
headAlign: l(),
|
381
|
+
name: l(),
|
382
|
+
width: c([Boolean, String]),
|
383
|
+
fixed: c([Boolean, String])
|
384
|
+
}), we = /* @__PURE__ */ C({
|
385
|
+
name: "OQuerytableColumnLink",
|
386
|
+
inheritAttrs: !1,
|
387
|
+
props: Ce(),
|
388
|
+
setup(r, {
|
389
|
+
slots: m,
|
390
|
+
attrs: f,
|
345
391
|
emit: i,
|
346
392
|
expose: b
|
347
393
|
}) {
|
348
394
|
return () => null;
|
349
395
|
}
|
350
|
-
}),
|
351
|
-
head:
|
352
|
-
headAlign:
|
353
|
-
name:
|
396
|
+
}), Se = () => ({
|
397
|
+
head: l(),
|
398
|
+
headAlign: l(),
|
399
|
+
name: l(),
|
354
400
|
width: c([Boolean, String]),
|
355
401
|
fixed: c([Boolean, String]),
|
356
402
|
thousandsSeparator: v(!0),
|
357
|
-
precision:
|
403
|
+
precision: ae(-1),
|
358
404
|
percentage: v(!1)
|
359
|
-
}),
|
405
|
+
}), xe = /* @__PURE__ */ C({
|
360
406
|
name: "OQuerytableColumnNumber",
|
361
407
|
inheritAttrs: !1,
|
362
|
-
props:
|
363
|
-
setup(
|
364
|
-
slots:
|
365
|
-
attrs:
|
408
|
+
props: Se(),
|
409
|
+
setup(r, {
|
410
|
+
slots: m,
|
411
|
+
attrs: f,
|
366
412
|
emit: i,
|
367
413
|
expose: b
|
368
414
|
}) {
|
369
415
|
return () => null;
|
370
416
|
}
|
371
|
-
}),
|
372
|
-
head:
|
373
|
-
headAlign:
|
374
|
-
name:
|
417
|
+
}), Ae = () => ({
|
418
|
+
head: l(),
|
419
|
+
headAlign: l(),
|
420
|
+
name: l(),
|
375
421
|
width: c([Boolean, String]),
|
376
422
|
fixed: c([Boolean, String]),
|
377
423
|
// Date
|
378
|
-
format:
|
379
|
-
sourceFormat:
|
380
|
-
}),
|
424
|
+
format: l(),
|
425
|
+
sourceFormat: l()
|
426
|
+
}), Oe = /* @__PURE__ */ C({
|
381
427
|
name: "OQuerytableColumnDate",
|
382
428
|
inheritAttrs: !1,
|
383
|
-
props:
|
384
|
-
setup(
|
385
|
-
slots:
|
386
|
-
attrs:
|
429
|
+
props: Ae(),
|
430
|
+
setup(r, {
|
431
|
+
slots: m,
|
432
|
+
attrs: f,
|
387
433
|
emit: i,
|
388
434
|
expose: b
|
389
435
|
}) {
|
390
436
|
return () => null;
|
391
437
|
}
|
392
|
-
}),
|
393
|
-
head:
|
394
|
-
headAlign:
|
395
|
-
name:
|
438
|
+
}), Qe = () => ({
|
439
|
+
head: l(),
|
440
|
+
headAlign: l(),
|
441
|
+
name: l(),
|
396
442
|
width: c([Boolean, String]),
|
397
443
|
fixed: c([Boolean, String]),
|
398
444
|
code: c([String, Array])
|
399
|
-
}),
|
445
|
+
}), Be = /* @__PURE__ */ C({
|
400
446
|
name: "OQuerytableColumnSingleselect",
|
401
447
|
inheritAttrs: !1,
|
402
|
-
props:
|
403
|
-
setup(
|
404
|
-
slots:
|
405
|
-
attrs:
|
448
|
+
props: Qe(),
|
449
|
+
setup(r, {
|
450
|
+
slots: m,
|
451
|
+
attrs: f,
|
406
452
|
emit: i,
|
407
453
|
expose: b
|
408
454
|
}) {
|
409
455
|
return () => null;
|
410
456
|
}
|
411
|
-
}),
|
412
|
-
head:
|
413
|
-
headAlign:
|
414
|
-
name:
|
457
|
+
}), ke = () => ({
|
458
|
+
head: l(),
|
459
|
+
headAlign: l(),
|
460
|
+
name: l(),
|
415
461
|
width: c([Boolean, String]),
|
416
462
|
fixed: c([Boolean, String]),
|
417
463
|
code: c([String, Array])
|
418
|
-
}),
|
464
|
+
}), ve = /* @__PURE__ */ C({
|
419
465
|
name: "OQuerytableColumnMultiselect",
|
420
466
|
inheritAttrs: !1,
|
421
|
-
props:
|
422
|
-
setup(
|
423
|
-
slots:
|
424
|
-
attrs:
|
467
|
+
props: ke(),
|
468
|
+
setup(r, {
|
469
|
+
slots: m,
|
470
|
+
attrs: f,
|
425
471
|
emit: i,
|
426
472
|
expose: b
|
427
473
|
}) {
|
428
474
|
return () => null;
|
429
475
|
}
|
430
|
-
}),
|
431
|
-
head:
|
432
|
-
headAlign:
|
433
|
-
name:
|
476
|
+
}), De = () => ({
|
477
|
+
head: l(),
|
478
|
+
headAlign: l(),
|
479
|
+
name: l(),
|
434
480
|
width: c([Boolean, String]),
|
435
481
|
fixed: c([Boolean, String])
|
436
|
-
}),
|
482
|
+
}), Te = /* @__PURE__ */ C({
|
437
483
|
name: "OQuerytableColumnButtongroup",
|
438
484
|
inheritAttrs: !1,
|
439
|
-
props:
|
485
|
+
props: De(),
|
440
486
|
slots: Object,
|
441
|
-
setup(
|
442
|
-
slots:
|
443
|
-
attrs:
|
487
|
+
setup(r, {
|
488
|
+
slots: m,
|
489
|
+
attrs: f,
|
444
490
|
emit: i,
|
445
491
|
expose: b
|
446
492
|
}) {
|
447
493
|
return () => null;
|
448
494
|
}
|
449
495
|
});
|
450
|
-
function
|
451
|
-
return typeof
|
496
|
+
function Re(r) {
|
497
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !P(r);
|
452
498
|
}
|
453
|
-
const
|
454
|
-
type:
|
455
|
-
}),
|
499
|
+
const Ne = () => ({
|
500
|
+
type: l()
|
501
|
+
}), qe = /* @__PURE__ */ C({
|
456
502
|
name: "OQuerytableCellButton",
|
457
503
|
inheritAttrs: !1,
|
458
|
-
props:
|
504
|
+
props: Ne(),
|
459
505
|
emits: ["click"],
|
460
|
-
setup(
|
461
|
-
slots:
|
462
|
-
attrs:
|
506
|
+
setup(r, {
|
507
|
+
slots: m,
|
508
|
+
attrs: f,
|
463
509
|
emit: i,
|
464
510
|
expose: b
|
465
511
|
}) {
|
@@ -467,67 +513,68 @@ const Te = () => ({
|
|
467
513
|
i("click", B);
|
468
514
|
};
|
469
515
|
return () => {
|
470
|
-
var
|
516
|
+
var D;
|
471
517
|
const {
|
472
518
|
type: B
|
473
|
-
} =
|
519
|
+
} = r, k = (D = m.default) == null ? void 0 : D.call(m);
|
474
520
|
return o(re, {
|
475
521
|
link: !0,
|
476
522
|
type: B,
|
477
523
|
size: "small",
|
478
524
|
onClick: S
|
479
|
-
},
|
480
|
-
default: () => [
|
525
|
+
}, Re(k) ? k : {
|
526
|
+
default: () => [k]
|
481
527
|
});
|
482
528
|
};
|
483
529
|
}
|
484
|
-
}),
|
485
|
-
head:
|
486
|
-
headAlign:
|
487
|
-
}),
|
530
|
+
}), Me = () => ({
|
531
|
+
head: l(),
|
532
|
+
headAlign: l()
|
533
|
+
}), Pe = /* @__PURE__ */ C({
|
488
534
|
name: "OQuerytableColumngroup",
|
489
535
|
inheritAttrs: !1,
|
490
|
-
props:
|
491
|
-
setup(
|
492
|
-
slots:
|
493
|
-
attrs:
|
536
|
+
props: Me(),
|
537
|
+
setup(r, {
|
538
|
+
slots: m,
|
539
|
+
attrs: f,
|
494
540
|
emit: i,
|
495
541
|
expose: b
|
496
542
|
}) {
|
497
543
|
return () => null;
|
498
544
|
}
|
499
|
-
}),
|
500
|
-
head:
|
501
|
-
headAlign:
|
502
|
-
name:
|
545
|
+
}), je = () => ({
|
546
|
+
head: l(),
|
547
|
+
headAlign: l(),
|
548
|
+
name: l(),
|
503
549
|
width: c([Boolean, String]),
|
504
550
|
fixed: c([Boolean, String])
|
505
|
-
}),
|
551
|
+
}), Ie = /* @__PURE__ */ C({
|
506
552
|
name: "OQuerytableColumnDiy",
|
507
553
|
inheritAttrs: !1,
|
508
|
-
props:
|
554
|
+
props: je(),
|
509
555
|
slots: Object,
|
510
|
-
setup(
|
511
|
-
slots:
|
512
|
-
attrs:
|
556
|
+
setup(r, {
|
557
|
+
slots: m,
|
558
|
+
attrs: f,
|
513
559
|
emit: i,
|
514
560
|
expose: b
|
515
561
|
}) {
|
516
562
|
return () => null;
|
517
563
|
}
|
518
|
-
}),
|
519
|
-
QuerytableColumnIndex:
|
520
|
-
QuerytableColumnString:
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
564
|
+
}), tt = te(he, {
|
565
|
+
QuerytableColumnIndex: ge,
|
566
|
+
QuerytableColumnString: be,
|
567
|
+
QuerytableColumnLink: we,
|
568
|
+
QuerytableColumnNumber: xe,
|
569
|
+
QuerytableColumnDate: Oe,
|
570
|
+
QuerytableColumnSingleselect: Be,
|
571
|
+
QuerytableColumnMultiselect: ve,
|
572
|
+
QuerytableColumnButtongroup: Te,
|
573
|
+
QuerytableCellButton: qe,
|
574
|
+
QuerytableColumngroup: Pe,
|
575
|
+
QuerytableColumnDiy: Ie
|
529
576
|
});
|
530
577
|
export {
|
531
|
-
|
578
|
+
tt as default
|
532
579
|
};
|
533
580
|
//# sourceMappingURL=index.js.map
|