style: formDemo集成图标选择器
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
import { InputPassword } from '@/components/InputPassword'
|
||||
import { Editor } from '@/components/Editor'
|
||||
import { JsonEditor } from '@/components/JsonEditor'
|
||||
import { IconPicker } from '@/components/IconPicker'
|
||||
import { ComponentName } from '../types'
|
||||
|
||||
const componentMap: Recordable<Component, ComponentName> = {
|
||||
@@ -49,7 +50,8 @@ const componentMap: Recordable<Component, ComponentName> = {
|
||||
Editor: Editor,
|
||||
TreeSelect: ElTreeSelect,
|
||||
Upload: ElUpload,
|
||||
JsonEditor: JsonEditor
|
||||
JsonEditor: JsonEditor,
|
||||
IconPicker: IconPicker
|
||||
}
|
||||
|
||||
export { componentMap }
|
||||
|
||||
@@ -55,7 +55,8 @@ export enum ComponentNameEnum {
|
||||
EDITOR = 'Editor',
|
||||
TREE_SELECT = 'TreeSelect',
|
||||
UPLOAD = 'Upload',
|
||||
JSON_EDITOR = 'JsonEditor'
|
||||
JSON_EDITOR = 'JsonEditor',
|
||||
ICON_PICKER = 'IconPicker'
|
||||
}
|
||||
|
||||
type CamelCaseComponentName = keyof typeof ComponentNameEnum extends infer K
|
||||
|
||||
Reference in New Issue
Block a user