Skip to content

Commit 20b1bb2

Browse files
author
Kenneth Cheng
committed
Bug Fixing
1 parent d66abd3 commit 20b1bb2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue3-excel-editor",
33
"email": "apple.6502@gmail.com",
44
"description": "Vue3 plugin for displaying and editing the array-of-object in Excel style",
5-
"version": "1.0.38",
5+
"version": "1.0.39",
66
"main": "src/main.js",
77
"dependencies": {
88
"@vuepic/vue-datepicker": "^3.3.0",

src/VueExcelEditor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,7 @@ export default defineComponent({
22632263
const rowPos = Array.from(row.parentNode.children).indexOf(row)
22642264
this.currentField = this.fields[colPos]
22652265
this.currentCell = row.children[colPos + 1]
2266+
this.currentRecord = this.table[this.pageTop + rowPos]
22662267
this.$emit('cell-click', {rowPos, colPos})
22672268
if (typeof this.currentField.cellClick === 'function')
22682269
this.currentField.cellClick(this.currentCell.textContent, this.currentRecord, rowPos, colPos, this.currentField, this)

0 commit comments

Comments
 (0)