orion-design 0.1.53 → 0.1.54
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 +3 -1
- package/dist/components/Pagetable/hooks/usePagetable.js +32 -26
- 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,453 +1,473 @@
|
|
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 { S as Pe } from "../../index-BbsXWo7C.js";
|
2
|
+
import { defineComponent as y, ref as ie, computed as j, createVNode as r, createTextVNode as ue, isVNode as E } from "vue";
|
3
|
+
import { withInstall as se } from "../_util/vue/install.js";
|
4
|
+
import { ElTable as ge, ElTableColumn as S, ElPagination as ce, ElButton as pe } from "element-plus";
|
5
|
+
import de from "../_antd_util/classNames.js";
|
6
|
+
import { number2string as me, formatDate as $, getSingleCodeContent as fe, getMultiCodeContent as he } from "./utils/index.js";
|
7
|
+
import be from "dayjs";
|
8
|
+
import { S as we } from "../../index-CvcZkdiG.js";
|
10
9
|
import F from "../../error/OrionError.js";
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import { default as
|
14
|
-
function
|
15
|
-
return typeof
|
10
|
+
import Se from "./hooks/useColumns.js";
|
11
|
+
import V from "./hooks/useCode.js";
|
12
|
+
import { default as pt } from "./hooks/usePagetable.js";
|
13
|
+
function ye(l) {
|
14
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !E(l);
|
16
15
|
}
|
17
|
-
const
|
18
|
-
data:
|
19
|
-
tailData:
|
20
|
-
pagination:
|
21
|
-
paginationTeleported:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
16
|
+
const Ce = () => ({
|
17
|
+
data: Array,
|
18
|
+
tailData: Object,
|
19
|
+
pagination: Object,
|
20
|
+
paginationTeleported: {
|
21
|
+
type: Boolean,
|
22
|
+
default: !0
|
23
|
+
},
|
24
|
+
paginationPagerCount: Number,
|
25
|
+
paginationShowTotal: {
|
26
|
+
type: Boolean,
|
27
|
+
default: !0
|
28
|
+
},
|
29
|
+
paginationShowSizes: {
|
30
|
+
type: Boolean,
|
31
|
+
default: !0
|
32
|
+
},
|
33
|
+
paginationShowJumber: {
|
34
|
+
type: Boolean,
|
35
|
+
default: !0
|
36
|
+
},
|
37
|
+
showRowNumber: {
|
38
|
+
type: Boolean,
|
39
|
+
default: !0
|
40
|
+
},
|
41
|
+
selectionMode: {
|
42
|
+
type: Boolean,
|
43
|
+
default: !1
|
44
|
+
},
|
45
|
+
currentRowMode: {
|
46
|
+
type: Boolean,
|
47
|
+
default: !1
|
48
|
+
},
|
49
|
+
size: String,
|
50
|
+
rowClassName: [String, Function],
|
51
|
+
rowStyle: [Object, Function],
|
52
|
+
cellClassName: [String, Function],
|
53
|
+
cellStyle: [Object, Function]
|
54
|
+
}), xe = /* @__PURE__ */ y({
|
35
55
|
name: "OPagetable",
|
36
56
|
inheritAttrs: !1,
|
37
|
-
props:
|
57
|
+
props: Ce(),
|
38
58
|
emits: ["selectionChange", "currentRowChange", "update:pagination", "paginationChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick", "select", "select-all"],
|
39
|
-
setup(
|
40
|
-
slots:
|
41
|
-
attrs:
|
42
|
-
emit:
|
43
|
-
expose:
|
59
|
+
setup(l, {
|
60
|
+
slots: u,
|
61
|
+
attrs: b,
|
62
|
+
emit: a,
|
63
|
+
expose: w
|
44
64
|
}) {
|
45
|
-
const
|
46
|
-
let
|
47
|
-
|
65
|
+
const A = ie(), B = j(() => ({})), O = Se(u), R = j(() => {
|
66
|
+
let p = [];
|
67
|
+
l.showRowNumber && p.push({
|
48
68
|
type: "__showRowNumber__"
|
49
|
-
}),
|
69
|
+
}), l.selectionMode && p.push({
|
50
70
|
type: "__selectionMode__"
|
51
71
|
});
|
52
|
-
function
|
53
|
-
if (
|
54
|
-
for (let
|
55
|
-
const
|
56
|
-
|
57
|
-
...
|
72
|
+
function P(g) {
|
73
|
+
if (g)
|
74
|
+
for (let C = 0; C < g.length; C++) {
|
75
|
+
const N = g[C];
|
76
|
+
N.type === "OPagetableColumngroup" ? P(N.children) : p.push({
|
77
|
+
...N
|
58
78
|
});
|
59
79
|
}
|
60
80
|
}
|
61
|
-
return
|
62
|
-
}),
|
63
|
-
function
|
64
|
-
if (!
|
81
|
+
return P(O.value), p;
|
82
|
+
}), L = j(() => {
|
83
|
+
function p(P) {
|
84
|
+
if (!P)
|
65
85
|
return !1;
|
66
|
-
for (let
|
67
|
-
const
|
68
|
-
if (
|
69
|
-
if (
|
86
|
+
for (let g = 0; g < P.length; g++) {
|
87
|
+
const C = P[g];
|
88
|
+
if (C.type === "OPagetableColumngroup") {
|
89
|
+
if (p(C.children))
|
70
90
|
return !0;
|
71
|
-
} else if (
|
91
|
+
} else if (C.tail === "" || C.tail === !0 || C.tail)
|
72
92
|
return !0;
|
73
93
|
}
|
74
94
|
return !1;
|
75
95
|
}
|
76
|
-
return
|
96
|
+
return p(O.value);
|
77
97
|
});
|
78
|
-
return
|
98
|
+
return w({
|
79
99
|
clearSelection: () => {
|
80
|
-
|
100
|
+
A.value.clearSelection();
|
81
101
|
},
|
82
|
-
getSelectionRows: () =>
|
83
|
-
toggleRowSelection: (...
|
84
|
-
toggleAllSelection: () =>
|
85
|
-
setCurrentRow: (...
|
86
|
-
scrollTo: (...
|
102
|
+
getSelectionRows: () => A.value.getSelectionRows(),
|
103
|
+
toggleRowSelection: (...p) => A.value.toggleRowSelection(...p),
|
104
|
+
toggleAllSelection: () => A.value.toggleAllSelection(),
|
105
|
+
setCurrentRow: (...p) => A.value.setCurrentRow(...p),
|
106
|
+
scrollTo: (...p) => A.value.scrollTo(...p)
|
87
107
|
}), () => {
|
88
108
|
const {
|
89
|
-
data:
|
90
|
-
} =
|
91
|
-
selectionMode:
|
92
|
-
} =
|
93
|
-
pagination:
|
94
|
-
paginationTeleported:
|
95
|
-
paginationPagerCount:
|
96
|
-
paginationShowTotal:
|
97
|
-
paginationShowSizes:
|
98
|
-
paginationShowJumber:
|
99
|
-
} =
|
100
|
-
showRowNumber:
|
101
|
-
} =
|
102
|
-
currentRowMode:
|
103
|
-
} =
|
104
|
-
size:
|
105
|
-
} =
|
106
|
-
rowClassName:
|
107
|
-
rowStyle:
|
108
|
-
cellClassName:
|
109
|
-
cellStyle:
|
110
|
-
} =
|
111
|
-
const t =
|
112
|
-
return
|
113
|
-
if (
|
109
|
+
data: p
|
110
|
+
} = l, {
|
111
|
+
selectionMode: P = !1
|
112
|
+
} = l, {
|
113
|
+
pagination: g,
|
114
|
+
paginationTeleported: C,
|
115
|
+
paginationPagerCount: N,
|
116
|
+
paginationShowTotal: Y,
|
117
|
+
paginationShowSizes: H,
|
118
|
+
paginationShowJumber: J
|
119
|
+
} = l, {
|
120
|
+
showRowNumber: U = !0
|
121
|
+
} = l, {
|
122
|
+
currentRowMode: q = !1
|
123
|
+
} = l, {
|
124
|
+
size: z = "default"
|
125
|
+
} = l, {
|
126
|
+
rowClassName: k,
|
127
|
+
rowStyle: _,
|
128
|
+
cellClassName: I,
|
129
|
+
cellStyle: T
|
130
|
+
} = l, G = (e) => {
|
131
|
+
const t = j(() => l.tailData);
|
132
|
+
return R.value.map((n) => {
|
133
|
+
if (n.type === "__showRowNumber__")
|
114
134
|
return "Σ";
|
115
|
-
if (
|
135
|
+
if (n.type === "__selectionMode__" || !t.value)
|
116
136
|
return;
|
117
|
-
const
|
118
|
-
if (
|
119
|
-
if (
|
120
|
-
if (t.value[
|
121
|
-
return t.value[
|
137
|
+
const o = n.name, i = n.tail;
|
138
|
+
if (i != null && i !== !1)
|
139
|
+
if (i === "" || i === !0) {
|
140
|
+
if (t.value[o] != null)
|
141
|
+
return t.value[o];
|
122
142
|
} else {
|
123
|
-
if (typeof
|
124
|
-
return
|
125
|
-
throw new F(`列[${
|
143
|
+
if (typeof i == "string")
|
144
|
+
return i.replace("{}", t.value[o]);
|
145
|
+
throw new F(`列[${o}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof i}]类型。`);
|
126
146
|
}
|
127
147
|
});
|
128
|
-
},
|
148
|
+
}, K = de("orion-pagetbale"), Q = () => r(S, {
|
129
149
|
type: "index",
|
130
150
|
label: "No",
|
131
151
|
headerAlign: "center",
|
132
152
|
align: "center",
|
133
153
|
width: 56,
|
134
|
-
fixed:
|
154
|
+
fixed: u.expandedRowRender ? !1 : "left",
|
135
155
|
showOverflowTooltip: !0,
|
136
|
-
index: (t) => (
|
137
|
-
}, null),
|
156
|
+
index: (t) => (g.currentPage - 1) * g.pageSize + t + 1
|
157
|
+
}, null), W = () => r(S, {
|
138
158
|
type: "selection",
|
139
159
|
headerAlign: "center",
|
140
160
|
align: "center",
|
141
161
|
width: 40,
|
142
|
-
fixed:
|
143
|
-
}, null),
|
162
|
+
fixed: u.expandedRowRender ? !1 : "left"
|
163
|
+
}, null), X = (e) => {
|
144
164
|
const {
|
145
165
|
name: t,
|
146
|
-
head:
|
147
|
-
headAlign:
|
148
|
-
bodyAlign:
|
149
|
-
width:
|
150
|
-
fixed:
|
166
|
+
head: n,
|
167
|
+
headAlign: o = "center",
|
168
|
+
bodyAlign: i,
|
169
|
+
width: m,
|
170
|
+
fixed: d
|
151
171
|
} = e;
|
152
|
-
return
|
153
|
-
label:
|
154
|
-
headerAlign:
|
155
|
-
align:
|
172
|
+
return r(S, {
|
173
|
+
label: n,
|
174
|
+
headerAlign: o,
|
175
|
+
align: i,
|
156
176
|
prop: t,
|
157
|
-
width:
|
158
|
-
fixed:
|
177
|
+
width: m,
|
178
|
+
fixed: d,
|
159
179
|
showOverflowTooltip: !0
|
160
180
|
}, null);
|
161
|
-
},
|
181
|
+
}, Z = (e) => {
|
162
182
|
const {
|
163
183
|
name: t,
|
164
|
-
head:
|
165
|
-
headAlign:
|
166
|
-
bodyAlign:
|
167
|
-
width:
|
168
|
-
fixed:
|
184
|
+
head: n,
|
185
|
+
headAlign: o = "center",
|
186
|
+
bodyAlign: i,
|
187
|
+
width: m,
|
188
|
+
fixed: d
|
169
189
|
} = e;
|
170
|
-
return
|
171
|
-
label:
|
172
|
-
headerAlign:
|
173
|
-
align:
|
190
|
+
return r(S, {
|
191
|
+
label: n,
|
192
|
+
headerAlign: o,
|
193
|
+
align: i,
|
174
194
|
prop: t,
|
175
|
-
width:
|
176
|
-
fixed:
|
195
|
+
width: m,
|
196
|
+
fixed: d,
|
177
197
|
showOverflowTooltip: !0
|
178
198
|
}, {
|
179
|
-
default: (
|
199
|
+
default: (f) => {
|
180
200
|
const {
|
181
|
-
row:
|
182
|
-
column:
|
183
|
-
} =
|
184
|
-
return
|
201
|
+
row: s,
|
202
|
+
column: c
|
203
|
+
} = f;
|
204
|
+
return r("span", {
|
185
205
|
class: "cell-linkcolumn"
|
186
|
-
}, [
|
206
|
+
}, [s[c.property]]);
|
187
207
|
}
|
188
208
|
});
|
189
|
-
},
|
209
|
+
}, ee = (e) => {
|
190
210
|
const {
|
191
211
|
name: t,
|
192
|
-
head:
|
193
|
-
headAlign:
|
194
|
-
bodyAlign:
|
195
|
-
width:
|
196
|
-
fixed:
|
212
|
+
head: n,
|
213
|
+
headAlign: o = "center",
|
214
|
+
bodyAlign: i = "right",
|
215
|
+
width: m,
|
216
|
+
fixed: d
|
197
217
|
} = e, {
|
198
|
-
thousandsSeparator:
|
199
|
-
precision:
|
200
|
-
percentage:
|
218
|
+
thousandsSeparator: f = !0,
|
219
|
+
precision: s = -1,
|
220
|
+
percentage: c = !1
|
201
221
|
} = e;
|
202
|
-
return
|
203
|
-
label:
|
204
|
-
headerAlign:
|
205
|
-
align:
|
222
|
+
return r(S, {
|
223
|
+
label: n,
|
224
|
+
headerAlign: o,
|
225
|
+
align: i,
|
206
226
|
prop: t,
|
207
|
-
width:
|
208
|
-
fixed:
|
227
|
+
width: m,
|
228
|
+
fixed: d,
|
209
229
|
showOverflowTooltip: !0
|
210
230
|
}, {
|
211
|
-
default: (
|
231
|
+
default: (x) => {
|
212
232
|
const {
|
213
|
-
row:
|
214
|
-
column:
|
215
|
-
} =
|
216
|
-
return
|
233
|
+
row: v,
|
234
|
+
column: h
|
235
|
+
} = x;
|
236
|
+
return r("span", {
|
217
237
|
class: "cell-numbercolumn"
|
218
|
-
}, [
|
238
|
+
}, [me(v[h.property], f, s, c === !0 || c === "")]);
|
219
239
|
}
|
220
240
|
});
|
221
|
-
},
|
241
|
+
}, te = (e) => {
|
222
242
|
const {
|
223
243
|
name: t,
|
224
|
-
head:
|
225
|
-
headAlign:
|
226
|
-
bodyAlign:
|
227
|
-
width:
|
228
|
-
fixed:
|
229
|
-
sourceFormat:
|
230
|
-
format:
|
244
|
+
head: n,
|
245
|
+
headAlign: o = "center",
|
246
|
+
bodyAlign: i = "center",
|
247
|
+
width: m,
|
248
|
+
fixed: d,
|
249
|
+
sourceFormat: f,
|
250
|
+
format: s = "YYYYMMDDHHmmss"
|
231
251
|
} = e;
|
232
|
-
return
|
233
|
-
label:
|
234
|
-
headerAlign:
|
235
|
-
align:
|
252
|
+
return r(S, {
|
253
|
+
label: n,
|
254
|
+
headerAlign: o,
|
255
|
+
align: i,
|
236
256
|
prop: t,
|
237
|
-
width:
|
238
|
-
fixed:
|
257
|
+
width: m,
|
258
|
+
fixed: d,
|
239
259
|
showOverflowTooltip: !0
|
240
260
|
}, {
|
241
|
-
default: (
|
261
|
+
default: (c) => {
|
242
262
|
const {
|
243
|
-
row:
|
244
|
-
column:
|
245
|
-
} =
|
246
|
-
return
|
263
|
+
row: x,
|
264
|
+
column: v
|
265
|
+
} = c, h = x[v.property];
|
266
|
+
return h instanceof Date || be.isDayjs(h) ? r("div", null, [$(h, s)]) : f && s ? r("div", null, [$(h, f, s)]) : r("div", null, [h]);
|
247
267
|
}
|
248
268
|
});
|
249
|
-
},
|
269
|
+
}, ne = (e) => {
|
250
270
|
const {
|
251
271
|
name: t,
|
252
|
-
head:
|
253
|
-
headAlign:
|
254
|
-
bodyAlign:
|
255
|
-
width:
|
256
|
-
fixed:
|
272
|
+
head: n,
|
273
|
+
headAlign: o = "center",
|
274
|
+
bodyAlign: i,
|
275
|
+
width: m,
|
276
|
+
fixed: d
|
257
277
|
} = e, {
|
258
|
-
code:
|
278
|
+
code: f
|
259
279
|
} = e;
|
260
|
-
return
|
261
|
-
label:
|
262
|
-
headerAlign:
|
263
|
-
align:
|
280
|
+
return r(S, {
|
281
|
+
label: n,
|
282
|
+
headerAlign: o,
|
283
|
+
align: i,
|
264
284
|
prop: t,
|
265
|
-
width:
|
266
|
-
fixed:
|
285
|
+
width: m,
|
286
|
+
fixed: d,
|
267
287
|
showOverflowTooltip: !0
|
268
288
|
}, {
|
269
|
-
default: (
|
289
|
+
default: (s) => {
|
270
290
|
const {
|
271
|
-
row:
|
272
|
-
column:
|
273
|
-
} =
|
274
|
-
let
|
275
|
-
const
|
276
|
-
return
|
291
|
+
row: c,
|
292
|
+
column: x
|
293
|
+
} = s, v = c[x.property];
|
294
|
+
let h;
|
295
|
+
const D = V(f);
|
296
|
+
return D.value ? h = fe(D.value, v) : h = null, r("span", {
|
277
297
|
class: "cell-singleselect"
|
278
|
-
}, [
|
298
|
+
}, [h]);
|
279
299
|
}
|
280
300
|
});
|
281
|
-
},
|
301
|
+
}, le = (e) => {
|
282
302
|
const {
|
283
303
|
name: t,
|
284
|
-
head:
|
285
|
-
headAlign:
|
286
|
-
bodyAlign:
|
287
|
-
width:
|
288
|
-
fixed:
|
304
|
+
head: n,
|
305
|
+
headAlign: o = "center",
|
306
|
+
bodyAlign: i,
|
307
|
+
width: m,
|
308
|
+
fixed: d
|
289
309
|
} = e, {
|
290
|
-
code:
|
310
|
+
code: f
|
291
311
|
} = e;
|
292
|
-
return
|
293
|
-
label:
|
294
|
-
headerAlign:
|
295
|
-
align:
|
312
|
+
return r(S, {
|
313
|
+
label: n,
|
314
|
+
headerAlign: o,
|
315
|
+
align: i,
|
296
316
|
prop: t,
|
297
|
-
width:
|
298
|
-
fixed:
|
317
|
+
width: m,
|
318
|
+
fixed: d,
|
299
319
|
showOverflowTooltip: !0
|
300
320
|
}, {
|
301
|
-
default: (
|
321
|
+
default: (s) => {
|
302
322
|
const {
|
303
|
-
row:
|
304
|
-
column:
|
305
|
-
} =
|
306
|
-
let
|
307
|
-
const
|
308
|
-
return
|
323
|
+
row: c,
|
324
|
+
column: x
|
325
|
+
} = s, v = c[x.property];
|
326
|
+
let h;
|
327
|
+
const D = V(f);
|
328
|
+
return D.value ? h = he(D.value, v) : h = null, r("span", {
|
309
329
|
class: "cell-multiselect"
|
310
|
-
}, [
|
330
|
+
}, [h]);
|
311
331
|
}
|
312
332
|
});
|
313
|
-
},
|
333
|
+
}, re = (e) => {
|
314
334
|
const {
|
315
335
|
name: t,
|
316
|
-
head:
|
317
|
-
headAlign:
|
318
|
-
bodyAlign:
|
319
|
-
width:
|
320
|
-
fixed:
|
336
|
+
head: n,
|
337
|
+
headAlign: o = "center",
|
338
|
+
bodyAlign: i,
|
339
|
+
width: m,
|
340
|
+
fixed: d
|
321
341
|
} = e;
|
322
|
-
return
|
323
|
-
label:
|
324
|
-
headerAlign:
|
325
|
-
align:
|
342
|
+
return r(S, {
|
343
|
+
label: n,
|
344
|
+
headerAlign: o,
|
345
|
+
align: i,
|
326
346
|
prop: t,
|
327
|
-
width:
|
328
|
-
fixed:
|
347
|
+
width: m,
|
348
|
+
fixed: d
|
329
349
|
}, {
|
330
|
-
default: (
|
331
|
-
var
|
332
|
-
const
|
333
|
-
rowData:
|
350
|
+
default: (f) => {
|
351
|
+
var c, x;
|
352
|
+
const s = (x = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : x.call(c, {
|
353
|
+
rowData: f.row,
|
334
354
|
column: e,
|
335
|
-
rowIndex:
|
355
|
+
rowIndex: f.$index
|
336
356
|
});
|
337
|
-
return
|
357
|
+
return r("div", {
|
338
358
|
class: "cell-buttongroup"
|
339
|
-
}, [
|
340
|
-
default: () => [
|
359
|
+
}, [r(we, null, ye(s) ? s : {
|
360
|
+
default: () => [s]
|
341
361
|
})]);
|
342
362
|
}
|
343
363
|
});
|
344
|
-
},
|
364
|
+
}, oe = (e) => {
|
345
365
|
const {
|
346
366
|
head: t,
|
347
|
-
headAlign:
|
367
|
+
headAlign: n = "center"
|
348
368
|
} = e, {
|
349
|
-
children:
|
369
|
+
children: o
|
350
370
|
} = e;
|
351
|
-
return
|
371
|
+
return r(S, {
|
352
372
|
label: t,
|
353
|
-
headerAlign:
|
373
|
+
headerAlign: n
|
354
374
|
}, {
|
355
|
-
default: (
|
375
|
+
default: (i) => M(o)
|
356
376
|
});
|
357
|
-
},
|
377
|
+
}, ae = (e) => {
|
358
378
|
const {
|
359
379
|
name: t,
|
360
|
-
head:
|
361
|
-
headAlign:
|
362
|
-
width:
|
363
|
-
fixed:
|
380
|
+
head: n,
|
381
|
+
headAlign: o = "center",
|
382
|
+
width: i,
|
383
|
+
fixed: m
|
364
384
|
} = e;
|
365
|
-
return
|
366
|
-
label:
|
367
|
-
headerAlign:
|
385
|
+
return r(S, {
|
386
|
+
label: n,
|
387
|
+
headerAlign: o,
|
368
388
|
prop: t,
|
369
|
-
width:
|
370
|
-
fixed:
|
389
|
+
width: i,
|
390
|
+
fixed: m
|
371
391
|
}, {
|
372
|
-
default: (
|
373
|
-
var
|
374
|
-
const
|
375
|
-
rowData:
|
392
|
+
default: (d) => {
|
393
|
+
var s, c;
|
394
|
+
const f = (c = (s = e.children) == null ? void 0 : s.default) == null ? void 0 : c.call(s, {
|
395
|
+
rowData: d.row,
|
376
396
|
column: e,
|
377
|
-
rowIndex:
|
397
|
+
rowIndex: d.$index
|
378
398
|
});
|
379
|
-
return
|
399
|
+
return r("div", {
|
380
400
|
class: "cell-diy"
|
381
|
-
}, [
|
401
|
+
}, [f, ue(" ")]);
|
382
402
|
}
|
383
403
|
});
|
384
|
-
},
|
404
|
+
}, M = (e) => e == null ? void 0 : e.map((t) => {
|
385
405
|
if (t.type === "OPagetableColumnString")
|
386
|
-
return
|
406
|
+
return X(t);
|
387
407
|
if (t.type === "OPagetableColumnLink")
|
388
|
-
return
|
408
|
+
return Z(t);
|
389
409
|
if (t.type === "OPagetableColumnNumber")
|
390
|
-
return
|
410
|
+
return ee(t);
|
391
411
|
if (t.type === "OPagetableColumnDate")
|
392
|
-
return
|
412
|
+
return te(t);
|
393
413
|
if (t.type === "OPagetableColumnSingleselect")
|
394
|
-
return
|
414
|
+
return ne(t);
|
395
415
|
if (t.type === "OPagetableColumnMultiselect")
|
396
|
-
return
|
416
|
+
return le(t);
|
397
417
|
if (t.type === "OPagetableColumnButtongroup")
|
398
|
-
return
|
418
|
+
return re(t);
|
399
419
|
if (t.type === "OPagetableColumngroup")
|
400
|
-
return
|
420
|
+
return oe(t);
|
401
421
|
if (t.type === "OPagetableColumnDiy")
|
402
|
-
return
|
422
|
+
return ae(t);
|
403
423
|
throw new F(`OPagetable不能正确渲染'${t.type.name}'子组件。`);
|
404
424
|
});
|
405
|
-
return
|
406
|
-
class: [
|
407
|
-
style: [
|
408
|
-
}, [
|
425
|
+
return r("div", {
|
426
|
+
class: [K, b.class],
|
427
|
+
style: [B.value, b.style]
|
428
|
+
}, [r("div", {
|
409
429
|
class: "pagetable-wrapper"
|
410
|
-
}, [
|
411
|
-
showSummary:
|
412
|
-
summaryMethod:
|
430
|
+
}, [r(ge, {
|
431
|
+
showSummary: L.value,
|
432
|
+
summaryMethod: G,
|
413
433
|
border: !0,
|
414
|
-
ref:
|
415
|
-
data:
|
434
|
+
ref: A,
|
435
|
+
data: p,
|
416
436
|
height: "100%",
|
417
437
|
style: {
|
418
438
|
width: "100%"
|
419
439
|
},
|
420
|
-
"onSelection-change": (e) =>
|
421
|
-
"highlight-current-row":
|
422
|
-
"onCurrent-change": (e, t) =>
|
423
|
-
"onRow-click": (e, t,
|
440
|
+
"onSelection-change": (e) => a("selectionChange", e),
|
441
|
+
"highlight-current-row": q,
|
442
|
+
"onCurrent-change": (e, t) => a("currentRowChange", e, t),
|
443
|
+
"onRow-click": (e, t, n) => a("rowClick", e, {
|
424
444
|
name: t.property,
|
425
445
|
head: t.label
|
426
|
-
},
|
427
|
-
"onRow-dblclick": (e, t,
|
446
|
+
}, n),
|
447
|
+
"onRow-dblclick": (e, t, n) => a("rowDblclick", e, {
|
428
448
|
name: t.property,
|
429
449
|
head: t.label
|
430
|
-
},
|
431
|
-
"onCell-click": (e, t,
|
450
|
+
}, n),
|
451
|
+
"onCell-click": (e, t, n, o) => a("cellClick", e, {
|
432
452
|
name: t.property,
|
433
453
|
head: t.label
|
434
|
-
},
|
435
|
-
"onCell-dblclick": (e, t,
|
454
|
+
}, n, o),
|
455
|
+
"onCell-dblclick": (e, t, n, o) => a("cellDblclick", e, {
|
436
456
|
name: t.property,
|
437
457
|
head: t.label
|
438
|
-
},
|
439
|
-
onSelect: (e, t) =>
|
440
|
-
"onSelect-all": (e) =>
|
441
|
-
size:
|
442
|
-
rowClassName: (e) => typeof
|
458
|
+
}, n, o),
|
459
|
+
onSelect: (e, t) => a("select", e, t),
|
460
|
+
"onSelect-all": (e) => a("select-all", e),
|
461
|
+
size: z,
|
462
|
+
rowClassName: (e) => typeof k == "string" ? k : typeof k == "function" ? k({
|
443
463
|
rowData: e.row,
|
444
464
|
rowIndex: e.rowIndex
|
445
465
|
}) : "row-class-name_not_valid",
|
446
|
-
rowStyle: (e) => typeof
|
466
|
+
rowStyle: (e) => typeof _ == "function" ? _({
|
447
467
|
rowData: e.row,
|
448
468
|
rowIndex: e.rowIndex
|
449
|
-
}) : typeof
|
450
|
-
cellClassName: (e) => typeof
|
469
|
+
}) : typeof _ == "object" ? _ : {},
|
470
|
+
cellClassName: (e) => typeof I == "string" ? I : typeof I == "function" ? I({
|
451
471
|
rowData: e.row,
|
452
472
|
column: {
|
453
473
|
name: e.column.property,
|
@@ -456,7 +476,7 @@ const Be = () => ({
|
|
456
476
|
rowIndex: e.rowIndex,
|
457
477
|
columnIndex: e.columnIndex
|
458
478
|
}) : "cell-class-name_not_valid",
|
459
|
-
cellStyle: (e) => typeof
|
479
|
+
cellStyle: (e) => typeof T == "function" ? T({
|
460
480
|
rowData: e.row,
|
461
481
|
column: {
|
462
482
|
name: e.column.property,
|
@@ -464,297 +484,306 @@ const Be = () => ({
|
|
464
484
|
},
|
465
485
|
rowIndex: e.rowIndex,
|
466
486
|
columnIndex: e.columnIndex
|
467
|
-
}) : typeof
|
487
|
+
}) : typeof T == "object" ? T : {}
|
468
488
|
}, {
|
469
|
-
default: () => [
|
489
|
+
default: () => [u.expandedRowRender && r(S, {
|
470
490
|
type: "expand",
|
471
491
|
fixed: !1
|
472
492
|
}, {
|
473
493
|
default: (e) => {
|
474
|
-
var
|
475
|
-
const t = (
|
494
|
+
var n;
|
495
|
+
const t = (n = u.expandedRowRender) == null ? void 0 : n.call(u, {
|
476
496
|
rowData: e.row,
|
477
497
|
rowIndex: e.$index
|
478
498
|
});
|
479
|
-
return
|
499
|
+
return r("div", {
|
480
500
|
class: "row-expand"
|
481
501
|
}, [t]);
|
482
502
|
}
|
483
|
-
}),
|
484
|
-
})]),
|
503
|
+
}), U && Q(), P && W(), M(O.value)]
|
504
|
+
})]), r("div", {
|
485
505
|
class: "pagination-wrapper"
|
486
|
-
}, [
|
487
|
-
currentPage:
|
506
|
+
}, [r(ce, {
|
507
|
+
currentPage: g.currentPage,
|
488
508
|
"onUpdate:current-page": (e) => {
|
489
|
-
|
490
|
-
...
|
509
|
+
a("update:pagination", {
|
510
|
+
...g,
|
491
511
|
currentPage: e
|
492
|
-
}),
|
512
|
+
}), a("paginationChange", e, g.pageSize);
|
493
513
|
},
|
494
|
-
pageSize:
|
495
|
-
pageSizes:
|
514
|
+
pageSize: g.pageSize,
|
515
|
+
pageSizes: g.pageSizes,
|
496
516
|
"onUpdate:page-size": (e) => {
|
497
|
-
|
498
|
-
...
|
517
|
+
a("update:pagination", {
|
518
|
+
...g,
|
499
519
|
pageSize: e
|
500
|
-
}),
|
520
|
+
}), a("paginationChange", g.currentPage, e);
|
501
521
|
},
|
502
|
-
total:
|
503
|
-
pagerCount:
|
504
|
-
layout: `${
|
522
|
+
total: g.total || 0,
|
523
|
+
pagerCount: N,
|
524
|
+
layout: `${Y ? "total," : ""} ->, ${H ? "sizes," : ""} prev, pager, next ${J ? ", jumper" : ""}`,
|
505
525
|
background: !0,
|
506
|
-
size:
|
507
|
-
teleported:
|
526
|
+
size: z,
|
527
|
+
teleported: C
|
508
528
|
}, null)])]);
|
509
529
|
};
|
510
530
|
}
|
511
|
-
}),
|
531
|
+
}), Ae = () => ({}), Pe = /* @__PURE__ */ y({
|
512
532
|
name: "OPagetableColumnIndex",
|
513
533
|
inheritAttrs: !1,
|
514
|
-
props:
|
515
|
-
setup(
|
516
|
-
slots:
|
517
|
-
attrs:
|
518
|
-
emit:
|
519
|
-
expose:
|
534
|
+
props: Ae(),
|
535
|
+
setup(l, {
|
536
|
+
slots: u,
|
537
|
+
attrs: b,
|
538
|
+
emit: a,
|
539
|
+
expose: w
|
520
540
|
}) {
|
521
541
|
return () => null;
|
522
542
|
}
|
523
|
-
}),
|
524
|
-
head:
|
525
|
-
headAlign:
|
526
|
-
bodyAlign:
|
527
|
-
name:
|
528
|
-
width:
|
529
|
-
fixed:
|
530
|
-
tail:
|
531
|
-
}),
|
543
|
+
}), Oe = () => ({
|
544
|
+
head: String,
|
545
|
+
headAlign: String,
|
546
|
+
bodyAlign: String,
|
547
|
+
name: String,
|
548
|
+
width: [String, Number],
|
549
|
+
fixed: [Boolean, String],
|
550
|
+
tail: [Boolean, String]
|
551
|
+
}), ve = /* @__PURE__ */ y({
|
532
552
|
name: "OPagetableColumnString",
|
533
553
|
inheritAttrs: !1,
|
534
|
-
props:
|
535
|
-
setup(
|
536
|
-
slots:
|
537
|
-
attrs:
|
538
|
-
emit:
|
539
|
-
expose:
|
554
|
+
props: Oe(),
|
555
|
+
setup(l, {
|
556
|
+
slots: u,
|
557
|
+
attrs: b,
|
558
|
+
emit: a,
|
559
|
+
expose: w
|
540
560
|
}) {
|
541
561
|
return () => null;
|
542
562
|
}
|
543
|
-
}),
|
544
|
-
head:
|
545
|
-
headAlign:
|
546
|
-
bodyAlign:
|
547
|
-
name:
|
548
|
-
width:
|
549
|
-
fixed:
|
550
|
-
tail:
|
551
|
-
}),
|
563
|
+
}), Be = () => ({
|
564
|
+
head: String,
|
565
|
+
headAlign: String,
|
566
|
+
bodyAlign: String,
|
567
|
+
name: String,
|
568
|
+
width: [String, Number],
|
569
|
+
fixed: [Boolean, String],
|
570
|
+
tail: [Boolean, String]
|
571
|
+
}), Ne = /* @__PURE__ */ y({
|
552
572
|
name: "OPagetableColumnLink",
|
553
573
|
inheritAttrs: !1,
|
554
|
-
props:
|
555
|
-
setup(
|
556
|
-
slots:
|
557
|
-
attrs:
|
558
|
-
emit:
|
559
|
-
expose:
|
574
|
+
props: Be(),
|
575
|
+
setup(l, {
|
576
|
+
slots: u,
|
577
|
+
attrs: b,
|
578
|
+
emit: a,
|
579
|
+
expose: w
|
560
580
|
}) {
|
561
581
|
return () => null;
|
562
582
|
}
|
563
|
-
}),
|
564
|
-
head:
|
565
|
-
headAlign:
|
566
|
-
bodyAlign:
|
567
|
-
name:
|
568
|
-
width:
|
569
|
-
fixed:
|
570
|
-
tail:
|
571
|
-
thousandsSeparator:
|
572
|
-
|
573
|
-
|
574
|
-
}
|
583
|
+
}), De = () => ({
|
584
|
+
head: String,
|
585
|
+
headAlign: String,
|
586
|
+
bodyAlign: String,
|
587
|
+
name: String,
|
588
|
+
width: [String, Number],
|
589
|
+
fixed: [Boolean, String],
|
590
|
+
tail: [Boolean, String],
|
591
|
+
thousandsSeparator: {
|
592
|
+
type: Boolean,
|
593
|
+
default: !0
|
594
|
+
},
|
595
|
+
precision: {
|
596
|
+
type: Number,
|
597
|
+
default: -1
|
598
|
+
},
|
599
|
+
percentage: {
|
600
|
+
type: Boolean,
|
601
|
+
default: !1
|
602
|
+
}
|
603
|
+
}), Re = /* @__PURE__ */ y({
|
575
604
|
name: "OPagetableColumnNumber",
|
576
605
|
inheritAttrs: !1,
|
577
|
-
props:
|
578
|
-
setup(
|
579
|
-
slots:
|
580
|
-
attrs:
|
581
|
-
emit:
|
582
|
-
expose:
|
606
|
+
props: De(),
|
607
|
+
setup(l, {
|
608
|
+
slots: u,
|
609
|
+
attrs: b,
|
610
|
+
emit: a,
|
611
|
+
expose: w
|
583
612
|
}) {
|
584
613
|
return () => null;
|
585
614
|
}
|
586
|
-
}),
|
587
|
-
head:
|
588
|
-
headAlign:
|
589
|
-
bodyAlign:
|
590
|
-
name:
|
591
|
-
width:
|
592
|
-
fixed:
|
593
|
-
tail:
|
615
|
+
}), ke = () => ({
|
616
|
+
head: String,
|
617
|
+
headAlign: String,
|
618
|
+
bodyAlign: String,
|
619
|
+
name: String,
|
620
|
+
width: [String, Number],
|
621
|
+
fixed: [Boolean, String],
|
622
|
+
tail: [Boolean, String],
|
594
623
|
// Date
|
595
|
-
format:
|
596
|
-
sourceFormat:
|
597
|
-
}),
|
624
|
+
format: String,
|
625
|
+
sourceFormat: String
|
626
|
+
}), _e = /* @__PURE__ */ y({
|
598
627
|
name: "OPagetableColumnDate",
|
599
628
|
inheritAttrs: !1,
|
600
|
-
props:
|
601
|
-
setup(
|
602
|
-
slots:
|
603
|
-
attrs:
|
604
|
-
emit:
|
605
|
-
expose:
|
629
|
+
props: ke(),
|
630
|
+
setup(l, {
|
631
|
+
slots: u,
|
632
|
+
attrs: b,
|
633
|
+
emit: a,
|
634
|
+
expose: w
|
606
635
|
}) {
|
607
636
|
return () => null;
|
608
637
|
}
|
609
|
-
}),
|
610
|
-
head:
|
611
|
-
headAlign:
|
612
|
-
bodyAlign:
|
613
|
-
name:
|
614
|
-
width:
|
615
|
-
fixed:
|
616
|
-
tail:
|
617
|
-
code:
|
618
|
-
}),
|
638
|
+
}), Ie = () => ({
|
639
|
+
head: String,
|
640
|
+
headAlign: String,
|
641
|
+
bodyAlign: String,
|
642
|
+
name: String,
|
643
|
+
width: [String, Number],
|
644
|
+
fixed: [Boolean, String],
|
645
|
+
tail: [Boolean, String],
|
646
|
+
code: [String, Array]
|
647
|
+
}), Te = /* @__PURE__ */ y({
|
619
648
|
name: "OPagetableColumnSingleselect",
|
620
649
|
inheritAttrs: !1,
|
621
|
-
props:
|
622
|
-
setup(
|
623
|
-
slots:
|
624
|
-
attrs:
|
625
|
-
emit:
|
626
|
-
expose:
|
650
|
+
props: Ie(),
|
651
|
+
setup(l, {
|
652
|
+
slots: u,
|
653
|
+
attrs: b,
|
654
|
+
emit: a,
|
655
|
+
expose: w
|
627
656
|
}) {
|
628
657
|
return () => null;
|
629
658
|
}
|
630
|
-
}),
|
631
|
-
head:
|
632
|
-
headAlign:
|
633
|
-
bodyAlign:
|
634
|
-
name:
|
635
|
-
width:
|
636
|
-
fixed:
|
637
|
-
tail:
|
638
|
-
code:
|
639
|
-
}),
|
659
|
+
}), je = () => ({
|
660
|
+
head: String,
|
661
|
+
headAlign: String,
|
662
|
+
bodyAlign: String,
|
663
|
+
name: String,
|
664
|
+
width: [String, Number],
|
665
|
+
fixed: [Boolean, String],
|
666
|
+
tail: [Boolean, String],
|
667
|
+
code: [String, Array]
|
668
|
+
}), ze = /* @__PURE__ */ y({
|
640
669
|
name: "OPagetableColumnMultiselect",
|
641
670
|
inheritAttrs: !1,
|
642
|
-
props:
|
643
|
-
setup(
|
644
|
-
slots:
|
645
|
-
attrs:
|
646
|
-
emit:
|
647
|
-
expose:
|
671
|
+
props: je(),
|
672
|
+
setup(l, {
|
673
|
+
slots: u,
|
674
|
+
attrs: b,
|
675
|
+
emit: a,
|
676
|
+
expose: w
|
648
677
|
}) {
|
649
678
|
return () => null;
|
650
679
|
}
|
651
|
-
}),
|
652
|
-
head:
|
653
|
-
headAlign:
|
654
|
-
bodyAlign:
|
655
|
-
name:
|
656
|
-
width:
|
657
|
-
fixed:
|
658
|
-
tail:
|
659
|
-
}),
|
680
|
+
}), Me = () => ({
|
681
|
+
head: String,
|
682
|
+
headAlign: String,
|
683
|
+
bodyAlign: String,
|
684
|
+
name: String,
|
685
|
+
width: [String, Number],
|
686
|
+
fixed: [Boolean, String],
|
687
|
+
tail: [Boolean, String]
|
688
|
+
}), $e = /* @__PURE__ */ y({
|
660
689
|
name: "OPagetableColumnButtongroup",
|
661
690
|
inheritAttrs: !1,
|
662
|
-
props:
|
691
|
+
props: Me(),
|
663
692
|
slots: Object,
|
664
|
-
setup(
|
665
|
-
slots:
|
666
|
-
attrs:
|
667
|
-
emit:
|
668
|
-
expose:
|
693
|
+
setup(l, {
|
694
|
+
slots: u,
|
695
|
+
attrs: b,
|
696
|
+
emit: a,
|
697
|
+
expose: w
|
669
698
|
}) {
|
670
699
|
return () => null;
|
671
700
|
}
|
672
701
|
});
|
673
|
-
function
|
674
|
-
return typeof
|
702
|
+
function Fe(l) {
|
703
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !E(l);
|
675
704
|
}
|
676
|
-
const
|
677
|
-
type:
|
678
|
-
}),
|
705
|
+
const Ve = () => ({
|
706
|
+
type: String
|
707
|
+
}), Ee = /* @__PURE__ */ y({
|
679
708
|
name: "OPagetableCellButton",
|
680
709
|
inheritAttrs: !1,
|
681
|
-
props:
|
710
|
+
props: Ve(),
|
682
711
|
emits: ["click"],
|
683
|
-
setup(
|
684
|
-
slots:
|
685
|
-
attrs:
|
686
|
-
emit:
|
687
|
-
expose:
|
712
|
+
setup(l, {
|
713
|
+
slots: u,
|
714
|
+
attrs: b,
|
715
|
+
emit: a,
|
716
|
+
expose: w
|
688
717
|
}) {
|
689
|
-
const
|
690
|
-
|
718
|
+
const A = (B) => {
|
719
|
+
a("click", B);
|
691
720
|
};
|
692
721
|
return () => {
|
693
|
-
var
|
722
|
+
var R;
|
694
723
|
const {
|
695
|
-
type:
|
696
|
-
} =
|
697
|
-
return
|
724
|
+
type: B
|
725
|
+
} = l, O = (R = u.default) == null ? void 0 : R.call(u);
|
726
|
+
return r(pe, {
|
698
727
|
link: !0,
|
699
|
-
type:
|
728
|
+
type: B,
|
700
729
|
size: "small",
|
701
|
-
onClick:
|
702
|
-
},
|
703
|
-
default: () => [
|
730
|
+
onClick: A
|
731
|
+
}, Fe(O) ? O : {
|
732
|
+
default: () => [O]
|
704
733
|
});
|
705
734
|
};
|
706
735
|
}
|
707
|
-
}),
|
708
|
-
head:
|
709
|
-
headAlign:
|
710
|
-
}),
|
736
|
+
}), Le = () => ({
|
737
|
+
head: String,
|
738
|
+
headAlign: String
|
739
|
+
}), Ye = /* @__PURE__ */ y({
|
711
740
|
name: "OPagetableColumngroup",
|
712
741
|
inheritAttrs: !1,
|
713
|
-
props:
|
714
|
-
setup(
|
715
|
-
slots:
|
716
|
-
attrs:
|
717
|
-
emit:
|
718
|
-
expose:
|
742
|
+
props: Le(),
|
743
|
+
setup(l, {
|
744
|
+
slots: u,
|
745
|
+
attrs: b,
|
746
|
+
emit: a,
|
747
|
+
expose: w
|
719
748
|
}) {
|
720
749
|
return () => null;
|
721
750
|
}
|
722
|
-
}),
|
723
|
-
head:
|
724
|
-
headAlign:
|
725
|
-
name:
|
726
|
-
width:
|
727
|
-
fixed:
|
728
|
-
tail:
|
729
|
-
}),
|
751
|
+
}), He = () => ({
|
752
|
+
head: String,
|
753
|
+
headAlign: String,
|
754
|
+
name: String,
|
755
|
+
width: [String, Number],
|
756
|
+
fixed: [Boolean, String],
|
757
|
+
tail: [Boolean, String]
|
758
|
+
}), Je = /* @__PURE__ */ y({
|
730
759
|
name: "OPagetableColumnDiy",
|
731
760
|
inheritAttrs: !1,
|
732
|
-
props:
|
761
|
+
props: He(),
|
733
762
|
slots: Object,
|
734
|
-
setup(
|
735
|
-
slots:
|
736
|
-
attrs:
|
737
|
-
emit:
|
738
|
-
expose:
|
763
|
+
setup(l, {
|
764
|
+
slots: u,
|
765
|
+
attrs: b,
|
766
|
+
emit: a,
|
767
|
+
expose: w
|
739
768
|
}) {
|
740
769
|
return () => null;
|
741
770
|
}
|
742
|
-
}),
|
743
|
-
PagetableColumnIndex:
|
744
|
-
PagetableColumnString:
|
745
|
-
PagetableColumnLink:
|
746
|
-
PagetableColumnNumber:
|
747
|
-
PagetableColumnDate:
|
748
|
-
PagetableColumnSingleselect:
|
749
|
-
PagetableColumnMultiselect:
|
750
|
-
PagetableColumnButtongroup:
|
751
|
-
PagetableCellButton:
|
752
|
-
PagetableColumngroup:
|
753
|
-
PagetableColumnDiy:
|
771
|
+
}), st = se(xe, {
|
772
|
+
PagetableColumnIndex: Pe,
|
773
|
+
PagetableColumnString: ve,
|
774
|
+
PagetableColumnLink: Ne,
|
775
|
+
PagetableColumnNumber: Re,
|
776
|
+
PagetableColumnDate: _e,
|
777
|
+
PagetableColumnSingleselect: Te,
|
778
|
+
PagetableColumnMultiselect: ze,
|
779
|
+
PagetableColumnButtongroup: $e,
|
780
|
+
PagetableCellButton: Ee,
|
781
|
+
PagetableColumngroup: Ye,
|
782
|
+
PagetableColumnDiy: Je
|
754
783
|
});
|
755
784
|
export {
|
756
|
-
|
757
|
-
|
758
|
-
|
785
|
+
st as default,
|
786
|
+
Ce as pagetableProps,
|
787
|
+
pt as usePagetable
|
759
788
|
};
|
760
789
|
//# sourceMappingURL=index.js.map
|