Skip to content

Commit cc5e607

Browse files
committed
fix: 解决 cr 发现的问题
1 parent 998408b commit cc5e607

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/model/node/DiamondNodeModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class DiamondNodeModel extends BaseNodeModel {
3131
super(data, graphModel)
3232
this.properties = data.properties || {}
3333

34-
// this.setAttributes()
34+
this.setAttributes()
3535
}
3636

3737
setAttributes() {

packages/core/src/util/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ export const getHtmlTextHeight = ({
492492
dom.appendChild(rowDom)
493493
})
494494
} else {
495-
dom.textContent = `${rows[0]}`
495+
dom.textContent = rows[0]
496496
}
497497
document.body.appendChild(dom)
498498
const height = dom.clientHeight

0 commit comments

Comments
 (0)