Skip to content

Commit 4a4855e

Browse files
author
Kenneth Cheng
committed
remove minWidth in col
1 parent d49dfc6 commit 4a4855e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/VueExcelEditor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
ondragover="event.preventDefault(); event.dataTransfer.dropEffect = 'none'">
2424
<colgroup>
2525
<col v-if="!noNumCol" style="width:40px">
26-
<col v-for="(item, p) in fields" v-show="!item.invisible" :key="p" :style="{width: item.width, 'min-width': item.minWidth}">
26+
<col v-for="(item, p) in fields" v-show="!item.invisible" :key="p" :style="{width: item.width}">
2727
<col v-if="vScroller.buttonHeight < vScroller.height" style="width:12px">
2828
</colgroup>
2929
<thead class="center-text">
@@ -645,7 +645,7 @@ export default {
645645
},
646646
resetColumn () {
647647
this.fields = []
648-
this.$slots.default.forEach(col => col.componentInstance? col.componentInstance.init() : 0)
648+
// this.$slots.default.forEach(col => col.componentInstance? col.componentInstance.init() : 0)
649649
this.tableContent.scrollTo(0, this.tableContent.scrollTop)
650650
this.calStickyLeft()
651651
},
@@ -1047,7 +1047,7 @@ export default {
10471047
+ (this.noNumCol ? 0 : 40)
10481048
const fillWidth = viewWidth - fullWidth + 2
10491049
if (fillWidth)
1050-
doFields.forEach(f => f.minWidth = (f.width.replace(/px$/, '') - fillWidth / count) + 'px')
1050+
doFields.forEach(f => f.width = (f.width.replace(/px$/, '') - fillWidth / count) + 'px')
10511051
},
10521052
10531053
/* *** Date Picker *********************************************************************************

0 commit comments

Comments
 (0)