orion-design 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- 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 +3 -3
- package/dist/Throne/index.js.map +1 -1
- package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/Button/index.js +19 -17
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
- 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/index.js +46 -45
- 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 +542 -401
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +18 -6
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
- package/dist/components/LovTable/index.d.ts +243 -5
- package/dist/components/LovTable/index.js +11 -13
- package/dist/components/LovTable/index.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 +4 -2
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +1 -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/index.d.ts +4 -2
- package/dist/components/Pagetable/index.js +338 -334
- package/dist/components/Pagetable/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 +16 -11
- 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 +404 -347
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
- package/dist/components/_util/vue/icon.js +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +22 -18
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +41 -33
- 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/{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.d.ts +1 -0
- package/dist/index.js +41 -31
- package/dist/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-8oZ2kpUC.js +0 -27
- package/dist/components-8oZ2kpUC.js.map +0 -1
@@ -9,6 +9,10 @@ export declare const querytableColumnNumberProps: () => {
|
|
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,10 +114,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
102
114
|
default: boolean;
|
103
115
|
};
|
104
116
|
}>> & Readonly<{}>, {
|
117
|
+
name: string;
|
105
118
|
fixed: FixedType;
|
106
119
|
head: string;
|
107
120
|
width: string | boolean;
|
108
|
-
|
121
|
+
bodyAlign: "center" | "left" | "right";
|
109
122
|
thousandsSeparator: boolean;
|
110
123
|
headAlign: "center" | "left" | "right";
|
111
124
|
precision: -1;
|
@@ -9,6 +9,10 @@ export declare const querytableColumnSingleselectProps: () => {
|
|
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;
|
@@ -42,6 +46,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
42
46
|
type: PropType<"center" | "left" | "right">;
|
43
47
|
default: "center" | "left" | "right";
|
44
48
|
};
|
49
|
+
bodyAlign: {
|
50
|
+
type: PropType<"center" | "left" | "right">;
|
51
|
+
default: "center" | "left" | "right";
|
52
|
+
};
|
45
53
|
name: {
|
46
54
|
type: PropType<string>;
|
47
55
|
default: string;
|
@@ -73,6 +81,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
73
81
|
type: PropType<"center" | "left" | "right">;
|
74
82
|
default: "center" | "left" | "right";
|
75
83
|
};
|
84
|
+
bodyAlign: {
|
85
|
+
type: PropType<"center" | "left" | "right">;
|
86
|
+
default: "center" | "left" | "right";
|
87
|
+
};
|
76
88
|
name: {
|
77
89
|
type: PropType<string>;
|
78
90
|
default: string;
|
@@ -96,6 +108,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
96
108
|
}[];
|
97
109
|
};
|
98
110
|
}>> & Readonly<{}>, {
|
111
|
+
name: string;
|
99
112
|
fixed: FixedType;
|
100
113
|
code: string | {
|
101
114
|
value: string;
|
@@ -103,7 +116,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
103
116
|
}[];
|
104
117
|
head: string;
|
105
118
|
width: string | boolean;
|
106
|
-
|
119
|
+
bodyAlign: "center" | "left" | "right";
|
107
120
|
headAlign: "center" | "left" | "right";
|
108
121
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
109
122
|
export default _default;
|
@@ -9,6 +9,10 @@ export declare const querytableColumnStringProps: () => {
|
|
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;
|
@@ -32,6 +36,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
32
36
|
type: PropType<"center" | "left" | "right">;
|
33
37
|
default: "center" | "left" | "right";
|
34
38
|
};
|
39
|
+
bodyAlign: {
|
40
|
+
type: PropType<"center" | "left" | "right">;
|
41
|
+
default: "center" | "left" | "right";
|
42
|
+
};
|
35
43
|
name: {
|
36
44
|
type: PropType<string>;
|
37
45
|
default: string;
|
@@ -53,6 +61,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
53
61
|
type: PropType<"center" | "left" | "right">;
|
54
62
|
default: "center" | "left" | "right";
|
55
63
|
};
|
64
|
+
bodyAlign: {
|
65
|
+
type: PropType<"center" | "left" | "right">;
|
66
|
+
default: "center" | "left" | "right";
|
67
|
+
};
|
56
68
|
name: {
|
57
69
|
type: PropType<string>;
|
58
70
|
default: string;
|
@@ -66,10 +78,11 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
66
78
|
default: FixedType;
|
67
79
|
};
|
68
80
|
}>> & Readonly<{}>, {
|
81
|
+
name: string;
|
69
82
|
fixed: FixedType;
|
70
83
|
head: string;
|
71
84
|
width: string | boolean;
|
72
|
-
|
85
|
+
bodyAlign: "center" | "left" | "right";
|
73
86
|
headAlign: "center" | "left" | "right";
|
74
87
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
75
88
|
export default _default;
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import { computed as
|
1
|
+
import { computed as h } from "vue";
|
2
2
|
import f from "../../../error/OrionError.js";
|
3
3
|
import { camelize as g } from "../../_util/util.js";
|
4
|
-
import { filterEmpty as
|
5
|
-
function
|
4
|
+
import { filterEmpty as l } from "../../_util/props-util/index.js";
|
5
|
+
function m(t) {
|
6
6
|
return t == null ? void 0 : t.map((n) => {
|
7
7
|
var a, i;
|
8
8
|
const e = { ...n.props || {} };
|
9
|
-
for (const [
|
10
|
-
delete e[
|
9
|
+
for (const [d, y] of Object.entries(e))
|
10
|
+
delete e[d], e[g(d)] = y;
|
11
11
|
if (n.type.name === "OQuerytableColumnIndex")
|
12
12
|
return {
|
13
13
|
type: n.type.name
|
@@ -17,6 +17,7 @@ function l(t) {
|
|
17
17
|
type: n.type.name,
|
18
18
|
head: e == null ? void 0 : e.head,
|
19
19
|
headAlign: e == null ? void 0 : e.headAlign,
|
20
|
+
bodyAlign: e == null ? void 0 : e.bodyAlign,
|
20
21
|
name: e == null ? void 0 : e.name,
|
21
22
|
width: e == null ? void 0 : e.width,
|
22
23
|
fixed: e == null ? void 0 : e.fixed
|
@@ -26,6 +27,7 @@ function l(t) {
|
|
26
27
|
type: n.type.name,
|
27
28
|
head: e == null ? void 0 : e.head,
|
28
29
|
headAlign: e == null ? void 0 : e.headAlign,
|
30
|
+
bodyAlign: e == null ? void 0 : e.bodyAlign,
|
29
31
|
name: e == null ? void 0 : e.name,
|
30
32
|
width: e == null ? void 0 : e.width,
|
31
33
|
fixed: e == null ? void 0 : e.fixed,
|
@@ -38,6 +40,7 @@ function l(t) {
|
|
38
40
|
type: n.type.name,
|
39
41
|
head: e == null ? void 0 : e.head,
|
40
42
|
headAlign: e == null ? void 0 : e.headAlign,
|
43
|
+
bodyAlign: e == null ? void 0 : e.bodyAlign,
|
41
44
|
name: e == null ? void 0 : e.name,
|
42
45
|
width: e == null ? void 0 : e.width,
|
43
46
|
fixed: e == null ? void 0 : e.fixed,
|
@@ -49,6 +52,7 @@ function l(t) {
|
|
49
52
|
type: n.type.name,
|
50
53
|
head: e == null ? void 0 : e.head,
|
51
54
|
headAlign: e == null ? void 0 : e.headAlign,
|
55
|
+
bodyAlign: e == null ? void 0 : e.bodyAlign,
|
52
56
|
name: e == null ? void 0 : e.name,
|
53
57
|
width: e == null ? void 0 : e.width,
|
54
58
|
fixed: e == null ? void 0 : e.fixed,
|
@@ -59,6 +63,7 @@ function l(t) {
|
|
59
63
|
type: n.type.name,
|
60
64
|
head: e == null ? void 0 : e.head,
|
61
65
|
headAlign: e == null ? void 0 : e.headAlign,
|
66
|
+
bodyAlign: e == null ? void 0 : e.bodyAlign,
|
62
67
|
name: e == null ? void 0 : e.name,
|
63
68
|
width: e == null ? void 0 : e.width,
|
64
69
|
fixed: e == null ? void 0 : e.fixed,
|
@@ -69,7 +74,7 @@ function l(t) {
|
|
69
74
|
type: n.type.name,
|
70
75
|
head: e == null ? void 0 : e.head,
|
71
76
|
headAlign: e == null ? void 0 : e.headAlign,
|
72
|
-
children: l(
|
77
|
+
children: m(l((i = (a = n.children) == null ? void 0 : a.default) == null ? void 0 : i.call(a)))
|
73
78
|
};
|
74
79
|
if (n.type.name === "OQuerytableColumnDiy")
|
75
80
|
return {
|
@@ -84,14 +89,14 @@ function l(t) {
|
|
84
89
|
throw new f(`OQuerytable不能正确解析'${n.type.name}'子组件。`);
|
85
90
|
});
|
86
91
|
}
|
87
|
-
function
|
88
|
-
return
|
92
|
+
function x(t) {
|
93
|
+
return h(() => {
|
89
94
|
var i;
|
90
|
-
const n = (i = t.default) == null ? void 0 : i.call(t), e =
|
91
|
-
return
|
95
|
+
const n = (i = t.default) == null ? void 0 : i.call(t), e = l(n);
|
96
|
+
return m(e);
|
92
97
|
});
|
93
98
|
}
|
94
99
|
export {
|
95
|
-
|
100
|
+
x as default
|
96
101
|
};
|
97
102
|
//# sourceMappingURL=useColumns.js.map
|
@@ -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 { camelize } from '../../../components/_util/util'\r\nimport { filterEmpty } from '../../_util/props-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 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 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 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 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 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;
|
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 '../../../components/_util/util'\r\nimport { filterEmpty } from '../../_util/props-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,MA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;AAAA,EAC9D;AAIJ;AAEA,SAAwBS,EAAWC,GAAO;AAWjC,SAVSC,EAAS,MAAM;;AACvB,UAAAZ,KAAWQ,IAAAG,EAAM,YAAN,gBAAAH,EAAA,KAAAG,IAEXE,IAAqBP,EAAYN,CAAQ;AAIxC,WAFcD,EAAWc,CAAkB;AAAA,EAE3C,CACR;AAGH;"}
|
@@ -31,6 +31,66 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
31
31
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
32
32
|
default: "" | "small" | "default" | "large";
|
33
33
|
};
|
34
|
+
rowClassName: {
|
35
|
+
type: import('vue').PropType<string | ((data: {
|
36
|
+
rowData: any;
|
37
|
+
rowIndex: number;
|
38
|
+
}) => string)>;
|
39
|
+
default: string | ((data: {
|
40
|
+
rowData: any;
|
41
|
+
rowIndex: number;
|
42
|
+
}) => string);
|
43
|
+
};
|
44
|
+
rowStyle: {
|
45
|
+
type: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
46
|
+
rowData: any;
|
47
|
+
rowIndex: number;
|
48
|
+
}) => import('vue').CSSProperties)>;
|
49
|
+
default: import('vue').CSSProperties | ((data: {
|
50
|
+
rowData: any;
|
51
|
+
rowIndex: number;
|
52
|
+
}) => import('vue').CSSProperties);
|
53
|
+
};
|
54
|
+
cellClassName: {
|
55
|
+
type: import('vue').PropType<string | ((data: {
|
56
|
+
rowData: any;
|
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
|
+
};
|
34
94
|
}>, () => 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<{
|
35
95
|
data: {
|
36
96
|
type: import('vue').PropType<any[]>;
|
@@ -52,6 +112,66 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
52
112
|
type: import('vue').PropType<"" | "small" | "default" | "large">;
|
53
113
|
default: "" | "small" | "default" | "large";
|
54
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
|
+
};
|
55
175
|
}>> & Readonly<{
|
56
176
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
57
177
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
@@ -60,11 +180,37 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
60
180
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
61
181
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
62
182
|
}>, {
|
63
|
-
data: any[];
|
64
183
|
size: "" | "small" | "default" | "large";
|
184
|
+
data: any[];
|
65
185
|
showRowNumber: boolean;
|
66
186
|
selectionMode: boolean;
|
67
187
|
currentRowMode: boolean;
|
188
|
+
rowClassName: string | ((data: {
|
189
|
+
rowData: any;
|
190
|
+
rowIndex: number;
|
191
|
+
}) => string);
|
192
|
+
rowStyle: import('vue').CSSProperties | ((data: {
|
193
|
+
rowData: any;
|
194
|
+
rowIndex: number;
|
195
|
+
}) => import('vue').CSSProperties);
|
196
|
+
cellClassName: string | ((data: {
|
197
|
+
rowData: any;
|
198
|
+
column: {
|
199
|
+
name: string;
|
200
|
+
head: string;
|
201
|
+
};
|
202
|
+
rowIndex: number;
|
203
|
+
columnIndex: number;
|
204
|
+
}) => string);
|
205
|
+
cellStyle: import('vue').CSSProperties | ((data: {
|
206
|
+
rowData: any;
|
207
|
+
column: {
|
208
|
+
name: string;
|
209
|
+
head: string;
|
210
|
+
};
|
211
|
+
rowIndex: number;
|
212
|
+
columnIndex: number;
|
213
|
+
}) => import('vue').CSSProperties);
|
68
214
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {
|
69
215
|
QuerytableColumnIndex: typeof QuerytableColumnIndex;
|
70
216
|
QuerytableColumnString: typeof QuerytableColumnString;
|