This commit is contained in:
Georges KABBOUCHI
2020-08-02 14:03:21 +03:00
parent 410444488f
commit 75a41fa813
6 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
<script lang="ts">
import { defineComponent, ref } from 'vue'
import { useTippy } from '../src'
import { TippyOptions } from '../src/composables/useTippy'
import { TippyOptions } from '../src'
export default defineComponent({
setup() {
const button = ref<HTMLButtonElement>()
+1 -1
View File
@@ -1,6 +1,6 @@
import { defineComponent, ref, h, PropType } from 'vue'
import { Content } from 'tippy.js'
import { useTippy } from '../composables/useTippy'
import { useTippy } from '../composables'
export default defineComponent({
props: {
+1
View File
@@ -0,0 +1 @@
export { useTippy } from './useTippy'
+2 -3
View File
@@ -1,7 +1,6 @@
import tippy, { Instance, Props } from 'tippy.js'
import tippy, { Instance } from 'tippy.js'
import { ref, onMounted, Ref, isRef } from 'vue'
export declare type TippyOptions = Props
import { TippyOptions } from '../types'
export function useTippy(
el: Element | Ref<Element> | Ref<Element | undefined>,
+2 -1
View File
@@ -1,7 +1,8 @@
import tippy from 'tippy.js'
import Tippy from './components/Tippy'
import { useTippy } from './composables/useTippy'
import { TippyOptions } from './types'
import 'tippy.js/dist/tippy.css'
export { tippy, Tippy, useTippy }
export { TippyOptions }
+3
View File
@@ -0,0 +1,3 @@
import { Props } from 'tippy.js'
export declare type TippyOptions = Props