wip
This commit is contained in:
+1
-1
@@ -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,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: {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export { useTippy } from './useTippy'
|
||||
@@ -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
@@ -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 }
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import { Props } from 'tippy.js'
|
||||
|
||||
export declare type TippyOptions = Props
|
||||
Reference in New Issue
Block a user