-
数据库模板语法分享 2 个仿 Notion 的数值显示图形:圆圈与条形
2025-01-17 15:30.action{ $display_mode := ternary "none" "flex" (eq $input nil) }$input 为空值的时候会有问题,可以换成:
.action{ $display_mode := ternary "none" "flex" (not $input) }
颜色没有适配暗黑模式,我推荐用变量:

.action{ $display_mode := ternary "none" "flex" (eq $input nil) }
$input 为空值的时候会有问题,可以换成:
.action{ $display_mode := ternary "none" "flex" (not $input) }
颜色没有适配暗黑模式,我推荐用变量:
