元素内容修改事件
元素内容被修改时产生”elementContentChange”事件。
- 人为修改元素时
键值
“elementContentChange”
主体
{
"handle": "event",
"type": "elementContentChange",
"data": {
"docName": "ABC",
"object": "element",
"id": "",
"name": "",
"empty": 0,
"text": "6",
"content": "6",
"fragment": "<Fragment><Element cfg='30000' inputMode='2' optionClass='系统' optionId='性别' linkStr='、' qcCfg='96' min='2' max='6' hint='请选择'>6<\/Element><\/Fragment>",
"beginBorder": "",
"endBorder": "",
"beforeTag": "",
"afterTag": "",
"hint": "请选择",
"tip": "",
"width": "0.00",
"alignHorizontalMode": 0,
"hideKeyWord": 0,
"forbidDelete": 0,
"lockedContent": 0,
"lockedFormat": 0,
"forbidSpace": 0,
"enableBackgroundEffects": 1,
"enableFocusedEffects": 1,
"widthUnderline": 0,
"allowJump": 0,
"fitContent": 0,
"displayBorder": 0,
"splitParagraphMode": 0,
"source": {
"sourceClass": "",
"sourceId": "",
"dynamicLoad": 0,
"writeBack": 0
},
"algorithm": {
},
"inputHandle": {
"inputMode": 2,
"optionClass": "系统",
"optionId": "性别",
"checked": [
],
"linkStr": "、",
"optionShowMode": 0,
"multipleChoice": 0,
"groupExclusion": 0,
"items": [
{
"id": "男性",
"groupId": "1",
"weight": "0.00",
"content": ""
},
{
"id": "女性",
"groupId": "1",
"weight": "0.00",
"content": ""
},
{
"id": "未说明的性别",
"groupId": "1",
"weight": "0.00",
"content": ""
},
{
"id": "未知的性别",
"groupId": "1",
"weight": "0.00",
"content": ""
}
]
},
"attrs": "",
"qualityControl": {
"qcClass": 0,
"level": 0,
"forbidEmpty": 0,
"notice": "",
"exclude": "",
"useByteLen": 0,
"useMinLimit": 1,
"min": 2,
"useMaxLimit": 1,
"max": 6
},
"expressions": [
],
"inView": {
"state": "in",
"posX": 399,
"posY": 184,
"width": 1,
"height": 19
}
}
}
说明
字段 | 类型 | 说明 | 备注 |
---|---|---|---|
text | string | 元素纯文本 | 更多属性说明详见配置元素 |
inView | object | 视图位置信息 | 详见视图中坐标信息 |
文档更新时间: 2024-05-20 22:10 作者:admin