跳到主要内容

eo-popup

<eo-popup>

构件 eo-popup

Examples

Basic

Playground

Method & PopupId

Playground

Resizable

Playground

Toolbar slot

Playground

Properties

NameDescriptionTypeDefaultRequired
popupId

浮层Id, 如果有设置浮层id, 会开启位置记录功能

string
popupWidth

弹窗宽度

React.CSSProperties["width"] 500
popupHeight

弹窗高度

React.CSSProperties["height"]
popupTitle

弹窗标题

string
openDirection

弹窗打开位置

OpenDirection center
visible

是否显示模态框

boolean
headerStyle

用于设置 popup head的样式

React.CSSProperties
wrapperStyle

用于设置 popup wrapper的样式

React.CSSProperties
noPadding

内容没有边距

boolean
resizable

是否可调整尺寸

boolean

Methods

NameDescriptionParamsReturns
open

显示弹窗

void
close

关闭弹窗

void

Type references

OpenDirectionenum

LeftTop = "leftTop",
LeftBottom = "leftBottom",
RightTop = "rightTop",
RightBottom = "rightBottom",
Center = "center",