mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 03:38:32 +08:00
fix: input control can not input chinese
This commit is contained in:
parent
f28a56ea77
commit
7ce22d7267
@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { Button, Select, Input, Space, Form, InputNumber, DatePicker, TimePicker, Radio } from 'antd';
|
||||
import { PlusCircleOutlined, CloseCircleOutlined } from '@ant-design/icons';
|
||||
import useDynamicList from './useDynamicList';
|
||||
@ -225,9 +225,9 @@ const op = {
|
||||
};
|
||||
|
||||
const StringInput = (props) => {
|
||||
const { onChange, ...restProps } = props;
|
||||
const {value, onChange, ...restProps } = props;
|
||||
return (
|
||||
<Input {...restProps} onChange={(e) => {
|
||||
<Input {...restProps} defaultValue={value} onChange={(e) => {
|
||||
onChange(e.target.value);
|
||||
}}/>
|
||||
);
|
||||
@ -375,10 +375,16 @@ export function FilterItem(props: FilterItemProps) {
|
||||
<Select.Option value={option.value}>{option.label}</Select.Option>
|
||||
))} */}
|
||||
</Select>
|
||||
<ValueControl field={field} multiple={type === 'checkboxes' || !!field.multiple} op={dataSource.op} options={field.dataSource} value={dataSource.value} onChange={(value) => {
|
||||
onChange({...dataSource, value: value});
|
||||
}}
|
||||
style={{ width: 180 }}
|
||||
<ValueControl
|
||||
field={field}
|
||||
multiple={type === 'checkboxes' || !!field.multiple}
|
||||
op={dataSource.op}
|
||||
options={field.dataSource}
|
||||
value={dataSource.value}
|
||||
onChange={(value) => {
|
||||
onChange({...dataSource, value: value});
|
||||
}}
|
||||
style={{ width: 180 }}
|
||||
/>
|
||||
{showDeleteButton && (
|
||||
<Button className={'filter-remove-link filter-item'} type={'link'} style={{padding: 0}} onClick={(e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user