Skip to content

Commit

Permalink
fix:描述框过长,限制最多3行
Browse files Browse the repository at this point in the history
  • Loading branch information
昔梦 committed Jan 13, 2025
1 parent 1bf9f04 commit ada4dc9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/x-flow/src/components/PanelContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,8 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
openLogPanel,
} = props;
// 1.获取节点配置信息
const {
settingMap,
iconFontUrl,
globalConfig,
antdVersion,
readOnly,
}: any = useContext(ConfigContext);
const { settingMap, iconFontUrl, globalConfig, antdVersion, readOnly }: any =
useContext(ConfigContext);
const nodeSetting = settingMap[nodeType] || {};
const { nodes, setNodes } = useStore(
(state: any) => ({
Expand Down Expand Up @@ -179,7 +174,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
) : (
<Input.TextArea
placeholder="添加描述..."
autoSize={{ minRows: 1 }}
autoSize={{ minRows: 1, maxRows: 3 }}
value={descVal}
onChange={e => {
setDescVal(e.target.value);
Expand Down

0 comments on commit ada4dc9

Please sign in to comment.