diff --git a/packages/app/src/components/views/Form/DrawerForm.tsx b/packages/app/src/components/views/Form/DrawerForm.tsx
index 86b169f9c..4a5dffb99 100644
--- a/packages/app/src/components/views/Form/DrawerForm.tsx
+++ b/packages/app/src/components/views/Form/DrawerForm.tsx
@@ -112,9 +112,12 @@ export const DrawerForm = forwardRef((props: any, ref) => {
text(...args: any[]) {
return React.createElement('span', {}, ...args)
},
+ html(html: string) {
+ return
+ },
tooltip(title: string, offset = 3) {
return (
-
+ }>
diff --git a/packages/plugin-collections/src/collections/views.ts b/packages/plugin-collections/src/collections/views.ts
index cbd177f8d..5488fb652 100644
--- a/packages/plugin-collections/src/collections/views.ts
+++ b/packages/plugin-collections/src/collections/views.ts
@@ -199,19 +199,20 @@ export default {
},
},
{
- interface: 'select',
+ interface: 'radio',
type: 'string',
name: 'template',
- title: '模板',
+ title: '查看和编辑模式',
required: true,
dataSource: [
// { label: '表单', value: 'DrawerForm' },
- { label: '常规表格', value: 'Table' },
- { label: '简易表格', value: 'SimpleTable' },
+ { label: '常规模式', value: 'Table' },
+ { label: '快捷模式', value: 'SimpleTable' },
// { label: '日历模板', value: 'Calendar' },
],
component: {
- type: 'string',
+ tooltip: "{{ html('常规模式:点击数据进入查看界面,再次点击进入编辑界面
快捷模式:点击数据直接打开编辑界面') }}",
+ type: 'radio',
default: 'Table',
showInTable: true,
showInDetail: true,