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