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