Skip to content

Commit

Permalink
完成脑图备注note
Browse files Browse the repository at this point in the history
  • Loading branch information
shijin.huang committed Dec 1, 2020
1 parent 8b654b0 commit e38e312
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ export default {
methods:{
// 设置note显示和位置
preview(node, keyword) {
var icon = node.getRenderer('NoteIconRenderer').getRenderShape();
var b = icon.getRenderBox('screen');
var note = node.getData('note');
var x = b.cx;
var y = b.bottom;
let icon = node.getRenderer('NoteIconRenderer').getRenderShape();
let b = icon.getRenderBox('screen');
let note = node.getData('note');
let x = b.cx;
let y = b.bottom;
this.markSource = note;
this.showNotePreviewer = true;
this.notBoxStyle = {
Expand Down

0 comments on commit e38e312

Please sign in to comment.