From 840332abf733dd1dc404523d38c5377114f4b6c2 Mon Sep 17 00:00:00 2001 From: vben Date: Sat, 31 Oct 2020 00:25:25 +0800 Subject: [PATCH] fix: form col style --- CHANGELOG.zh_CN.md | 2 +- src/components/Form/src/hooks/useLabelWidth.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 9eaac4fcb..008be46be 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -22,7 +22,7 @@ - 添加部分注释 - pwa 图标补充 - types 类型调整 -- 升级`ant-design-vue`到`beta.11`,并修改带来的已知问题 +- 升级`ant-design-vue`到`beta.11`,并修改带来的已知问题,部分问题发现后在解决 ### 🐛 Bug Fixes diff --git a/src/components/Form/src/hooks/useLabelWidth.ts b/src/components/Form/src/hooks/useLabelWidth.ts index d32d238f5..2a475afd2 100644 --- a/src/components/Form/src/hooks/useLabelWidth.ts +++ b/src/components/Form/src/hooks/useLabelWidth.ts @@ -36,8 +36,8 @@ export function useItemLabelWidth(schemaItemRef: Ref, propsRef: Ref< width = isNumber(width) ? `${width}px` : width; } return { - labelCol: { style: { width }, span: 1, ...labelCol }, - wrapperCol: { style: { width: `calc(100% - ${width})` }, span: 23, ...wrapperCol }, + labelCol: { style: { width }, ...labelCol }, + wrapperCol: { style: { width: `calc(100% - ${width})` }, ...wrapperCol }, }; }); }