Skip to content

Commit

Permalink
[#770][3.0] Grid RowHeight min-height 설정 (#771)
Browse files Browse the repository at this point in the history
#######################
- RowHeight min-height 옵션 설정 추가

Co-authored-by: yell <yell@ex-em.com>
  • Loading branch information
kimyell and kimyell1023 authored Mar 4, 2021
1 parent b5f61b7 commit c13ce3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/grid/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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%')),
});
Expand Down

0 comments on commit c13ce3e

Please sign in to comment.