@aspire-ui/element-component-pro 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ProTable/ProTable.vue.d.ts +1 -104
- package/dist/ProTable/components/CellRenderers.d.ts +92 -0
- package/dist/ProTable/components/TableColumnGroup.vue.d.ts +39 -0
- package/dist/ProTable/types/index.d.ts +2 -0
- package/dist/element-component-pro.es.js +1095 -1044
- package/dist/element-component-pro.es.js.map +1 -1
- package/dist/element-component-pro.umd.js +2 -2
- package/dist/element-component-pro.umd.js.map +1 -1
- package/dist/index.d.ts +1 -104
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/ProTable/ProTable.vue +57 -126
- package/src/ProTable/components/CellRenderers.ts +59 -0
- package/src/ProTable/components/TableColumnGroup.vue +101 -0
- package/src/ProTable/types/index.ts +2 -0
|
@@ -1,112 +1,9 @@
|
|
|
1
1
|
import { ProColumn, ProTableProps, TableActionType, FetchSetting, FetchParams } from './types';
|
|
2
2
|
|
|
3
|
-
declare function __VLS_template():
|
|
4
|
-
column: {
|
|
5
|
-
key?: string | undefined;
|
|
6
|
-
title: string;
|
|
7
|
-
dataIndex: string;
|
|
8
|
-
width?: number | string | undefined;
|
|
9
|
-
minWidth?: number | string | undefined;
|
|
10
|
-
maxWidth?: number | string | undefined;
|
|
11
|
-
fixed?: "left" | "right" | undefined;
|
|
12
|
-
sortable?: boolean | undefined;
|
|
13
|
-
align?: "left" | "center" | "right" | undefined;
|
|
14
|
-
resizable?: boolean | undefined;
|
|
15
|
-
ellipsis?: boolean | undefined;
|
|
16
|
-
hideInTable?: boolean | undefined;
|
|
17
|
-
defaultHidden?: boolean | undefined;
|
|
18
|
-
helpMessage?: string | string[] | undefined;
|
|
19
|
-
valueType?: "text" | "date" | "dateTime" | "option" | "select" | "index" | undefined;
|
|
20
|
-
valueEnum?: Record<string | number, {
|
|
21
|
-
text: string;
|
|
22
|
-
status?: string;
|
|
23
|
-
}> | undefined;
|
|
24
|
-
customRender?: ((params: {
|
|
25
|
-
text: unknown;
|
|
26
|
-
record: Record<string, unknown>;
|
|
27
|
-
index: number;
|
|
28
|
-
}) => import('vue').VNode | string) | undefined;
|
|
29
|
-
formatter?: ((row: Record<string, unknown>, column: unknown, cellValue: unknown) => string) | undefined;
|
|
30
|
-
ifShow?: boolean | ((params: {
|
|
31
|
-
column: ProColumn;
|
|
32
|
-
}) => boolean) | undefined;
|
|
33
|
-
fieldProps?: Record<string, unknown> | undefined;
|
|
34
|
-
placeholder?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
}) => any>> & Partial<Record<string, (_: {
|
|
37
|
-
row: any;
|
|
38
|
-
column: {
|
|
39
|
-
key?: string | undefined;
|
|
40
|
-
title: string;
|
|
41
|
-
dataIndex: string;
|
|
42
|
-
width?: number | string | undefined;
|
|
43
|
-
minWidth?: number | string | undefined;
|
|
44
|
-
maxWidth?: number | string | undefined;
|
|
45
|
-
fixed?: "left" | "right" | undefined;
|
|
46
|
-
sortable?: boolean | undefined;
|
|
47
|
-
align?: "left" | "center" | "right" | undefined;
|
|
48
|
-
resizable?: boolean | undefined;
|
|
49
|
-
ellipsis?: boolean | undefined;
|
|
50
|
-
hideInTable?: boolean | undefined;
|
|
51
|
-
defaultHidden?: boolean | undefined;
|
|
52
|
-
helpMessage?: string | string[] | undefined;
|
|
53
|
-
valueType?: "text" | "date" | "dateTime" | "option" | "select" | "index" | undefined;
|
|
54
|
-
valueEnum?: Record<string | number, {
|
|
55
|
-
text: string;
|
|
56
|
-
status?: string;
|
|
57
|
-
}> | undefined;
|
|
58
|
-
customRender?: ((params: {
|
|
59
|
-
text: unknown;
|
|
60
|
-
record: Record<string, unknown>;
|
|
61
|
-
index: number;
|
|
62
|
-
}) => import('vue').VNode | string) | undefined;
|
|
63
|
-
formatter?: ((row: Record<string, unknown>, column: unknown, cellValue: unknown) => string) | undefined;
|
|
64
|
-
ifShow?: boolean | ((params: {
|
|
65
|
-
column: ProColumn;
|
|
66
|
-
}) => boolean) | undefined;
|
|
67
|
-
fieldProps?: Record<string, unknown> | undefined;
|
|
68
|
-
placeholder?: string | undefined;
|
|
69
|
-
};
|
|
70
|
-
index: any;
|
|
71
|
-
value: any;
|
|
72
|
-
}) => any>> & {
|
|
3
|
+
declare function __VLS_template(): {
|
|
73
4
|
tableTitle?(_: {}): any;
|
|
74
5
|
toolbar?(_: {}): any;
|
|
75
6
|
"toolbar-right"?(_: {}): any;
|
|
76
|
-
headerCell?(_: {
|
|
77
|
-
column: {
|
|
78
|
-
key?: string | undefined;
|
|
79
|
-
title: string;
|
|
80
|
-
dataIndex: string;
|
|
81
|
-
width?: number | string | undefined;
|
|
82
|
-
minWidth?: number | string | undefined;
|
|
83
|
-
maxWidth?: number | string | undefined;
|
|
84
|
-
fixed?: "left" | "right" | undefined;
|
|
85
|
-
sortable?: boolean | undefined;
|
|
86
|
-
align?: "left" | "center" | "right" | undefined;
|
|
87
|
-
resizable?: boolean | undefined;
|
|
88
|
-
ellipsis?: boolean | undefined;
|
|
89
|
-
hideInTable?: boolean | undefined;
|
|
90
|
-
defaultHidden?: boolean | undefined;
|
|
91
|
-
helpMessage?: string | string[] | undefined;
|
|
92
|
-
valueType?: "text" | "date" | "dateTime" | "option" | "select" | "index" | undefined;
|
|
93
|
-
valueEnum?: Record<string | number, {
|
|
94
|
-
text: string;
|
|
95
|
-
status?: string;
|
|
96
|
-
}> | undefined;
|
|
97
|
-
customRender?: ((params: {
|
|
98
|
-
text: unknown;
|
|
99
|
-
record: Record<string, unknown>;
|
|
100
|
-
index: number;
|
|
101
|
-
}) => import('vue').VNode | string) | undefined;
|
|
102
|
-
formatter?: ((row: Record<string, unknown>, column: unknown, cellValue: unknown) => string) | undefined;
|
|
103
|
-
ifShow?: boolean | ((params: {
|
|
104
|
-
column: ProColumn;
|
|
105
|
-
}) => boolean) | undefined;
|
|
106
|
-
fieldProps?: Record<string, unknown> | undefined;
|
|
107
|
-
placeholder?: string | undefined;
|
|
108
|
-
};
|
|
109
|
-
}): any;
|
|
110
7
|
action?(_: {
|
|
111
8
|
record: any;
|
|
112
9
|
column: Partial<ProColumn>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ProColumn } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const DefaultCellRenderer: import('vue').DefineComponent<{
|
|
4
|
+
column: {
|
|
5
|
+
type: () => ProColumn;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
record: {
|
|
9
|
+
type: () => Record<string, unknown>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
index: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
value: {
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
column: {
|
|
21
|
+
type: () => ProColumn;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
record: {
|
|
25
|
+
type: () => Record<string, unknown>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
index: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
value: {
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
}>>, {}>;
|
|
36
|
+
export declare const BodyCellRenderer: import('vue').DefineComponent<{
|
|
37
|
+
slotRender: {
|
|
38
|
+
type: FunctionConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
column: {
|
|
42
|
+
type: () => ProColumn;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
record: {
|
|
46
|
+
type: () => Record<string, unknown>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
index: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
value: {
|
|
54
|
+
required: false;
|
|
55
|
+
};
|
|
56
|
+
customRender: {
|
|
57
|
+
type: FunctionConstructor;
|
|
58
|
+
required: false;
|
|
59
|
+
};
|
|
60
|
+
valueEnum: {
|
|
61
|
+
type: ObjectConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
};
|
|
64
|
+
}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
65
|
+
slotRender: {
|
|
66
|
+
type: FunctionConstructor;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
column: {
|
|
70
|
+
type: () => ProColumn;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
record: {
|
|
74
|
+
type: () => Record<string, unknown>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
index: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
value: {
|
|
82
|
+
required: false;
|
|
83
|
+
};
|
|
84
|
+
customRender: {
|
|
85
|
+
type: FunctionConstructor;
|
|
86
|
+
required: false;
|
|
87
|
+
};
|
|
88
|
+
valueEnum: {
|
|
89
|
+
type: ObjectConstructor;
|
|
90
|
+
required: false;
|
|
91
|
+
};
|
|
92
|
+
}>>, {}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ProColumn, ProTableProps } from '../types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): Partial<Record<string, (_: {
|
|
4
|
+
row: any;
|
|
5
|
+
column: ProColumn;
|
|
6
|
+
index: any;
|
|
7
|
+
value: any;
|
|
8
|
+
}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
9
|
+
column: ProColumn;
|
|
10
|
+
}) => any>> & {
|
|
11
|
+
headerCell?(_: {
|
|
12
|
+
column: ProColumn;
|
|
13
|
+
}): any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
column: ProColumn;
|
|
17
|
+
effectiveProps: ProTableProps;
|
|
18
|
+
getColumnWidth: (col: ProColumn) => number | string | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
column: ProColumn;
|
|
21
|
+
effectiveProps: ProTableProps;
|
|
22
|
+
getColumnWidth: (col: ProColumn) => number | string | undefined;
|
|
23
|
+
}>>>, {}>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$scopedSlots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|