import { defineComponent , PropType } from 'vue' ; import { MonthPickerProps } from '../interface' ; import Picker from '../picker.vue' ; export default defineComponent ( { name : 'MonthPicker' , props : { zh en modelValue : { type : [ Object , String , Number ] as PropType < Date | string | number > } , zh en defaultValue : { type : [ Object , String , Number ] as PropType < Date | string | number > } , zh en format : { type : String , default : 'YYYY-MM' } } , setup ( props , { attrs , slots } ) { return ( ) => < Picker { ... props } { ... attrs } mode = "month" v - slots = { slots } / > ; } } ) ;