From b9f74197d325e84aeb84ba391052e8b1da19c6c5 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 12 Jan 2021 23:00:44 +0800 Subject: [PATCH] fix: add mode to view options --- packages/plugin-collections/src/collections/actions.ts | 3 ++- packages/plugin-collections/src/collections/fields.ts | 3 ++- packages/plugin-collections/src/collections/tabs.ts | 3 ++- packages/plugin-collections/src/collections/views.ts | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/plugin-collections/src/collections/actions.ts b/packages/plugin-collections/src/collections/actions.ts index e9409e460..e7ad804d1 100644 --- a/packages/plugin-collections/src/collections/actions.ts +++ b/packages/plugin-collections/src/collections/actions.ts @@ -134,7 +134,8 @@ export default { type: 'table', name: 'simple', title: '简易模式', - template: 'SimpleTable', + template: 'Table', + mode: 'simple', default: true, actionNames: ['destroy', 'create'], detailsViewName: 'details', diff --git a/packages/plugin-collections/src/collections/fields.ts b/packages/plugin-collections/src/collections/fields.ts index 8c24463aa..62e3ab084 100644 --- a/packages/plugin-collections/src/collections/fields.ts +++ b/packages/plugin-collections/src/collections/fields.ts @@ -536,7 +536,8 @@ export default { type: 'table', name: 'simple', title: '简易模式', - template: 'SimpleTable', + template: 'Table', + mode: 'simple', default: true, actionNames: ['destroy', 'create'], detailsViewName: 'details', diff --git a/packages/plugin-collections/src/collections/tabs.ts b/packages/plugin-collections/src/collections/tabs.ts index 6a62d73e9..85a78c845 100644 --- a/packages/plugin-collections/src/collections/tabs.ts +++ b/packages/plugin-collections/src/collections/tabs.ts @@ -277,7 +277,8 @@ export default { type: 'table', name: 'simple', title: '简易模式', - template: 'SimpleTable', + template: 'Table', + mode: 'simple', default: true, actionNames: ['destroy', 'create'], detailsViewName: 'details', diff --git a/packages/plugin-collections/src/collections/views.ts b/packages/plugin-collections/src/collections/views.ts index 22e4ad165..cf6b2d4b3 100644 --- a/packages/plugin-collections/src/collections/views.ts +++ b/packages/plugin-collections/src/collections/views.ts @@ -388,6 +388,7 @@ export default { name: 'simple', title: '简易模式', template: 'SimpleTable', + mode: 'simple', default: true, actionNames: ['destroy', 'create'], detailsViewName: 'details',