Skip to content

Commit

Permalink
fix(indent): 🐛 更新缩进样式
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjone committed Jun 12, 2023
1 parent 7aa0b5e commit 7062371
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
34 changes: 22 additions & 12 deletions src/components/column/selection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,28 @@

<div class="level-block" :style="{ width: `${data!.level * indent}px` }" />

<Icon
v-if="$styleBox.showExpand && !!data?.children?.length"
name="arrow-right"
:class="['expand-icon', { 'expand-icon__expanded': data?.isExpand }]"
:style="{ width: `${rowHeight / 2}px`, height: `${rowHeight / 2}px` }"
@click.stop="
() => {
data?.setExpand(!data.isExpand);
flattenData();
}
"
/>
<div
v-if="$styleBox.showExpand"
:style="{
width: `${rowHeight / 2}px`,
height: `${rowHeight / 2}px`,
display: 'inline-block',
'box-sizing': 'border-box'
}"
>
<Icon
v-if="!!data?.children?.length"
name="arrow-right"
:class="['expand-icon', { 'expand-icon__expanded': data?.isExpand }]"
:style="{ width: '100%', height: '100%' }"
@click.stop="
() => {
data?.setExpand(!data.isExpand);
flattenData();
}
"
/>
</div>
<Checkbox
v-if="$styleBox.showCheckbox"
Expand Down
1 change: 1 addition & 0 deletions src/components/column/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

.prefix {
display: inline-block;
height: 100%;

.drag-icon {
cursor: move;
Expand Down

0 comments on commit 7062371

Please sign in to comment.