Skip to content

Commit

Permalink
fix: 🐛delete column 1 flex
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjone committed May 12, 2023
1 parent 39190a6 commit ee01ac1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
7 changes: 1 addition & 6 deletions src/components/column/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
}"
>
<div :style="{ lineHeight: `${rowHeight}px`, height: `${rowHeight}px` }">
<SelectionVue
v-if="props.__index === 0"
:data="data"
:indent="20"
:show-checkbox="$styleBox.showCheckbox"
/>
<SelectionVue v-if="props.__index === 0" :data="data" :indent="20" />

<div
:class="[
Expand Down
6 changes: 1 addition & 5 deletions src/components/column/selection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"
/>

<input v-if="showCheckbox" v-model="checked" type="checkbox" />
<input v-if="$styleBox.showCheckbox" v-model="checked" type="checkbox" />
</template>

<script lang="ts" setup>
Expand All @@ -35,10 +35,6 @@ defineProps({
indent: {
type: Number,
default: 20
},
showCheckbox: {
type: Boolean,
default: false
}
});
Expand Down
5 changes: 1 addition & 4 deletions src/components/column/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
font-size: 13px;
text-overflow: ellipsis;
padding: 0 6px;
display: flex;
align-items: baseline;
justify-content: flex-start;

.expand-icon {
margin-right: 4px;
Expand All @@ -35,7 +32,7 @@
}

.cell {
flex: 1;
display: inline-block;
}

.cell-center {
Expand Down

0 comments on commit ee01ac1

Please sign in to comment.