|
|
|
@ -50,7 +50,7 @@ export function setComponentRuleType(rule: Rule, component: ComponentType, value
|
|
|
|
|
export function processDateValue(attr: Recordable, component: string) { |
|
|
|
|
const { valueFormat, value } = attr |
|
|
|
|
if (valueFormat) |
|
|
|
|
attr.value = isObject(value) ? dateUtil(value as any).format(valueFormat) : value |
|
|
|
|
attr.value = isObject(value) ? dateUtil(value as unknown as Date).format(valueFormat) : value |
|
|
|
|
else if (DATE_TYPE.includes(component) && value) |
|
|
|
|
attr.value = dateUtil(attr.value) |
|
|
|
|
} |
|
|
|
|