Skip to content

Commit b25b6a6

Browse files
committed
fix: 在 Label 插件中需要使用 getData 中的 type 字段,但类型未定义,打包会报错
- 解决该问题
1 parent 0b173f4 commit b25b6a6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core/src/LogicFlow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ export namespace LogicFlow {
14561456
// label数据类型声明
14571457
export type LabelConfig = {
14581458
id?: string // label唯一标识
1459+
type?: string
14591460
x: number
14601461
y: number
14611462
content?: string // 富文本内容

packages/extension/src/style/raw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ export const content = `@import url('medium-editor/dist/css/medium-editor.min.cs
154154
}
155155
/* dndpanel */
156156
.lf-dndpanel {
157-
z-index: 999;
158157
position: absolute;
158+
z-index: 999;
159159
margin: 5px;
160160
padding: 15px 5px;
161161
background: rgba(255, 255, 255, 0.8);

0 commit comments

Comments
 (0)