This commit is contained in:
2024-06-27 02:33:04 +00:00
parent 50c3f837e7
commit 9fb9e84e90
4 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ const columns: DataTableColumn<Announcement>[] = [
key: "title",
title: renderTableTitle("公告标题", "streamline-emojis:fire"),
render: (row) => h(TitleWithTag, { title: row.title, top: row.top }),
minWidth: isDesktop ? 300 : 0,
minWidth: isDesktop.value ? 300 : 0,
},
{
key: "tag",

View File

@@ -45,7 +45,7 @@ const columns: DataTableColumn<Contest>[] = [
{
title: renderTableTitle("比赛", "streamline-emojis:bouquet"),
key: "title",
minWidth: isDesktop ? 360 : 0,
minWidth: isDesktop.value ? 360 : 0,
render: (row) => h(ContestTitle, { contest: row }),
},
{

View File

@@ -22,7 +22,7 @@ const columns: DataTableColumn<Submission>[] = [
render: (row) =>
parseTime(
row.create_time,
isDesktop ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm",
isDesktop.value ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm",
),
},
{

View File

@@ -162,7 +162,7 @@ const columns = computed(() => {
render: (row) =>
parseTime(
row.create_time,
isDesktop ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm",
isDesktop.value ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm",
),
},
{