Skip to content

Commit

Permalink
fix: layout not render in vue3.1 #4173
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 8, 2021
1 parent b65a867 commit b45a625
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function generator({ suffixCls, tagName, name }: GeneratorArgument) {
const { prefixCls } = useConfigInject(suffixCls, props);
return () => {
const basicComponentProps = {
...props,
prefixCls: prefixCls.value,
tagName,
...props,
};
return <BasicComponent {...basicComponentProps}>{slots.default?.()}</BasicComponent>;
};
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
},
"homepage": "https://www.antdv.com/",
"peerDependencies": {
"@vue/compiler-sfc": ">=3.0.9",
"vue": ">=3.0.9"
"@vue/compiler-sfc": ">=3.1.0",
"vue": ">=3.1.0"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
Expand Down Expand Up @@ -89,7 +89,7 @@
"@typescript-eslint/parser": "^4.1.0",
"@vue/babel-plugin-jsx": "^1.0.0",
"@vue/cli-plugin-eslint": "^4.0.0",
"@vue/compiler-sfc": "^3.0.9",
"@vue/compiler-sfc": "^3.1.0",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
"@vue/test-utils": "^2.0.0-0",
Expand Down Expand Up @@ -179,7 +179,7 @@
"umi-mock-middleware": "^1.0.0",
"umi-request": "^1.3.5",
"url-loader": "^3.0.0",
"vue": "^3.0.9",
"vue": "^3.1.0",
"vue-antd-md-loader": "^1.2.1-beta.1",
"vue-clipboard2": "0.3.1",
"vue-draggable-resizable": "^2.1.0",
Expand Down

0 comments on commit b45a625

Please sign in to comment.