-
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
import { AllowedComponentProps, VNodeProps } from './_common'
 
declare interface AlertProps {
  /**
   * 显示的文字
   */
  title?: string
  /**
   * 使用预设的颜色
   * @default "warning"
   */
  type?: 'warning' | 'success' | 'primary' | 'error' | 'info'
  /**
   * 辅助性文字,颜色比`title`浅一点,字号也小一点,可选
   */
  description?: string
  /**
   * 关闭按钮(默认为叉号icon图标)
   * @default false
   */
  closable?: boolean
  /**
   * 是否显示左边的辅助图标
   * @default false
   */
  showIcon?: boolean
  /**
   * 多图时,图片缩放裁剪的模式
   */
  effect?: 'light' | 'dark'
  /**
   * 文字是否居中
   * @default false
   */
  center?: boolean
  /**
   * 字体大小
   * @default 14
   */
  fontSize?: string | number
  /**
   * 点击组件时触发
   */
  onClick?: () => any
}
 
declare interface _Alert {
  new (): {
    $props: AllowedComponentProps &
      VNodeProps &
      AlertProps
  }
}
 
export declare const Alert: _Alert