Commit a75a5f0bcd638d4e91abf72a2125b64d76241024
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 | 11 | |
| 12 | 12 | import '../style/reset.less'; |
| 13 | 13 | import './styles.less'; |
| 14 | +// import {cloneDeep} from "lodash-es"; | |
| 14 | 15 | |
| 15 | 16 | const { Title, Text } = Typography; |
| 16 | 17 | /** |
| ... | ... | @@ -62,6 +63,7 @@ const RelItemOption: React.FC<any> = (riProps) => { |
| 62 | 63 | } |
| 63 | 64 | }, [riProps]); |
| 64 | 65 | |
| 66 | + // 另一种写法搜索,暂存,不要删除 | |
| 65 | 67 | // const filter = (word: string) => { |
| 66 | 68 | // if (list) { |
| 67 | 69 | // const _data = cloneDeep(list); |
| ... | ... | @@ -135,6 +137,22 @@ const RelItemOption: React.FC<any> = (riProps) => { |
| 135 | 137 | placeholder={riProps.placeholder || '请选择数据源'} |
| 136 | 138 | options={list} |
| 137 | 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 | 156 | onChange={(val) => { |
| 139 | 157 | const _list = list.filter((el: any) => el.code === val); |
| 140 | 158 | if (_list?.length) { | ... | ... |