Jeecg Hooks Jeecg框架集成
概述
Jeecg Hooks 提供与 Jeecg 框架集成的功能,包括自适应宽度等。
导入方式
import { useAdaptiveWidth } from '@/hooks/jeecg';1. useAdaptiveWidth 自适应宽度
处理组件宽度的自适应调整。
使用示例
<script setup lang="ts">
import { useAdaptiveWidth } from '@/hooks/jeecg';
const { width, setWidth, resetWidth } = useAdaptiveWidth();
</script>文档版本: 1.0.0 最后更新: 2026-04-22