schema = {
properties: {
colortheme: {
type: "string",
title: "主题切换",
ui: {
widget: "wrapper",
module: "color-select-widget",
optionalHelp: "主题里面已搭配字体颜色",
spanLabel: 12,
spanControl: 12,
grid: {
span: 8,
},
},
},
calltitle_font: {
type: "string",
title: "标题",
default: {
value: 2.5,
color: '',
checked: true
},
ui: {
spanLabel: 6,
spanControl: 14,
widget: "wrapper",
module: "font-styles",
grid: {
span: 12,
},
visibleIf: {enabled: (value: any) => value === true,},
},
},
}
}
把主题切换里面的颜色传给下面默认的color,让下面的color默认值能够根据不同的值来切换