import { RenderFunction, SetupContext, Ref } from 'vue' import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, ValueOf } from '@vxe-ui/core' /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */ export declare const VxeRadio: DefineVxeComponentApp export type VxeRadioComponent = DefineVxeComponentOptions export type VxeRadioInstance = DefineVxeComponentInstance export interface VxeRadioConstructor extends VxeComponentBaseOptions, VxeRadioMethods { props: VxeRadioProps context: SetupContext reactData: RadioReactData getRefMaps(): RadioPrivateRef getComputeMaps(): RadioPrivateComputed renderVN: RenderFunction } export interface RadioPrivateRef { refElem: Ref } export interface VxeRadioPrivateRef extends RadioPrivateRef {} export namespace VxeRadioPropTypes { export type Size = VxeComponentSizeType export type Strict = boolean export type ModelValue = any /** * 已废弃,被 CheckedValue 替换 * @deprecated */ export type Label = any export type CheckedValue = any export type Title = string | number export type Content = string | number export type Disabled = boolean export type Name = string } export interface VxeRadioProps { size?: VxeRadioPropTypes.Size /** * 严格模式,不允许取消 */ strict?: VxeRadioPropTypes.Strict /** * 绑定值 */ modelValue?: VxeRadioPropTypes.ModelValue /** * 值 */ checkedValue?: VxeRadioPropTypes.CheckedValue /** * 原生 title 属性 */ title?: VxeRadioPropTypes.Title /** * 内容 */ content?: VxeRadioPropTypes.Content /** * 是否禁用 */ disabled?: VxeRadioPropTypes.Disabled /** * 原生 title 属性 */ name?: VxeRadioPropTypes.Name /** * 已废弃,被 checked-value 替换 * @deprecated */ label?: VxeRadioPropTypes.Label } export interface RadioPrivateComputed {} export interface VxeRadioPrivateComputed extends RadioPrivateComputed {} export interface RadioReactData {} export interface RadioMethods { dispatchEvent(type: ValueOf, params: Record, evnt: Event | null): void } export interface VxeRadioMethods extends RadioMethods {} export interface RadioPrivateMethods {} export interface VxeRadioPrivateMethods extends RadioPrivateMethods {} export type VxeRadioEmits = ['update:modelValue', 'change'] export namespace VxeRadioDefines { interface RadioEventParams extends VxeComponentEventParams { $radio: VxeRadioConstructor } export interface ChangeParams { label: any } export interface ChangeEventParams extends RadioEventParams, ChangeParams {} } export type VxeRadioEventProps = { 'onUpdate:modelValue'?: VxeRadioEvents.UpdateModelValue onChange?: VxeRadioEvents.Change } export interface VxeRadioListeners { 'update:modelValue'?: VxeRadioEvents.UpdateModelValue change?: VxeRadioEvents.Change } export namespace VxeRadioEvents { export type UpdateModelValue = (modelValue: VxeRadioPropTypes.ModelValue) => void export type Change = (params: VxeRadioDefines.ChangeEventParams) => void } export namespace VxeRadioSlotTypes { export interface DefaultSlotParams {} } export interface VxeRadioSlots { default?: (params: VxeRadioSlotTypes.DefaultSlotParams) => any } export const Radio: typeof VxeRadio export default VxeRadio