@tplc/wot
Version:
117 lines (116 loc) • 2.43 kB
TypeScript
import type { ExtractPropTypes } from 'vue'
export type ClosePosition =
| 'inset'
| 'top'
| 'bottom'
| 'top-left'
| 'top-right'
| 'bottom-left'
| 'bottom-right'
export declare const curtainProps: {
/**
* 绑定值,展示/关闭幕帘
* @deprecated 请使用 modelValue
*/
value: {
type: BooleanConstructor
default: boolean
}
/**
* 绑定值,展示/关闭幕帘
*/
modelValue: {
type: BooleanConstructor
default: boolean
}
/**
* 关闭按钮位置,可选值:inset / top / bottom / top-left / top-right / bottom-left / bottom-right
*/
closePosition: {
type: import('vue').PropType<ClosePosition>
default: ClosePosition
}
/**
* 幕帘图片地址,必须使用网络地址
*/
src: StringConstructor
/**
* 幕帘图片点击链接
*/
to: StringConstructor
/**
* 幕帘图片宽度
*/
width: NumberConstructor
/**
* 点击遮罩是否关闭
*/
closeOnClickModal: {
type: BooleanConstructor
default: boolean
}
/**
* 是否当关闭时将弹出层隐藏(display: none)
*/
hideWhenClose: {
type: BooleanConstructor
default: boolean
}
/**
* 设置层级
* 类型:number
* 默认值:10
*/
zIndex: {
type: NumberConstructor
default: number
}
/**
* 自定义关闭按钮的类名
* 类型:string
* 默认值:''
*/
customCloseClass: {
type: import('vue').PropType<string>
default: string
}
/**
* 自定义关闭按钮的样式
* 类型:string
* 默认值:''
*/
customCloseStyle: {
type: import('vue').PropType<string>
default: string
}
/**
* 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)
*/
rootPortal: {
type: BooleanConstructor
default: boolean
}
/**
* 开启长按图片显示识别小程序码菜单,仅在微信小程序平台有效
*/
showMenuByLongpress: {
type: BooleanConstructor
default: boolean
}
/**
* 点击图片是否关闭幕帘,默认为 true
*/
closeOnClick: {
type: BooleanConstructor
default: boolean
}
customStyle: {
type: import('vue').PropType<string>
default: string
}
customClass: {
type: import('vue').PropType<string>
default: string
}
}
export type CurtainProps = ExtractPropTypes<typeof curtainProps>