remove element-plus icons.

This commit is contained in:
2023-11-22 00:09:32 +08:00
parent aa7d46effc
commit 24f9e97962
33 changed files with 1339 additions and 988 deletions

View File

@@ -2,6 +2,7 @@
import { parseTime } from "utils/functions"
import { useContestStore } from "oj/store/contest"
import ContestType from "~/shared/components/ContestType.vue"
import Info from "~/shared/icons/Info.vue"
const contestStore = useContestStore()
</script>
@@ -16,7 +17,7 @@ const contestStore = useContestStore()
<template #trigger>
<n-button>
<template #icon>
<i-ep-warning />
<Info />
</template>
比赛信息
</n-button>

View File

@@ -1,6 +1,5 @@
<script setup lang="ts">
import { NButton, NIcon } from "naive-ui"
import { GoldMedal } from "@element-plus/icons-vue"
import Pagination from "~/shared/components/Pagination.vue"
import AcAndSubmission from "../components/AcAndSubmission.vue"
import { getContestProblems, getContestRank } from "oj/api"
@@ -8,6 +7,7 @@ import { ContestRank, ProblemFiltered } from "~/utils/types"
import { secondsToDuration } from "utils/functions"
import { ContestStatus } from "~/utils/constants"
import { useContestStore } from "~/oj/store/contest"
import Medal1 from "~/shared/icons/Medal1.vue"
interface Props {
contestID: string
@@ -133,8 +133,8 @@ async function addColumns() {
acTime = [
h(
NIcon,
{ size: 16, style: "transform: translate(-2px, 3px)" },
() => h(GoldMedal),
{ size: 16, style: "transform: translate(-2px, 2px)" },
() => h(Medal1),
),
secondsToDuration(status.ac_time),
]