Commit a75a5f0bcd638d4e91abf72a2125b64d76241024

Authored by 陈洋
2 parents ca954baa 1cf89dee

Merge remote-tracking branch 'origin/feature/dataflow' into feature/dataflow

Showing 1 changed file with 18 additions and 0 deletions
@@ -11,6 +11,7 @@ import { @@ -11,6 +11,7 @@ import {
11 11
12 import '../style/reset.less'; 12 import '../style/reset.less';
13 import './styles.less'; 13 import './styles.less';
  14 +// import {cloneDeep} from "lodash-es";
14 15
15 const { Title, Text } = Typography; 16 const { Title, Text } = Typography;
16 /** 17 /**
@@ -62,6 +63,7 @@ const RelItemOption: React.FC<any> = (riProps) => { @@ -62,6 +63,7 @@ const RelItemOption: React.FC<any> = (riProps) => {
62 } 63 }
63 }, [riProps]); 64 }, [riProps]);
64 65
  66 + // 另一种写法搜索,暂存,不要删除
65 // const filter = (word: string) => { 67 // const filter = (word: string) => {
66 // if (list) { 68 // if (list) {
67 // const _data = cloneDeep(list); 69 // const _data = cloneDeep(list);
@@ -135,6 +137,22 @@ const RelItemOption: React.FC<any> = (riProps) => { @@ -135,6 +137,22 @@ const RelItemOption: React.FC<any> = (riProps) => {
135 placeholder={riProps.placeholder || '请选择数据源'} 137 placeholder={riProps.placeholder || '请选择数据源'}
136 options={list} 138 options={list}
137 value={item?.code} 139 value={item?.code}
  140 + // 另一种样式
  141 + // options={list.filter((el: any)=> !el.deleted )}
  142 + // dropdownRender={(menu) =>(
  143 + // <>
  144 + // <Input
  145 + // className={'qx-selector-sub-search'}
  146 + // placeholder={'输入名称,回车搜索'}
  147 + // allowClear
  148 + // prefix={<QxBaseIcon type={'icon-app-search-line'} />}
  149 + // onChange={(e) => {
  150 + // handleChange(e.target.value);
  151 + // }}
  152 + // />
  153 + // {menu}
  154 + // </>
  155 + // )}
138 onChange={(val) => { 156 onChange={(val) => {
139 const _list = list.filter((el: any) => el.code === val); 157 const _list = list.filter((el: any) => el.code === val);
140 if (_list?.length) { 158 if (_list?.length) {