Commit c551e6524672746b84263237e61d8ccb3e542e78

Authored by ww
1 parent 066248da

fix: 修复开关按钮设置文字后预览页面文字丢失

@@ -14789,7 +14789,7 @@ class HandleDataSource { @@ -14789,7 +14789,7 @@ class HandleDataSource {
14789 if ((style || '').includes(imagePath)) return 14789 if ((style || '').includes(imagePath)) return
14790 const sendValue = getSendValue(type) 14790 const sendValue = getSendValue(type)
14791 node.setStyle(style.replace(reg, `image=${imagePath}`)) 14791 node.setStyle(style.replace(reg, `image=${imagePath}`))
14792 - node.setAttribute('label', '') 14792 + // node.setAttribute('label', '')
14793 node.setAttribute(SWITCH_VALUE, receiveValue) 14793 node.setAttribute(SWITCH_VALUE, receiveValue)
14794 node.setAttribute(SWITCH_SEND_VALUE, sendValue) 14794 node.setAttribute(SWITCH_SEND_VALUE, sendValue)
14795 node.setAttribute(SWITCH_STATE, type) 14795 node.setAttribute(SWITCH_STATE, type)