Skip to content

Commit 0fea04c

Browse files
committed
feat: 聚焦触发
1 parent b17289d commit 0fea04c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/ccui/ui/tooltip/src/tooltip.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ export default defineComponent({
259259
class={ns.e('trigger')}
260260
aria-describedby={actualVisible.value ? ns.e('popper') : undefined}
261261
aria-label={props.ariaLabel}
262+
tabindex={props.trigger === 'focus' ? 0 : undefined}
262263
{...triggerEvents}
263264
>
264265
{slots.default?.()}

0 commit comments

Comments
 (0)