diff --git a/packages/core/src/events/paste.ts b/packages/core/src/events/paste.ts index d63e966..558e51e 100644 --- a/packages/core/src/events/paste.ts +++ b/packages/core/src/events/paste.ts @@ -1441,7 +1441,7 @@ function pasteHandlerOfCopyPaste( const file = ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)!]; file.config = cfg; file.luckysheet_conditionformat_save = cdformat; - file.dataVerification = dataVerification; + file.dataVerification = { ...file.dataVerification, ...dataVerification }; // 若选区内包含超链接 if ( diff --git a/packages/core/src/modules/dataVerification.ts b/packages/core/src/modules/dataVerification.ts index 6679e25..c62f5f0 100644 --- a/packages/core/src/modules/dataVerification.ts +++ b/packages/core/src/modules/dataVerification.ts @@ -13,6 +13,7 @@ import { isdatetime, isRealNull, isRealNum, + jfrefreshgrid, mergeBorder, rowLocationByIndex, setCellValue, @@ -788,6 +789,7 @@ export function setDropcownValue(ctx: Context, value: string, arr: any) { ctx.dataVerificationDropDownList = false; } setCellValue(ctx, rowIndex, colIndex, d, value); + jfrefreshgrid(ctx, null, undefined); } // 输入数据验证