Files
OJ2/apps/web/src/oj/problem/components/ProblemListTitle.vue
T
xuyue d25b5dbe6d
Deploy / deploy (push) Canceled after 0s
update
2026-09-27 19:36:28 +08:00

17 lines
536 B
Vue

<script lang="ts" setup>
import type { ProblemRow } from "utils/types"
import { Icon } from "@iconify/vue"
defineProps<{
problem: ProblemRow
}>()
</script>
<template>
<n-flex align="center">
<span>{{ problem.title }}</span>
<Icon v-if="problem.allowFlowchart" width="18" icon="vscode-icons:file-type-drawio" />
<Icon v-else-if="problem.showFlowchart" width="18" icon="vscode-icons:file-type-graphql" />
<Icon v-if="problem.hasAstRules" width="18" icon="vscode-icons:file-type-light-todo" />
</n-flex>
</template>