Skip to content

Commit c80588d

Browse files
committed
feat(shared): 移除 SectionLayoutheight 属性
1 parent 8e39fd2 commit c80588d

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

playground/src/pages/shared/section-layout.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { SectionItem, SectionLayout, SectionMain } from '@/shared'
66
// 布局配置
77
const layoutConfig = reactive({
88
direction: 'vertical' as SectionLayoutDirection,
9-
height: '100%' as string | undefined,
109
useNested: false,
1110
})
1211
@@ -39,15 +38,6 @@ function handleMainResize(data: ElementSize) {
3938
</ElRadioGroup>
4039
</ElSpace>
4140

42-
<ElSpace>
43-
<ElText> 布局高度: </ElText>
44-
<ElInput
45-
v-model="layoutConfig.height"
46-
placeholder="示例:100%,1000px"
47-
style="flex: 1"
48-
/>
49-
</ElSpace>
50-
5141
<ElSpace>
5242
<ElText> 使用嵌套布局: </ElText>
5343
<ElSwitch v-model="layoutConfig.useNested" />

src/shared/section-layout/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const direction = computed(() => props.direction || 'vertical')
3636
bem.m(direction),
3737
card && [bem.m('card'), config?.cardClass],
3838
]"
39-
:style="{ height }"
4039
>
4140
<slot />
4241
</div>

src/shared/section-layout/interface.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ export interface SectionLayoutProps {
2424
*/
2525
direction?: SectionLayoutDirection
2626

27-
/**
28-
* 布局高度,仅推荐在最外层 SectionLayout 组件上设置
29-
*/
30-
height?: string
31-
3227
/**
3328
* 是否为卡片样式
3429
*/

0 commit comments

Comments
 (0)