Skip to content

Commit 5f58b64

Browse files
committed
fix(flowchart): 组件节点不可用状态不显示手型鼠标,修复flowchart演练场报错问题
1 parent 5c9f4e3 commit 5f58b64

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

examples/sites/demos/pc/app/flowchart/basic-usage-composition-api.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
<script setup>
2020
import { ref } from 'vue'
21-
import { TinyModal, TinyPopover } from '@opentiny/vue'
22-
import Flowchart from '@opentiny/vue-flowchart'
21+
import { TinyModal, TinyPopover, Flowchart } from '@opentiny/vue'
2322
import { iconYes, iconPanelMini, iconChevronDown, iconChevronUp } from '@opentiny/vue-icon'
2423
2524
const { createNode, createLink, createItem, createConfig } = Flowchart

examples/sites/demos/pc/app/flowchart/basic-usage.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
</template>
1818

1919
<script>
20-
import { TinyModal, TinyPopover } from '@opentiny/vue'
21-
import Flowchart from '@opentiny/vue-flowchart'
20+
import { TinyModal, TinyPopover, Flowchart } from '@opentiny/vue'
2221
import { hooks } from '@opentiny/vue-common'
2322
import { iconYes, iconPanelMini, iconChevronDown, iconChevronUp } from '@opentiny/vue-icon'
2423

packages/vue/src/flowchart/src/node.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
ref="icon"
1616
:class="[
1717
'w-4 h-4 absolute z-0 rounded-full flex items-center justify-center',
18-
'translate-x-1 translate-y-1 text-base cursor-pointer',
18+
'translate-x-1 translate-y-1 text-base',
19+
{ 'cursor-pointer': !state.statNotStarted },
1920
{ 'sm:w-2 sm:h-2': state.icon.size === 'mini', 'sm:w-6 sm:h-6': state.icon.size === 'medium' }
2021
]"
2122
>

0 commit comments

Comments
 (0)