diff --git a/src/VueExcelEditor.vue b/src/VueExcelEditor.vue index 94d53a5..d1f97c6 100644 --- a/src/VueExcelEditor.vue +++ b/src/VueExcelEditor.vue @@ -23,7 +23,7 @@ ondragover="event.preventDefault(); event.dataTransfer.dropEffect = 'none'"> - + @@ -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() }, @@ -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 *********************************************************************************