修正 fa fab 的字体优先级,微信、QQ、微博等图标现在使用 Brands 字体。

This commit is contained in:
2026-08-19 23:11:44 +08:00
parent 3312323f6e
commit 13ed02c93a
4 changed files with 28 additions and 0 deletions
+7
View File
@@ -215,6 +215,13 @@ class SchemaProvider {
}
if (in_array($type, ['select', 'radio', 'palette', 'image_select'], true) && !empty($field['options'])) {
// Optional enum fields use an empty string to mean "unset".
// This is required for clearable palettes such as the footer
// background preset, whose default is intentionally empty.
if ($value === '' && empty($field['required'])) {
continue;
}
$valid_values = array_column($field['options'], 'value');
// Multi-select: accept array values when schema.multiple is set
// (legacy / SPA may still use type=select multiple).