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