fix(projects): fix table x-scroll. fixed #324
This commit is contained in:
parent
0a3efe3442
commit
c7e2c55996
@ -14,6 +14,8 @@ import MenuOperateDrawer, { type OperateType } from './modules/menu-operate-draw
|
|||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
const { bool: drawerVisible, setTrue: openDrawer } = useBoolean();
|
const { bool: drawerVisible, setTrue: openDrawer } = useBoolean();
|
||||||
|
|
||||||
|
const wrapperRef = ref<HTMLElement | null>(null);
|
||||||
|
|
||||||
const { columns, filteredColumns, data, loading, pagination, getData } = useTable<
|
const { columns, filteredColumns, data, loading, pagination, getData } = useTable<
|
||||||
Api.SystemManage.Menu,
|
Api.SystemManage.Menu,
|
||||||
typeof fetchGetMenuList,
|
typeof fetchGetMenuList,
|
||||||
@ -224,7 +226,7 @@ async function handleDelete(id: number) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex-vertical-stretch gap-16px overflow-hidden <sm:overflow-auto">
|
<div ref="wrapperRef" class="flex-vertical-stretch gap-16px overflow-hidden <sm:overflow-auto">
|
||||||
<NCard :title="$t('page.manage.menu.title')" :bordered="false" size="small" class="card-wrapper sm:flex-1-hidden">
|
<NCard :title="$t('page.manage.menu.title')" :bordered="false" size="small" class="card-wrapper sm:flex-1-hidden">
|
||||||
<template #header-extra>
|
<template #header-extra>
|
||||||
<TableHeaderOperation
|
<TableHeaderOperation
|
||||||
@ -242,7 +244,7 @@ async function handleDelete(id: number) {
|
|||||||
:data="data"
|
:data="data"
|
||||||
size="small"
|
size="small"
|
||||||
:flex-height="!appStore.isMobile"
|
:flex-height="!appStore.isMobile"
|
||||||
:scroll-x="640"
|
:scroll-x="1088"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
:row-key="item => item.id"
|
:row-key="item => item.id"
|
||||||
|
@ -177,7 +177,7 @@ function getIndex(index: number) {
|
|||||||
:data="data"
|
:data="data"
|
||||||
size="small"
|
size="small"
|
||||||
:flex-height="!appStore.isMobile"
|
:flex-height="!appStore.isMobile"
|
||||||
:scroll-x="640"
|
:scroll-x="702"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
:row-key="item => item.id"
|
:row-key="item => item.id"
|
||||||
|
@ -207,7 +207,7 @@ function getIndex(index: number) {
|
|||||||
:data="data"
|
:data="data"
|
||||||
size="small"
|
size="small"
|
||||||
:flex-height="!appStore.isMobile"
|
:flex-height="!appStore.isMobile"
|
||||||
:scroll-x="640"
|
:scroll-x="962"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
:row-key="item => item.id"
|
:row-key="item => item.id"
|
||||||
|
Loading…
Reference in New Issue
Block a user