mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix: [el-date-picker] avoid click event error & fix cell props (#4134)
This commit is contained in:
parent
c33d861797
commit
86866f6725
@ -7,7 +7,7 @@ export default defineComponent({
|
||||
name: 'ElDatePickerCell',
|
||||
props: buildProps({
|
||||
cell: {
|
||||
type: definePropType<DateCell>(Array),
|
||||
type: definePropType<DateCell>(Object),
|
||||
},
|
||||
}),
|
||||
setup(props) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user