fix: parameters

This commit is contained in:
2026-03-16 09:39:43 +08:00
parent cde2134b4b
commit 342cf97a50
4 changed files with 4 additions and 13 deletions
+1 -1
View File
@@ -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);
}