From 1c7afdce9822617a30eba86b5e15ff2aa7af2801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8C=80=EC=97=B0?= Date: Fri, 5 Nov 2021 17:23:42 +0900 Subject: [PATCH] docs: fix incorrect description of docs (fix #1449) (#1503) --- packages/toast-ui.grid/docs/en/setting-width-height.md | 4 ++-- packages/toast-ui.grid/docs/ko/setting-width-height.md | 4 ++-- packages/toast-ui.grid/src/grid.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/toast-ui.grid/docs/en/setting-width-height.md b/packages/toast-ui.grid/docs/en/setting-width-height.md index 03039aa45..0a49281cc 100644 --- a/packages/toast-ui.grid/docs/en/setting-width-height.md +++ b/packages/toast-ui.grid/docs/en/setting-width-height.md @@ -145,7 +145,7 @@ Following are the options used to configure the height. | Option Name | Type | Default Value | | --- | --- | --- | -| `rowHeight` | `number \| 'auto'` | `'auto'` | +| `rowHeight` | `number \| 'auto'` | `40` | | `minRowHeight` | `number` | `40` | * Viewport Area Height Configuration @@ -153,7 +153,7 @@ Following are the options used to configure the height. | Option Name | Type | Default Value | | --- | --- | --- | | `bodyHeight` | `number \| 'auto' \| 'fitToParent'` | `'auto'` | -| `minBodyHeight` | `number` | `minRowHeight` | +| `minBodyHeight` | `number` | `130` | * Header Area Height Configuration diff --git a/packages/toast-ui.grid/docs/ko/setting-width-height.md b/packages/toast-ui.grid/docs/ko/setting-width-height.md index 3770888a8..5a7007343 100644 --- a/packages/toast-ui.grid/docs/ko/setting-width-height.md +++ b/packages/toast-ui.grid/docs/ko/setting-width-height.md @@ -199,7 +199,7 @@ const grid = new Grid({ | 옵션명 | 타입 | 기본값 | | --- | --- | --- | -| `rowHeight` | `number \| 'auto'` | `'auto'` | +| `rowHeight` | `number \| 'auto'` | `40` | | `minRowHeight` | `number` | `40` | * 뷰포트 영역 높이 설정 @@ -207,7 +207,7 @@ const grid = new Grid({ | 옵션명 | 타입 | 기본값 | | --- | --- | --- | | `bodyHeight` | `number \| 'auto' \| 'fitToParent'` | `'auto'` | -| `minBodyHeight` | `number` | `minRowHeight` | +| `minBodyHeight` | `number` | `130` | * 헤더 영역 높이 설정 diff --git a/packages/toast-ui.grid/src/grid.tsx b/packages/toast-ui.grid/src/grid.tsx index fbe7e3af3..b1aeb4dec 100644 --- a/packages/toast-ui.grid/src/grid.tsx +++ b/packages/toast-ui.grid/src/grid.tsx @@ -105,14 +105,14 @@ if ((module as any).hot) { * @param {boolean} [options.header.complexColumns.hideChildHeaders=false] - If set to true, the child columns header are hidden. * @param {boolean} [options.header.complexColumns.resizable=false] - If set to true, resize-handles of each complex columns will be shown. * @param {string|number} [options.width='auto'] - Options for grid width. - * @param {string|number} [options.rowHeight] - The height of each rows. The default value is 40, + * @param {string|number} [options.rowHeight=40] - The height of each rows. * the height of each rows expands to dom's height. If set to number, the height is fixed. * @param {number} [options.minRowHeight=40] - The minimum height of each rows. When this value is larger than * the row's height, it set to the row's height. * @param {string|number} [options.bodyHeight] - The height of body area. The default value is 'auto', * the height of body area expands to total height of rows. If set to 'fitToParent', the height of the grid * will expand to fit the height of parent element. If set to number, the height is fixed. - * @param {number} [options.minBodyHeight=minRowHeight] - The minimum height of body area. When this value + * @param {number} [options.minBodyHeight=130] - The minimum height of body area. When this value * is larger than the body's height, it set to the body's height. * @param {Object} [options.columnOptions] - Option object for all columns * @param {number} [options.columnOptions.minWidth=50] - Minimum width of each columns