fix(cc): 抄送页高度改走 Utils.useTableHeight——main 分支无 theme 试点分支的 useElementHeight 钩子
build / build (push) Successful in 2m41s

This commit is contained in:
chenxing
2026-09-24 09:33:36 +08:00
parent edd91b53b7
commit 1516effb69
+4 -4
View File
@@ -1,7 +1,7 @@
<template>
<div class="page-wrapper yh-fill">
<div class="main-container">
<div class="table-region" ref="regionRef">
<div class="table-region">
<Table :columns="cols" :data="rows" :height="tableH || undefined" :loading="loading"
no-data-text="暂无抄送通知">
<template #title="{ row }">
@@ -28,7 +28,7 @@
import { onMounted, ref } from "vue";
import { useRouter } from "vue-router";
import { Message } from "view-ui-plus";
import { useElementHeight } from "@/utils/hook/useElementHeight";
import Utils from "@/utils";
import ccApi, { type CcItem } from "@/api/module/cc";
/**
@@ -41,8 +41,8 @@ const loading = ref(false);
const rows = ref<CcItem[]>([]);
const page = ref({ total: 0, pageIndex: 1, pageSize: 10 });
const regionRef = ref<HTMLElement | null>(null);
const tableH = useElementHeight(regionRef);
// main 分支无 useElementHeight 钩子(theme 试点分支才有):用平台工具算高,仅扣分页条
const tableH = Utils.useTableHeight({ isPage: true });
const cols = [
{ title: "通知标题", slot: "title", minWidth: 260, ellipsis: true, tooltip: true },