diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx index cbce6ab64..9663d1328 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/RadioWithTooltip.tsx @@ -1,6 +1,6 @@ import { QuestionCircleOutlined } from '@ant-design/icons'; import { css, useCompile } from '@nocobase/client'; -import { Radio, Tooltip } from 'antd'; +import { Radio, Space, Tooltip } from 'antd'; import React from 'react'; export interface RadioWithTooltipOption { @@ -10,29 +10,31 @@ export interface RadioWithTooltipOption { } export function RadioWithTooltip(props) { - const { options = [], ...other } = props; + const { options = [], direction, ...other } = props; const compile = useCompile(); return ( - {options.map((option) => ( - - - {compile(option.label)} - - {option.tooltip && ( - - - - )} - - ))} + + {options.map((option) => ( + + + {compile(option.label)} + + {option.tooltip && ( + + + + )} + + ))} + ); }