From f8c3c6a19b1d52794c617fec09640cad07af3058 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 27 Aug 2021 18:26:10 +0800 Subject: [PATCH] feat: improve text --- .../Permissions/ActionPermissionField.tsx | 2 +- .../admin-layout/Permissions/index.tsx | 4 +- .../src/components/admin-layout/UserInfo.tsx | 42 +++++++++++++------ .../src/components/admin-layout/style.less | 2 +- packages/client/src/schemas/add-new/index.md | 4 +- packages/client/src/schemas/add-new/index.tsx | 12 +++--- .../client/src/schemas/calendar/ActionBar.tsx | 6 +-- .../src/schemas/calendar/demos/demo1.tsx | 2 +- .../src/schemas/database-field/index.tsx | 4 +- .../database-field/interfaces/createdAt.ts | 4 +- .../database-field/interfaces/createdBy.ts | 4 +- packages/client/src/schemas/form/index.md | 2 +- .../client/src/schemas/kanban/demos/demo1.tsx | 5 ++- packages/client/src/schemas/menu/index.tsx | 10 ++--- .../src/schemas/table/SimpleDesignableBar.tsx | 2 +- .../client/src/schemas/table/demos/demo3.tsx | 4 +- packages/client/src/schemas/table/index.tsx | 6 +-- packages/client/src/schemas/tabs/index.tsx | 4 +- 18 files changed, 70 insertions(+), 49 deletions(-) diff --git a/packages/client/src/components/admin-layout/Permissions/ActionPermissionField.tsx b/packages/client/src/components/admin-layout/Permissions/ActionPermissionField.tsx index aa1492768..e2e852b20 100644 --- a/packages/client/src/components/admin-layout/Permissions/ActionPermissionField.tsx +++ b/packages/client/src/components/admin-layout/Permissions/ActionPermissionField.tsx @@ -20,7 +20,7 @@ import { useState } from 'react'; const actionTypeMap = new Map( Object.entries({ - create: '创建', + create: '添加', get: '查看', update: '编辑', destroy: '删除', diff --git a/packages/client/src/components/admin-layout/Permissions/index.tsx b/packages/client/src/components/admin-layout/Permissions/index.tsx index a3b3b909c..81db29e69 100644 --- a/packages/client/src/components/admin-layout/Permissions/index.tsx +++ b/packages/client/src/components/admin-layout/Permissions/index.tsx @@ -299,7 +299,7 @@ const schema: ISchema = { }, [uid()]: { type: 'void', - title: '创建', + title: '添加', 'x-align': 'right', 'x-decorator': 'AddNew.Displayed', 'x-decorator-props': { @@ -313,7 +313,7 @@ const schema: ISchema = { properties: { modal: { type: 'void', - title: '创建数据', + title: '添加数据', 'x-decorator': 'Form', 'x-component': 'Action.Drawer', 'x-component-props': { diff --git a/packages/client/src/components/admin-layout/UserInfo.tsx b/packages/client/src/components/admin-layout/UserInfo.tsx index 40b7a86e7..e5c42df3c 100644 --- a/packages/client/src/components/admin-layout/UserInfo.tsx +++ b/packages/client/src/components/admin-layout/UserInfo.tsx @@ -61,18 +61,36 @@ export const UserInfo = () => { 个人资料 - + + + +
+ 语言设置 +