diff --git a/package-lock.json b/package-lock.json index 95d3d58..11f2294 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue3-excel-editor", - "version": "1.0.12", + "version": "1.0.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5d94cc4..04a20b7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vue3-excel-editor", "email": "apple.6502@gmail.com", "description": "Vue3 plugin for displaying and editing the array-of-object in Excel style", - "version": "1.0.12", + "version": "1.0.13", "main": "src/main.js", "dependencies": { "@vuepic/vue-datepicker": "^3.3.0", diff --git a/src/VueExcelEditor.vue b/src/VueExcelEditor.vue index 349bb50..08e0588 100644 --- a/src/VueExcelEditor.vue +++ b/src/VueExcelEditor.vue @@ -1043,7 +1043,8 @@ export default { if (!count) return const fullWidth = this.editor.getBoundingClientRect().width - const viewWidth = this.fields.filter(f => !f.invisible).reduce((c, f) => c - -f.width.replace(/px$/, ''), 0) + 40 + const viewWidth = this.fields.filter(f => !f.invisible).reduce((c, f) => c - -f.width.replace(/px$/, ''), 0) + + (this.noNumCol ? 0 : 40) const fillWidth = viewWidth - fullWidth + 2 if (fillWidth) doFields.forEach(f => f.minWidth = (f.width.replace(/px$/, '') - fillWidth / count) + 'px') @@ -2186,7 +2187,8 @@ export default { }, moveSouth () { if (this.focused) { - if (this.currentRowPos + 1 >= this.table.length) { + // if (this.currentRowPos + 1 >= this.table.length) { + if (this.currentRowPos+1 >= (this.pageBottom - this.pageTop) && this.pageBottom >= this.table.length) { if (this.readonly) return false if (!this.newIfBottom) return false this.newRecord({}, false, true)