@ithinkdt/naive
Version:
iThinkDT Naive UI
27 lines (16 loc) • 852 B
TypeScript
/* eslint-disable @typescript-eslint/no-explicit-any */
import { ExtractPublicPropTypes, PropType } from 'vue'
import { SimpleDefineComponent } from '@ithinkdt/common'
type Value = Array<Record<string, unknown>>
declare const treeInputProps: {
onCreate: PropType<() => Value>
renderItem: PropType<(options: { value: Record<string, unknown>; readonly: boolean }) => Value>
creatable: PropType<(item: Record<string, unknown>) => boolean>
removable: PropType<(item: Record<string, unknown>) => boolean>
value: PropType<Value>
readonly: Boolean
'onUpdate:value': PropType<MaybeArray<(v: Value) => any>>
onUpdateValue: PropType<MaybeArray<(v: Value) => any>>
}
export type TreeInputProps = ExtractPublicPropTypes<typeof treeInputProps>
export declare const DtTreeInput: SimpleDefineComponent<typeof treeInputProps>