mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-08 11:47:38 +08:00
Merge pull request #529 from ruilisi/fix/data-verification
fix: preserve data verification on paste + update sheet on verification dropdown value change
This commit is contained in:
commit
0bc2c6cc98
@ -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 (
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
// 输入数据验证
|
||||
|
Loading…
Reference in New Issue
Block a user