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