fix(client): improve translation

This commit is contained in:
chenos 2022-05-22 22:46:30 +08:00
parent e031e2e6c1
commit 2c98dab24c
3 changed files with 6 additions and 6 deletions

View File

@ -504,5 +504,5 @@ export default {
'Updated successfully': '更新成功', 'Updated successfully': '更新成功',
'After successful save': '保存成功后', 'After successful save': '保存成功后',
'After clicking the custom button, the following field values will be assigned according to the following form.': '点击当前自定义按钮时,以下字段值将按照以下表单赋值。', 'After clicking the custom button, the following field values will be assigned according to the following form.': '点击当前自定义按钮时,以下字段值将按照以下表单赋值。',
'After clicking the custom button, The following fields of the current record will be saved according to the following form.': '点击当前自定义按钮时,当前数据以下字段将按照以下表单保存。', 'After clicking the custom button, the following fields of the current record will be saved according to the following form.': '点击当前自定义按钮时,当前数据以下字段将按照以下表单保存。',
} }

View File

@ -47,10 +47,10 @@ export const ActionDesigner = (props) => {
const tips = { const tips = {
'customize:update': t( 'customize:update': t(
'After clicking the custom button, The following fields of the current record will be saved according to the following form.', 'After clicking the custom button, the following fields of the current record will be saved according to the following form.',
), ),
'customize:save': t( 'customize:save': t(
'After clicking the custom button, The following fields of the current record will be saved according to the following form.', 'After clicking the custom button, the following fields of the current record will be saved according to the following form.',
), ),
}; };
return ( return (
@ -160,7 +160,7 @@ export const ActionDesigner = (props) => {
}} }}
/> />
)} )}
{isValid(fieldSchema?.['x-action-settings']?.overwriteValues) && ( {/* {isValid(fieldSchema?.['x-action-settings']?.overwriteValues) && (
<SchemaSettings.ModalItem <SchemaSettings.ModalItem
title={t('Form values')} title={t('Form values')}
schema={ schema={
@ -192,7 +192,7 @@ export const ActionDesigner = (props) => {
} catch (e) {} } catch (e) {}
}} }}
/> />
)} )} */}
{isValid(fieldSchema?.['x-action-settings']?.['onSuccess']) && ( {isValid(fieldSchema?.['x-action-settings']?.['onSuccess']) && (
<SchemaSettings.ModalItem <SchemaSettings.ModalItem
title={ title={

View File

@ -76,7 +76,7 @@ export const GeneralSchemaDesigner = (props: any) => {
ctx?.renderSchemaInitializer?.({ ctx?.renderSchemaInitializer?.({
insertPosition: 'afterEnd', insertPosition: 'afterEnd',
wrap: rowCtx?.cols?.length > 1 ? undefined : gridRowColWrap, wrap: rowCtx?.cols?.length > 1 ? undefined : gridRowColWrap,
component: <PlusOutlined style={{ cursor: 'pointer', fontSize: 12 }} />, component: <PlusOutlined style={{ cursor: 'pointer', fontSize: 14 }} />,
})} })}
<SchemaSettings title={<MenuOutlined style={{ cursor: 'pointer', fontSize: 12 }} />} {...schemaSettingsProps}> <SchemaSettings title={<MenuOutlined style={{ cursor: 'pointer', fontSize: 12 }} />} {...schemaSettingsProps}>
{props.children} {props.children}