<script setup lang="ts">
import { BJ_Casino_Bot } from '../script/BJ_Casino_Bot';
import { BJ_Casino_Bot_Slot } from '../script/BJ_Casino_Bot_Slot';


const props = defineProps<{ Client: any, Script: BJ_Casino_Bot }>()
const SlotScript = new BJ_Casino_Bot_Slot(props.Script);
props.Script.SlotScript = SlotScript;
</script>

<template>
    <div>
        押注:
        <el-select v-model="SlotScript.BetDefault.value" filterable
            @change="(data: any) => { SlotScript.SelectBet(data) }">
            <el-option v-for="(item, index) in SlotScript.BetGroup" :key="item" :label="item" :value="index" />
        </el-select>
        延遲:
        <el-input v-model="SlotScript.SpinDelay.value" :rows="5" style="width:5%;" />秒
        <div>
            <el-button type="success" @click.native="() => { SlotScript.OnclickSpin() }" round
                v-show="!SlotScript.IsSpin.value">
                Spin
            </el-button>
            <el-button type="success" @click.native="() => { SlotScript.OnclickStop() }" round
                v-show="SlotScript.IsSpin.value">
                Stop
            </el-button>
        </div>
    </div>
</template>