/** * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ import { ButtonProps } from '../button/index'; import { OverlayProps } from '../overlay/index'; export interface TdDialogProps { /** * 操作栏 */ actions?: { type: ArrayConstructor; value?: Array; }; /** * 多按钮排列方式 * @default horizontal */ buttonLayout?: { type: StringConstructor; value?: 'horizontal' | 'vertical'; }; /** * 取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 Slot 自定义按钮时,需自行控制取消事件 */ cancelBtn?: { type: null; value?: string | ButtonProps | null; }; /** * 是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;使用 Object 时透传至图标组件 * @default false */ closeBtn?: { type: null; value?: boolean | ButtonProps | null; }; /** * 点击蒙层时是否触发关闭事件 * @default false */ closeOnOverlayClick?: { type: BooleanConstructor; value?: boolean; }; /** * 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 Slot 自定义按钮时,需自行控制确认事件 */ confirmBtn?: { type: null; value?: string | ButtonProps | null; }; /** * 内容 */ content?: { type: StringConstructor; value?: string; }; /** * 透传至 Overlay 组件 * @default {} */ overlayProps?: { type: ObjectConstructor; value?: OverlayProps; }; /** * 防止滚动穿透 * @default true */ preventScrollThrough?: { type: BooleanConstructor; value?: boolean; }; /** * 是否显示遮罩层 * @default true */ showOverlay?: { type: BooleanConstructor; value?: boolean; }; /** * 标题 */ title?: { type: StringConstructor; value?: string; }; /** * 是否使用了自定义导航栏 * @default false */ usingCustomNavbar?: { type: BooleanConstructor; value?: boolean; }; /** * 控制对话框是否显示 */ visible?: { type: BooleanConstructor; value?: boolean; }; /** * 对话框层级,Web 侧样式默认为 2500,移动端样式默认 2500,小程序样式默认为 11500 * @default 11500 */ zIndex?: { type: NumberConstructor; value?: number; }; }