chore: update Affix and Tag type (#2700)
parent
203e8c6b92
commit
50ae500253
|
@ -5,23 +5,25 @@
|
||||||
import { AntdComponent } from './component';
|
import { AntdComponent } from './component';
|
||||||
|
|
||||||
export declare class Affix extends AntdComponent {
|
export declare class Affix extends AntdComponent {
|
||||||
/**
|
$props: {
|
||||||
* Pixels to offset from top when calculating position of scroll
|
/**
|
||||||
* @default 0
|
* Pixels to offset from top when calculating position of scroll
|
||||||
* @type number
|
* @default 0
|
||||||
*/
|
* @type number
|
||||||
offsetTop: number;
|
*/
|
||||||
|
offsetTop?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pixels to offset from bottom when calculating position of scroll
|
* Pixels to offset from bottom when calculating position of scroll
|
||||||
* @type number
|
* @type number
|
||||||
*/
|
*/
|
||||||
offsetBottom: number;
|
offsetBottom?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* specifies the scrollable area dom node
|
* specifies the scrollable area dom node
|
||||||
* @default () => window
|
* @default () => window
|
||||||
* @type Function
|
* @type Function
|
||||||
*/
|
*/
|
||||||
target: () => HTMLElement;
|
target?: () => HTMLElement;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
import { AntdComponent } from '../component';
|
import { AntdComponent } from '../component';
|
||||||
|
|
||||||
export declare class CheckableTag extends AntdComponent {
|
export declare class CheckableTag extends AntdComponent {
|
||||||
/**
|
$props: {
|
||||||
* Checked status of Tag
|
/**
|
||||||
* @default false
|
* Checked status of Tag
|
||||||
* @type boolean
|
* @default false
|
||||||
*/
|
* @type boolean
|
||||||
checked: boolean;
|
*/
|
||||||
|
checked?: boolean;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,29 +8,31 @@ import { CheckableTag } from './checkable-tag';
|
||||||
export declare class Tag extends AntdComponent {
|
export declare class Tag extends AntdComponent {
|
||||||
static CheckableTag: typeof CheckableTag;
|
static CheckableTag: typeof CheckableTag;
|
||||||
|
|
||||||
/**
|
$props: {
|
||||||
* Callback executed when close animation is completed
|
/**
|
||||||
* @type Function
|
* Callback executed when close animation is completed
|
||||||
*/
|
* @type Function
|
||||||
afterClose: () => void;
|
*/
|
||||||
|
afterClose?: () => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the Tag can be closed
|
* Whether the Tag can be closed
|
||||||
* @default false
|
* @default false
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
closable: boolean;
|
closable?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Color of the Tag
|
* Color of the Tag
|
||||||
* @type string
|
* @type string
|
||||||
*/
|
*/
|
||||||
color: string;
|
color?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the Tag is closed or not
|
* Whether the Tag is closed or not
|
||||||
* @default true
|
* @default true
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
visible: boolean;
|
visible?: boolean;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue