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