2019-01-01 04:13:51 +00:00
|
|
|
// Project: https://github.com/vueComponent/ant-design-vue
|
|
|
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
|
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
import { AntdComponent } from '../component';
|
|
|
|
import { ButtonGroup } from './button-group';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
export declare class Button extends AntdComponent {
|
2019-01-19 10:56:33 +00:00
|
|
|
static Group: typeof ButtonGroup;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* can be set to primary ghost dashed danger(added in 2.7) or omitted (meaning default)
|
|
|
|
* @default 'default'
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 03:33:27 +00:00
|
|
|
type: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the original html type of button
|
|
|
|
* @default 'button'
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 03:33:27 +00:00
|
|
|
htmlType: 'button' | 'submit' | 'reset' | 'menu';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the icon of button
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
icon: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* can be set to circle or circle-outline or omitted
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 03:33:27 +00:00
|
|
|
shape: 'circle' | 'circle-outline';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* can be set to small large or omitted
|
|
|
|
* @default 'default'
|
|
|
|
* @type string
|
|
|
|
*/
|
2019-01-12 03:33:27 +00:00
|
|
|
size: 'small' | 'large' | 'default';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the loading status of button
|
|
|
|
* @default false
|
|
|
|
* @type boolean | { delay: number }
|
|
|
|
*/
|
|
|
|
loading: boolean | { delay: number };
|
|
|
|
|
|
|
|
/**
|
|
|
|
* disabled state of button
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
disabled: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* make background transparent and invert text and border colors, added in 2.7
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
ghost: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* option to fit button width to its parent width
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
block: boolean;
|
|
|
|
}
|