import SelectTime from '../../basic/time-select/mobile' import { useFormInput } from '../../../hooks/form-input' import { formInputProps, fromInputEmits } from '../../form-input-props' import { computed } from 'vue' import { compareTime } from '../../basic/time-select/utils' export default { props: formInputProps, emits: [...fromInputEmits], setup (props, context) { const { proxyValue, proxyOtherValue } = useFormInput(props, context, { maxOtherKey: 1 }) const end = computed(() => { if (props.otherValue) { return compareTime(props.otherValue, props.config?.end ?? '20:00') ? props.otherValue : props.config?.end } return props.config?.end }) const start = computed(() => { if (props.modelValue) { return compareTime(props.modelValue, props.config?.start ?? '08:00') ? props.modelValue : props.config?.start } return props.config?.start }) return () =>
} }