🌐 AI搜索 & 代理 主页
Skip to content

Commit 598867d

Browse files
authored
Update avatar-group.js
1 parent 16b10ec commit 598867d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/avatar/avatar-group.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Vue from '../../utils/vue'
22
import normalizeSlotMixin from '../../mixins/normalize-slot'
3+
import { mathMax, mathMin } from '../../utils/math'
34
import { toFloat } from '../../utils/number'
45
import { computeSize } from './avatar'
56

@@ -47,7 +48,7 @@ export const BAvatarGroup = /*#__PURE__*/ Vue.extend({
4748
return computeSize(this.size)
4849
},
4950
overlapScale() {
50-
return toFloat(this.overlap, 0) / 2
51+
return mathMin(mathMax(toFloat(this.overlap, 0), 0), 1) / 2
5152
},
5253
paddingStyle() {
5354
let value = this.computedSize

0 commit comments

Comments
 (0)