mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-02 01:27:14 +00:00
feat(core): Support i18n (#1327)
This commit is contained in:
@@ -105,7 +105,7 @@ const CanvasNode: React.FC<CanvasNodeProps> = ({ data }) => {
|
||||
<DeleteOutlined className="h-full text-lg cursor-pointer" onClick={deleteNode} />
|
||||
</IconWrapper>
|
||||
<IconWrapper className="mt-2">
|
||||
<Tooltip title={node.description} placement="right">
|
||||
<Tooltip title={<><p className="font-bold">{node.label}</p><p>{node.description}</p></>} placement="right">
|
||||
<InfoCircleOutlined className="h-full text-lg cursor-pointer" />
|
||||
</Tooltip>
|
||||
</IconWrapper>
|
||||
|
@@ -24,6 +24,7 @@ const NodeParamHandler: React.FC<NodeParamHandlerProps> = ({ node, data, label,
|
||||
let defaultValue = data.value !== null && data.value !== undefined ? data.value : data.default;
|
||||
switch (data.type_name) {
|
||||
case 'int':
|
||||
case 'float':
|
||||
return (
|
||||
<div className="p-2 text-sm">
|
||||
<p>
|
||||
@@ -37,8 +38,8 @@ const NodeParamHandler: React.FC<NodeParamHandlerProps> = ({ node, data, label,
|
||||
<InputNumber
|
||||
className="w-full"
|
||||
defaultValue={defaultValue}
|
||||
onChange={(e) => {
|
||||
handleChange(e.target.value);
|
||||
onChange={(value: number | null) => {
|
||||
handleChange(value);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user