Skip to content

TOOLTIP v-tip

代码事例
vue
<template>
	<fk-space>
        <fk-button v-tip="tipText">提示文字</fk-button>
        <div v-tip>提示文字</div>
    </fk-space>
</template>

<script lang="ts" setup>
import { onBeforeUnmount, ref } from 'vue';
import { vTip } from '@erp/common';

const tipText = ref('提示文字');

const intervalId = setInterval(() => {
    tipText.value = `提示文字_${Date.now()}`;
}, 1000);

onBeforeUnmount(() => {
    clearInterval(intervalId);
})

</script>

<style lang="less" scoped>

</style>

基于 MIT 许可发布