forked from opentiny/tiny-vue
feat(flowchart): 添加自动提示指令在必要时才会有提示弹窗 (#3360)
This commit is contained in:
parent
93127de5ee
commit
2d8da970cc
|
|
@ -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 } })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue