Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: add table create row col limit to 20 (#2967)

Ran Luo04accd2f994b
diff --git a/packages/docs-ui/src/views/table/create/TableCreate.tsx b/packages/docs-ui/src/views/table/create/TableCreate.tsx
index 9228d5737e..8268870869 100644
--- a/packages/docs-ui/src/views/table/create/TableCreate.tsx
+++ b/packages/docs-ui/src/views/table/create/TableCreate.tsx
@@ -54,7 +54,7 @@ export const DocCreateTableConfirm = ({
<span className={styles.createLabel}>{localeService.t('toolbar.table.rowCount')}</span>
<InputNumber
min={1}
- max={100}
+ max={20}
precision={0}
value={rowCount}
onChange={(val) => { handleInputChange(val as number, colCount); }}
@@ -65,7 +65,7 @@ export const DocCreateTableConfirm = ({
<span className={styles.createLabel}>{localeService.t('toolbar.table.colCount')}</span>
<InputNumber
min={1}
- max={100}
+ max={20}
precision={0}
value={colCount}
onChange={(val) => { handleInputChange(rowCount, val as number); }}