This commit is contained in:
2026-10-03 14:11:15 +07:00
parent 6cf0580591
commit f80ca871a9
+7 -19
View File
@@ -2,7 +2,7 @@
import { Footsteps } from '@vicons/ionicons5'
import { ContactMailRound } from '@vicons/material'
import { Icon } from '@vicons/utils'
import { type PropType, ref } from 'vue'
import { ref } from 'vue'
import BeltBlock from './BeltBlock.vue'
import HeaderText from './HeaderText.vue'
@@ -10,24 +10,12 @@ import MetalPlate from './MetalPlate.vue'
const code = ref('')
const props = defineProps({
addAction: {
type: Function as PropType<(param: string) => void>,
required: true,
},
allPlacesCount: {
type: Number,
required: true,
},
newPlacesCount: {
type: Number,
required: true,
},
gameStatus: {
type: String,
required: true,
},
})
const props = defineProps<{
addAction: (param: string) => void
allPlacesCount: number
newPlacesCount: number
gameStatus: string
}>()
async function addClickButton() {
await props.addAction(code.value)