🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
我写新内容了 行数对不上 ``` { title: '透明度', type: "configSlide", bind: "alpha", config: { slideEnd: 10 } }, ``` ![](https://img.kancloud.cn/22/0a/220a7bf01715a43d66fc1cdf8f397aa7_896x635.png) ``` if (component.config.layers[n].alpha != null) component.config.alpha = component.config.layers[n].alpha; else delete(component.config.alpha); ``` ![](https://img.kancloud.cn/1c/07/1c077d2bdf08536af689df6642735c01_1051x381.png) ``` if (component.config.alpha != null) { component.config.layers[n].alpha = component.config.alpha; // delete(component.config.opactiy); } else { delete(component.config.layers[n].alpha); } ``` ![](https://img.kancloud.cn/2b/f4/2bf4b05422f6f562366698197b1d6282_992x472.png) 搜showCurrentLayer.rangeStyle 添加 ``` showCurrentLayer.alpha = layer.alpha; ``` ``` layer.layers[layerIndex].alpha = layer.alpha?(layer.alpha/10):0.5; ``` ![](https://img.kancloud.cn/20/9f/209f819e1ea5b675cc247ff3c2a39a85_974x210.png) ``` imgerLayer.alpha = layer.alpha?(layer.alpha/10):0.5; ``` ![](https://img.kancloud.cn/1a/5a/1a5abe3ddc87c0a0fa2d30a309d6255b_911x222.png) # 以上是设计页 # 以下是分享页 搜showCurrentLayer.rangeStyle 添加 ``` showCurrentLayer.alpha = layer.alpha; ``` ``` layer.layers[layerIndex].alpha = layer.alpha?(layer.alpha/10):0.5; ``` ![](https://img.kancloud.cn/20/9f/209f819e1ea5b675cc247ff3c2a39a85_974x210.png) ``` imgerLayer.alpha = layer.alpha?(layer.alpha/10):0.5; ``` ![](https://img.kancloud.cn/1a/5a/1a5abe3ddc87c0a0fa2d30a309d6255b_911x222.png) 效果 ![](https://img.kancloud.cn/ea/52/ea52eb83362305c88682cd2eb2fdc802_1610x747.png)