feat: Add component ExecSQL #1739 (#1982)

### What problem does this PR solve?

feat: Add component ExecSQL #1739

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-16 17:44:10 +08:00
committed by GitHub
parent 9729ca2aed
commit 3738dd71ab
11 changed files with 135 additions and 6 deletions

View File

@ -7,9 +7,10 @@ type FieldType = {
interface IProps {
initialValue?: number;
max?: number;
}
const TopNItem = ({ initialValue = 8 }: IProps) => {
const TopNItem = ({ initialValue = 8, max = 30 }: IProps) => {
const { t } = useTranslate('chat');
return (
@ -19,7 +20,7 @@ const TopNItem = ({ initialValue = 8 }: IProps) => {
initialValue={initialValue}
tooltip={t('topNTip')}
>
<Slider max={30} />
<Slider max={max} />
</Form.Item>
);
};