@tplc/wot
Version:
61 lines (60 loc) • 1.26 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: {
/**
* 绑定值,展示/关闭幕帘
*/
value: {
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
}
customStyle: {
type: import('vue').PropType<string>
default: string
}
customClass: {
type: import('vue').PropType<string>
default: string
}
}
export type CurtainProps = ExtractPropTypes<typeof curtainProps>