fix(styles): 添加滚动条,去除页码
This commit is contained in:
parent
9ff15feee4
commit
d37adc362d
@ -39,7 +39,7 @@ const toGitee = () => {
|
|||||||
<NCard
|
<NCard
|
||||||
size="small"
|
size="small"
|
||||||
:bordered="false"
|
:bordered="false"
|
||||||
class="w-340px"
|
class="w-345px"
|
||||||
header-class="p-0"
|
header-class="p-0"
|
||||||
:segmented="{ content: true, footer: 'soft' }"
|
:segmented="{ content: true, footer: 'soft' }"
|
||||||
>
|
>
|
||||||
@ -63,7 +63,7 @@ const toGitee = () => {
|
|||||||
一键已读
|
一键已读
|
||||||
</NTooltip>
|
</NTooltip>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<NScrollbar class="h-260px">
|
||||||
<template v-if="state?.notices?.length">
|
<template v-if="state?.notices?.length">
|
||||||
<template v-for="(message, index) in state?.notices" :key="index">
|
<template v-for="(message, index) in state?.notices" :key="index">
|
||||||
<NDivider v-show="index !== 0" />
|
<NDivider v-show="index !== 0" />
|
||||||
@ -81,7 +81,7 @@ const toGitee = () => {
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<NEmpty v-else class="h-180px flex-center" />
|
<NEmpty v-else class="h-180px flex-center" />
|
||||||
</div>
|
</NScrollbar>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="flex items-center justify-end">
|
<div class="flex items-center justify-end">
|
||||||
<NButton type="primary" size="small" @click="toGitee">前往 Gitee</NButton>
|
<NButton type="primary" size="small" @click="toGitee">前往 Gitee</NButton>
|
||||||
|
|||||||
@ -16,12 +16,8 @@ defineOptions({
|
|||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
const { loading: btnLoading, startLoading: startBtnLoading, endLoading: endBtnLoading } = useLoading(false);
|
const { loading: btnLoading, startLoading: startBtnLoading, endLoading: endBtnLoading } = useLoading(false);
|
||||||
|
|
||||||
const { columns, data, loading, mobilePagination, getData } = useTable({
|
const { columns, data, loading, getData } = useTable({
|
||||||
apiFn: fetchGetOnlineDeviceList,
|
apiFn: fetchGetOnlineDeviceList,
|
||||||
apiParams: {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 15
|
|
||||||
},
|
|
||||||
columns: () => [
|
columns: () => [
|
||||||
{ title: '用户名', key: 'userName', align: 'center', minWidth: 120 },
|
{ title: '用户名', key: 'userName', align: 'center', minWidth: 120 },
|
||||||
{ title: 'IP地址', key: 'ipaddr', align: 'center', minWidth: 120 },
|
{ title: 'IP地址', key: 'ipaddr', align: 'center', minWidth: 120 },
|
||||||
@ -109,7 +105,6 @@ async function forceLogout(tokenId: string) {
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
remote
|
remote
|
||||||
:row-key="row => row.noticeId"
|
:row-key="row => row.noticeId"
|
||||||
:pagination="mobilePagination"
|
|
||||||
class="h-full"
|
class="h-full"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user