@@ -427,7 +430,7 @@ export default class PickerControl extends React.PureComponent<
{render(
'modal',
{
- title: '请选择',
+ title: __('请选择'),
size: size,
type: modalMode,
body: {
diff --git a/src/renderers/Form/Radios.tsx b/src/renderers/Form/Radios.tsx
index afed9d5dd..fa3c0536f 100644
--- a/src/renderers/Form/Radios.tsx
+++ b/src/renderers/Form/Radios.tsx
@@ -63,7 +63,8 @@ export default class RadiosControl extends React.Component
{
classPrefix,
itemClassName,
labelClassName,
- labelField
+ labelField,
+ translate: __
} = this.props;
return (
@@ -78,7 +79,7 @@ export default class RadiosControl extends React.Component {
delimiter={delimiter!}
labelClassName={labelClassName}
labelField={labelField}
- placeholder={placeholder}
+ placeholder={__(placeholder)}
options={options}
columnsCount={columnsCount}
classPrefix={classPrefix}
diff --git a/src/renderers/Form/Repeat.tsx b/src/renderers/Form/Repeat.tsx
index 626877064..f3adafa5b 100644
--- a/src/renderers/Form/Repeat.tsx
+++ b/src/renderers/Form/Repeat.tsx
@@ -4,7 +4,6 @@
*
* 不建议用,以后可能会删除。可以直接用组合出来,不需要新建一个组件。
*/
-/* eslint fecs-indent: [0, "space", 2, 2] */
import React from 'react';
import cx from 'classnames';
@@ -59,7 +58,13 @@ export default class RepeatControl extends React.Component {
renderInput() {
const value = this.props.value;
const parts = value ? value.split(':') : [];
- let {options, placeholder, disabled, classPrefix: ns} = this.props;
+ let {
+ options,
+ placeholder,
+ disabled,
+ classPrefix: ns,
+ translate: __
+ } = this.props;
let optionsArray: Array