zgg-ui
Version:
2.0.1 正式版本 基于 Vue 3、UniApp 和 TypeScript 开发的多端适配移动端 UI 组件库,旨在提供丰富的组件集合,帮助开发者快速构建多端响应式的移动应用界面
43 lines (38 loc) • 796 B
text/typescript
import type zNotify from './z-notify.vue'
export type ComponentType =
| 'primary'
| 'success'
| 'warning'
| 'danger'
| 'info'
export type NotifyShowPosition = '' | 'top' | 'center' | 'bottom'
export type zNotifyInstance = InstanceType<typeof zNotify>
/**
* @description notify options配置项
*/
export interface NotifyOptions {
/**
* @description 消息内容
*/
msg: string
/**
* @description 消息类型
*/
type?: Omit<ComponentType, ''>
/**
* @description 通知的位置
*/
position?: NotifyShowPosition
/**
* @description 背景颜色
*/
bgColor?: string
/**
* @description 文字颜色
*/
textColor?: string
/**
* @description 自动关闭时间
*/
duration?: number
}