This commit is contained in:
2024-01-23 14:36:21 +08:00
parent d37c124c5a
commit 946ec691af
16 changed files with 198 additions and 45 deletions

View File

@@ -0,0 +1,22 @@
<script lang="ts" setup>
import { code } from "../composables/code"
import type { SelectOption } from "naive-ui"
const languages: SelectOption[] = [
{ value: "python", label: "Python" },
{ value: "c", label: "C" },
]
</script>
<template>
<n-select
class="select"
placeholder=""
:options="languages"
v-model:value="code.language"
/>
</template>
<style scoped>
.select {
width: 100px;
}
</style>