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