<template>
    <el-time-component-picker v-model="value"></el-time-component-picker>
</template>

<script>
    import ElTimeComponentPicker from "./src/picker/time-picker"

    export default {
        name: "sh-time-select",
        components: {
            ElTimeComponentPicker
        },
        watch: {
            value: 'changeData',
        },
        data() {
            return {
                value: ''
            }
        },
        methods: {
            changeData(curVal, oldVal) {//监听value变化
                this.$emit('timeChange', curVal)
            }
        }
    }
</script>

<style scoped>

</style>
