diff options
Diffstat (limited to 'components/form-data/spreadJS-dialog.tsx')
| -rw-r--r-- | components/form-data/spreadJS-dialog.tsx | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/components/form-data/spreadJS-dialog.tsx b/components/form-data/spreadJS-dialog.tsx index 54a70d9d..a223a849 100644 --- a/components/form-data/spreadJS-dialog.tsx +++ b/components/form-data/spreadJS-dialog.tsx @@ -327,6 +327,17 @@ export function TemplateViewDialog({ }); }, []); + const createCellStyle = React.useCallback((isEditable: boolean) => { + const style = new GC.Spread.Sheets.Style(); + if (isEditable) { + style.backColor = "#f0fdf4"; + } else { + style.backColor = "#f9fafb"; + style.foreColor = "#6b7280"; + } + return style; + }, []); + const setBatchStyles = React.useCallback(( activeSheet: any, stylesToSet: Array<{row: number, col: number, isEditable: boolean}> @@ -440,16 +451,7 @@ export function TemplateViewDialog({ return errors; }, [currentSpread, selectedTemplate, cellMappings, columnsJSON]); - const createCellStyle = React.useCallback((isEditable: boolean) => { - const style = new GC.Spread.Sheets.Style(); - if (isEditable) { - style.backColor = "#f0fdf4"; - } else { - style.backColor = "#f9fafb"; - style.foreColor = "#6b7280"; - } - return style; - }, []); + const setupOptimizedListValidation = React.useCallback((activeSheet: any, cellPos: { row: number, col: number }, options: string[], rowCount: number) => { try { @@ -780,7 +782,7 @@ export function TemplateViewDialog({ }); // 🛡️ 시트 보호 재설정 (편집 허용 모드로) - activeSheet.options.isProtected = true; + activeSheet.options.isProtected = false; activeSheet.options.protectionOptions = { allowSelectLockedCells: true, allowSelectUnlockedCells: true, |
