<template>
    <div>

        <van-nav-bar
                title="steper"
                left-arrow
                @click-left="back"
        />
        <div class="page">
            <ul>
                <li class="section">
                    <y-stepper max="20" v-model="a"></y-stepper>
                </li>

            </ul>
        </div>
    </div>
</template>

<script>
    import {NavBar} from 'vant';
    import yStepper from '../components/yStepper'

    export default {
        components: {
            [NavBar.name]: NavBar,
            yStepper,
        },
        data:()=>{
            return {
                a:0,
                tipsShow:false,
                sexList:"",
                bool:false,
            }
        },
        methods:{
            "fn_click"(e){
                //yToast.success("success");
                //yToast.error("error");
                yToast.loading();
                setTimeout(yToast.clear,100000);
            },
            back:()=>{
                window.history.go(-1);
            }
        },
        mounted(){
            window.test = this;
        },
        watch:{
            bool(){
                const self = this;
                setTimeout(t=>{

                    self.bool = true;
                },10)
            }
        }
    }
</script>

<style scoped>
    .page {
        padding: 10px;
    }
</style>
