Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts-element系列之alert警告 #1

Open
webVueBlog opened this issue Aug 1, 2022 · 0 comments
Open

ts-element系列之alert警告 #1

webVueBlog opened this issue Aug 1, 2022 · 0 comments

Comments

@webVueBlog
Copy link
Owner

// 导入ElementUIComponent组件类型
import { ElementUIComponent } from './component'

// 警告类型
// 主题type
export type AlertType = 'success' | 'warning' | 'info' | 'error'
// effect选择提供的主题
export type AlertEffect = 'dark' | 'light'

/** 警告组件 */
export declare class ElAlert extends ElementUIComponent {
  /** 标题 */
  title: string

  /** 组件主题 */
  type: AlertType

  /** 描述性文本,也可以通过默认槽 */
  description: string

  /** 是否可关闭 */
  closable: boolean

  /** 是否将文本居中 */
  center: boolean

  /** 自定义关闭按钮文本 */
  closeText: string

  /** 显示类型图标 */
  showIcon: boolean

  /** 选择提供的主题 */
  effect: AlertEffect
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant