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
|
|
|
|
|
2020-08-31 06:59:56 +00:00
|
|
|
import { AntdComponent, AntdProps } from '../component';
|
2020-09-09 08:40:28 +00:00
|
|
|
import { VNodeChild } from 'vue';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
export declare class Option extends AntdComponent {
|
2020-08-31 06:59:56 +00:00
|
|
|
$props: AntdProps & {
|
2020-08-18 02:12:57 +00:00
|
|
|
/**
|
2020-08-30 14:59:47 +00:00
|
|
|
* Disable this option
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
2020-08-18 02:12:57 +00:00
|
|
|
disabled?: boolean;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-18 02:12:57 +00:00
|
|
|
/**
|
|
|
|
* Same usage as value. If Vue request you to set this property, you can set it to value of option, and then omit value property.
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
key?: string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-18 02:12:57 +00:00
|
|
|
/**
|
|
|
|
* title of Select after select this Option
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
title?: string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-18 02:12:57 +00:00
|
|
|
/**
|
|
|
|
* default to filter with this property
|
|
|
|
* @type string | number
|
|
|
|
*/
|
|
|
|
value?: string | number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* additional class to option
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
class?: string;
|
2020-09-09 08:40:28 +00:00
|
|
|
label?: VNodeChild | JSX.Element;
|
2020-08-30 14:59:47 +00:00
|
|
|
};
|
2019-01-01 04:13:51 +00:00
|
|
|
}
|