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