fix: parameters
This commit is contained in:
@@ -85,7 +85,7 @@ customElement("md-token", { size: 50, defaultThickness: 2 }, (props, { element }
|
||||
name: layer.name || `图层 ${index + 1}`,
|
||||
enabled: true,
|
||||
thickness: props.defaultThickness || 2,
|
||||
color: layer.color || `hsl(${(index * 60) % 360}, 70%, 50%)`,
|
||||
color: `#${layer.color.getHexString()}` || `hsl(${(index * 60) % 360}, 70%, 50%)`,
|
||||
}));
|
||||
setLayers(layerSettings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user