Skip to content

Commit b45a625

Browse files
committed
fix: layout not render in vue3.1 #4173
1 parent b65a867 commit b45a625

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/layout/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ function generator({ suffixCls, tagName, name }: GeneratorArgument) {
2727
const { prefixCls } = useConfigInject(suffixCls, props);
2828
return () => {
2929
const basicComponentProps = {
30+
...props,
3031
prefixCls: prefixCls.value,
3132
tagName,
32-
...props,
3333
};
3434
return <BasicComponent {...basicComponentProps}>{slots.default?.()}</BasicComponent>;
3535
};

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
},
5959
"homepage": "https://www.antdv.com/",
6060
"peerDependencies": {
61-
"@vue/compiler-sfc": ">=3.0.9",
62-
"vue": ">=3.0.9"
61+
"@vue/compiler-sfc": ">=3.1.0",
62+
"vue": ">=3.1.0"
6363
},
6464
"devDependencies": {
6565
"@babel/cli": "^7.8.4",
@@ -89,7 +89,7 @@
8989
"@typescript-eslint/parser": "^4.1.0",
9090
"@vue/babel-plugin-jsx": "^1.0.0",
9191
"@vue/cli-plugin-eslint": "^4.0.0",
92-
"@vue/compiler-sfc": "^3.0.9",
92+
"@vue/compiler-sfc": "^3.1.0",
9393
"@vue/eslint-config-prettier": "^6.0.0",
9494
"@vue/eslint-config-typescript": "^7.0.0",
9595
"@vue/test-utils": "^2.0.0-0",
@@ -179,7 +179,7 @@
179179
"umi-mock-middleware": "^1.0.0",
180180
"umi-request": "^1.3.5",
181181
"url-loader": "^3.0.0",
182-
"vue": "^3.0.9",
182+
"vue": "^3.1.0",
183183
"vue-antd-md-loader": "^1.2.1-beta.1",
184184
"vue-clipboard2": "0.3.1",
185185
"vue-draggable-resizable": "^2.1.0",

0 commit comments

Comments
 (0)