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