feat: add resizable and ColPage component (#5188)

* feat: add component resizable

* feat: component `ColPage` with demo
This commit is contained in:
Netfan
2024-12-19 20:37:42 +08:00
committed by GitHub
parent 1853ba1d60
commit acd87b2250
16 changed files with 368 additions and 13 deletions

View File

@@ -1,4 +1,6 @@
<script setup lang="ts">
import type { PageProps } from './types';
import {
computed,
nextTick,
@@ -11,23 +13,11 @@ import {
import { CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT } from '@vben-core/shared/constants';
import { cn } from '@vben-core/shared/utils';
interface Props {
title?: string;
description?: string;
contentClass?: string;
/**
* 根据content可见高度自适应
*/
autoContentHeight?: boolean;
headerClass?: string;
footerClass?: string;
}
defineOptions({
name: 'Page',
});
const { autoContentHeight = false } = defineProps<Props>();
const { autoContentHeight = false } = defineProps<PageProps>();
const headerHeight = ref(0);
const footerHeight = ref(0);