<template>
    <div class="ht-base-switch-demo">
        <ht-base-switch v-model="switch1" @on-change="change" />
        <ht-base-switch :disabled="disabled" />
    </div>
</template>

<script>
    export default {
        name: 'HtBaseSwitchDemo',
        data () {
            return {
                switch1: false,
                disabled:true
            }
        },
        methods: {
            change (status) {
                this.$HtBaseMessage.info('开关状态：' + status);
            }
        }
    }
</script>
<style>
    .ht-base-switch-demo {

    }
</style>

