Commit 86a5e33e authored by XieZhiXiong's avatar XieZhiXiong

外部传入输入框

parent c548386d
......@@ -22,7 +22,7 @@ import CustomRadio from './components/CustomRadio';
import SearchSelect from './components/SearchSelect';
import TableTagList from './components/TableTagList';
import './index.less'
import { Checkbox, Input } from '@formily/antd-components';
import { Checkbox } from '@formily/antd-components';
export interface NiceFormProps extends IAntdSchemaFormProps {}
......@@ -86,7 +86,6 @@ export const componentExport = {
FlexBox,
Phone,
SearchSelect,
Input,
TableTagList,
}
const NiceForm: React.FC<NiceFormProps> = props => {
......
......@@ -4,6 +4,7 @@ import { Button, Card, message } from 'antd';
import { StandardTable } from 'god';
import { ColumnType } from 'antd/lib/table/interface';
import { createFormActions } from '@formily/antd';
import { Input } from '@formily/antd-components';
import EyePreview from '@/components/EyePreview';
import StatusSwitch from '@/components/StatusSwitch';
import NiceForm from '@/components/NiceForm';
......@@ -141,6 +142,9 @@ const MemberLevel: React.FC<[]> = () => {
controlRender={
<NiceForm
actions={formActions}
components={{
Input,
}}
onSubmit={values => ref.current.reload(values)}
effects={($, actions) => {
// $('onFieldInputChange', 'levelTag').subscribe(state => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment