{{ label() }}
{{ model() || '未选择' }}
@if (clearable() && model()) {
}
@if (showHexInput()) {
@for (m of ['hex', 'rgb', 'hsl']; track m) {
}
@switch (inputMode()) {
@case ('hex') {
#
}
@case ('rgb') {
@for (ch of ['r', 'g', 'b']; track ch) {
}
}
@case ('hsl') {
@for (ch of ['h', 's', 'l']; track ch) {
}
}
}
}
@if (recents().length > 0) {
最近使用
@for (c of recents(); track c) {
}
}
预设色板
@for (c of presets(); track c) {
}
@if (copyable()) {
}
@if (clearable()) {
}