1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
| import type { Component } from 'vue'
| import {
| ElCascader,
| ElCheckboxGroup,
| ElColorPicker,
| ElDatePicker,
| ElInput,
| ElInputNumber,
| ElRadioGroup,
| ElRate,
| ElSelect,
| ElSelectV2,
| ElTreeSelect,
| ElSlider,
| ElSwitch,
| ElTimePicker,
| ElTimeSelect,
| ElTransfer,
| ElAutocomplete,
| ElDivider
| } from 'element-plus'
| import { InputPassword } from '@/components/InputPassword'
| import { Editor } from '@/components/Editor'
| import { UploadImg, UploadImgs, UploadFile } from '@/components/UploadFile'
| import { ComponentName } from '@/types/components'
|
| const componentMap: Recordable<Component, ComponentName> = {
| Radio: ElRadioGroup,
| Checkbox: ElCheckboxGroup,
| CheckboxButton: ElCheckboxGroup,
| Input: ElInput,
| Autocomplete: ElAutocomplete,
| InputNumber: ElInputNumber,
| Select: ElSelect,
| Cascader: ElCascader,
| Switch: ElSwitch,
| Slider: ElSlider,
| TimePicker: ElTimePicker,
| DatePicker: ElDatePicker,
| Rate: ElRate,
| ColorPicker: ElColorPicker,
| Transfer: ElTransfer,
| Divider: ElDivider,
| TimeSelect: ElTimeSelect,
| SelectV2: ElSelectV2,
| TreeSelect: ElTreeSelect,
| RadioButton: ElRadioGroup,
| InputPassword: InputPassword,
| Editor: Editor,
| UploadImg: UploadImg,
| UploadImgs: UploadImgs,
| UploadFile: UploadFile
| }
|
| export { componentMap }
|
|