Skip to content

Commit

Permalink
fix: 修正body样式不生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xpyjs committed Jun 14, 2024
1 parent 9606c08 commit 0d6b89c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/container/Row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
top: `${(props.data?.flatIndex ?? 0) * rowHeight}px`,
height: `${rowHeight}px`,
borderWidth: props.renderStyle ? '1px' : 0,
'--color': $styleBox.headerStyle?.textColor,
// backgroundColor: props.renderStyle ? ($styleBox.levelColor[props.data!.level] || $styleBox.headerStyle?.bgColor) : undefined,
'--color': $styleBox.bodyStyle?.textColor,
// backgroundColor: props.renderStyle ? ($styleBox.levelColor[props.data!.level] || $styleBox.bodyStyle?.bgColor) : undefined,
'--backgroundColor': bgColor,
'border-color': $styleBox.borderColor
}"
Expand Down Expand Up @@ -78,7 +78,8 @@ const bgColor = computed(() => {
if (!props.renderStyle) return undefined;
let c =
$styleBox.levelColor[props.data!.level] || $styleBox.headerStyle?.bgColor;
$styleBox.levelColor[props.data?.level ?? 0] ||
$styleBox.bodyStyle?.bgColor;
if ($param.selectItem?.uuid === props.data?.uuid) {
c = blend('#ffffff99', $styleBox.bodyStyle?.selectColor ?? '#e0e0e0');
Expand Down

0 comments on commit 0d6b89c

Please sign in to comment.