mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 08:15:18 +00:00
Compare commits
3 commits
dcf7393393
...
38fe6b6e27
Author | SHA1 | Date | |
---|---|---|---|
38fe6b6e27 | |||
dd4e56cbd8 | |||
729fa60e01 |
3 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<a-layout-footer class="footer">
|
||||
<a href="https://github.com/silenty4ng/k5web" target="_blank">K5Web - V0.1.202402022130</a>
|
||||
<a href="https://github.com/silenty4ng/k5web" target="_blank">K5Web - V0.1.202402031340</a>
|
||||
</a-layout-footer>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -32,9 +32,11 @@ const useAppStore = defineStore('app', {
|
|||
toggleTheme(dark: boolean) {
|
||||
if (dark) {
|
||||
this.theme = 'dark';
|
||||
document.documentElement.setAttribute('theme-mode', 'dark');
|
||||
document.body.setAttribute('arco-theme', 'dark');
|
||||
} else {
|
||||
this.theme = 'light';
|
||||
document.documentElement.removeAttribute('theme-mode');
|
||||
document.body.removeAttribute('arco-theme');
|
||||
}
|
||||
},
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
</a-row>
|
||||
<t-table
|
||||
:loading="loading"
|
||||
size="large"
|
||||
size="medium"
|
||||
:columns="columns"
|
||||
:data="cstate.renderData"
|
||||
:pagination="{
|
||||
|
@ -44,6 +44,8 @@
|
|||
@change="(e: any)=>{cstate.pageSize = e.pagination.pageSize, cstate.nowPage = e.pagination.current}"
|
||||
bordered
|
||||
lazy-load
|
||||
:headerAffixedTop="{ offsetTop: 60 }"
|
||||
:hover="true"
|
||||
>
|
||||
<template #index="{ row, rowIndex }">
|
||||
{{ (cstate.nowPage - 1) * cstate.pageSize + rowIndex + 1 }}
|
||||
|
@ -127,7 +129,7 @@
|
|||
{
|
||||
title: '信道名称',
|
||||
colKey: 'name',
|
||||
width: 150,
|
||||
width: 250,
|
||||
align: 'left',
|
||||
edit: {
|
||||
component: Input,
|
||||
|
|
Loading…
Reference in a new issue