import { computed } from 'vue' import BasicDate from '../../basic/date-picker/mobile' import { useFormInput } from '../../../hooks/form-input' import { formInputProps, fromInputEmits } from '../../form-input-props' export default { props: formInputProps, emits: [...fromInputEmits], setup (props, context) { const { emitModelValue, emitOtherValue } = useFormInput(props, context) // 时间区间 const currentYear = new Date().getFullYear() const minDate = computed(() => { return props.config?.minDate ?? new Date(currentYear - 10, 0, 1) }) const maxDate = computed(() => { return props.config?.maxDate ?? new Date(currentYear + 10, 11, 31) }) return () =>
} }