@3yourmind/vue-use-tippy 中文文档教程
@3yourmind/vue-use-tippy
tippy.js
的 Vue hook
Usage
import { useTippy } from '@3yourmind/vue-use-tippy'
import { computed, defineComponent, ref } from '@vue/composition-api'
export default defineComponent({
setup() {
const contentRef = ref(null)
useTippy(
helpTextTriggerRef,
computed(() => ({
appendTo: () => document.body,
content: contentRef,
interactive: true,
theme: 'light-border',
})),
)
return {
contentRef,
}
},
})
现在推荐使用 @vue/composition-api@0.6.1
。
Options
请参阅 https://atomiks.github.io/tippyjs/v6/all-props/ 以了解支持的选项
@3yourmind/vue-use-tippy
Vue hook for
tippy.js
Usage
import { useTippy } from '@3yourmind/vue-use-tippy'
import { computed, defineComponent, ref } from '@vue/composition-api'
export default defineComponent({
setup() {
const contentRef = ref(null)
useTippy(
helpTextTriggerRef,
computed(() => ({
appendTo: () => document.body,
content: contentRef,
interactive: true,
theme: 'light-border',
})),
)
return {
contentRef,
}
},
})
Right now, @vue/composition-api@0.6.1
is recommended.
Options
See https://atomiks.github.io/tippyjs/v6/all-props/ for supported options
更多
你可能也喜欢
- 1d 中文文档教程
- @0x-lerna-fork/filter-packages 中文文档教程
- @0xsequence/erc20-meta-token 中文文档教程
- @128technology/ply 中文文档教程
- @1productaweek/react-wait-for-window 中文文档教程
- @50000feet/oidc-slack-open-id-react 中文文档教程
- @51npm/freedom-middleware-webpack2 中文文档教程
- @555platform/sui-555-css 中文文档教程
- @5minds/generator-5minds-typescript 中文文档教程
- @aamirkhan7/my-vue-library 中文文档教程