From cbc81f117334523bf7fa5f3189d246b4f6f99b4d Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 9 Dec 2020 20:47:58 +0800 Subject: [PATCH] add example collection options for app --- packages/app/src/api/collections/example.ts | 72 +++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/packages/app/src/api/collections/example.ts b/packages/app/src/api/collections/example.ts index 28c344422..ae7b2ffae 100644 --- a/packages/app/src/api/collections/example.ts +++ b/packages/app/src/api/collections/example.ts @@ -22,5 +22,77 @@ export default { showInForm: true, }, }, + { + interface: 'phone', + title: '手机号', + component: { + showInTable: true, + showInDetail: true, + showInForm: true, + }, + }, + { + interface: 'email', + title: '邮箱', + component: { + showInTable: true, + showInDetail: true, + showInForm: true, + }, + }, + { + interface: 'number', + title: '数字', + component: { + showInTable: true, + showInDetail: true, + showInForm: true, + }, + }, + { + interface: 'percent', + title: '百分比', + component: { + showInTable: true, + showInDetail: true, + showInForm: true, + }, + }, + { + interface: 'datetime', + title: '日期', + component: { + showInTable: true, + showInDetail: true, + showInForm: true, + }, + }, + { + interface: 'time', + title: '时间', + component: { + showInTable: true, + showInDetail: true, + showInForm: true, + }, + }, + { + interface: 'createdAt', + title: '创建日期', + component: { + showInTable: true, + showInDetail: true, + // showInForm: true, + }, + }, + { + interface: 'updatedAt', + title: '更新日期', + component: { + showInTable: true, + showInDetail: true, + // showInForm: true, + }, + } ], };