Skip to content

Commit

Permalink
remove minWidth in col
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Cheng committed Aug 31, 2022
1 parent d49dfc6 commit 4a4855e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/VueExcelEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ondragover="event.preventDefault(); event.dataTransfer.dropEffect = 'none'">
<colgroup>
<col v-if="!noNumCol" style="width:40px">
<col v-for="(item, p) in fields" v-show="!item.invisible" :key="p" :style="{width: item.width, 'min-width': item.minWidth}">
<col v-for="(item, p) in fields" v-show="!item.invisible" :key="p" :style="{width: item.width}">
<col v-if="vScroller.buttonHeight < vScroller.height" style="width:12px">
</colgroup>
<thead class="center-text">
Expand Down Expand Up @@ -645,7 +645,7 @@ export default {
},
resetColumn () {
this.fields = []
this.$slots.default.forEach(col => col.componentInstance? col.componentInstance.init() : 0)
// this.$slots.default.forEach(col => col.componentInstance? col.componentInstance.init() : 0)
this.tableContent.scrollTo(0, this.tableContent.scrollTop)
this.calStickyLeft()
},
Expand Down Expand Up @@ -1047,7 +1047,7 @@ export default {
+ (this.noNumCol ? 0 : 40)
const fillWidth = viewWidth - fullWidth + 2
if (fillWidth)
doFields.forEach(f => f.minWidth = (f.width.replace(/px$/, '') - fillWidth / count) + 'px')
doFields.forEach(f => f.width = (f.width.replace(/px$/, '') - fillWidth / count) + 'px')
},
/* *** Date Picker *********************************************************************************
Expand Down

0 comments on commit 4a4855e

Please sign in to comment.