File tree 2 files changed +7
-3
lines changed
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';
3
3
import PropTypes from '../_util/vue-types' ;
4
4
export default ( ) => ( {
5
5
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' ,
8
10
} ,
9
11
overlay : PropTypes . any ,
10
12
visible : PropTypes . looseBool ,
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ export default defineComponent({
25
25
overlayStyle : PropTypes . object . def ( ( ) => ( { } ) ) ,
26
26
placement : PropTypes . string . def ( 'bottomLeft' ) ,
27
27
overlay : PropTypes . any ,
28
- trigger : PropTypes . array . def ( [ 'hover' ] ) ,
28
+ trigger : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . arrayOf ( PropTypes . string ) ] ) . def (
29
+ 'hover' ,
30
+ ) ,
29
31
alignPoint : PropTypes . looseBool ,
30
32
showAction : PropTypes . array . def ( [ ] ) ,
31
33
hideAction : PropTypes . array . def ( [ ] ) ,
You can’t perform that action at this time.
0 commit comments