123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import { defineMixin } from '../../libs/vue'
- import defProps from '../../libs/config/props.js'
- export const props = defineMixin({
- props: {
-
- urls: {
- type: Array,
- default: () => defProps.avatarGroup.urls
- },
-
- maxCount: {
- type: [String, Number],
- default: () => defProps.avatarGroup.maxCount
- },
-
- shape: {
- type: String,
- default: () => defProps.avatarGroup.shape
- },
-
- mode: {
- type: String,
- default: () => defProps.avatarGroup.mode
- },
-
- showMore: {
- type: Boolean,
- default: () => defProps.avatarGroup.showMore
- },
-
- size: {
- type: [String, Number],
- default: () => defProps.avatarGroup.size
- },
-
- keyName: {
- type: String,
- default: () => defProps.avatarGroup.keyName
- },
-
- gap: {
- type: [String, Number],
- validator(value) {
- return value >= 0 && value <= 1
- },
- default: () => defProps.avatarGroup.gap
- },
-
- extraValue: {
- type: [Number, String],
- default: () => defProps.avatarGroup.extraValue
- }
- }
- })
|