Skip to main content
Version: 2.22

BindAttribute 元素绑定属性

结构声明

interface BindAttribute {
"concept": "BindAttribute", // 产品概念
"name": string, // 元素绑定属性名称
"type": "string" | "static" | "dynamic", // type
"value": string, // 属性值,type 为 "string" | "static" 的时候生效
"expression": LogicItem, // 属性表达式,type 为 "dynamic" 的时候生效
"destination": Destination, // 跳转页面,name 为 "destination" 时生效
"externalDestination": ExternalDestination, // 跳转页面,name 为 "externalDestination" 时生效
"rules": Array<ValidationRule>, // 验证规则,name 为 "rules" 时生效
"assignee": Assignee, // 经办人,name 为 "assignee" 时生效
"model": boolean, // 是否使用 v-model
"sync": boolean, // 是否开启双向绑定
"playground": Array<LogicItem>, // 草稿态
}

示例

简单示例

{
"concept": "BindAttribute",
"name": "text",
"type": "dynamic",
"value": "text",
"expression": null,
"destination": null,
"externalDestination": null,
"rules": [],
"assignee": null,
"model": false,
"sync": true,
"playground": []
}