diff --git a/frontend/src/components/canvas/CanvasNodeView.vue b/frontend/src/components/canvas/CanvasNodeView.vue index 0a89aa3..0745eff 100644 --- a/frontend/src/components/canvas/CanvasNodeView.vue +++ b/frontend/src/components/canvas/CanvasNodeView.vue @@ -8,8 +8,11 @@ import { thumbUrl } from '../../api' const props = defineProps({ node: { type: Object, required: true }, selected: { type: Boolean, default: false }, + linkSourceSide: { type: String, default: '' }, }) -const emit = defineEmits(['imgload', 'note-commit', 'node-action']) +const emit = defineEmits(['imgload', 'note-commit', 'node-action', 'port-click']) +const portSides = ['top', 'right', 'bottom', 'left'] +const portLabels = { top: '上', right: '右', bottom: '下', left: '左' } const imgLoaded = ref(false) const noteEl = ref(null) @@ -99,8 +102,12 @@ defineExpose({ startEdit, commitNote }) :data-node-id="node.id" @dblclick="onSelfDblClick" > - - + + - + {{ scalePct }}% - + @@ -857,7 +857,7 @@ const saveLabel = computed(() => ({
{{ genMsg }}
- 双击空白建笔记 · 拖右侧圆点连线 · 选中后右下角缩放 · Ctrl+D 复制 · + 双击空白建笔记 · 依次点击两个连接点连线 · 选中后右下角缩放 · Ctrl+D 复制 · 本地图片直接拖入或 Ctrl+V 粘贴 · 按 1 适应全部内容