forked from Mirrors/elk
fix: required
This commit is contained in:
parent
9bc5c1c648
commit
30f2484efa
5 changed files with 7 additions and 5 deletions
|
@ -8,7 +8,7 @@ const { options, command } = defineProps<{
|
||||||
command?: boolean
|
command?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const modelValue = defineModel<string>()
|
const modelValue = defineModel<string>({ required: true })
|
||||||
|
|
||||||
const tabs = $computed(() => {
|
const tabs = $computed(() => {
|
||||||
return options.map((option) => {
|
return options.map((option) => {
|
||||||
|
|
|
@ -3,7 +3,7 @@ defineProps<{
|
||||||
title?: string
|
title?: string
|
||||||
message: string
|
message: string
|
||||||
}>()
|
}>()
|
||||||
const modelValue = defineModel<boolean>()
|
const modelValue = defineModel<boolean>({ required: true })
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Fuse from 'fuse.js'
|
import Fuse from 'fuse.js'
|
||||||
|
|
||||||
const modelValue = defineModel<string>()
|
const modelValue = defineModel<string>({ required: true })
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const userSettings = useUserSettings()
|
const userSettings = useUserSettings()
|
||||||
|
|
|
@ -3,7 +3,9 @@ const { editing } = defineProps<{
|
||||||
editing?: boolean
|
editing?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const modelValue = defineModel<string>()
|
const modelValue = defineModel<string>({
|
||||||
|
required: true,
|
||||||
|
})
|
||||||
|
|
||||||
const currentVisibility = $computed(() =>
|
const currentVisibility = $computed(() =>
|
||||||
statusVisibilities.find(v => v.value === modelValue.value) || statusVisibilities[0],
|
statusVisibilities.find(v => v.value === modelValue.value) || statusVisibilities[0],
|
||||||
|
|
|
@ -40,7 +40,7 @@ export default defineNuxtConfig({
|
||||||
macros: {
|
macros: {
|
||||||
setupSFC: true,
|
setupSFC: true,
|
||||||
betterDefine: false,
|
betterDefine: false,
|
||||||
// defineModels: false,
|
defineModels: false,
|
||||||
},
|
},
|
||||||
devtools: {
|
devtools: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|
Loading…
Reference in a new issue