From c13ce3e5d66af9787ce518c3cb9ba02dcd953ec1 Mon Sep 17 00:00:00 2001 From: kimyell <61657275+kimyell@users.noreply.github.com> Date: Thu, 4 Mar 2021 10:49:35 +0900 Subject: [PATCH] =?UTF-8?q?[#770][3.0]=20Grid=20RowHeight=20min-height=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20(#771)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ####################### - RowHeight min-height 옵션 설정 추가 Co-authored-by: yell --- src/components/grid/Grid.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/grid/Grid.vue b/src/components/grid/Grid.vue index dfb8704b8..b03035217 100644 --- a/src/components/grid/Grid.vue +++ b/src/components/grid/Grid.vue @@ -298,6 +298,7 @@ export default { const stripeStyle = computed(() => (props.option.style?.stripe || false)); const borderStyle = computed(() => (props.option.style?.border || false)); const highlightIdx = computed(() => (props.option.style?.highlight)); + const rowMinHeight = props.option.rowMinHeight || 35; const elementInfo = reactive({ body: null, header: null, @@ -362,7 +363,7 @@ export default { columnWidth: props.option.columnWidth || 80, scrollWidth: props.option.scrollWidth || 17, rowHeight: computed(() => - (props.option.rowHeight && props.option.rowHeight > 35 ? props.option.rowHeight : 35)), + (props.option.rowHeight > rowMinHeight ? props.option.rowHeight : rowMinHeight)), gridWidth: computed(() => (props.width ? setPixelUnit(props.width) : '100%')), gridHeight: computed(() => (props.height ? setPixelUnit(props.height) : '100%')), });