From 905fdbc929aada7c91280ec6845a784143ab1299 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Fri, 26 Aug 2022 15:54:58 +0800 Subject: [PATCH] fix:copy date particle element --- src/editor/utils/clipboard.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/utils/clipboard.ts b/src/editor/utils/clipboard.ts index 84db262..9580815 100644 --- a/src/editor/utils/clipboard.ts +++ b/src/editor/utils/clipboard.ts @@ -65,6 +65,8 @@ export function writeElementList(elementList: IElement[], options: DeepRequired< let text = '' if (element.type === ElementType.CONTROL) { text = element.control!.value?.[0]?.value || '' + } else if (element.type === ElementType.DATE) { + text = element.valueList?.map(v => v.value).join('') || '' } else { text = element.value }