adaelixir commented on issue #21433: URL: https://github.com/apache/echarts/issues/21433#issuecomment-3685464969
@ThomasKro @plainheart 我认为这个的根本原因是,`select`对于父节点本身就是不生效的,比如下面的这个`select.itemStyle.color`应该是黄色,但是却错误地应用了`borderColor`的颜色,最快捷的方式就是把对于父元素(Blob、Pool)的选中态禁用掉,`'disabled': true`. I think the fundamental issue is that the `select` property is inherently incompatible with parent elements that have `upperLabel` configured. For instance, the `select.itemStyle.color` in the example below should render as yellow, but instead it erroneously inherits the `borderColor`. The most straightforward workaround is to simply disable selection for parent elements, `"disabled": true`. [try this link](https://echarts.apache.org/examples/en/editor.html?c=treemap-show-parent&code=7Vptb9s2EP6eX0GoA2QjmezEcbI4aYE1wdBiKRKs2fohCAJaoi02kihIdFZj6H_fUS8WJVkSaTdFUVhAa5t3xzs-d_ecbMVfXro44lbssn-vGXZoMO_1z_d-seaE9_66ubl7vP397h3aR-bAwRwPcBwTnr51aPxk8YgQ63PMAvMAzRaBzSkLUE-IrkCnj_7bQyj34VKHSD5QYQDOrskz8W5C8bGXmiEUEb6IAnSffEDZorgoJ_5HvvTIRFpEaMoih0SXzGPRBJmvTk9PzYOa-BN1uDtBQ1kyx2G2fLha_VooLMKQRNd4SryyPwHaBM2wF5PCLHu3MteNejweN0c91oia-KGLYxqXvTUEUQvDcRxTkufHaj2gLYw_YkgaFnmcoPuhNRofoKE1fijiaoWh45x1YJKAZZ9D66Qea_L6IGpOvF0VPeFZxSXyHks-oNeruDjl5TA5-cIBnSuob_R3jOdESpVHZkJmk4CTKMduhRJnzOM0lDebscjHHJShhlatQ4MZy-s_vZ5xBP-8BYHAhNRKPoizyBqiEW8xd9-DRq4orzXpg-59AowUFeoJDQqiw3N4uShtbnkkmHMXBPv75UDhkJmeFS5itydb3dMHK8A-Sfq-XlS1Xk8v88Khz8j2gHVeGxmCvyZJMd6YaL-kCwVvi6zGVoqrRQKbOeTd3YfrVSTWZ0aDnjkw-_2atXkBjPb8ptR7sFqkGnILPFhxgh3nkvk-jgEyyApsC1p_vpVb5yHzakpnrzVRTCJKoFXv91JEDb4MiTGBVwjdx6GRKhrUkRYfU6tHWMzEMfGIzYnzAU4uFP2FgAzgyuQBrF961H4CYcJb2XrBcCAocmoIhoMVHi0yzWR1xgL-idC5y0F2MpSo1HDz5XG2mp3Q8FQ3D1lMR SuI8GkQw8y4Y-E19FZ2hrURlFxNI4IdO1r407X-Cr7ODcQ4A0FRe-WqNkThinDesqkURCKyXeo5ERHRlku3vk1tu1so6Mp-avu271_z8w_zFj5Bhw2-1vqU-Hqt7orESxA3by1YWsTyanx8NrKPO0JJ01jwu6YlC7FN-RKsSgOj1U8yYcAiLaWmSxqva_eqV7kCJMPhsONUXW4b2ndL31uFlN99qAWkV05pN_OIPZGiPGygYpIT4UsU5HZFKcWcl1px19YI8lYpSIfBiyVgBWGkBHtHtJvUsXYfqcah3sabhbBVWsW0eh845At4HHXohnDTIwI7HMB1JP4bdU2B5D6mtTpbAtSbSEe7ibSbSN_e9270_Oyjp5KAOXwdCrTh17KqgK9lqw39blJ--0l5rD0pu1rre07Kzqm9m5S7SbmblLtJ2ZGAcBEVvwaq469nVoFfz3g3LH-AYVl6_KI0LMcvNiwbppliM0ggjkbjq7M2FqjxRreFNK3WKjWcSaESpMD_SK6GMJo8KNb8tm6UJogGcW02MXSyvFmmtbhpfSM2QagwAQx4oI6nHuCQPS5BgwECYBB3afwSsKt8vylAXxLPg0creph3_2qojndLh2pwvzLhtvlT43h1V1qlJHP4UYNOmbubnj_ldP1bTVyOqMLOHSUnHfvo7Hh0sm5q1HqzWbOJfSvwtOSki_6qO3VUk-52reyp0L56bKmCvl4GlLq0XDBVCBrZT4_zNgCrjeMUuU3rVrf8ZbXhl_tuNNf0gQLHdRLOun3buax7y9bEy1xV-apfcFT1cfvqLvJwOCyoKfvznr3c4UP6dL8PL_A3F1_75_8D&enc=deflate&lang=js) <img width="1523" height="762" alt="Image" src="https://github.com/user-attachments/assets/39439633-85f7-4b86-a3d0-ad4a8b4547cb" /> 另外,文档这里对于`select`的`itemStyle`也不够完善 Additionally, the documentation here is incomplete regarding the `itemStyle` within `select`. <img width="1100" height="685" alt="Image" src="https://github.com/user-attachments/assets/a60f6f42-3bab-4f3c-9bd2-5b97dffc010b" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
