mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
59 lines
1.7 KiB
TypeScript
59 lines
1.7 KiB
TypeScript
import { SetupContext, RenderFunction, ComponentPublicInstance } from 'vue'
|
|
import { SizeType, VXETableComponent, VxeComponentInstance, VxeEvent, ValueOf } from './component'
|
|
|
|
/**
|
|
* 组件 - 单选框按钮
|
|
*/
|
|
export interface RadioButton extends VXETableComponent { }
|
|
|
|
export type VxeRadioButtonInstance = ComponentPublicInstance<VxeRadioButtonProps, VxeRadioButtonConstructor>;
|
|
|
|
export interface VxeRadioButtonConstructor extends VxeComponentInstance, VxeRadioButtonMethods {
|
|
props: VxeRadioButtonProps;
|
|
context: SetupContext<VxeRadioButtonEmits>;
|
|
renderVN: RenderFunction;
|
|
}
|
|
|
|
export interface RadioButtonOptions extends VxeRadioButtonProps, VxeRadioButtonListeners { }
|
|
|
|
export interface RadioButtonMethods {
|
|
dispatchEvent(type: ValueOf<VxeRadioButtonEmits>, params: any, evnt: Event): void;
|
|
}
|
|
export interface VxeRadioButtonMethods extends RadioButtonMethods { }
|
|
|
|
export interface RadioButtonPrivateMethods { }
|
|
export interface VxeRadioButtonPrivateMethods extends RadioButtonPrivateMethods { }
|
|
|
|
export type VxeRadioButtonEmits = [
|
|
'update:modelValue',
|
|
'change'
|
|
]
|
|
|
|
export interface VxeRadioButtonProps {
|
|
size?: SizeType;
|
|
modelValue: any;
|
|
label: any;
|
|
title: string | number;
|
|
content: string | number;
|
|
disabled: boolean;
|
|
}
|
|
|
|
export namespace VxeRadioButtonDefines {
|
|
interface RadioButtonEventParams extends VxeEvent {
|
|
$radioButton: VxeRadioButtonConstructor;
|
|
}
|
|
|
|
export interface ChangeParams {
|
|
label: any;
|
|
}
|
|
export interface ChangeEventParams extends RadioButtonEventParams, ChangeParams { }
|
|
}
|
|
|
|
export interface VxeRadioButtonListeners {
|
|
onChange?: VxeRadioButtonEvents.Change;
|
|
}
|
|
|
|
export namespace VxeRadioButtonEvents {
|
|
export type Change = (params: VxeRadioButtonDefines.ChangeEventParams) => void;
|
|
}
|