@opensig/opendesign
Version:
47 lines (46 loc) • 1.14 kB
TypeScript
import { ExtractPropTypes, PropType, Component } from 'vue';
import { RoundT } from '../_utils/types';
export declare const buttonToggleProps: {
/**
* @zh-CN 双向绑定值,是否被选中
* @en-US Bidirectional binding value, whether selected.
* @default undefined
*/
checked: {
type: BooleanConstructor;
default: undefined;
};
/**
* @zh-CN 非受控状态时,默认是否选中
* @en-US Whether it is selected by default when in an uncontrolled state.
* @default false
*/
defaultChecked: {
type: BooleanConstructor;
default: boolean;
};
/**
* @zh-CN 圆角值
* @en-US Round.
*/
round: {
type: PropType<RoundT>;
};
/**
* @zh-CN 前缀图标
* @en-US Prefix icon.
*/
icon: {
type: PropType<Component>;
};
/**
* @zh-CN 是否禁用
* @en-US Whether to disable.
* @default false
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
};
export type ButtonToggleProps = ExtractPropTypes<typeof buttonToggleProps>;