orion-design 0.1.52 → 0.1.54
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Flex/Col.d.ts +5 -16
- package/dist/components/Flex/Item.d.ts +1 -15
- package/dist/components/Flex/Row.d.ts +5 -16
- package/dist/components/Flex/index.js +44 -51
- 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.vue.d.ts +2 -2
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +8 -8
- package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +8 -8
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +144 -504
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +84 -356
- package/dist/components/LovTable/index.d.ts +114 -430
- package/dist/components/Pagetable/Pagetable.d.ts +43 -153
- package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +5 -16
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +23 -96
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +28 -120
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +20 -83
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +23 -95
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +33 -127
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +29 -100
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +33 -127
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +22 -94
- package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +8 -29
- package/dist/components/Pagetable/hooks/useColumns.js +2 -2
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/hooks/usePagetable.d.ts +20 -16
- package/dist/components/Pagetable/hooks/usePagetable.js +33 -26
- package/dist/components/Pagetable/hooks/usePagetable.js.map +1 -1
- package/dist/components/Pagetable/index.d.ts +72 -216
- package/dist/components/Pagetable/index.js +526 -497
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +18 -78
- package/dist/components/Querytable/columns/QuerytableCellButton.d.ts +5 -16
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +20 -83
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +26 -108
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +17 -70
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +19 -81
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +29 -113
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +26 -87
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +30 -114
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +20 -82
- package/dist/components/Querytable/columns/QuerytableColumngroup.d.ts +8 -29
- package/dist/components/Querytable/hooks/useColumns.js +2 -2
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +49 -157
- package/dist/components/Querytable/index.js +384 -367
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +22 -48
- package/dist/components/RichTextEditor/index.d.ts +15 -34
- package/dist/components/RichTextEditor/index.js +31 -26
- package/dist/components/RichTextEditor/index.js.map +1 -1
- package/dist/components/Space/index.d.ts +11 -62
- package/dist/components/TableSelectPagetable/TableSelectPagetable.vue.d.ts +144 -504
- package/dist/components/TableSelectPagetable/index.d.ts +72 -252
- package/dist/components/Throne/ThroneContextProvider.d.ts +5 -16
- package/dist/components/_antd_util/camelize.d.ts +2 -0
- package/dist/components/_antd_util/camelize.js +8 -0
- package/dist/components/_antd_util/camelize.js.map +1 -0
- package/dist/components/_antd_util/classNames.js +24 -0
- package/dist/components/_antd_util/classNames.js.map +1 -0
- package/dist/components/_antd_util/index.d.ts +1 -0
- package/dist/components/_antd_util/index.js +14 -0
- package/dist/components/_antd_util/index.js.map +1 -0
- package/dist/components/_antd_util/isValid.js.map +1 -0
- package/dist/components/components.js +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components-BZKLgLQx.js +54 -0
- package/dist/components-BZKLgLQx.js.map +1 -0
- package/dist/index-CvcZkdiG.js +46 -0
- package/dist/index-CvcZkdiG.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Pagetable/interface.d.ts +0 -11
- package/dist/components/Pagetable/interface.js +0 -2
- package/dist/components/Pagetable/interface.js.map +0 -1
- package/dist/components/Querytable/interface.d.ts +0 -10
- package/dist/components/Querytable/interface.js +0 -2
- package/dist/components/Querytable/interface.js.map +0 -1
- package/dist/components/_util/classNames.js +0 -24
- package/dist/components/_util/classNames.js.map +0 -1
- package/dist/components/_util/isValid.js.map +0 -1
- package/dist/components/_util/props-util/index.d.ts +0 -6
- package/dist/components/_util/props-util/index.js +0 -26
- package/dist/components/_util/props-util/index.js.map +0 -1
- package/dist/components/_util/props-util/initDefaultProps.d.ts +0 -6
- package/dist/components/_util/props-util/initDefaultProps.js +0 -14
- package/dist/components/_util/props-util/initDefaultProps.js.map +0 -1
- package/dist/components/_util/type.d.ts +0 -66
- package/dist/components/_util/type.js +0 -53
- package/dist/components/_util/type.js.map +0 -1
- package/dist/components/_util/util.d.ts +0 -18
- package/dist/components/_util/util.js +0 -55
- package/dist/components/_util/util.js.map +0 -1
- package/dist/components/_util/vue-types/index.d.ts +0 -12
- package/dist/components/_util/vue-types/index.js +0 -331
- package/dist/components/_util/vue-types/index.js.map +0 -1
- package/dist/components-BvgQJQRM.js +0 -55
- package/dist/components-BvgQJQRM.js.map +0 -1
- package/dist/index-BbsXWo7C.js +0 -44
- package/dist/index-BbsXWo7C.js.map +0 -1
- /package/dist/components/{_util → _antd_util}/classNames.d.ts +0 -0
- /package/dist/components/{_util → _antd_util}/isValid.d.ts +0 -0
- /package/dist/components/{_util → _antd_util}/isValid.js +0 -0
@@ -1,122 +1,38 @@
|
|
1
|
-
import {
|
2
|
-
import { FixedType } from '../interface';
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
3
2
|
export declare const querytableColumnSingleselectProps: () => {
|
4
|
-
head:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
default: "center" | "left" | "right";
|
15
|
-
};
|
16
|
-
name: {
|
17
|
-
type: PropType<string>;
|
18
|
-
default: string;
|
19
|
-
};
|
20
|
-
width: {
|
21
|
-
type: PropType<string | boolean>;
|
22
|
-
default: string | boolean;
|
23
|
-
};
|
24
|
-
fixed: {
|
25
|
-
type: PropType<FixedType>;
|
26
|
-
default: FixedType;
|
27
|
-
};
|
28
|
-
code: {
|
29
|
-
type: PropType<string | {
|
30
|
-
value: string;
|
31
|
-
content: string;
|
32
|
-
}[]>;
|
33
|
-
default: string | {
|
34
|
-
value: string;
|
35
|
-
content: string;
|
36
|
-
}[];
|
37
|
-
};
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
5
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
6
|
+
name: StringConstructor;
|
7
|
+
width: (NumberConstructor | StringConstructor)[];
|
8
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
9
|
+
code: PropType<string | {
|
10
|
+
value: string;
|
11
|
+
content: string;
|
12
|
+
}[]>;
|
38
13
|
};
|
39
14
|
export type QuerytableColumnSingleselectProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnSingleselectProps>>>;
|
40
15
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
41
|
-
head:
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
default: "center" | "left" | "right";
|
52
|
-
};
|
53
|
-
name: {
|
54
|
-
type: PropType<string>;
|
55
|
-
default: string;
|
56
|
-
};
|
57
|
-
width: {
|
58
|
-
type: PropType<string | boolean>;
|
59
|
-
default: string | boolean;
|
60
|
-
};
|
61
|
-
fixed: {
|
62
|
-
type: PropType<FixedType>;
|
63
|
-
default: FixedType;
|
64
|
-
};
|
65
|
-
code: {
|
66
|
-
type: PropType<string | {
|
67
|
-
value: string;
|
68
|
-
content: string;
|
69
|
-
}[]>;
|
70
|
-
default: string | {
|
71
|
-
value: string;
|
72
|
-
content: string;
|
73
|
-
}[];
|
74
|
-
};
|
16
|
+
head: StringConstructor;
|
17
|
+
headAlign: PropType<"left" | "right" | "center">;
|
18
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
19
|
+
name: StringConstructor;
|
20
|
+
width: (NumberConstructor | StringConstructor)[];
|
21
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
22
|
+
code: PropType<string | {
|
23
|
+
value: string;
|
24
|
+
content: string;
|
25
|
+
}[]>;
|
75
26
|
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
76
|
-
head:
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
};
|
84
|
-
bodyAlign: {
|
85
|
-
type: PropType<"center" | "left" | "right">;
|
86
|
-
default: "center" | "left" | "right";
|
87
|
-
};
|
88
|
-
name: {
|
89
|
-
type: PropType<string>;
|
90
|
-
default: string;
|
91
|
-
};
|
92
|
-
width: {
|
93
|
-
type: PropType<string | boolean>;
|
94
|
-
default: string | boolean;
|
95
|
-
};
|
96
|
-
fixed: {
|
97
|
-
type: PropType<FixedType>;
|
98
|
-
default: FixedType;
|
99
|
-
};
|
100
|
-
code: {
|
101
|
-
type: PropType<string | {
|
102
|
-
value: string;
|
103
|
-
content: string;
|
104
|
-
}[]>;
|
105
|
-
default: string | {
|
106
|
-
value: string;
|
107
|
-
content: string;
|
108
|
-
}[];
|
109
|
-
};
|
110
|
-
}>> & Readonly<{}>, {
|
111
|
-
name: string;
|
112
|
-
fixed: FixedType;
|
113
|
-
code: string | {
|
27
|
+
head: StringConstructor;
|
28
|
+
headAlign: PropType<"left" | "right" | "center">;
|
29
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
30
|
+
name: StringConstructor;
|
31
|
+
width: (NumberConstructor | StringConstructor)[];
|
32
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
33
|
+
code: PropType<string | {
|
114
34
|
value: string;
|
115
35
|
content: string;
|
116
|
-
}[]
|
117
|
-
|
118
|
-
width: string | boolean;
|
119
|
-
bodyAlign: "center" | "left" | "right";
|
120
|
-
headAlign: "center" | "left" | "right";
|
121
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
36
|
+
}[]>;
|
37
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
122
38
|
export default _default;
|
@@ -1,88 +1,26 @@
|
|
1
|
-
import {
|
2
|
-
import { FixedType } from '../interface';
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
3
2
|
export declare const querytableColumnStringProps: () => {
|
4
|
-
head:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
default: "center" | "left" | "right";
|
11
|
-
};
|
12
|
-
bodyAlign: {
|
13
|
-
type: PropType<"center" | "left" | "right">;
|
14
|
-
default: "center" | "left" | "right";
|
15
|
-
};
|
16
|
-
name: {
|
17
|
-
type: PropType<string>;
|
18
|
-
default: string;
|
19
|
-
};
|
20
|
-
width: {
|
21
|
-
type: PropType<string | boolean>;
|
22
|
-
default: string | boolean;
|
23
|
-
};
|
24
|
-
fixed: {
|
25
|
-
type: PropType<FixedType>;
|
26
|
-
default: FixedType;
|
27
|
-
};
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
5
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
6
|
+
name: StringConstructor;
|
7
|
+
width: (NumberConstructor | StringConstructor)[];
|
8
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
28
9
|
};
|
29
10
|
export type QuerytableColumnStringProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnStringProps>>>;
|
30
11
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
31
|
-
head:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
default: "center" | "left" | "right";
|
38
|
-
};
|
39
|
-
bodyAlign: {
|
40
|
-
type: PropType<"center" | "left" | "right">;
|
41
|
-
default: "center" | "left" | "right";
|
42
|
-
};
|
43
|
-
name: {
|
44
|
-
type: PropType<string>;
|
45
|
-
default: string;
|
46
|
-
};
|
47
|
-
width: {
|
48
|
-
type: PropType<string | boolean>;
|
49
|
-
default: string | boolean;
|
50
|
-
};
|
51
|
-
fixed: {
|
52
|
-
type: PropType<FixedType>;
|
53
|
-
default: FixedType;
|
54
|
-
};
|
12
|
+
head: StringConstructor;
|
13
|
+
headAlign: PropType<"left" | "right" | "center">;
|
14
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
15
|
+
name: StringConstructor;
|
16
|
+
width: (NumberConstructor | StringConstructor)[];
|
17
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
55
18
|
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
56
|
-
head:
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
};
|
64
|
-
bodyAlign: {
|
65
|
-
type: PropType<"center" | "left" | "right">;
|
66
|
-
default: "center" | "left" | "right";
|
67
|
-
};
|
68
|
-
name: {
|
69
|
-
type: PropType<string>;
|
70
|
-
default: string;
|
71
|
-
};
|
72
|
-
width: {
|
73
|
-
type: PropType<string | boolean>;
|
74
|
-
default: string | boolean;
|
75
|
-
};
|
76
|
-
fixed: {
|
77
|
-
type: PropType<FixedType>;
|
78
|
-
default: FixedType;
|
79
|
-
};
|
80
|
-
}>> & Readonly<{}>, {
|
81
|
-
name: string;
|
82
|
-
fixed: FixedType;
|
83
|
-
head: string;
|
84
|
-
width: string | boolean;
|
85
|
-
bodyAlign: "center" | "left" | "right";
|
86
|
-
headAlign: "center" | "left" | "right";
|
87
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
19
|
+
head: StringConstructor;
|
20
|
+
headAlign: PropType<"left" | "right" | "center">;
|
21
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
22
|
+
name: StringConstructor;
|
23
|
+
width: (NumberConstructor | StringConstructor)[];
|
24
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
88
26
|
export default _default;
|
@@ -1,35 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
2
|
export declare const querytableColumngroupProps: () => {
|
3
|
-
head:
|
4
|
-
|
5
|
-
default: string;
|
6
|
-
};
|
7
|
-
headAlign: {
|
8
|
-
type: PropType<"center" | "left" | "right">;
|
9
|
-
default: "center" | "left" | "right";
|
10
|
-
};
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
11
5
|
};
|
12
6
|
export type QuerytableColumngroupProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumngroupProps>>>;
|
13
7
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
14
|
-
head:
|
15
|
-
|
16
|
-
default: string;
|
17
|
-
};
|
18
|
-
headAlign: {
|
19
|
-
type: PropType<"center" | "left" | "right">;
|
20
|
-
default: "center" | "left" | "right";
|
21
|
-
};
|
8
|
+
head: StringConstructor;
|
9
|
+
headAlign: PropType<"left" | "right" | "center">;
|
22
10
|
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
23
|
-
head:
|
24
|
-
|
25
|
-
|
26
|
-
};
|
27
|
-
headAlign: {
|
28
|
-
type: PropType<"center" | "left" | "right">;
|
29
|
-
default: "center" | "left" | "right";
|
30
|
-
};
|
31
|
-
}>> & Readonly<{}>, {
|
32
|
-
head: string;
|
33
|
-
headAlign: "center" | "left" | "right";
|
34
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
11
|
+
head: StringConstructor;
|
12
|
+
headAlign: PropType<"left" | "right" | "center">;
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
35
14
|
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { computed as h } from "vue";
|
2
2
|
import f from "../../../error/OrionError.js";
|
3
|
-
import
|
4
|
-
import { filterEmpty as l } from "../../
|
3
|
+
import g from "../../_antd_util/camelize.js";
|
4
|
+
import { filterEmpty as l } from "../../_antd_util/index.js";
|
5
5
|
function m(t) {
|
6
6
|
return t == null ? void 0 : t.map((n) => {
|
7
7
|
var a, i;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useColumns.js","sources":["../../../../src/components/Querytable/hooks/useColumns.ts"],"sourcesContent":["import { computed } from 'vue'\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport
|
1
|
+
{"version":3,"file":"useColumns.js","sources":["../../../../src/components/Querytable/hooks/useColumns.ts"],"sourcesContent":["import { computed } from 'vue'\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport camelize from '../../_antd_util/camelize'\r\nimport { filterEmpty } from '../../_antd_util'\r\n\r\nfunction genColumns(children) {\r\n const tableColumns = children?.map((c) => {\r\n const props = { ...(c.props || {}) }\r\n for (const [k, v] of Object.entries(props)) {\r\n delete props[k]\r\n props[camelize(k)] = v\r\n }\r\n\r\n if (c.type.name === 'OQuerytableColumnIndex') {\r\n return {\r\n type: c.type.name,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnString' || c.type.name === 'OQuerytableColumnLink') {\r\n return {\r\n type: c.type.name,\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n bodyAlign: props?.bodyAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnNumber') {\r\n return {\r\n type: c.type.name,\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n bodyAlign: props?.bodyAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n thousandsSeparator: props?.thousandsSeparator,\r\n precision: Number(props?.precision),\r\n percentage: props?.percentage,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnDate') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n bodyAlign: props?.bodyAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n format: props?.format,\r\n sourceFormat: props?.sourceFormat,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnSingleselect' || c.type.name === 'OQuerytableColumnMultiselect') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n bodyAlign: props?.bodyAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n code: props?.code,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnButtongroup') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n bodyAlign: props?.bodyAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n children: c.children,\r\n }\r\n } else if (c.type.name === 'OQuerytableColumngroup') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n\r\n children: genColumns(filterEmpty(c.children?.default?.())),\r\n }\r\n } else if (c.type.name === 'OQuerytableColumnDiy') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: props?.head,\r\n headAlign: props?.headAlign,\r\n name: props?.name,\r\n width: props?.width,\r\n fixed: props?.fixed,\r\n\r\n children: c.children,\r\n }\r\n } else {\r\n throw new OrionError(`OQuerytable不能正确解析'${c.type.name}'子组件。`)\r\n }\r\n })\r\n\r\n return tableColumns\r\n}\r\n\r\nexport default function useColumns(slots) {\r\n const columns = computed(() => {\r\n const children = slots.default?.()\r\n\r\n const non_empty_children = filterEmpty(children)\r\n\r\n const tableColumns = genColumns(non_empty_children)\r\n\r\n return tableColumns\r\n })\r\n\r\n return columns\r\n}\r\n"],"names":["genColumns","children","c","props","k","v","camelize","filterEmpty","_b","_a","OrionError","useColumns","slots","computed","non_empty_children"],"mappings":";;;;AAMA,SAASA,EAAWC,GAAU;AAsGrB,SArGcA,KAAA,gBAAAA,EAAU,IAAI,CAACC,MAAM;;AACxC,UAAMC,IAAQ,EAAE,GAAID,EAAE,SAAS,CAAI,EAAA;AACnC,eAAW,CAACE,GAAGC,CAAC,KAAK,OAAO,QAAQF,CAAK;AACvC,aAAOA,EAAMC,CAAC,GACRD,EAAAG,EAASF,CAAC,CAAC,IAAIC;AAGnB,QAAAH,EAAE,KAAK,SAAS;AACX,aAAA;AAAA,QACL,MAAMA,EAAE,KAAK;AAAA,MAAA;AAEjB,QAAWA,EAAE,KAAK,SAAS,6BAA6BA,EAAE,KAAK,SAAS;AAC/D,aAAA;AAAA,QACL,MAAMA,EAAE,KAAK;AAAA,QACb,MAAMC,KAAA,gBAAAA,EAAO;AAAA,QACb,WAAWA,KAAA,gBAAAA,EAAO;AAAA,QAClB,WAAWA,KAAA,gBAAAA,EAAO;AAAA,QAClB,MAAMA,KAAA,gBAAAA,EAAO;AAAA,QACb,OAAOA,KAAA,gBAAAA,EAAO;AAAA,Q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Wc,CAAkB;AAAA,EAE3C,CACR;AAGH;"}
|
@@ -11,10 +11,7 @@ import { default as QuerytableColumngroup } from './columns/QuerytableColumngrou
|
|
11
11
|
import { default as QuerytableColumnDiy } from './columns/QuerytableColumnDiy';
|
12
12
|
export type { QuerytableProps } from './Querytable';
|
13
13
|
declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
14
|
-
data:
|
15
|
-
type: import('vue').PropType<any[]>;
|
16
|
-
default: any[];
|
17
|
-
};
|
14
|
+
data: ArrayConstructor;
|
18
15
|
showRowNumber: {
|
19
16
|
type: BooleanConstructor;
|
20
17
|
default: boolean;
|
@@ -27,75 +24,35 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
27
24
|
type: BooleanConstructor;
|
28
25
|
default: boolean;
|
29
26
|
};
|
30
|
-
size:
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
column: {
|
58
|
-
name: string;
|
59
|
-
head: string;
|
60
|
-
};
|
61
|
-
rowIndex: number;
|
62
|
-
columnIndex: number;
|
63
|
-
}) => string)>;
|
64
|
-
default: string | ((data: {
|
65
|
-
rowData: any;
|
66
|
-
column: {
|
67
|
-
name: string;
|
68
|
-
head: string;
|
69
|
-
};
|
70
|
-
rowIndex: number;
|
71
|
-
columnIndex: number;
|
72
|
-
}) => string);
|
73
|
-
};
|
74
|
-
cellStyle: {
|
75
|
-
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
76
|
-
rowData: any;
|
77
|
-
column: {
|
78
|
-
name: string;
|
79
|
-
head: string;
|
80
|
-
};
|
81
|
-
rowIndex: number;
|
82
|
-
columnIndex: number;
|
83
|
-
}) => import('vue').CSSProperties)>;
|
84
|
-
default: import('vue').CSSProperties | ((data: {
|
85
|
-
rowData: any;
|
86
|
-
column: {
|
87
|
-
name: string;
|
88
|
-
head: string;
|
89
|
-
};
|
90
|
-
rowIndex: number;
|
91
|
-
columnIndex: number;
|
92
|
-
}) => import('vue').CSSProperties);
|
93
|
-
};
|
27
|
+
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
28
|
+
rowClassName: import('vue').PropType<string | ((data: {
|
29
|
+
rowData: any;
|
30
|
+
rowIndex: number;
|
31
|
+
}) => string)>;
|
32
|
+
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
33
|
+
rowData: any;
|
34
|
+
rowIndex: number;
|
35
|
+
}) => import('vue').CSSProperties)>;
|
36
|
+
cellClassName: import('vue').PropType<string | ((data: {
|
37
|
+
rowData: any;
|
38
|
+
column: {
|
39
|
+
name: string;
|
40
|
+
head: string;
|
41
|
+
};
|
42
|
+
rowIndex: number;
|
43
|
+
columnIndex: number;
|
44
|
+
}) => string)>;
|
45
|
+
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
46
|
+
rowData: any;
|
47
|
+
column: {
|
48
|
+
name: string;
|
49
|
+
head: string;
|
50
|
+
};
|
51
|
+
rowIndex: number;
|
52
|
+
columnIndex: number;
|
53
|
+
}) => import('vue').CSSProperties)>;
|
94
54
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
95
|
-
data:
|
96
|
-
type: import('vue').PropType<any[]>;
|
97
|
-
default: any[];
|
98
|
-
};
|
55
|
+
data: ArrayConstructor;
|
99
56
|
showRowNumber: {
|
100
57
|
type: BooleanConstructor;
|
101
58
|
default: boolean;
|
@@ -108,92 +65,16 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
108
65
|
type: BooleanConstructor;
|
109
66
|
default: boolean;
|
110
67
|
};
|
111
|
-
size:
|
112
|
-
|
113
|
-
default: "" | "small" | "default" | "large";
|
114
|
-
};
|
115
|
-
rowClassName: {
|
116
|
-
type: import('vue').PropType<string | ((data: {
|
117
|
-
rowData: any;
|
118
|
-
rowIndex: number;
|
119
|
-
}) => string)>;
|
120
|
-
default: string | ((data: {
|
121
|
-
rowData: any;
|
122
|
-
rowIndex: number;
|
123
|
-
}) => string);
|
124
|
-
};
|
125
|
-
rowStyle: {
|
126
|
-
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
127
|
-
rowData: any;
|
128
|
-
rowIndex: number;
|
129
|
-
}) => import('vue').CSSProperties)>;
|
130
|
-
default: import('vue').CSSProperties | ((data: {
|
131
|
-
rowData: any;
|
132
|
-
rowIndex: number;
|
133
|
-
}) => import('vue').CSSProperties);
|
134
|
-
};
|
135
|
-
cellClassName: {
|
136
|
-
type: import('vue').PropType<string | ((data: {
|
137
|
-
rowData: any;
|
138
|
-
column: {
|
139
|
-
name: string;
|
140
|
-
head: string;
|
141
|
-
};
|
142
|
-
rowIndex: number;
|
143
|
-
columnIndex: number;
|
144
|
-
}) => string)>;
|
145
|
-
default: string | ((data: {
|
146
|
-
rowData: any;
|
147
|
-
column: {
|
148
|
-
name: string;
|
149
|
-
head: string;
|
150
|
-
};
|
151
|
-
rowIndex: number;
|
152
|
-
columnIndex: number;
|
153
|
-
}) => string);
|
154
|
-
};
|
155
|
-
cellStyle: {
|
156
|
-
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
157
|
-
rowData: any;
|
158
|
-
column: {
|
159
|
-
name: string;
|
160
|
-
head: string;
|
161
|
-
};
|
162
|
-
rowIndex: number;
|
163
|
-
columnIndex: number;
|
164
|
-
}) => import('vue').CSSProperties)>;
|
165
|
-
default: import('vue').CSSProperties | ((data: {
|
166
|
-
rowData: any;
|
167
|
-
column: {
|
168
|
-
name: string;
|
169
|
-
head: string;
|
170
|
-
};
|
171
|
-
rowIndex: number;
|
172
|
-
columnIndex: number;
|
173
|
-
}) => import('vue').CSSProperties);
|
174
|
-
};
|
175
|
-
}>> & Readonly<{
|
176
|
-
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
177
|
-
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
178
|
-
onRowClick?: ((...args: any[]) => any) | undefined;
|
179
|
-
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
180
|
-
onCellClick?: ((...args: any[]) => any) | undefined;
|
181
|
-
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
182
|
-
}>, {
|
183
|
-
size: "" | "small" | "default" | "large";
|
184
|
-
data: any[];
|
185
|
-
showRowNumber: boolean;
|
186
|
-
selectionMode: boolean;
|
187
|
-
currentRowMode: boolean;
|
188
|
-
rowClassName: string | ((data: {
|
68
|
+
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
69
|
+
rowClassName: import('vue').PropType<string | ((data: {
|
189
70
|
rowData: any;
|
190
71
|
rowIndex: number;
|
191
|
-
}) => string)
|
192
|
-
rowStyle: import('vue').CSSProperties | ((data: {
|
72
|
+
}) => string)>;
|
73
|
+
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
193
74
|
rowData: any;
|
194
75
|
rowIndex: number;
|
195
|
-
}) => import('vue').CSSProperties)
|
196
|
-
cellClassName: string | ((data: {
|
76
|
+
}) => import('vue').CSSProperties)>;
|
77
|
+
cellClassName: import('vue').PropType<string | ((data: {
|
197
78
|
rowData: any;
|
198
79
|
column: {
|
199
80
|
name: string;
|
@@ -201,8 +82,8 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
201
82
|
};
|
202
83
|
rowIndex: number;
|
203
84
|
columnIndex: number;
|
204
|
-
}) => string)
|
205
|
-
cellStyle: import('vue').CSSProperties | ((data: {
|
85
|
+
}) => string)>;
|
86
|
+
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
206
87
|
rowData: any;
|
207
88
|
column: {
|
208
89
|
name: string;
|
@@ -210,7 +91,18 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
210
91
|
};
|
211
92
|
rowIndex: number;
|
212
93
|
columnIndex: number;
|
213
|
-
}) => import('vue').CSSProperties)
|
94
|
+
}) => import('vue').CSSProperties)>;
|
95
|
+
}>> & Readonly<{
|
96
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
97
|
+
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
98
|
+
onRowClick?: ((...args: any[]) => any) | undefined;
|
99
|
+
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
100
|
+
onCellClick?: ((...args: any[]) => any) | undefined;
|
101
|
+
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
102
|
+
}>, {
|
103
|
+
showRowNumber: boolean;
|
104
|
+
selectionMode: boolean;
|
105
|
+
currentRowMode: boolean;
|
214
106
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {
|
215
107
|
QuerytableColumnIndex: typeof QuerytableColumnIndex;
|
216
108
|
QuerytableColumnString: typeof QuerytableColumnString;
|