admin管理员组

文章数量:1125100

TLDR: playground showing the issue:

I ran up in a following situation: the UI library that we want to migrate to doesn't have any tooltip directive, but it does have the component for tooltips. I need it desperately, so I can't just go with components. In order to have only a single source of truth, I decided to implement the directive using the component tooltip component from our new UI library.

Everything was smoothly, until I needed to write something like this:

<div v-tooltip="'Tooltip content'">
  <SomeComponent tooltipText="Another tooltip" />
</div>

SomeComponent.vue

<template>
 <!-- ... -->
  <div v-tooltip="tooltipText">

本文标签: vuejsVue with render functions failed to resolve directiveStack Overflow