/* * @Author: xiaodongyu * @Date 2019-11-29 23:27:11 * @Last Modified by: xiaodongyu * @Last Modified time: 2023-03-07 17:26:43 */ import moment from 'moment'; import type {Def} from '@yqg/type'; import DefValue from '../component/def-value.vue'; import {dateTimeDef} from './common-fields'; import type {CommonObject} from './common-fields'; export * from './common-fields'; export const extendsDefValue = (options: CommonObject): CommonObject => ({ extends: DefValue, ...options }); export const dateTimeDayStartDef: Def = { ...dateTimeDef, props: {showTime: {defaultValue: moment('00:00:00', 'HH:mm:ss')}} }; export const dateTimeDayEndDef: Def = { ...dateTimeDef, props: {showTime: {defaultValue: moment('23:59:59', 'HH:mm:ss')}} };