Skip to content

Commit 21bd401

Browse files
committed
refactor(CPopover): update trigger prop
1 parent d8c538e commit 21bd401

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/coreui-vue/src/components/popover/CPopover.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineComponent, h, PropType, ref, RendererElement, Teleport, Transition } from 'vue'
22
import { createPopper, Placement } from '@popperjs/core'
33

4-
import type { Placements } from '../../types'
4+
import type { Placements, Triggers } from '../../types'
55
import { executeAfterTransition } from '../../utils/transition'
66
import { getRTLPlacement } from '../../utils'
77

@@ -57,9 +57,9 @@ const CPopover = defineComponent({
5757
* @values 'click', 'focus', 'hover'
5858
*/
5959
trigger: {
60-
type: [String, Array] as PropType<string | string[]>,
60+
type: [String, Array] as PropType<Triggers | Triggers[]>,
6161
default: 'click',
62-
validator: (value: string | string[]) => {
62+
validator: (value: Triggers | Triggers[]) => {
6363
if (typeof value === 'string') {
6464
return ['click', 'focus', 'hover'].includes(value)
6565
}

0 commit comments

Comments
 (0)