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