Skip to content

Commit

Permalink
fix: 在 Label 插件中需要使用 getData 中的 type 字段,但类型未定义,打包会报错
Browse files Browse the repository at this point in the history
 - 解决该问题
  • Loading branch information
boyongjiong committed Nov 25, 2024
1 parent 0a7275c commit cd9bfb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/src/LogicFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,7 @@ export namespace LogicFlow {
// label数据类型声明
export type LabelConfig = {
id?: string // label唯一标识
type?: string
x: number
y: number
content?: string // 富文本内容
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/style/raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export const content = `@import url('medium-editor/dist/css/medium-editor.min.cs
}
/* dndpanel */
.lf-dndpanel {
z-index: 999;
position: absolute;
z-index: 999;
margin: 5px;
padding: 15px 5px;
background: rgba(255, 255, 255, 0.8);
Expand Down

0 comments on commit cd9bfb6

Please sign in to comment.