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