Revert "perf: crud"

This reverts commit 0b23ce416e.
This commit is contained in:
xingyu4j
2022-11-17 17:11:18 +08:00
parent 998d23db61
commit 905385d4ae
3 changed files with 39 additions and 25 deletions

View File

@ -181,7 +181,7 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns
}
eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
// 判断是否显示
if (schemaItem?.isTable !== false && schemaItem?.table?.show !== false) {
if (schemaItem?.isTable !== false) {
const tableSchemaItem = {
...schemaItem.table,
field: schemaItem.field,
@ -278,7 +278,7 @@ const filterDescriptionsSchema = (crudSchema: VxeCrudSchema): DescriptionsSchema
eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
// 判断是否显示
if (schemaItem?.isDetail !== false || schemaItem.detail?.show !== false) {
if (schemaItem?.isDetail !== false) {
const descriptionsSchemaItem = {
...schemaItem.detail,
field: schemaItem.field,