编排新增循环

This commit is contained in:
fofolee
2025-01-02 01:09:18 +08:00
parent 37ebebc5ac
commit 620f42d64b
7 changed files with 294 additions and 51 deletions

View File

@@ -10,8 +10,8 @@ const STYLE_CONSTANTS = {
goldenRatio: 0.618033988749895,
hueStep: 360 * 0.618033988749895,
indent: 5,
lightSl: "60%, 60%",
darkSl: "60%, 40%",
lightSl: "70%, 60%",
darkSl: "60%, 60%",
};
// 工具函数
@@ -158,10 +158,18 @@ export default defineComponent({
boxShadow: shadows.light.join(", "),
};
styleRules["." + className + " .control-type-label"] = {
color: `hsl(${hue}, ${lightSl})`,
};
styleRules[".body--dark ." + className] = {
...commonStyle,
boxShadow: shadows.dark.join(", "),
};
styleRules[".body--dark ." + className + " .control-type-label"] = {
color: `hsl(${hue}, ${darkSl})`,
};
});
// 4. 生成最终的样式字符串