mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix legacy setting render
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -90,7 +90,8 @@ function schemaToSettings(schema: Schema<any>) {
|
||||
| (s.meta?.disabled ? FLAG_DISABLED : 0);
|
||||
const type = s.type === 'number' ? 'number'
|
||||
: s.type === 'boolean' ? 'checkbox'
|
||||
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
|
||||
: s.meta?.role === 'markdown' ? 'markdown'
|
||||
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
|
||||
if (s.meta?.role === 'password') flag |= FLAG_SECRET;
|
||||
const options = {};
|
||||
for (const item of s.list || []) {
|
||||
|
||||
Reference in new issue
Block a user