# 浮动弹层 y-float-layout
三种模式:中间|底部|跟随某个元素,前两种支持有无标题
# 组件名称
y-float-layout
# 基础用法
# 跟随某个元素
# 属性
/**
* 属性
*/
export interface FloatLayoutProps extends Record<string, unknown> {
/**
* 是否显示弹窗
*/
isOpened: boolean
/**
* 弹窗类型: middle或bottom, 默认bottom
*/
type: string
/***
* 弹窗宽度:只限类型为middle
*/
width?: number|string
/**
* 弹窗标题
*/
title: string
/**
* id选择器,如:#a
*/
elementName: string
/**
* 外部定点id
*/
maskOuterElId: string
}
# 事件
/**
* 事件
*/
interface Events {
/***
* 关闭弹窗触发
*/
onClose: string
}