feat: Add SwitchForm #1739 (#1994)

### What problem does this PR solve?

feat: Add SwitchForm #1739

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-19 12:00:55 +08:00
committed by GitHub
parent 79426fc41f
commit 99b634c68d
8 changed files with 30 additions and 0 deletions

View File

@@ -27,7 +27,9 @@ import QWeatherForm from '../qweather-form';
import RelevantForm from '../relevant-form';
import RetrievalForm from '../retrieval-form';
import RewriteQuestionForm from '../rewrite-question-form';
import SwitchForm from '../switch-form';
import WikipediaForm from '../wikipedia-form';
import styles from './index.less';
interface IProps {
@@ -57,6 +59,7 @@ const FormMap = {
[Operator.BaiduFanyi]: BaiduFanyiForm,
[Operator.QWeather]: QWeatherForm,
[Operator.ExeSQL]: ExeSQLForm,
[Operator.Switch]: SwitchForm,
};
const EmptyContent = () => <div>empty</div>;