@ithinkdt/naive
Version:
iThinkDT Naive UI
54 lines (46 loc) • 1.3 kB
TypeScript
import { PropType, ExtractPublicPropTypes } from 'vue'
import { SimpleDefineComponent } from '@ithinkdt/common'
import { Icon } from '@ithinkdt/core'
import { IconifyInfo, IconifyJSON } from '@iconify/types'
export interface FormIcon extends Icon {
category?: string
svg?: boolean
source?: string
}
export type { IconifyJSON }
declare const iconSelectProps: {
value: {
type: PropType<PartialKeys<FormIcon, 'id' | 'type'>>
required: false
}
colls: {
type: PropType<Record<string, IconifyInfo>>
required: false
}
loader: {
type: PropType<(key: string) => Promise<IconifyJSON>>
required: false
}
disabled: {
type: BooleanConstructor
required: false
}
status: {
type: PropType<'success' | 'warning' | 'error'>
required: false
}
accept: {
type: StringConstructor
required: false
}
'onUpdate:value': {
type: PropType<(value: FormIcon) => void>
required: false
}
onUpdateValue: {
type: PropType<(value: FormIcon) => void>
required: false
}
}
export type IconSelectProps = ExtractPublicPropTypes<typeof iconSelectProps>
export declare const DtIconSelect: SimpleDefineComponent<typeof iconSelectProps>