mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-06 21:40:23 +08:00
feat: support switching the custom widget to the expression
This commit is contained in:
parent
38835afd81
commit
7298ccd014
@ -39,7 +39,11 @@ export function shouldDisplayLabel(spec: JSONSchema7, label: string): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function getCodeMode(spec: JSONSchema7): boolean {
|
||||
export function getCodeMode(spec: WidgetProps['spec']): boolean {
|
||||
if (spec.widget) {
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (spec.type) {
|
||||
case 'array':
|
||||
case 'object':
|
||||
|
Loading…
x
Reference in New Issue
Block a user