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 = () => {
个人资料
-
+
+ 角色切换
+
+
+
+
+
+ 语言设置
+
+
{
- 创建模板
+ 添加模板
diff --git a/packages/client/src/schemas/calendar/ActionBar.tsx b/packages/client/src/schemas/calendar/ActionBar.tsx
index 598d18d0d..216ff08c8 100644
--- a/packages/client/src/schemas/calendar/ActionBar.tsx
+++ b/packages/client/src/schemas/calendar/ActionBar.tsx
@@ -164,7 +164,7 @@ function generateActionSchema(type) {
},
create: {
type: 'void',
- title: '创建',
+ title: '添加',
'x-align': 'right',
'x-designable-bar': 'Calendar.ActionDesignableBar',
'x-component': 'Action',
@@ -179,7 +179,7 @@ function generateActionSchema(type) {
properties: {
modal: {
type: 'void',
- title: '创建数据',
+ title: '添加数据',
'x-decorator': 'Form',
'x-component': 'Action.Drawer',
'x-component-props': {
@@ -223,7 +223,7 @@ function AddActionButton() {
{ title: '标题', name: 'title' },
{ title: '视图切换', name: 'viewSelect' },
{ title: '筛选', name: 'filter' },
- { title: '创建', name: 'create' },
+ { title: '添加', name: 'create' },
].map((item) => (
{
>
}
+ placeholder={'填写数据表名称'}
+ enterButton={<> 创建>}
value={newValue}
onChange={(e) => {
setNewValue(e.target.value);
diff --git a/packages/client/src/schemas/database-field/interfaces/createdAt.ts b/packages/client/src/schemas/database-field/interfaces/createdAt.ts
index a3e8c3d2c..bc516c2fb 100644
--- a/packages/client/src/schemas/database-field/interfaces/createdAt.ts
+++ b/packages/client/src/schemas/database-field/interfaces/createdAt.ts
@@ -7,7 +7,7 @@ export const createdAt: FieldOptions = {
type: 'object',
group: 'systemInfo',
order: 1,
- title: '创建时间',
+ title: '添加时间',
sortable: true,
default: {
dataType: 'date',
@@ -15,7 +15,7 @@ export const createdAt: FieldOptions = {
// name,
uiSchema: {
type: 'datetime',
- title: '创建时间',
+ title: '添加时间',
'x-component': 'DatePicker',
'x-component-props': {},
'x-read-pretty': true,
diff --git a/packages/client/src/schemas/database-field/interfaces/createdBy.ts b/packages/client/src/schemas/database-field/interfaces/createdBy.ts
index 9d0777798..1350757a1 100644
--- a/packages/client/src/schemas/database-field/interfaces/createdBy.ts
+++ b/packages/client/src/schemas/database-field/interfaces/createdBy.ts
@@ -7,7 +7,7 @@ export const createdBy: FieldOptions = {
type: 'object',
group: 'systemInfo',
order: 3,
- title: '创建人',
+ title: '添加人',
isAssociation: true,
default: {
dataType: 'belongsTo',
@@ -16,7 +16,7 @@ export const createdBy: FieldOptions = {
// name,
uiSchema: {
type: 'object',
- title: '创建人',
+ title: '添加人',
'x-component': 'Select.Drawer',
'x-component-props': {
fieldNames: {
diff --git a/packages/client/src/schemas/form/index.md b/packages/client/src/schemas/form/index.md
index d591f89c7..0dfd4423e 100644
--- a/packages/client/src/schemas/form/index.md
+++ b/packages/client/src/schemas/form/index.md
@@ -27,7 +27,7 @@ group:
-// Form 用作 decorator 时只用于创建独立的作用域
+// Form 用作 decorator 时只用于添加独立的作用域
diff --git a/packages/client/src/schemas/kanban/demos/demo1.tsx b/packages/client/src/schemas/kanban/demos/demo1.tsx
index 7d2706a8c..91f8e7343 100644
--- a/packages/client/src/schemas/kanban/demos/demo1.tsx
+++ b/packages/client/src/schemas/kanban/demos/demo1.tsx
@@ -137,8 +137,11 @@ const schema: ISchema = {
properties: {
modal: {
type: 'void',
- title: '创建数据',
+ title: '添加数据',
'x-decorator': 'Form',
+ 'x-decorator-props': {
+ useResource: '{{ Kanban.useCreateResource }}',
+ },
'x-component': 'Action.Drawer',
'x-component-props': {
useOkAction: '{{ Kanban.useCreateAction }}',
diff --git a/packages/client/src/schemas/menu/index.tsx b/packages/client/src/schemas/menu/index.tsx
index bb3251634..8a8e50f7e 100644
--- a/packages/client/src/schemas/menu/index.tsx
+++ b/packages/client/src/schemas/menu/index.tsx
@@ -101,7 +101,7 @@ const SideMenu = (props: any) => {
icon={}
className={`nb-add-new-menu-item menu-mode-inline designable-btn designable-btn-dash`}
>
- 创建菜单项
+ 添加菜单项
@@ -216,7 +216,7 @@ export const Menu: any = observer((props: any) => {
icon={}
type={mode == 'inline' ? 'dashed' : 'primary'}
>
- 创建菜单项
+ 添加菜单项
@@ -404,7 +404,7 @@ Menu.AddNew = observer((props: any) => {
const schemas = {
'Menu.Link': {
icon: ,
- title: '创建页面',
+ title: '添加页面',
schema: {
type: 'object',
properties: {
@@ -426,7 +426,7 @@ Menu.AddNew = observer((props: any) => {
},
'Menu.SubMenu': {
icon: ,
- title: '创建分组',
+ title: '添加分组',
schema: {
type: 'object',
properties: {
@@ -448,7 +448,7 @@ Menu.AddNew = observer((props: any) => {
},
'Menu.URL': {
icon: ,
- title: '创建链接',
+ title: '添加链接',
schema: {
type: 'object',
properties: {
diff --git a/packages/client/src/schemas/table/SimpleDesignableBar.tsx b/packages/client/src/schemas/table/SimpleDesignableBar.tsx
index 760f39fa1..0f60e9a23 100644
--- a/packages/client/src/schemas/table/SimpleDesignableBar.tsx
+++ b/packages/client/src/schemas/table/SimpleDesignableBar.tsx
@@ -139,7 +139,7 @@ export const SimpleDesignableBar = observer((props) => {
'x-component': 'Select',
enum: [
{
- label: '创建数据',
+ label: '添加数据',
value: 'create',
},
{
diff --git a/packages/client/src/schemas/table/demos/demo3.tsx b/packages/client/src/schemas/table/demos/demo3.tsx
index 045667faf..45482a681 100644
--- a/packages/client/src/schemas/table/demos/demo3.tsx
+++ b/packages/client/src/schemas/table/demos/demo3.tsx
@@ -53,13 +53,13 @@ const schema: ISchema = {
[uid()]: {
type: 'void',
name: 'action1',
- title: '创建',
+ title: '添加',
'x-component': 'Action',
'x-designable-bar': 'Table.Action.DesignableBar',
properties: {
modal: {
type: 'void',
- title: '创建数据',
+ title: '添加数据',
'x-decorator': 'Form',
'x-component': 'Action.Modal',
'x-component-props': {
diff --git a/packages/client/src/schemas/table/index.tsx b/packages/client/src/schemas/table/index.tsx
index aef1bece1..3dd187a29 100644
--- a/packages/client/src/schemas/table/index.tsx
+++ b/packages/client/src/schemas/table/index.tsx
@@ -883,7 +883,7 @@ function generateActionSchema(type) {
key: uid(),
type: 'void',
name: uid(),
- title: '创建',
+ title: '添加',
'x-align': 'right',
'x-decorator': 'AddNew.Displayed',
'x-decorator-props': {
@@ -898,7 +898,7 @@ function generateActionSchema(type) {
properties: {
modal: {
type: 'void',
- title: '创建数据',
+ title: '添加数据',
'x-decorator': 'Form',
'x-component': 'Action.Drawer',
'x-component-props': {
@@ -1071,7 +1071,7 @@ function AddActionButton() {
{[
{ title: '筛选', name: 'filter' },
{ title: '导出', name: 'export' },
- { title: '创建', name: 'create' },
+ { title: '添加', name: 'create' },
{ title: '删除', name: 'destroy' },
].map((item) => (
{
type={'dashed'}
icon={}
onClick={async () => {
- const values = await FormDialog('创建标签页', () => {
+ const values = await FormDialog('添加标签页', () => {
return (
{
await createSchema(data);
}}
>
- 创建标签页
+ 添加标签页
)
}