month_select.vue 351 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<template>
    <a-month-picker placeholder="Select month" @change="change" class="tw-w-full" />
</template>

<script>
export default {
    props: { year: String, month: String },
    methods: {
        change(val) {
            this.$emit('update:year', val.year());
            this.$emit('update:month', val.month());
        },
    },
};
</script>