diff --git a/package/component/src/component/side/index.vue b/package/component/src/component/side/index.vue index b72452c0..ee3ebc4b 100644 --- a/package/component/src/component/side/index.vue +++ b/package/component/src/component/side/index.vue @@ -13,12 +13,13 @@ export interface LaySideProps { } const props = withDefaults(defineProps(), { - width: "200", + width: "200px", }); const styles = computed(() => { return { - width: `${props.width}px`, + "flex": `0 0 ${props.width}`, + "width": `${props.width}` }; }); diff --git a/package/document/src/document/zh-CN/components/layout.md b/package/document/src/document/zh-CN/components/layout.md index b8fa62ea..92819c22 100644 --- a/package/document/src/document/zh-CN/components/layout.md +++ b/package/document/src/document/zh-CN/components/layout.md @@ -188,7 +188,7 @@ export default { Header - Left + Left Content @@ -200,7 +200,7 @@ export default { Content - Right + Right Footer diff --git a/package/document/src/document/zh-CN/guide/changelog.md b/package/document/src/document/zh-CN/guide/changelog.md index 6ba35316..80ac06f6 100644 --- a/package/document/src/document/zh-CN/guide/changelog.md +++ b/package/document/src/document/zh-CN/guide/changelog.md @@ -19,6 +19,7 @@
  • [新增] menu 组件 changeOpenKeys 事件。
  • [新增] menu 组件 changeSelectedKey 事件。
  • [新增] slider 组件 showDots 属性, 显示步长断点。
  • +
  • [修复] side 组件 width 属性失效, 随内容宽度自适应的问题。