feat(web): 优化流程界面显示
This commit is contained in:
@@ -16,7 +16,7 @@ import {arrToMap, find, findIdx, isEqual, isNil, randomId} from 'licia'
|
||||
import {type JSX, useState} from 'react'
|
||||
import styled from 'styled-components'
|
||||
import '@xyflow/react/dist/style.css'
|
||||
import {amisRender, commonInfo} from '../../../util/amis.tsx'
|
||||
import {amisRender, commonInfo, horizontalFormOptions} from '../../../util/amis.tsx'
|
||||
import StartNode from './node/StartNode.tsx'
|
||||
import EndNode from './node/EndNode.tsx'
|
||||
import LlmNode from './node/LlmNode.tsx'
|
||||
@@ -103,15 +103,10 @@ function FlowEditor() {
|
||||
type: 'wrapper',
|
||||
size: 'none',
|
||||
body: [
|
||||
{
|
||||
type: 'tpl',
|
||||
className: 'text-secondary',
|
||||
tpl: description,
|
||||
},
|
||||
{
|
||||
debug: commonInfo.debug,
|
||||
title: name,
|
||||
type: 'form',
|
||||
...horizontalFormOptions(),
|
||||
wrapWithPanel: false,
|
||||
onEvent: {
|
||||
submitSucc: {
|
||||
@@ -229,6 +224,7 @@ function FlowEditor() {
|
||||
closeIcon={false}
|
||||
maskClosable={false}
|
||||
destroyOnHidden
|
||||
size="large"
|
||||
>
|
||||
{currentNodeForm}
|
||||
</Drawer>
|
||||
|
||||
Reference in New Issue
Block a user