chore: field description icon

This commit is contained in:
jialin
2025-02-10 18:44:21 +08:00
parent cbf1e42c73
commit 1def9a6b19
3 changed files with 6 additions and 9 deletions
@@ -1,4 +1,4 @@
import { InfoCircleOutlined } from '@ant-design/icons'; import { QuestionCircleOutlined } from '@ant-design/icons';
import { Tooltip } from 'antd'; import { Tooltip } from 'antd';
import React from 'react'; import React from 'react';
import './label-info.less'; import './label-info.less';
@@ -25,9 +25,9 @@ const NoteInfo: React.FC<NoteInfoProps> = (props) => {
)} )}
<span <span
style={{ marginLeft: required ? 5 : 0, color: 'gray' }} style={{ marginLeft: required ? 5 : 0, color: 'gray' }}
className="desc" className="desc desc-icon"
> >
<InfoCircleOutlined /> <QuestionCircleOutlined />
</span> </span>
</span> </span>
</Tooltip> </Tooltip>
@@ -2,7 +2,7 @@ import FieldWrapper from '@/components/seal-form/field-wrapper';
import SealInput from '@/components/seal-form/seal-input'; import SealInput from '@/components/seal-form/seal-input';
import SealSelect from '@/components/seal-form/seal-select'; import SealSelect from '@/components/seal-form/seal-select';
import { INPUT_WIDTH } from '@/constants'; import { INPUT_WIDTH } from '@/constants';
import { InfoCircleOutlined } from '@ant-design/icons'; import { QuestionCircleOutlined } from '@ant-design/icons';
import { useIntl } from '@umijs/max'; import { useIntl } from '@umijs/max';
import { Form, InputNumber, Slider, Tooltip } from 'antd'; import { Form, InputNumber, Slider, Tooltip } from 'antd';
import _ from 'lodash'; import _ from 'lodash';
@@ -173,7 +173,7 @@ const ParamsSettings: React.FC<ParamsSettingsProps> = ({
<Tooltip title={args.description}> <Tooltip title={args.description}>
<span> {args.label}</span> <span> {args.label}</span>
<span className="m-l-5"> <span className="m-l-5">
<InfoCircleOutlined /> <QuestionCircleOutlined />
</span> </span>
</Tooltip> </Tooltip>
) : ( ) : (
+1 -4
View File
@@ -68,10 +68,7 @@ export const fetchChunkedData = async (params: {
}); });
if (!response.ok) { if (!response.ok) {
return { return await errorHandler(response);
error: true,
data: await errorHandler(response)
};
} }
const reader = response?.body?.getReader(); const reader = response?.body?.getReader();
const decoder = new TextDecoder('utf-8', { const decoder = new TextDecoder('utf-8', {