EApplet
支持的类型:有 list,simple-list,search-list,new,edit,detail,popup-detail,header-detail。EApplet/new
为新建弹出框组件,通过设置 template
属性来控制其显示模式。
# 基础示例
设置 EApplet
组件的属性 template
为 new
开启新建对话框模式,设置具名 slot
为 header
定制对话框标题。
# 按钮包裹对话框
搭配 EButton
组件,包裹 EApplet
组件可以实现点击显示对话框。
# 自定义按钮集
# 对话框按钮支持 async/await
# EApplet/new 组件接口
名称 | 位置 | 描述 |
---|---|---|
visible | props | Boolean,是否显示弹出框 |
anchorClick | props | Boolean,锚点元素的点击显隐浮出框。默认情况下(null),当父元素为 EButton 类型时,可以自动触发打开对话框 |
update:visible | event | 显隐浮出框 |
submit | event | 保存 |
# Slots
名称 | 描述 |
---|---|
默认 slot | 默认 slot 是 Dialog 的内容 |
header | Dialog 头部定制 |
footer | Dialog 底部定制 |