@tmagic/element-plus-adapter 1.4.6 → 1.4.8

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.6",
2
+ "version": "1.4.8",
3
3
  "name": "@tmagic/element-plus-adapter",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -16,6 +16,10 @@
16
16
  },
17
17
  "./*": "./*"
18
18
  },
19
+ "files": [
20
+ "dist",
21
+ "types"
22
+ ],
19
23
  "license": "Apache-2.0",
20
24
  "engines": {
21
25
  "node": ">=18"
@@ -34,12 +38,12 @@
34
38
  "devDependencies": {
35
39
  "@types/node": "^18.19.0",
36
40
  "rimraf": "^3.0.2",
37
- "vite": "^5.2.11"
41
+ "vite": "^5.3.1"
38
42
  },
39
43
  "peerDependencies": {
40
- "element-plus": "^2.6.1",
44
+ "element-plus": "^2.7.5",
41
45
  "typescript": "*",
42
- "@tmagic/design": "1.4.6"
46
+ "@tmagic/design": "1.4.8"
43
47
  },
44
48
  "peerDependenciesMeta": {
45
49
  "typescript": {
package/src/index.ts DELETED
@@ -1,330 +0,0 @@
1
- import {
2
- ElAutocomplete,
3
- ElBadge,
4
- ElButton,
5
- ElCard,
6
- ElCascader,
7
- ElCheckbox,
8
- ElCheckboxGroup,
9
- ElCol,
10
- ElCollapse,
11
- ElCollapseItem,
12
- ElColorPicker,
13
- ElDatePicker,
14
- ElDialog,
15
- ElDivider,
16
- ElDrawer,
17
- ElDropdown,
18
- ElDropdownItem,
19
- ElDropdownMenu,
20
- ElForm,
21
- ElFormItem,
22
- ElIcon,
23
- ElInput,
24
- ElInputNumber,
25
- ElMessage,
26
- ElMessageBox,
27
- ElOption,
28
- ElOptionGroup,
29
- ElPagination,
30
- ElPopover,
31
- ElRadio,
32
- ElRadioButton,
33
- ElRadioGroup,
34
- ElRow,
35
- ElScrollbar,
36
- ElSelect,
37
- ElStep,
38
- ElSteps,
39
- ElSwitch,
40
- ElTable,
41
- ElTableColumn,
42
- ElTabPane,
43
- ElTabs,
44
- ElTag,
45
- ElTimePicker,
46
- ElTooltip,
47
- ElTree,
48
- ElUpload,
49
- useZIndex,
50
- } from 'element-plus';
51
-
52
- import type {
53
- AutocompleteProps,
54
- BadgeProps,
55
- ButtonProps,
56
- CardProps,
57
- CascaderProps,
58
- CheckboxGroupProps,
59
- CheckboxProps,
60
- CollapseItemProps,
61
- CollapseProps,
62
- ColorPickerProps,
63
- ColProps,
64
- DatePickerProps,
65
- DialogProps,
66
- DividerProps,
67
- DrawerProps,
68
- DropdownItemProps,
69
- DropdownProps,
70
- FormItemProps,
71
- FormProps,
72
- IconProps,
73
- InputNumberProps,
74
- InputProps,
75
- OptionGroupProps,
76
- OptionProps,
77
- PaginationProps,
78
- PluginOptions,
79
- PopoverProps,
80
- RadioButtonProps,
81
- RadioGroupProps,
82
- RadioProps,
83
- SelectProps,
84
- StepProps,
85
- StepsProps,
86
- SwitchProps,
87
- TableColumnProps,
88
- TableProps,
89
- TabPaneProps,
90
- TabsProps,
91
- TagProps,
92
- TimePickerProps,
93
- TooltipProps,
94
- TreeProps,
95
- UploadProps,
96
- } from '@tmagic/design';
97
-
98
- const adapter: PluginOptions = {
99
- useZIndex,
100
- message: ElMessage,
101
- messageBox: ElMessageBox,
102
- components: {
103
- autocomplete: {
104
- component: ElAutocomplete as any,
105
- props: (props: AutocompleteProps) => props,
106
- },
107
-
108
- badge: {
109
- component: ElBadge as any,
110
- props: (props: BadgeProps) => props,
111
- },
112
-
113
- button: {
114
- component: ElButton as any,
115
- props: (props: ButtonProps) => props,
116
- },
117
-
118
- card: {
119
- component: ElCard as any,
120
- props: (props: CardProps) => props,
121
- },
122
-
123
- cascader: {
124
- component: ElCascader as any,
125
- props: (props: CascaderProps) => props,
126
- },
127
-
128
- checkbox: {
129
- component: ElCheckbox as any,
130
- props: (props: CheckboxProps) => props,
131
- },
132
-
133
- checkboxGroup: {
134
- component: ElCheckboxGroup as any,
135
- props: (props: CheckboxGroupProps) => props,
136
- },
137
-
138
- col: {
139
- component: ElCol as any,
140
- props: (props: ColProps) => props,
141
- },
142
-
143
- collapse: {
144
- component: ElCollapse as any,
145
- props: (props: CollapseProps) => props,
146
- },
147
-
148
- collapseItem: {
149
- component: ElCollapseItem as any,
150
- props: (props: CollapseItemProps) => props,
151
- },
152
-
153
- colorPicker: {
154
- component: ElColorPicker as any,
155
- props: (props: ColorPickerProps) => props,
156
- },
157
-
158
- datePicker: {
159
- component: ElDatePicker as any,
160
- props: (props: DatePickerProps) => props,
161
- },
162
-
163
- dialog: {
164
- component: ElDialog as any,
165
- props: (props: DialogProps) => props,
166
- },
167
-
168
- divider: {
169
- component: ElDivider as any,
170
- props: (props: DividerProps) => props,
171
- },
172
-
173
- drawer: {
174
- component: ElDrawer as any,
175
- props: (props: DrawerProps) => props,
176
- },
177
-
178
- dropdown: {
179
- component: ElDropdown as any,
180
- props: (props: DropdownProps) => props,
181
- },
182
-
183
- dropdownItem: {
184
- component: ElDropdownItem as any,
185
- props: (props: DropdownItemProps) => props,
186
- },
187
-
188
- dropdownMenu: {
189
- component: ElDropdownMenu,
190
- props: () => ({}),
191
- },
192
-
193
- form: {
194
- component: ElForm as any,
195
- props: (props: FormProps) => props,
196
- },
197
-
198
- formItem: {
199
- component: ElFormItem as any,
200
- props: (props: FormItemProps) => props,
201
- },
202
-
203
- icon: {
204
- component: ElIcon as any,
205
- props: (props: IconProps) => props,
206
- },
207
-
208
- input: {
209
- component: ElInput as any,
210
- props: (props: InputProps) => props,
211
- },
212
-
213
- inputNumber: {
214
- component: ElInputNumber as any,
215
- props: (props: InputNumberProps) => props,
216
- },
217
-
218
- option: {
219
- component: ElOption as any,
220
- props: (props: OptionProps) => props,
221
- },
222
-
223
- optionGroup: {
224
- component: ElOptionGroup as any,
225
- props: (props: OptionGroupProps) => props,
226
- },
227
-
228
- pagination: {
229
- component: ElPagination as any,
230
- props: (props: PaginationProps) => props,
231
- },
232
-
233
- popover: {
234
- component: ElPopover as any,
235
- props: (props: PopoverProps) => props,
236
- },
237
-
238
- radio: {
239
- component: ElRadio as any,
240
- props: (props: RadioProps) => props,
241
- },
242
-
243
- radioButton: {
244
- component: ElRadioButton as any,
245
- props: (props: RadioButtonProps) => props,
246
- },
247
-
248
- radioGroup: {
249
- component: ElRadioGroup as any,
250
- props: (props: RadioGroupProps) => props,
251
- },
252
-
253
- row: {
254
- component: ElRow as any,
255
- props: () => ({}),
256
- },
257
-
258
- scrollbar: {
259
- component: ElScrollbar as any,
260
- props: () => ({}),
261
- },
262
-
263
- select: {
264
- component: ElSelect as any,
265
- props: (props: SelectProps) => props,
266
- },
267
-
268
- step: {
269
- component: ElStep as any,
270
- props: (props: StepProps) => props,
271
- },
272
-
273
- steps: {
274
- component: ElSteps as any,
275
- props: (props: StepsProps) => props,
276
- },
277
-
278
- switch: {
279
- component: ElSwitch as any,
280
- props: (props: SwitchProps) => props,
281
- },
282
-
283
- table: {
284
- component: ElTable as any,
285
- props: (props: TableProps) => props,
286
- },
287
-
288
- tableColumn: {
289
- component: ElTableColumn as any,
290
- props: (props: TableColumnProps) => props,
291
- },
292
-
293
- tabPane: {
294
- component: ElTabPane as any,
295
- props: (props: TabPaneProps) => props,
296
- },
297
-
298
- tabs: {
299
- component: ElTabs as any,
300
- props: (props: TabsProps) => props,
301
- },
302
-
303
- tag: {
304
- component: ElTag as any,
305
- props: (props: TagProps) => props,
306
- },
307
-
308
- timePicker: {
309
- component: ElTimePicker as any,
310
- props: (props: TimePickerProps) => props,
311
- },
312
-
313
- tooltip: {
314
- component: ElTooltip as any,
315
- props: (props: TooltipProps) => props,
316
- },
317
-
318
- tree: {
319
- component: ElTree as any,
320
- props: (props: TreeProps) => props,
321
- },
322
-
323
- upload: {
324
- component: ElUpload as any,
325
- props: (props: UploadProps) => props,
326
- },
327
- },
328
- };
329
-
330
- export default adapter;
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "declaration": true,
6
- "declarationDir": "types",
7
- "forceConsistentCasingInFileNames": true,
8
- "paths": {},
9
- },
10
- "include": [
11
- "src"
12
- ],
13
- }