ソースを参照

feat: click on a blank area of ​​the canvas to hide the form drawer #918 (#1384)

### What problem does this PR solve?
feat: click on a blank area of ​​the canvas to hide the form drawer #918

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.8.0
balibabu 1年前
コミット
a3f4258cfc
コミッターのメールアドレスに関連付けられたアカウントが存在しません

+ 5
- 0
web/src/pages/flow/canvas/index.tsx ファイルの表示

[showDrawer], [showDrawer],
); );


const onPaneClick = useCallback(() => {
hideDrawer();
}, [hideDrawer]);

const { onDrop, onDragOver, setReactFlowInstance } = useHandleDrop(); const { onDrop, onDragOver, setReactFlowInstance } = useHandleDrop();


const { handleKeyUp } = useHandleKeyUp(); const { handleKeyUp } = useHandleKeyUp();
onDrop={onDrop} onDrop={onDrop}
onDragOver={onDragOver} onDragOver={onDragOver}
onNodeClick={onNodeClick} onNodeClick={onNodeClick}
onPaneClick={onPaneClick}
onInit={setReactFlowInstance} onInit={setReactFlowInstance}
onKeyUp={handleKeyUp} onKeyUp={handleKeyUp}
onSelectionChange={onSelectionChange} onSelectionChange={onSelectionChange}

+ 11
- 5
web/src/pages/flow/constant.tsx ファイルの表示

export const RestrictedUpstreamMap = { export const RestrictedUpstreamMap = {
[Operator.Begin]: [], [Operator.Begin]: [],
[Operator.Categorize]: [Operator.Begin, Operator.Categorize, Operator.Answer], [Operator.Categorize]: [Operator.Begin, Operator.Categorize, Operator.Answer],
[Operator.Answer]: [],
[Operator.Retrieval]: [],
[Operator.Generate]: [],
[Operator.Answer]: [Operator.Begin, Operator.Answer, Operator.Message],
[Operator.Retrieval]: [Operator.Begin, Operator.Relevant],
[Operator.Generate]: [Operator.Begin],
[Operator.Message]: [ [Operator.Message]: [
Operator.Begin, Operator.Begin,
Operator.Message, Operator.Message,
Operator.RewriteQuestion, Operator.RewriteQuestion,
Operator.Categorize, Operator.Categorize,
], ],
[Operator.Relevant]: [],
[Operator.RewriteQuestion]: [],
[Operator.Relevant]: [Operator.Begin, Operator.Answer],
[Operator.RewriteQuestion]: [
Operator.Begin,
Operator.Message,
Operator.Generate,
Operator.RewriteQuestion,
Operator.Categorize,
],
}; };


export const NodeMap = { export const NodeMap = {

+ 1
- 1
web/src/pages/flow/list/index.less ファイルの表示

} }


.templatesBox { .templatesBox {
// max-height: 500px;
max-height: 70vh;
overflow: auto; overflow: auto;
} }

読み込み中…
キャンセル
保存