fix:copy date particle element

This commit is contained in:
Hufe921
2022-08-26 15:54:58 +08:00
parent d8eb332120
commit 905fdbc929
+2
View File
@@ -65,6 +65,8 @@ export function writeElementList(elementList: IElement[], options: DeepRequired<
let text = '' let text = ''
if (element.type === ElementType.CONTROL) { if (element.type === ElementType.CONTROL) {
text = element.control!.value?.[0]?.value || '' text = element.control!.value?.[0]?.value || ''
} else if (element.type === ElementType.DATE) {
text = element.valueList?.map(v => v.value).join('') || ''
} else { } else {
text = element.value text = element.value
} }