fix(cc): 抄送页高度改走 Utils.useTableHeight——main 分支无 theme 试点分支的 useElementHeight 钩子
build / build (push) Successful in 2m41s
build / build (push) Successful in 2m41s
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-wrapper yh-fill">
|
<div class="page-wrapper yh-fill">
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
<div class="table-region" ref="regionRef">
|
<div class="table-region">
|
||||||
<Table :columns="cols" :data="rows" :height="tableH || undefined" :loading="loading"
|
<Table :columns="cols" :data="rows" :height="tableH || undefined" :loading="loading"
|
||||||
no-data-text="暂无抄送通知">
|
no-data-text="暂无抄送通知">
|
||||||
<template #title="{ row }">
|
<template #title="{ row }">
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
import { onMounted, ref } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { Message } from "view-ui-plus";
|
import { Message } from "view-ui-plus";
|
||||||
import { useElementHeight } from "@/utils/hook/useElementHeight";
|
import Utils from "@/utils";
|
||||||
import ccApi, { type CcItem } from "@/api/module/cc";
|
import ccApi, { type CcItem } from "@/api/module/cc";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -41,8 +41,8 @@ const loading = ref(false);
|
|||||||
const rows = ref<CcItem[]>([]);
|
const rows = ref<CcItem[]>([]);
|
||||||
const page = ref({ total: 0, pageIndex: 1, pageSize: 10 });
|
const page = ref({ total: 0, pageIndex: 1, pageSize: 10 });
|
||||||
|
|
||||||
const regionRef = ref<HTMLElement | null>(null);
|
// main 分支无 useElementHeight 钩子(theme 试点分支才有):用平台工具算高,仅扣分页条
|
||||||
const tableH = useElementHeight(regionRef);
|
const tableH = Utils.useTableHeight({ isPage: true });
|
||||||
|
|
||||||
const cols = [
|
const cols = [
|
||||||
{ title: "通知标题", slot: "title", minWidth: 260, ellipsis: true, tooltip: true },
|
{ title: "通知标题", slot: "title", minWidth: 260, ellipsis: true, tooltip: true },
|
||||||
|
|||||||
Reference in New Issue
Block a user