feat: Add tip to loop of ExeSQL #1739 (#1983)

### What problem does this PR solve?

feat:  Add tip to loop of ExeSQL #1739

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-16 18:27:02 +08:00
committed by GitHub
parent 3738dd71ab
commit 4121636084
6 changed files with 30 additions and 11 deletions

View File

@@ -163,13 +163,21 @@ export const operatorMap = {
[Operator.Google]: {
backgroundColor: 'pink',
},
[Operator.Bing]: {},
[Operator.GoogleScholar]: {},
[Operator.DeepL]: {},
[Operator.GitHub]: {},
[Operator.BaiduFanyi]: {},
[Operator.QWeather]: {},
[Operator.ExeSQL]: {},
[Operator.Bing]: {
backgroundColor: '#c0dcc4',
},
[Operator.GoogleScholar]: {
backgroundColor: '#b4e4f6',
},
[Operator.DeepL]: {
backgroundColor: '#f5e8e6',
},
[Operator.GitHub]: {
backgroundColor: '#c7c7f8',
},
[Operator.BaiduFanyi]: { backgroundColor: '#e5f2d3' },
[Operator.QWeather]: { backgroundColor: '#a4bbf3' },
[Operator.ExeSQL]: { backgroundColor: '#b9efe8' },
};
export const componentMenuList = [

View File

@@ -50,7 +50,12 @@ const ExeSQLForm = ({ onValuesChange, form }: IOperatorForm) => {
>
<Input.Password></Input.Password>
</Form.Item>
<Form.Item label={t('loop')} name={'loop'} rules={[{ required: true }]}>
<Form.Item
label={t('loop')}
name={'loop'}
tooltip={t('loopTip')}
rules={[{ required: true }]}
>
<InputNumber></InputNumber>
</Form.Item>
<TopNItem initialValue={30} max={100000}></TopNItem>