LogicFlow icon indicating copy to clipboard operation
LogicFlow copied to clipboard

[Bug Report]: 2.0.0-beta.2 跑不起来,直接报依赖内部错误

Open Panweitong opened this issue 2 years ago • 6 comments

发生了什么?

安装2.0.0-beta.2后,项目运行报错,显示内部依赖错误 微信图片_20240708111504 点击上述报错直接跳转到依赖内部 微信图片_20240708111511

节点代码: ` import { HtmlResize } from "@logicflow/extension"; import $ from "jquery";

class CardModel extends HtmlResize.model { initNodeData(data) { super.initNodeData(data); this.text.editable = false; // 禁止节点文本编辑 // 设置节点宽高和鼠标移动多少距离后开始缩放节点 const width = data.properties.nodeSize && data.properties.nodeSize.width ? data.properties.nodeSize.width : 250; const height = data.properties.nodeSize && data.properties.nodeSize.height ? data.properties.nodeSize.height : 250; // const height = 250 this.width = width; this.height = height; this.minWidth = 80; this.minHeight = 80; this.gridSize = 1; } setAttributes() { if ( (this.properties.iconRadio == true && this.properties.nodeSize && this.properties.nodeSize.height && parseInt(this.properties.nodeSize.height) <= 80) || (this.properties.iconRadio == true && this.properties.nodeSize && this.properties.nodeSize.width && parseInt(this.properties.nodeSize.width) <= 80) ) { this.width = 80; this.height = 80; } if ( (this.properties.iconRadio == false && this.properties.nodeSize && this.properties.nodeSize.height && parseInt(this.properties.nodeSize.height) == 250) || (this.properties.iconRadio == false && this.properties.nodeSize && this.properties.nodeSize.width && parseInt(this.properties.nodeSize.width) == 250) ) { this.width = 250; this.height = 250; } } } class CardNode extends HtmlResize.view { setHtml(rootEl) { const { id, properties } = this.props.model; var color = properties.titleColor && properties.titleColor != "" ? properties.titleColor : "#6266BC"; const el = document.createElement("div"); el.className = "uml-wrapper"; var html = ``; el.innerHTML = html; rootEl.innerHTML = ""; rootEl.appendChild(el); } }

export default { type: "icon-card", view: CardNode, model: CardModel, } `

logicflow/core版本

2.0.0-beta.2

logicflow/extension版本

2.0.0-beta.2

logicflow/engine版本

无

浏览器&环境

Chrome

Panweitong avatar Jul 08 '24 03:07 Panweitong

先用2.0.0-beta.1吧,2.0.0-beta.2确实有很多问题

FanSun521 avatar Jul 08 '24 11:07 FanSun521

先用2.0.0-beta.1吧,2.0.0-beta.2确实有很多问题

2.0.0-beta.1 我也跑不起来,报setMenuConfig undefined的错

Panweitong avatar Jul 08 '24 11:07 Panweitong

可以上传个demo看看

FanSun521 avatar Jul 08 '24 16:07 FanSun521

最新是 2.0.0-beta.5 了,现在还有问题吗

boyongjiong avatar Jul 25 '24 12:07 boyongjiong

没有呢,我这边可以正常使用了

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: 你说呢? @.> 发送时间: 2024年7月25日 20:10 收件人: didi/LogicFlow @.> 抄送: paiweitong @.>, State change @.> 主题: Re: [didi/LogicFlow] [Bug Report]: 2.0.0-beta.2 跑不起来,直接报依赖内部错误 (Issue #1667)

最新是 2.0.0-beta.5 了,现在还有问题吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

Panweitong avatar Jul 25 '24 12:07 Panweitong

好的,那我这边先关闭 issue,后续有问题欢迎继续提 issue 交流

boyongjiong avatar Jul 26 '24 03:07 boyongjiong