@tmagic/element-plus-adapter 1.8.0-beta.9 → 1.8.0-manmanyu.11
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/dist/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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";
|
|
2
|
+
import { ElAlert, 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
3
|
//#region packages/element-plus-adapter/src/index.ts
|
|
4
4
|
var adapter = {
|
|
5
5
|
adapterType: "element-plus",
|
|
@@ -11,6 +11,10 @@ var adapter = {
|
|
|
11
11
|
component: ElAutocomplete,
|
|
12
12
|
props: (props) => props
|
|
13
13
|
},
|
|
14
|
+
alert: {
|
|
15
|
+
component: ElAlert,
|
|
16
|
+
props: (props) => props
|
|
17
|
+
},
|
|
14
18
|
badge: {
|
|
15
19
|
component: ElBadge,
|
|
16
20
|
props: (props) => props
|
|
@@ -138,7 +142,10 @@ var adapter = {
|
|
|
138
142
|
},
|
|
139
143
|
select: {
|
|
140
144
|
component: ElSelect,
|
|
141
|
-
props: (props) =>
|
|
145
|
+
props: (props) => ({
|
|
146
|
+
remoteShowSuffix: true,
|
|
147
|
+
...props
|
|
148
|
+
})
|
|
142
149
|
},
|
|
143
150
|
step: {
|
|
144
151
|
component: ElStep,
|
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
component: element_plus.ElAutocomplete,
|
|
132
132
|
props: (props) => props
|
|
133
133
|
},
|
|
134
|
+
alert: {
|
|
135
|
+
component: element_plus.ElAlert,
|
|
136
|
+
props: (props) => props
|
|
137
|
+
},
|
|
134
138
|
badge: {
|
|
135
139
|
component: element_plus.ElBadge,
|
|
136
140
|
props: (props) => props
|
|
@@ -258,7 +262,10 @@
|
|
|
258
262
|
},
|
|
259
263
|
select: {
|
|
260
264
|
component: element_plus.ElSelect,
|
|
261
|
-
props: (props) =>
|
|
265
|
+
props: (props) => ({
|
|
266
|
+
remoteShowSuffix: true,
|
|
267
|
+
...props
|
|
268
|
+
})
|
|
262
269
|
},
|
|
263
270
|
step: {
|
|
264
271
|
component: element_plus.ElStep,
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.8.0-
|
|
2
|
+
"version": "1.8.0-manmanyu.11",
|
|
3
3
|
"name": "@tmagic/element-plus-adapter",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"element-plus": ">=2.9.0",
|
|
40
40
|
"vue": "^3.5.38",
|
|
41
41
|
"typescript": "^6.0.3",
|
|
42
|
-
"@tmagic/design": "1.8.0-
|
|
42
|
+
"@tmagic/design": "1.8.0-manmanyu.11"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"typescript": {
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ElAlert,
|
|
2
3
|
ElAutocomplete,
|
|
3
4
|
ElBadge,
|
|
4
5
|
ElButton,
|
|
@@ -48,6 +49,7 @@ import {
|
|
|
48
49
|
} from 'element-plus';
|
|
49
50
|
|
|
50
51
|
import type {
|
|
52
|
+
AlertProps,
|
|
51
53
|
AutocompleteProps,
|
|
52
54
|
BadgeProps,
|
|
53
55
|
ButtonProps,
|
|
@@ -104,6 +106,11 @@ const adapter: DesignPluginOptions = {
|
|
|
104
106
|
props: (props: AutocompleteProps) => props,
|
|
105
107
|
},
|
|
106
108
|
|
|
109
|
+
alert: {
|
|
110
|
+
component: ElAlert as any,
|
|
111
|
+
props: (props: AlertProps) => props,
|
|
112
|
+
},
|
|
113
|
+
|
|
107
114
|
badge: {
|
|
108
115
|
component: ElBadge as any,
|
|
109
116
|
props: (props: BadgeProps) => props,
|
|
@@ -261,7 +268,7 @@ const adapter: DesignPluginOptions = {
|
|
|
261
268
|
|
|
262
269
|
select: {
|
|
263
270
|
component: ElSelect as any,
|
|
264
|
-
props: (props: SelectProps) => props,
|
|
271
|
+
props: (props: SelectProps) => ({ remoteShowSuffix: true, ...props }),
|
|
265
272
|
},
|
|
266
273
|
|
|
267
274
|
step: {
|