File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import classnames from '../../_util/classNames' ;
2
- import { cloneVNode , Teleport , nextTick , defineComponent } from 'vue' ;
2
+ import { Teleport , nextTick , defineComponent } from 'vue' ;
3
3
import BaseMixin from '../../_util/BaseMixin' ;
4
4
import { initDefaultProps , getSlot } from '../../_util/props-util' ;
5
5
import getScrollBarSize from '../../_util/getScrollBarSize' ;
@@ -15,6 +15,7 @@ import {
15
15
isNumeric ,
16
16
} from './utils' ;
17
17
import supportsPassive from '../../_util/supportsPassive' ;
18
+ import { cloneElement } from 'ant-design-vue/es/_util/vnode' ;
18
19
19
20
function noop ( ) { }
20
21
@@ -417,9 +418,9 @@ const Drawer = defineComponent({
417
418
const { handler : handlerSlot } = this ;
418
419
const handlerSlotVnode = handlerSlot || handlerDefalut ;
419
420
const handleIconClick = handlerSlotVnode . props && handlerSlotVnode . props . onClick ;
420
- handlerChildren = cloneVNode ( handlerSlotVnode , {
421
+ handlerChildren = cloneElement ( handlerSlotVnode , {
421
422
onClick : e => {
422
- handleIconClick && handleIconClick ( ) ;
423
+ handleIconClick && handleIconClick ( e ) ;
423
424
this . onIconTouchEnd ( e ) ;
424
425
} ,
425
426
ref : c => {
You can’t perform that action at this time.
0 commit comments