generated from VLADIMIR/template_frontend
fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user