fl-web-component 1.3.21 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fl-web-component",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "scripts": {
5
5
  "tip1": "仅调试本组件不涉及业务组件,请执行dev",
6
6
  "dev": "vue-cli-service serve",
@@ -361,10 +361,10 @@ function draw3Dmodel(geom, instanceName, instanceCount, nColor, nOpacity) {
361
361
  let material, mesh, colors, opacity;
362
362
  if (Array.isArray(color) && color.length) {
363
363
  colors = color;
364
- opacity = colors[3];
364
+ opacity = colors[3] || 1;
365
365
  } else if (typeof color === 'string') {
366
366
  colors = color.split(',');
367
- opacity = colors[3];
367
+ opacity = colors[3] || 1;
368
368
  } else {
369
369
  colors = [255, 255, 255];
370
370
  opacity = 1;