diff --git a/web/src/components/chunk-method-modal/hooks.ts b/web/src/components/chunk-method-modal/hooks.ts index 8f605ba55..27e5a903b 100644 --- a/web/src/components/chunk-method-modal/hooks.ts +++ b/web/src/components/chunk-method-modal/hooks.ts @@ -74,9 +74,9 @@ export const useFetchParserListOnMount = ( setSelectedTag(parserId); }, [parserId, documentId]); - const handleChange = (tag: string, checked: boolean) => { - const nextSelectedTag = checked ? tag : selectedTag; - setSelectedTag(nextSelectedTag); + const handleChange = (tag: string) => { + // const nextSelectedTag = checked ? tag : selectedTag; + setSelectedTag(tag); }; return { parserList: nextParserList, handleChange, selectedTag }; diff --git a/web/src/components/chunk-method-modal/index.less b/web/src/components/chunk-method-modal/index.less index 8123b026c..ec79449bf 100644 --- a/web/src/components/chunk-method-modal/index.less +++ b/web/src/components/chunk-method-modal/index.less @@ -8,3 +8,7 @@ cursor: help; writing-mode: horizontal-tb; } + +.chunkMethod { + margin-bottom: 0; +} diff --git a/web/src/components/chunk-method-modal/index.tsx b/web/src/components/chunk-method-modal/index.tsx index 7f592b546..7490b9b5d 100644 --- a/web/src/components/chunk-method-modal/index.tsx +++ b/web/src/components/chunk-method-modal/index.tsx @@ -13,9 +13,9 @@ import { Form, InputNumber, Modal, + Select, Space, Switch, - Tag, Tooltip, } from 'antd'; import omit from 'lodash/omit'; @@ -25,8 +25,6 @@ import { useFetchParserListOnMount } from './hooks'; import { useTranslate } from '@/hooks/commonHooks'; import styles from './index.less'; -const { CheckableTag } = Tag; - interface IProps extends Omit { loading: boolean; onOk: ( @@ -113,21 +111,14 @@ const ChunkMethodModal: React.FC = ({ afterClose={afterClose} > -
- {parserList.map((x) => { - return ( - { - handleChange(x.value, checked); - }} - > - {x.label} - - ); - })} -
+ +