mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
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
|
||||
}>()
|
||||
|
||||
const modelValue = defineModel<string>()
|
||||
const modelValue = defineModel<string>({ required: true })
|
||||
|
||||
const tabs = $computed(() => {
|
||||
return options.map((option) => {
|
||||
|
|
|
@ -3,7 +3,7 @@ defineProps<{
|
|||
title?: string
|
||||
message: string
|
||||
}>()
|
||||
const modelValue = defineModel<boolean>()
|
||||
const modelValue = defineModel<boolean>({ required: true })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import Fuse from 'fuse.js'
|
||||
|
||||
const modelValue = defineModel<string>()
|
||||
const modelValue = defineModel<string>({ required: true })
|
||||
|
||||
const { t } = useI18n()
|
||||
const userSettings = useUserSettings()
|
||||
|
|
|
@ -3,7 +3,9 @@ const { editing } = defineProps<{
|
|||
editing?: boolean
|
||||
}>()
|
||||
|
||||
const modelValue = defineModel<string>()
|
||||
const modelValue = defineModel<string>({
|
||||
required: true,
|
||||
})
|
||||
|
||||
const currentVisibility = $computed(() =>
|
||||
statusVisibilities.find(v => v.value === modelValue.value) || statusVisibilities[0],
|
||||
|
|
|
@ -40,7 +40,7 @@ export default defineNuxtConfig({
|
|||
macros: {
|
||||
setupSFC: true,
|
||||
betterDefine: false,
|
||||
// defineModels: false,
|
||||
defineModels: false,
|
||||
},
|
||||
devtools: {
|
||||
enabled: true,
|
||||
|
|
Loading…
Reference in a new issue