|
|
|
@ -282,7 +282,7 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[
|
|
|
|
|
|
|
|
|
|
|
|
// 给options添加国际化
|
|
|
|
// 给options添加国际化
|
|
|
|
const filterOptions = (options: Recordable, labelField?: string) => {
|
|
|
|
const filterOptions = (options: Recordable, labelField?: string) => {
|
|
|
|
return options.map((v: Recordable) => {
|
|
|
|
return options?.map((v: Recordable) => {
|
|
|
|
if (labelField) {
|
|
|
|
if (labelField) {
|
|
|
|
v['labelField'] = t(v.labelField)
|
|
|
|
v['labelField'] = t(v.labelField)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|