feat(flowchart): 添加自动提示指令在必要时才会有提示弹窗 (#3360)

This commit is contained in:
ajaxzheng 2025-04-27 15:59:42 +08:00 committed by GitHub
parent 93127de5ee
commit 2d8da970cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -48,8 +48,8 @@
<template v-for="key in ['title', 'subtitle', 'auxi']">
<div
v-if="state[key].show"
v-auto-tip
:key="key"
:title="state[key].text"
:class="[
'truncate',
state.layUpdown ? 'text-center' : 'text-left',
@ -90,6 +90,7 @@ import {
iconDone,
iconDoneMini
} from '@opentiny/vue-icon'
import { AutoTip } from '@opentiny/vue-directive'
const icons = {
'not-started': { mini: iconNotStartedMini, other: iconNotStarted },
@ -100,6 +101,7 @@ const icons = {
export default defineComponent({
props: [...props, 'node', 'config', 'titleClass'],
directives: { AutoTip },
setup(props: any, context: any): any {
return setup({ props, context, renderless, api, mono: true, extendOptions: { icons } })
}