@tplc/wot
Version:
97 lines (96 loc) • 1.75 kB
TypeScript
export type PopupType = 'center' | 'top' | 'right' | 'bottom' | 'left'
export declare const popupProps: {
transition: StringConstructor
/**
* 关闭按钮
*/
closable: {
type: BooleanConstructor
default: boolean
}
/**
* 弹出框的位置
*/
position: {
type: import('vue').PropType<PopupType>
default: PopupType
}
/**
* 点击遮罩是否关闭
*/
closeOnClickModal: {
type: BooleanConstructor
default: boolean
}
/**
* 动画持续时间
*/
duration: {
type: (NumberConstructor | BooleanConstructor)[]
default: number
}
/**
* 是否显示遮罩
*/
modal: {
type: BooleanConstructor
default: boolean
}
/**
* 设置层级
*/
zIndex: {
type: NumberConstructor
default: number
}
/**
* 是否当关闭时将弹出层隐藏(display: none)
*/
hideWhenClose: {
type: BooleanConstructor
default: boolean
}
/**
* 遮罩样式
*/
modalStyle: {
type: import('vue').PropType<string>
default: string
}
/**
* 弹出面板是否设置底部安全距离(iphone X 类型的机型)
*/
safeAreaInsetBottom: {
type: BooleanConstructor
default: boolean
}
/**
* 弹出层是否显示
*/
modelValue: {
type: BooleanConstructor
default: boolean
}
/**
* 弹层内容懒渲染,触发展示时才渲染内容
*/
lazyRender: {
type: BooleanConstructor
default: boolean
}
/**
* 是否锁定滚动
*/
lockScroll: {
type: BooleanConstructor
default: boolean
}
customStyle: {
type: import('vue').PropType<string>
default: string
}
customClass: {
type: import('vue').PropType<string>
default: string
}
}