@ithinkdt/naive
Version:
iThinkDT Naive UI
62 lines (56 loc) • 1.53 kB
TypeScript
import { PropType, VNodeChild, ExtractPublicPropTypes, CSSProperties } from 'vue'
import { radioGroupProps } from 'ithinkdt-ui'
import { SimpleDefineComponent } from '@ithinkdt/common'
import { DictOption, DictValueType } from '@ithinkdt/core'
declare const radiosProps: typeof radioGroupProps & {
options: {
options: PropType<
(
| DictOption<RecordAny<string>, DictValueType>
| {
label: () => VNodeChild
value: DictValueType
disabled?: boolean
}
)[]
>
required: false
}
type: {
type: PropType<'radio' | 'button'>
required: false
}
padding: {
type: PropType<CSSProperties['padding-left']>
required: false
}
vertical: {
type: Boolean
required: false
}
default: {
type: PropType<
| boolean
| string
| {
label?: string
value: string | number | null | undefined
}
>
required: false
}
labelField: {
type: StringConstructor
required: false
}
valueField: {
type: StringConstructor
required: false
}
disabledField: {
type: StringConstructor
required: false
}
}
export type RadiosProps = ExtractPublicPropTypes<typeof radiosProps>
export declare const NRadios: SimpleDefineComponent<typeof radiosProps>