File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ import { PropType } from 'vue';
33import PropTypes from '../_util/vue-types' ;
44export default ( ) => ( {
55 trigger : {
6- type : Array as PropType < ( 'click' | 'hover' | 'contextmenu' ) [ ] > ,
7- default : ( ) => [ 'hover' ] ,
6+ type : [ Array , String ] as PropType <
7+ ( 'click' | 'hover' | 'contextmenu' ) [ ] | 'click' | 'hover' | 'contextmenu'
8+ > ,
9+ default : 'hover' ,
810 } ,
911 overlay : PropTypes . any ,
1012 visible : PropTypes . looseBool ,
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ export default defineComponent({
2525 overlayStyle : PropTypes . object . def ( ( ) => ( { } ) ) ,
2626 placement : PropTypes . string . def ( 'bottomLeft' ) ,
2727 overlay : PropTypes . any ,
28- trigger : PropTypes . array . def ( [ 'hover' ] ) ,
28+ trigger : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . arrayOf ( PropTypes . string ) ] ) . def (
29+ 'hover' ,
30+ ) ,
2931 alignPoint : PropTypes . looseBool ,
3032 showAction : PropTypes . array . def ( [ ] ) ,
3133 hideAction : PropTypes . array . def ( [ ] ) ,
You can’t perform that action at this time.
0 commit comments