mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
34 lines
680 B
TypeScript
34 lines
680 B
TypeScript
import { VXEComponent } from './component'
|
|
|
|
/**
|
|
* 组件 - 下拉框选项
|
|
* @example import { Option as VxeOption } from 'vxe-table'
|
|
*/
|
|
export const Option: VXEComponent<VxeOptionProps>;
|
|
|
|
export type VxeOptionProps = {
|
|
/**
|
|
* 绑定值
|
|
*/
|
|
value?: VxeOptionPropTypes.Value;
|
|
/**
|
|
* 显示内容
|
|
*/
|
|
label?: VxeOptionPropTypes.Label;
|
|
/**
|
|
* 是否显示
|
|
*/
|
|
visible?: VxeOptionPropTypes.Visible;
|
|
/**
|
|
* 是否禁用
|
|
*/
|
|
disabled?: VxeOptionPropTypes.Disabled;
|
|
}
|
|
|
|
export namespace VxeOptionPropTypes {
|
|
export type Value = any;
|
|
export type Label = string | number | boolean;
|
|
export type Visible = boolean;
|
|
export type Disabled = boolean;
|
|
}
|