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,4 +1,30 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { PropType, ExtractPropTypes, CSSProperties } from 'vue';
|
2
|
+
type rowClassNameFn = (data: {
|
3
|
+
rowData: any;
|
4
|
+
rowIndex: number;
|
5
|
+
}) => string;
|
6
|
+
type rowStyleFn = (data: {
|
7
|
+
rowData: any;
|
8
|
+
rowIndex: number;
|
9
|
+
}) => CSSProperties;
|
10
|
+
type cellClassNameFn = (data: {
|
11
|
+
rowData: any;
|
12
|
+
column: {
|
13
|
+
name: string;
|
14
|
+
head: string;
|
15
|
+
};
|
16
|
+
rowIndex: number;
|
17
|
+
columnIndex: number;
|
18
|
+
}) => string;
|
19
|
+
type cellStyleFn = (data: {
|
20
|
+
rowData: any;
|
21
|
+
column: {
|
22
|
+
name: string;
|
23
|
+
head: string;
|
24
|
+
};
|
25
|
+
rowIndex: number;
|
26
|
+
columnIndex: number;
|
27
|
+
}) => CSSProperties;
|
2
28
|
export declare const pagetableProps: () => {
|
3
29
|
data: {
|
4
30
|
type: PropType<any[]>;
|
@@ -22,6 +48,10 @@ export declare const pagetableProps: () => {
|
|
22
48
|
total?: number;
|
23
49
|
};
|
24
50
|
};
|
51
|
+
paginationTeleported: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
25
55
|
showRowNumber: {
|
26
56
|
type: BooleanConstructor;
|
27
57
|
default: boolean;
|
@@ -38,6 +68,22 @@ export declare const pagetableProps: () => {
|
|
38
68
|
type: PropType<"" | "small" | "default" | "large">;
|
39
69
|
default: "" | "small" | "default" | "large";
|
40
70
|
};
|
71
|
+
rowClassName: {
|
72
|
+
type: PropType<string | rowClassNameFn>;
|
73
|
+
default: string | rowClassNameFn;
|
74
|
+
};
|
75
|
+
rowStyle: {
|
76
|
+
type: PropType<CSSProperties | rowStyleFn>;
|
77
|
+
default: CSSProperties | rowStyleFn;
|
78
|
+
};
|
79
|
+
cellClassName: {
|
80
|
+
type: PropType<string | cellClassNameFn>;
|
81
|
+
default: string | cellClassNameFn;
|
82
|
+
};
|
83
|
+
cellStyle: {
|
84
|
+
type: PropType<CSSProperties | cellStyleFn>;
|
85
|
+
default: CSSProperties | cellStyleFn;
|
86
|
+
};
|
41
87
|
};
|
42
88
|
export type PagetableProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableProps>>>;
|
43
89
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
@@ -63,6 +109,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
63
109
|
total?: number;
|
64
110
|
};
|
65
111
|
};
|
112
|
+
paginationTeleported: {
|
113
|
+
type: BooleanConstructor;
|
114
|
+
default: boolean;
|
115
|
+
};
|
66
116
|
showRowNumber: {
|
67
117
|
type: BooleanConstructor;
|
68
118
|
default: boolean;
|
@@ -79,7 +129,23 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
79
129
|
type: PropType<"" | "small" | "default" | "large">;
|
80
130
|
default: "" | "small" | "default" | "large";
|
81
131
|
};
|
82
|
-
|
132
|
+
rowClassName: {
|
133
|
+
type: PropType<string | rowClassNameFn>;
|
134
|
+
default: string | rowClassNameFn;
|
135
|
+
};
|
136
|
+
rowStyle: {
|
137
|
+
type: PropType<CSSProperties | rowStyleFn>;
|
138
|
+
default: CSSProperties | rowStyleFn;
|
139
|
+
};
|
140
|
+
cellClassName: {
|
141
|
+
type: PropType<string | cellClassNameFn>;
|
142
|
+
default: string | cellClassNameFn;
|
143
|
+
};
|
144
|
+
cellStyle: {
|
145
|
+
type: PropType<CSSProperties | cellStyleFn>;
|
146
|
+
default: CSSProperties | cellStyleFn;
|
147
|
+
};
|
148
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
83
149
|
data: {
|
84
150
|
type: PropType<any[]>;
|
85
151
|
default: any[];
|
@@ -102,6 +168,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
102
168
|
total?: number;
|
103
169
|
};
|
104
170
|
};
|
171
|
+
paginationTeleported: {
|
172
|
+
type: BooleanConstructor;
|
173
|
+
default: boolean;
|
174
|
+
};
|
105
175
|
showRowNumber: {
|
106
176
|
type: BooleanConstructor;
|
107
177
|
default: boolean;
|
@@ -118,7 +188,25 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
118
188
|
type: PropType<"" | "small" | "default" | "large">;
|
119
189
|
default: "" | "small" | "default" | "large";
|
120
190
|
};
|
191
|
+
rowClassName: {
|
192
|
+
type: PropType<string | rowClassNameFn>;
|
193
|
+
default: string | rowClassNameFn;
|
194
|
+
};
|
195
|
+
rowStyle: {
|
196
|
+
type: PropType<CSSProperties | rowStyleFn>;
|
197
|
+
default: CSSProperties | rowStyleFn;
|
198
|
+
};
|
199
|
+
cellClassName: {
|
200
|
+
type: PropType<string | cellClassNameFn>;
|
201
|
+
default: string | cellClassNameFn;
|
202
|
+
};
|
203
|
+
cellStyle: {
|
204
|
+
type: PropType<CSSProperties | cellStyleFn>;
|
205
|
+
default: CSSProperties | cellStyleFn;
|
206
|
+
};
|
121
207
|
}>> & Readonly<{
|
208
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
209
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
122
210
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
123
211
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
124
212
|
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
@@ -127,8 +215,8 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
127
215
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
128
216
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
129
217
|
}>, {
|
130
|
-
data: any[];
|
131
218
|
size: "" | "small" | "default" | "large";
|
219
|
+
data: any[];
|
132
220
|
pagination: {
|
133
221
|
currentPage?: number;
|
134
222
|
pageSize?: number;
|
@@ -136,8 +224,13 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
136
224
|
total?: number;
|
137
225
|
};
|
138
226
|
tailData: Record<string, any>;
|
227
|
+
paginationTeleported: boolean;
|
139
228
|
showRowNumber: boolean;
|
140
229
|
selectionMode: boolean;
|
141
230
|
currentRowMode: boolean;
|
231
|
+
rowClassName: string | rowClassNameFn;
|
232
|
+
rowStyle: CSSProperties | rowStyleFn;
|
233
|
+
cellClassName: string | cellClassNameFn;
|
234
|
+
cellStyle: CSSProperties | cellStyleFn;
|
142
235
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
143
236
|
export default _default;
|
@@ -10,6 +10,10 @@ export declare const pagetableColumnButtongroupProps: () => {
|
|
10
10
|
type: PropType<"center" | "left" | "right">;
|
11
11
|
default: "center" | "left" | "right";
|
12
12
|
};
|
13
|
+
bodyAlign: {
|
14
|
+
type: PropType<"center" | "left" | "right">;
|
15
|
+
default: "center" | "left" | "right";
|
16
|
+
};
|
13
17
|
name: {
|
14
18
|
type: PropType<string>;
|
15
19
|
default: string;
|
@@ -37,6 +41,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
37
41
|
type: PropType<"center" | "left" | "right">;
|
38
42
|
default: "center" | "left" | "right";
|
39
43
|
};
|
44
|
+
bodyAlign: {
|
45
|
+
type: PropType<"center" | "left" | "right">;
|
46
|
+
default: "center" | "left" | "right";
|
47
|
+
};
|
40
48
|
name: {
|
41
49
|
type: PropType<string>;
|
42
50
|
default: string;
|
@@ -62,6 +70,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
62
70
|
type: PropType<"center" | "left" | "right">;
|
63
71
|
default: "center" | "left" | "right";
|
64
72
|
};
|
73
|
+
bodyAlign: {
|
74
|
+
type: PropType<"center" | "left" | "right">;
|
75
|
+
default: "center" | "left" | "right";
|
76
|
+
};
|
65
77
|
name: {
|
66
78
|
type: PropType<string>;
|
67
79
|
default: string;
|
@@ -79,10 +91,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
79
91
|
default: string | boolean;
|
80
92
|
};
|
81
93
|
}>> & Readonly<{}>, {
|
94
|
+
name: string;
|
82
95
|
fixed: FixedType;
|
83
96
|
head: string;
|
84
97
|
width: string | boolean;
|
85
|
-
|
98
|
+
bodyAlign: "center" | "left" | "right";
|
86
99
|
tail: string | boolean;
|
87
100
|
headAlign: "center" | "left" | "right";
|
88
101
|
}, CustomSlotsType<{
|
@@ -9,6 +9,10 @@ export declare const pagetableColumnDateProps: () => {
|
|
9
9
|
type: PropType<"center" | "left" | "right">;
|
10
10
|
default: "center" | "left" | "right";
|
11
11
|
};
|
12
|
+
bodyAlign: {
|
13
|
+
type: PropType<"center" | "left" | "right">;
|
14
|
+
default: "center" | "left" | "right";
|
15
|
+
};
|
12
16
|
name: {
|
13
17
|
type: PropType<string>;
|
14
18
|
default: string;
|
@@ -44,6 +48,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
44
48
|
type: PropType<"center" | "left" | "right">;
|
45
49
|
default: "center" | "left" | "right";
|
46
50
|
};
|
51
|
+
bodyAlign: {
|
52
|
+
type: PropType<"center" | "left" | "right">;
|
53
|
+
default: "center" | "left" | "right";
|
54
|
+
};
|
47
55
|
name: {
|
48
56
|
type: PropType<string>;
|
49
57
|
default: string;
|
@@ -77,6 +85,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
77
85
|
type: PropType<"center" | "left" | "right">;
|
78
86
|
default: "center" | "left" | "right";
|
79
87
|
};
|
88
|
+
bodyAlign: {
|
89
|
+
type: PropType<"center" | "left" | "right">;
|
90
|
+
default: "center" | "left" | "right";
|
91
|
+
};
|
80
92
|
name: {
|
81
93
|
type: PropType<string>;
|
82
94
|
default: string;
|
@@ -102,11 +114,12 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
102
114
|
default: string;
|
103
115
|
};
|
104
116
|
}>> & Readonly<{}>, {
|
117
|
+
name: string;
|
105
118
|
fixed: FixedType;
|
106
119
|
head: string;
|
107
120
|
width: string | boolean;
|
108
|
-
name: string;
|
109
121
|
format: string;
|
122
|
+
bodyAlign: "center" | "left" | "right";
|
110
123
|
tail: string | boolean;
|
111
124
|
headAlign: "center" | "left" | "right";
|
112
125
|
sourceFormat: string;
|
@@ -79,10 +79,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
79
79
|
default: string | boolean;
|
80
80
|
};
|
81
81
|
}>> & Readonly<{}>, {
|
82
|
+
name: string;
|
82
83
|
fixed: FixedType;
|
83
84
|
head: string;
|
84
85
|
width: string | boolean;
|
85
|
-
name: string;
|
86
86
|
tail: string | boolean;
|
87
87
|
headAlign: "center" | "left" | "right";
|
88
88
|
}, CustomSlotsType<{
|
@@ -9,6 +9,10 @@ export declare const pagetableColumnLinkProps: () => {
|
|
9
9
|
type: PropType<"center" | "left" | "right">;
|
10
10
|
default: "center" | "left" | "right";
|
11
11
|
};
|
12
|
+
bodyAlign: {
|
13
|
+
type: PropType<"center" | "left" | "right">;
|
14
|
+
default: "center" | "left" | "right";
|
15
|
+
};
|
12
16
|
name: {
|
13
17
|
type: PropType<string>;
|
14
18
|
default: string;
|
@@ -36,6 +40,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
36
40
|
type: PropType<"center" | "left" | "right">;
|
37
41
|
default: "center" | "left" | "right";
|
38
42
|
};
|
43
|
+
bodyAlign: {
|
44
|
+
type: PropType<"center" | "left" | "right">;
|
45
|
+
default: "center" | "left" | "right";
|
46
|
+
};
|
39
47
|
name: {
|
40
48
|
type: PropType<string>;
|
41
49
|
default: string;
|
@@ -61,6 +69,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
61
69
|
type: PropType<"center" | "left" | "right">;
|
62
70
|
default: "center" | "left" | "right";
|
63
71
|
};
|
72
|
+
bodyAlign: {
|
73
|
+
type: PropType<"center" | "left" | "right">;
|
74
|
+
default: "center" | "left" | "right";
|
75
|
+
};
|
64
76
|
name: {
|
65
77
|
type: PropType<string>;
|
66
78
|
default: string;
|
@@ -78,10 +90,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
78
90
|
default: string | boolean;
|
79
91
|
};
|
80
92
|
}>> & Readonly<{}>, {
|
93
|
+
name: string;
|
81
94
|
fixed: FixedType;
|
82
95
|
head: string;
|
83
96
|
width: string | boolean;
|
84
|
-
|
97
|
+
bodyAlign: "center" | "left" | "right";
|
85
98
|
tail: string | boolean;
|
86
99
|
headAlign: "center" | "left" | "right";
|
87
100
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
@@ -9,6 +9,10 @@ export declare const pagetableColumnMultiselectProps: () => {
|
|
9
9
|
type: PropType<"center" | "left" | "right">;
|
10
10
|
default: "center" | "left" | "right";
|
11
11
|
};
|
12
|
+
bodyAlign: {
|
13
|
+
type: PropType<"center" | "left" | "right">;
|
14
|
+
default: "center" | "left" | "right";
|
15
|
+
};
|
12
16
|
name: {
|
13
17
|
type: PropType<string>;
|
14
18
|
default: string;
|
@@ -46,6 +50,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
46
50
|
type: PropType<"center" | "left" | "right">;
|
47
51
|
default: "center" | "left" | "right";
|
48
52
|
};
|
53
|
+
bodyAlign: {
|
54
|
+
type: PropType<"center" | "left" | "right">;
|
55
|
+
default: "center" | "left" | "right";
|
56
|
+
};
|
49
57
|
name: {
|
50
58
|
type: PropType<string>;
|
51
59
|
default: string;
|
@@ -81,6 +89,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
81
89
|
type: PropType<"center" | "left" | "right">;
|
82
90
|
default: "center" | "left" | "right";
|
83
91
|
};
|
92
|
+
bodyAlign: {
|
93
|
+
type: PropType<"center" | "left" | "right">;
|
94
|
+
default: "center" | "left" | "right";
|
95
|
+
};
|
84
96
|
name: {
|
85
97
|
type: PropType<string>;
|
86
98
|
default: string;
|
@@ -108,6 +120,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
108
120
|
}[];
|
109
121
|
};
|
110
122
|
}>> & Readonly<{}>, {
|
123
|
+
name: string;
|
111
124
|
fixed: FixedType;
|
112
125
|
code: string | {
|
113
126
|
value: string;
|
@@ -115,7 +128,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
115
128
|
}[];
|
116
129
|
head: string;
|
117
130
|
width: string | boolean;
|
118
|
-
|
131
|
+
bodyAlign: "center" | "left" | "right";
|
119
132
|
tail: string | boolean;
|
120
133
|
headAlign: "center" | "left" | "right";
|
121
134
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
@@ -9,6 +9,10 @@ export declare const pagetableColumnNumberProps: () => {
|
|
9
9
|
type: PropType<"center" | "left" | "right">;
|
10
10
|
default: "center" | "left" | "right";
|
11
11
|
};
|
12
|
+
bodyAlign: {
|
13
|
+
type: PropType<"center" | "left" | "right">;
|
14
|
+
default: "center" | "left" | "right";
|
15
|
+
};
|
12
16
|
name: {
|
13
17
|
type: PropType<string>;
|
14
18
|
default: string;
|
@@ -48,6 +52,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
48
52
|
type: PropType<"center" | "left" | "right">;
|
49
53
|
default: "center" | "left" | "right";
|
50
54
|
};
|
55
|
+
bodyAlign: {
|
56
|
+
type: PropType<"center" | "left" | "right">;
|
57
|
+
default: "center" | "left" | "right";
|
58
|
+
};
|
51
59
|
name: {
|
52
60
|
type: PropType<string>;
|
53
61
|
default: string;
|
@@ -85,6 +93,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
85
93
|
type: PropType<"center" | "left" | "right">;
|
86
94
|
default: "center" | "left" | "right";
|
87
95
|
};
|
96
|
+
bodyAlign: {
|
97
|
+
type: PropType<"center" | "left" | "right">;
|
98
|
+
default: "center" | "left" | "right";
|
99
|
+
};
|
88
100
|
name: {
|
89
101
|
type: PropType<string>;
|
90
102
|
default: string;
|
@@ -114,10 +126,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
114
126
|
default: boolean;
|
115
127
|
};
|
116
128
|
}>> & Readonly<{}>, {
|
129
|
+
name: string;
|
117
130
|
fixed: FixedType;
|
118
131
|
head: string;
|
119
132
|
width: string | boolean;
|
120
|
-
|
133
|
+
bodyAlign: "center" | "left" | "right";
|
121
134
|
thousandsSeparator: boolean;
|
122
135
|
tail: string | boolean;
|
123
136
|
headAlign: "center" | "left" | "right";
|
@@ -9,6 +9,10 @@ export declare const pagetableColumnSingleselectProps: () => {
|
|
9
9
|
type: PropType<"center" | "left" | "right">;
|
10
10
|
default: "center" | "left" | "right";
|
11
11
|
};
|
12
|
+
bodyAlign: {
|
13
|
+
type: PropType<"center" | "left" | "right">;
|
14
|
+
default: "center" | "left" | "right";
|
15
|
+
};
|
12
16
|
name: {
|
13
17
|
type: PropType<string>;
|
14
18
|
default: string;
|
@@ -46,6 +50,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
46
50
|
type: PropType<"center" | "left" | "right">;
|
47
51
|
default: "center" | "left" | "right";
|
48
52
|
};
|
53
|
+
bodyAlign: {
|
54
|
+
type: PropType<"center" | "left" | "right">;
|
55
|
+
default: "center" | "left" | "right";
|
56
|
+
};
|
49
57
|
name: {
|
50
58
|
type: PropType<string>;
|
51
59
|
default: string;
|
@@ -81,6 +89,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
81
89
|
type: PropType<"center" | "left" | "right">;
|
82
90
|
default: "center" | "left" | "right";
|
83
91
|
};
|
92
|
+
bodyAlign: {
|
93
|
+
type: PropType<"center" | "left" | "right">;
|
94
|
+
default: "center" | "left" | "right";
|
95
|
+
};
|
84
96
|
name: {
|
85
97
|
type: PropType<string>;
|
86
98
|
default: string;
|
@@ -108,6 +120,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
108
120
|
}[];
|
109
121
|
};
|
110
122
|
}>> & Readonly<{}>, {
|
123
|
+
name: string;
|
111
124
|
fixed: FixedType;
|
112
125
|
code: string | {
|
113
126
|
value: string;
|
@@ -115,7 +128,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
115
128
|
}[];
|
116
129
|
head: string;
|
117
130
|
width: string | boolean;
|
118
|
-
|
131
|
+
bodyAlign: "center" | "left" | "right";
|
119
132
|
tail: string | boolean;
|
120
133
|
headAlign: "center" | "left" | "right";
|
121
134
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
@@ -9,6 +9,10 @@ export declare const pagetableColumnStringProps: () => {
|
|
9
9
|
type: PropType<"center" | "left" | "right">;
|
10
10
|
default: "center" | "left" | "right";
|
11
11
|
};
|
12
|
+
bodyAlign: {
|
13
|
+
type: PropType<"center" | "left" | "right">;
|
14
|
+
default: "center" | "left" | "right";
|
15
|
+
};
|
12
16
|
name: {
|
13
17
|
type: PropType<string>;
|
14
18
|
default: string;
|
@@ -36,6 +40,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
36
40
|
type: PropType<"center" | "left" | "right">;
|
37
41
|
default: "center" | "left" | "right";
|
38
42
|
};
|
43
|
+
bodyAlign: {
|
44
|
+
type: PropType<"center" | "left" | "right">;
|
45
|
+
default: "center" | "left" | "right";
|
46
|
+
};
|
39
47
|
name: {
|
40
48
|
type: PropType<string>;
|
41
49
|
default: string;
|
@@ -61,6 +69,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
61
69
|
type: PropType<"center" | "left" | "right">;
|
62
70
|
default: "center" | "left" | "right";
|
63
71
|
};
|
72
|
+
bodyAlign: {
|
73
|
+
type: PropType<"center" | "left" | "right">;
|
74
|
+
default: "center" | "left" | "right";
|
75
|
+
};
|
64
76
|
name: {
|
65
77
|
type: PropType<string>;
|
66
78
|
default: string;
|
@@ -78,10 +90,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
78
90
|
default: string | boolean;
|
79
91
|
};
|
80
92
|
}>> & Readonly<{}>, {
|
93
|
+
name: string;
|
81
94
|
fixed: FixedType;
|
82
95
|
head: string;
|
83
96
|
width: string | boolean;
|
84
|
-
|
97
|
+
bodyAlign: "center" | "left" | "right";
|
85
98
|
tail: string | boolean;
|
86
99
|
headAlign: "center" | "left" | "right";
|
87
100
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { computed as t } from "vue";
|
2
|
+
import { isString as i, isArray as m } from "lodash-es";
|
3
|
+
import f from "../../../Throne/index.js";
|
4
|
+
import n from "../../../error/OrionError.js";
|
5
|
+
import { useThroneContext as u } from "../../../Throne/hooks/use-throne-context.js";
|
6
|
+
function g(r) {
|
7
|
+
const o = u();
|
8
|
+
return t(() => {
|
9
|
+
let e;
|
10
|
+
if (!r)
|
11
|
+
e = null;
|
12
|
+
else if (i(r))
|
13
|
+
e = f.getCode(r, o == null ? void 0 : o.value).value;
|
14
|
+
else if (m(r))
|
15
|
+
e = r;
|
16
|
+
else
|
17
|
+
throw new n("code类型错误");
|
18
|
+
return e;
|
19
|
+
});
|
20
|
+
}
|
21
|
+
export {
|
22
|
+
g as default
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=useCode.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useCode.js","sources":["../../../../src/components/Pagetable/hooks/useCode.ts"],"sourcesContent":["import { inject, getCurrentInstance, computed } from 'vue'\r\n\r\nimport { castArray, isArray, isString } from 'lodash-es'\r\n\r\nimport Throne from '../../../Throne'\r\nimport { CodeItem } from '../../types'\r\n\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport { useThroneContext } from '../../../Throne/hooks/use-throne-context'\r\n\r\nexport default function useCode(code) {\r\n const throneContext = useThroneContext();\r\n\r\n return computed(() => {\r\n let codeData: Array<CodeItem> | null\r\n if (!code) {\r\n codeData = null;\r\n } else if (isString(code)) {\r\n codeData = Throne.getCode(code, throneContext?.value).value\r\n } else if (isArray<CodeItem>(code)) {\r\n codeData = code\r\n } else {\r\n throw new OrionError('code类型错误')\r\n }\r\n\r\n return codeData\r\n })\r\n}"],"names":["useCode","code","throneContext","useThroneContext","computed","codeData","isString","Throne","isArray","OrionError"],"mappings":";;;;;AAWA,SAAwBA,EAAQC,GAAM;AAClC,QAAMC,IAAgBC;AAEtB,SAAOC,EAAS,MAAM;AACd,QAAAC;AACJ,QAAI,CAACJ;AACU,MAAAI,IAAA;AAAA,aACJC,EAASL,CAAI;AACpB,MAAAI,IAAWE,EAAO,QAAQN,GAAMC,KAAA,gBAAAA,EAAe,KAAK,EAAE;AAAA,aAC/CM,EAAkBP,CAAI;AAClB,MAAAI,IAAAJ;AAAA;AAEL,YAAA,IAAIQ,EAAW,UAAU;AAG5B,WAAAJ;AAAA,EAAA,CACV;AACL;"}
|