1. fix event-setter;

2. update demo schema;
This commit is contained in:
金禅 2020-08-16 18:15:12 +08:00
parent 28f172160d
commit 6138da27b4
3 changed files with 590 additions and 10 deletions

View File

@ -13737,7 +13737,7 @@
"size": "medium",
"htmlType": "button",
"component": "button",
"children": ["取消"]
"children": "取消"
}
}
},
@ -13751,7 +13751,7 @@
"size": "medium",
"htmlType": "button",
"component": "button",
"children": ["提交"]
"children": "提交"
}
}
}
@ -13779,7 +13779,8 @@
"style": {
"margin": "0 5px 0 5px"
},
"htmlType": "submit"
"htmlType": "submit",
"children": "提交"
},
"children": [
{
@ -13787,8 +13788,7 @@
"props": {
"type": "success"
}
},
"提交"
}
]
}, {
"componentName": "Button",
@ -13797,9 +13797,9 @@
"style": {
"margin": "0 5px 0 5px"
},
"htmlType": "reset"
},
"children": "重置"
"htmlType": "reset",
"children": "重置"
}
}]
}
}

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@ export default class EventsSetter extends Component<{
selectType: null,
nativeEventList: [],
lifeCycleEventList: [],
eventDataList: (this.props.value.eventDataList?this.props.value.eventDataList:this.props.value) || [],
eventDataList: (this.props?.value?.eventDataList ? this.props.value.eventDataList : this.props?.value) || [],
relatedEventName: '',
};