generated from VLADIMIR/template_frontend
fix
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
|||||||
NUploadDragger,
|
NUploadDragger,
|
||||||
type UploadFileInfo,
|
type UploadFileInfo,
|
||||||
} from 'naive-ui'
|
} from 'naive-ui'
|
||||||
import { computed, type PropType, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
import type { Application, Door, Key, Place } from '@/api/generated/crabs/evening_detective_server'
|
import type { Application, Door, Key, Place } from '@/api/generated/crabs/evening_detective_server'
|
||||||
import type { EditableApplication } from '@/types/editor'
|
import type { EditableApplication } from '@/types/editor'
|
||||||
@@ -30,31 +30,20 @@ type PlaceWithFileList = Place & {
|
|||||||
fileList?: UploadFileInfo[]
|
fileList?: UploadFileInfo[]
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps({
|
const props = withDefaults(
|
||||||
newPlaceCode: {
|
defineProps<{
|
||||||
type: String,
|
newPlaceCode?: string
|
||||||
|
newPlaceName?: string
|
||||||
|
newPlaceText?: string
|
||||||
|
place?: PlaceWithFileList
|
||||||
|
mode: string
|
||||||
|
mcp?: boolean
|
||||||
|
addAction?: (param: string) => void
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
mcp: false,
|
||||||
},
|
},
|
||||||
newPlaceName: {
|
)
|
||||||
type: String,
|
|
||||||
},
|
|
||||||
newPlaceText: {
|
|
||||||
type: String,
|
|
||||||
},
|
|
||||||
place: {
|
|
||||||
type: Object as PropType<PlaceWithFileList>,
|
|
||||||
},
|
|
||||||
mode: {
|
|
||||||
type: String,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
mcp: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
addAction: {
|
|
||||||
type: Function as PropType<(param: string) => void>,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
'update:newPlaceCode': [value: string]
|
'update:newPlaceCode': [value: string]
|
||||||
|
|||||||
Reference in New Issue
Block a user