# confirm

对象介绍:

用于交互元素的二次确认 ​ 弹框默认提供确定和取消的按钮,无需开发者手动配置。

字段定义:

字段 必须 类型 取值 说明
title Struct text对象(仅支持"plain_text") 弹框标题
text Struct text对象(仅支持"plain_text") 弹框内容

使用介绍:

元素 字段 效果
button confirm 点击button,弹出确认弹框

样例图示

样例结构

  1. 基础结构
"confirm":{
  "title":{
  	"tag":"plain_text",
  	"content":"title"
  },
  "text":{
  	"tag":"plain_text",
  	"content":"content"
  }
}
1
2
3
4
5
6
7
8
9
10
  1. 交互元素配置confirm的样例
{
   "tag": "button",
   "confirm": {
       "title": {
           "tag": "plain_text",
           "content": "title"
       },
       "text": {
           "tag": "plain_text",
           "content": "content"
       }
   }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
最后更新于 : 5/6/2023, 3:51:32 PM