@tmagic/element-plus-adapter 1.7.7 → 1.7.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +235 -164
- package/dist/es/Table.js +5 -0
- package/dist/es/Table.vue_vue_type_script_setup_true_lang.js +122 -0
- package/dist/es/index.js +191 -0
- package/dist/tmagic-element-plus-adapter.umd.cjs +310 -321
- package/package.json +5 -4
- package/types/index.d.ts +4 -3
- package/dist/tmagic-element-plus-adapter.js +0 -316
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import Table_default from "./Table.js";
|
|
2
|
+
import { ElAutocomplete, ElBadge, ElButton, ElCard, ElCascader, ElCheckbox, ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElColorPicker, ElDatePicker, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElIcon, ElInput, ElInputNumber, ElLoading, ElMessage, ElMessageBox, ElOption, ElOptionGroup, ElPagination, ElPopconfirm, ElRadio, ElRadioButton, ElRadioGroup, ElRow, ElScrollbar, ElSelect, ElStep, ElSteps, ElSwitch, ElTabPane, ElTabs, ElTag, ElTimePicker, ElTooltip, ElUpload, useZIndex } from "element-plus";
|
|
3
|
+
//#region packages/element-plus-adapter/src/index.ts
|
|
4
|
+
var adapter = {
|
|
5
|
+
adapterType: "element-plus",
|
|
6
|
+
useZIndex,
|
|
7
|
+
message: ElMessage,
|
|
8
|
+
messageBox: ElMessageBox,
|
|
9
|
+
components: {
|
|
10
|
+
autocomplete: {
|
|
11
|
+
component: ElAutocomplete,
|
|
12
|
+
props: (props) => props
|
|
13
|
+
},
|
|
14
|
+
badge: {
|
|
15
|
+
component: ElBadge,
|
|
16
|
+
props: (props) => props
|
|
17
|
+
},
|
|
18
|
+
button: {
|
|
19
|
+
component: ElButton,
|
|
20
|
+
props: (props) => {
|
|
21
|
+
return {
|
|
22
|
+
...props,
|
|
23
|
+
type: props.type === "default" ? "" : props.type
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
card: {
|
|
28
|
+
component: ElCard,
|
|
29
|
+
props: (props) => props
|
|
30
|
+
},
|
|
31
|
+
cascader: {
|
|
32
|
+
component: ElCascader,
|
|
33
|
+
props: (props) => props
|
|
34
|
+
},
|
|
35
|
+
checkbox: {
|
|
36
|
+
component: ElCheckbox,
|
|
37
|
+
props: (props) => props
|
|
38
|
+
},
|
|
39
|
+
checkboxGroup: {
|
|
40
|
+
component: ElCheckboxGroup,
|
|
41
|
+
props: (props) => props
|
|
42
|
+
},
|
|
43
|
+
col: {
|
|
44
|
+
component: ElCol,
|
|
45
|
+
props: (props) => props
|
|
46
|
+
},
|
|
47
|
+
collapse: {
|
|
48
|
+
component: ElCollapse,
|
|
49
|
+
props: (props) => props
|
|
50
|
+
},
|
|
51
|
+
collapseItem: {
|
|
52
|
+
component: ElCollapseItem,
|
|
53
|
+
props: (props) => props
|
|
54
|
+
},
|
|
55
|
+
colorPicker: {
|
|
56
|
+
component: ElColorPicker,
|
|
57
|
+
props: (props) => props
|
|
58
|
+
},
|
|
59
|
+
datePicker: {
|
|
60
|
+
component: ElDatePicker,
|
|
61
|
+
props: (props) => props
|
|
62
|
+
},
|
|
63
|
+
dialog: {
|
|
64
|
+
component: ElDialog,
|
|
65
|
+
props: (props) => props
|
|
66
|
+
},
|
|
67
|
+
divider: {
|
|
68
|
+
component: ElDivider,
|
|
69
|
+
props: (props) => props
|
|
70
|
+
},
|
|
71
|
+
drawer: {
|
|
72
|
+
component: ElDrawer,
|
|
73
|
+
props: (props) => props
|
|
74
|
+
},
|
|
75
|
+
dropdown: {
|
|
76
|
+
component: ElDropdown,
|
|
77
|
+
props: (props) => props
|
|
78
|
+
},
|
|
79
|
+
dropdownItem: {
|
|
80
|
+
component: ElDropdownItem,
|
|
81
|
+
props: (props) => props
|
|
82
|
+
},
|
|
83
|
+
dropdownMenu: {
|
|
84
|
+
component: ElDropdownMenu,
|
|
85
|
+
props: () => ({})
|
|
86
|
+
},
|
|
87
|
+
form: {
|
|
88
|
+
component: ElForm,
|
|
89
|
+
props: (props) => props
|
|
90
|
+
},
|
|
91
|
+
formItem: {
|
|
92
|
+
component: ElFormItem,
|
|
93
|
+
props: (props) => props
|
|
94
|
+
},
|
|
95
|
+
icon: {
|
|
96
|
+
component: ElIcon,
|
|
97
|
+
props: (props) => props
|
|
98
|
+
},
|
|
99
|
+
input: {
|
|
100
|
+
component: ElInput,
|
|
101
|
+
props: (props) => props
|
|
102
|
+
},
|
|
103
|
+
inputNumber: {
|
|
104
|
+
component: ElInputNumber,
|
|
105
|
+
props: (props) => props
|
|
106
|
+
},
|
|
107
|
+
option: {
|
|
108
|
+
component: ElOption,
|
|
109
|
+
props: (props) => props
|
|
110
|
+
},
|
|
111
|
+
optionGroup: {
|
|
112
|
+
component: ElOptionGroup,
|
|
113
|
+
props: (props) => props
|
|
114
|
+
},
|
|
115
|
+
pagination: {
|
|
116
|
+
component: ElPagination,
|
|
117
|
+
props: (props) => props
|
|
118
|
+
},
|
|
119
|
+
radio: {
|
|
120
|
+
component: ElRadio,
|
|
121
|
+
props: (props) => props
|
|
122
|
+
},
|
|
123
|
+
radioButton: {
|
|
124
|
+
component: ElRadioButton,
|
|
125
|
+
props: (props) => props
|
|
126
|
+
},
|
|
127
|
+
radioGroup: {
|
|
128
|
+
component: ElRadioGroup,
|
|
129
|
+
props: (props) => props
|
|
130
|
+
},
|
|
131
|
+
row: {
|
|
132
|
+
component: ElRow,
|
|
133
|
+
props: () => ({})
|
|
134
|
+
},
|
|
135
|
+
scrollbar: {
|
|
136
|
+
component: ElScrollbar,
|
|
137
|
+
props: () => ({})
|
|
138
|
+
},
|
|
139
|
+
select: {
|
|
140
|
+
component: ElSelect,
|
|
141
|
+
props: (props) => props
|
|
142
|
+
},
|
|
143
|
+
step: {
|
|
144
|
+
component: ElStep,
|
|
145
|
+
props: (props) => props
|
|
146
|
+
},
|
|
147
|
+
steps: {
|
|
148
|
+
component: ElSteps,
|
|
149
|
+
props: (props) => props
|
|
150
|
+
},
|
|
151
|
+
switch: {
|
|
152
|
+
component: ElSwitch,
|
|
153
|
+
props: (props) => props
|
|
154
|
+
},
|
|
155
|
+
table: {
|
|
156
|
+
component: Table_default,
|
|
157
|
+
props: (props) => props
|
|
158
|
+
},
|
|
159
|
+
tabPane: {
|
|
160
|
+
component: ElTabPane,
|
|
161
|
+
props: (props) => props
|
|
162
|
+
},
|
|
163
|
+
tabs: {
|
|
164
|
+
component: ElTabs,
|
|
165
|
+
props: (props) => props
|
|
166
|
+
},
|
|
167
|
+
tag: {
|
|
168
|
+
component: ElTag,
|
|
169
|
+
props: (props) => props
|
|
170
|
+
},
|
|
171
|
+
timePicker: {
|
|
172
|
+
component: ElTimePicker,
|
|
173
|
+
props: (props) => props
|
|
174
|
+
},
|
|
175
|
+
tooltip: {
|
|
176
|
+
component: ElTooltip,
|
|
177
|
+
props: (props) => props
|
|
178
|
+
},
|
|
179
|
+
upload: {
|
|
180
|
+
component: ElUpload,
|
|
181
|
+
props: (props) => props
|
|
182
|
+
},
|
|
183
|
+
popconfirm: {
|
|
184
|
+
component: ElPopconfirm,
|
|
185
|
+
props: (props) => props
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
loading: ElLoading.directive
|
|
189
|
+
};
|
|
190
|
+
//#endregion
|
|
191
|
+
export { adapter as default };
|