Skip to content

Commit ec024c8

Browse files
authored
chore: table props (#2713)
* chore: table props * fix: table props
1 parent 67464fd commit ec024c8

File tree

4 files changed

+277
-244
lines changed

4 files changed

+277
-244
lines changed

types/spin.d.ts

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,51 @@
55
import { AntdComponent } from './component';
66
import { VNodeChild } from 'vue';
77

8+
export interface SpinProps {
9+
/**
10+
* specifies a delay in milliseconds for loading state (prevent flush)
11+
* @type number (milliseconds)
12+
*/
13+
delay?: number;
14+
15+
/**
16+
* vue node of the spinning indicator
17+
* @type any (VNode | slot)
18+
*/
19+
indicator?: VNodeChild | JSX.Element;
20+
21+
/**
22+
* size of Spin, options: small, default and large
23+
* @default 'default'
24+
* @type string
25+
*/
26+
size?: 'small' | 'default' | 'large';
27+
28+
/**
29+
* whether Spin is spinning
30+
* @default true
31+
* @type boolean
32+
*/
33+
spinning?: boolean;
34+
35+
/**
36+
* customize description content when Spin has children
37+
* @type string
38+
*/
39+
tip?: string;
40+
41+
/**
42+
* className of wrapper when Spin has children
43+
* @type string
44+
*/
45+
wrapperClassName?: string;
46+
}
47+
848
export declare class Spin extends AntdComponent {
949
/**
1050
* As indicator, you can define the global default spin element
1151
* @param param0 indicator
1252
*/
1353
static setDefaultIndicator({ indicator }: { indicator: any }): void;
14-
$props: {
15-
16-
/**
17-
* specifies a delay in milliseconds for loading state (prevent flush)
18-
* @type number (milliseconds)
19-
*/
20-
delay?: number;
21-
22-
/**
23-
* vue node of the spinning indicator
24-
* @type any (VNode | slot)
25-
*/
26-
indicator?: VNodeChild | JSX.Element;
27-
28-
/**
29-
* size of Spin, options: small, default and large
30-
* @default 'default'
31-
* @type string
32-
*/
33-
size?: 'small' | 'default' | 'large';
34-
35-
/**
36-
* whether Spin is spinning
37-
* @default true
38-
* @type boolean
39-
*/
40-
spinning?: boolean;
41-
42-
/**
43-
* customize description content when Spin has children
44-
* @type string
45-
*/
46-
tip?: string;
47-
48-
/**
49-
* className of wrapper when Spin has children
50-
* @type string
51-
*/
52-
wrapperClassName?: string;
53-
}
54+
$props: SpinProps;
5455
}

types/table/column-group.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Definitions by: akki-jat <https://github.com/akki-jat>
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

5+
import { VNodeChild, Slots } from 'vue';
56
import { AntdComponent } from '../component';
6-
import { VNodeChild } from 'vue';
77

88
export declare class ColumnGroup extends AntdComponent {
99
$props: {
@@ -18,6 +18,6 @@ export declare class ColumnGroup extends AntdComponent {
1818
* such as slots: { title: 'XXX'}
1919
* @type object
2020
*/
21-
slots?: object;
21+
slots?: Slots;
2222
};
2323
}

0 commit comments

Comments
 (0)