fix: [el-date-picker] avoid click event error & fix cell props (#4134)

This commit is contained in:
msidolphin 2021-10-31 20:59:23 +08:00 committed by GitHub
parent c33d861797
commit 86866f6725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export default defineComponent({
name: 'ElDatePickerCell',
props: buildProps({
cell: {
type: definePropType<DateCell>(Array),
type: definePropType<DateCell>(Object),
},
}),
setup(props) {

View File

@ -354,7 +354,7 @@ export default defineComponent({
target = target.parentNode
}
if (target.tagName !== 'TD') return
if (!target || target.tagName !== 'TD') return
const row = target.parentNode.rowIndex - 1
const column = target.cellIndex