@tmagic/element-plus-adapter 1.7.0-beta.2 → 1.7.0-beta.3
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.
|
@@ -2890,7 +2890,12 @@ const adapter = {
|
|
|
2890
2890
|
},
|
|
2891
2891
|
button: {
|
|
2892
2892
|
component: ElButton,
|
|
2893
|
-
props: (props) =>
|
|
2893
|
+
props: (props) => {
|
|
2894
|
+
return {
|
|
2895
|
+
...props,
|
|
2896
|
+
type: props.type === "default" ? "" : props.type
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2894
2899
|
},
|
|
2895
2900
|
card: {
|
|
2896
2901
|
component: ElCard,
|
|
@@ -2894,7 +2894,12 @@ Component that was made reactive: `,
|
|
|
2894
2894
|
},
|
|
2895
2895
|
button: {
|
|
2896
2896
|
component: elementPlus.ElButton,
|
|
2897
|
-
props: (props) =>
|
|
2897
|
+
props: (props) => {
|
|
2898
|
+
return {
|
|
2899
|
+
...props,
|
|
2900
|
+
type: props.type === "default" ? "" : props.type
|
|
2901
|
+
};
|
|
2902
|
+
}
|
|
2898
2903
|
},
|
|
2899
2904
|
card: {
|
|
2900
2905
|
component: elementPlus.ElCard,
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.7.0-beta.
|
|
2
|
+
"version": "1.7.0-beta.3",
|
|
3
3
|
"name": "@tmagic/element-plus-adapter",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/tmagic-element-plus-adapter.umd.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"element-plus": ">=2.9.0",
|
|
39
39
|
"typescript": "^5.9.3",
|
|
40
|
-
"@tmagic/design": "1.7.0-beta.
|
|
40
|
+
"@tmagic/design": "1.7.0-beta.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"typescript": {
|
package/src/index.ts
CHANGED
|
@@ -111,7 +111,12 @@ const adapter: DesignPluginOptions = {
|
|
|
111
111
|
|
|
112
112
|
button: {
|
|
113
113
|
component: ElButton as any,
|
|
114
|
-
props: (props: ButtonProps) =>
|
|
114
|
+
props: (props: ButtonProps) => {
|
|
115
|
+
return {
|
|
116
|
+
...props,
|
|
117
|
+
type: props.type === 'default' ? '' : props.type,
|
|
118
|
+
};
|
|
119
|
+
},
|
|
115
120
|
},
|
|
116
121
|
|
|
117
122
|
card: {
|