import { default as HCascader } from '../cascader/index.vue'; import { default as HCheckbox } from '../checkbox/index.vue'; import { default as HColorPicker } from '../color-picker/index.vue'; import { default as HCustomRender } from '../custom-render/index.vue'; import { default as HDatepicker } from '../datepicker/index.vue'; import { default as HInputNumber } from '../input-number/index.vue'; import { default as HInput } from '../input/index.vue'; import { default as HMention } from '../mention/index.vue'; import { default as HRadio } from '../radio/index.vue'; import { default as HRate } from '../rate/index.vue'; import { default as HSelectV2 } from '../select-v2/index.vue'; import { default as HSelect } from '../select/index.vue'; import { default as HSlider } from '../slider/index.vue'; import { default as HSwitch } from '../switch/index.vue'; import { default as HTimePicker } from '../time-picker/index.vue'; import { default as HTimeSelect } from '../time-select/index.vue'; import { default as HTreeSelect } from '../tree-select/index.vue'; import { default as HUpload } from '../upload/index.vue'; declare const compMap: { select: typeof HSelect; 'tree-select': typeof HTreeSelect; input: typeof HInput; datepicker: typeof HDatepicker; 'date-picker': typeof HDatepicker; cascader: typeof HCascader; radio: typeof HRadio; checkbox: typeof HCheckbox; 'color-picker': typeof HColorPicker; 'input-number': typeof HInputNumber; rate: typeof HRate; slider: typeof HSlider; switch: typeof HSwitch; 'time-picker': typeof HTimePicker; 'time-select': typeof HTimeSelect; upload: typeof HUpload; 'select-v2': typeof HSelectV2; mention: typeof HMention; 'custom-render': typeof HCustomRender; }; /** 默认定义组件的类型 */ export type ComponentType = (typeof compMap)[keyof typeof compMap]; /** * 注册自定义组件 * @param {string} name 类型 * @param {} comp 可渲染的组件 */ export declare function registerComponent(name: string, comp: any): void; /** * 删除自定义组件 * @param {string} name 定义的类型 */ export declare function unregisterComponent(name: string): void; /** * 获取指定组件 * @param {string} [name] 组件类型 */ export declare function getComponent(name: string): ComponentType | undefined; export declare function getComponent(): Record; export {};