mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 工作流基础节点宽度加宽
This commit is contained in:
parent
5a986877d0
commit
f931cc7f49
|
|
@ -9,7 +9,6 @@
|
|||
"config": {
|
||||
|
||||
},
|
||||
"width": 502,
|
||||
"height": 825.6,
|
||||
"stepName": "基本信息",
|
||||
"node_data": {
|
||||
|
|
|
|||
|
|
@ -190,8 +190,11 @@ class AppNodeModel extends HtmlResize.model {
|
|||
edge.updatePathByAnchor()
|
||||
})
|
||||
}
|
||||
get_width() {
|
||||
return this.properties?.width || 340
|
||||
}
|
||||
setAttributes() {
|
||||
this.width = this.properties?.width || 340
|
||||
this.width = this.get_width()
|
||||
|
||||
const circleOnlyAsTarget = {
|
||||
message: '只允许从右边的锚点连出',
|
||||
|
|
|
|||
|
|
@ -6,8 +6,17 @@ class BaseNode extends AppNode {
|
|||
super(props, BaseNodeVue)
|
||||
}
|
||||
}
|
||||
|
||||
class BaseModel extends AppNodeModel {
|
||||
constructor(data: any, graphModel: any) {
|
||||
super(data, graphModel)
|
||||
}
|
||||
get_width() {
|
||||
return 600
|
||||
}
|
||||
}
|
||||
export default {
|
||||
type: 'base-node',
|
||||
model: AppNodeModel,
|
||||
model: BaseModel,
|
||||
view: BaseNode
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue