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