feat: add api-based extension & external data tool & moderation (#1459)

This commit is contained in:
zxhlyh
2023-11-06 19:36:32 +08:00
committed by GitHub
parent db43ed6f41
commit 32747641e4
84 changed files with 3327 additions and 167 deletions

View File

@@ -14,12 +14,14 @@ type IIndexMethodRadioProps = {
value?: DataSet['indexing_technique']
onChange: (v?: DataSet['indexing_technique']) => void
disable?: boolean
itemClassName?: string
}
const IndexMethodRadio = ({
value,
onChange,
disable,
itemClassName,
}: IIndexMethodRadioProps) => {
const { t } = useTranslation()
const options = [
@@ -45,6 +47,7 @@ const IndexMethodRadio = ({
key={option.key}
className={classNames(
itemClass,
itemClassName,
s.item,
option.key === value && s['item-active'],
disable && s.disable,