-
zhangwei
2025-03-05 16213c0f85aa3ac8317797bf4a05fd12940e16d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import { AllowedComponentProps, VNodeProps } from './_common'
 
declare interface AlbumProps {
  /**
   * 图片地址列表
   */
  urls?: string[] | Record<string, any>[]
  /**
   * 指定从数组的对象元素中读取哪个属性作为图片地址
   */
  keyName?: string
  /**
   * 单图时,图片长边的长度
   * @default 180
   */
  singleSize?: string | number
  /**
   * 多图时,图片边长
   * @default 70
   */
  multipleSize?: string | number
  /**
   * 多图时,图片水平和垂直之间的间隔
   * @default 6
   */
  space?: string | number
  /**
   * 单图时,图片缩放裁剪的模式
   * @default "scaleToFill"
   */
  singleMode?: ImageMode
  /**
   * 多图时,图片缩放裁剪的模式
   * @default "aspectFill"
   */
  multipleMode?: ImageMode
  /**
   * 最多展示的图片数量,超出时最后一个位置将会显示剩余图片数量
   * @default 9
   */
  maxCount?: string | number
  /**
   * 是否可以预览图片
   * @default true
   */
  previewFullImage?: boolean
  /**
   * 每行展示图片数量,如设置,singleSize和multipleSize将会无效
   * @default 3
   */
  rowCount?: string | number
  /**
   * 超出maxCount时是否显示查看更多的提示
   * @default true
   */
  showMore?: boolean
  /**
   * 某些特殊的情况下,需要让文字与相册的宽度相等,这里事件的形式对外发送
   * @param width 宽度
   */
  onAlbumWidth?: (width: any) => any
  /**
   * 图片形状
   * @default "square"
   */
  shape?: 'circle' | 'square'
  /**
   * 圆角,默认单位px
   * @default 0
   */
  radius?: string | number
}
 
declare interface _Album {
  new (): {
    $props: AllowedComponentProps &
      VNodeProps &
      AlbumProps
  }
}
 
export declare const Album: _Album