Commit 3135f7421fce7d1bc197d4953a353f9f03442c46
1 parent
dbe30fbc
fix: switch button can not send command
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | ... | @@ -13766,12 +13766,12 @@ class HandleDataSource { |
| 13766 | 13766 | const { data } = message |
| 13767 | 13767 | const type = this.getComponentType(node) |
| 13768 | 13768 | if (type === this.componentType.SWITCH) { |
| 13769 | - this.handleSwitchComponent(message) | |
| 13769 | + this.handleSwitchComponent(message, record) | |
| 13770 | 13770 | return |
| 13771 | 13771 | } |
| 13772 | 13772 | |
| 13773 | 13773 | if (type === this.componentType.PARAMS_SETTING_BUTTON) { |
| 13774 | - this.handleParamSettingButton(message) | |
| 13774 | + this.handleParamSettingButton(message, record) | |
| 13775 | 13775 | return |
| 13776 | 13776 | } |
| 13777 | 13777 | |
| ... | ... | @@ -13812,6 +13812,7 @@ class HandleDataSource { |
| 13812 | 13812 | flag = true |
| 13813 | 13813 | this.updatePage(() => { |
| 13814 | 13814 | const style = node.getStyle() |
| 13815 | + if ((style || '').includes(imagePath)) return | |
| 13815 | 13816 | const sendValue = getSendValue(type) |
| 13816 | 13817 | node.setStyle(style.replace(reg, `image=${imagePath}`)) |
| 13817 | 13818 | node.setAttribute('label', '') | ... | ... |