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