diff --git a/src/avatar-group/avatar-group.less b/src/avatar-group/avatar-group.less index 584258ae3..3d90e1bd1 100644 --- a/src/avatar-group/avatar-group.less +++ b/src/avatar-group/avatar-group.less @@ -24,8 +24,7 @@ &-offset-left, &-offset-right { & .@{prefix}-avatar__wrapper { - margin-top: @avatar-group-line-spacing; - margin-bottom: @avatar-group-line-spacing; + padding: @avatar-group-line-spacing 0; } &-small { @@ -48,6 +47,7 @@ &__collapse--slot, &__collapse--default { z-index: 0; + font-weight: 600; } &__collapse--slot { diff --git a/src/avatar-group/avatar-group.ts b/src/avatar-group/avatar-group.ts index fb7db0afe..2dc0b4c4d 100644 --- a/src/avatar-group/avatar-group.ts +++ b/src/avatar-group/avatar-group.ts @@ -74,5 +74,9 @@ export default class AvatarGroup extends SuperComponent { child.hide(); }); }, + + onCollapsedItemClick(e: WechatMiniprogram.CustomEvent) { + this.triggerEvent('collapsed-item-click', e.detail); + }, }; } diff --git a/src/avatar-group/avatar-group.wxml b/src/avatar-group/avatar-group.wxml index 26929f202..2f1efd359 100644 --- a/src/avatar-group/avatar-group.wxml +++ b/src/avatar-group/avatar-group.wxml @@ -7,7 +7,7 @@ - + + diff --git a/src/avatar/avatar.wxml b/src/avatar/avatar.wxml index df36ab06e..3f6e6791a 100644 --- a/src/avatar/avatar.wxml +++ b/src/avatar/avatar.wxml @@ -22,7 +22,7 @@ >