修复 crud columns项配置 search.controls时,渲染异常 (#1648)

This commit is contained in:
CarayToboo 2021-03-14 16:14:21 +08:00 committed by GitHub
parent 9ffb5696c2
commit b5d329b2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,8 @@ export class HeadCellSearchDropDown extends React.Component<
if (searchable.controls || searchable.tabs || searchable.fieldSet) {
schema = {
title: '',
...searchable
...searchable,
controls: searchable.controls ? [...searchable.controls] : undefined
};
} else {
schema = {

View File

@ -165,7 +165,7 @@ function str2function(
}
}
function responseAdaptor(ret: fetcherResult, api: ApiObject) {
export function responseAdaptor(ret: fetcherResult, api: ApiObject) {
const data = ret.data;
let hasStatusField = true;