fix(components): [Collapse] Collapse The foldable panel can only be expanded when clicking on the icon or text (#758)

This commit is contained in:
AcWrong02 2023-11-13 15:26:09 +08:00 committed by GitHub
parent b47370465e
commit b538c831a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -29,13 +29,14 @@
}"
@focus="handleFocus"
@blur="state.focusing = false"
@click="handleHeaderClick"
>
<div class="tiny-collapse-item__arrow" @click="handleHeaderClick">
<div class="tiny-collapse-item__arrow" @click.stop="handleHeaderClick">
<slot name="icon">
<icon-chevron-right class="tiny-svg-size" :class="{ 'is-active': state.isActive }" />
</slot>
</div>
<div class="tiny-collapse-item__word-overflow" @click="handleHeaderClick">
<div class="tiny-collapse-item__word-overflow" @click.stop="handleHeaderClick">
<slot name="title">{{ title }}</slot>
</div>
<div class="tiny-collapse-item__title__right">