From e045fd0d49767486ca7537a9d3e23e5805e90002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BF=E7=94=9F=E7=8B=AE=E5=AD=90?= Date: Fri, 16 Feb 2024 22:40:37 +0800 Subject: [PATCH] docs: fix spell --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 93dc6ef..1da7806 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Assuming a 400px height div, you can easily get a div with beautiful virtual scr ## ⚒️ Feature - [x] **Powerful API**, have ability to deal with complex components[^1], such as vxe-table、ant-vue-table -- [x] **Customisable**, so that you can create your own scrollbar style, animation and user interaction +- [x] **Customizable**, so that you can create your own scrollbar style, animation and user interaction - [x] **Theme**, integrated with these style configurations: ElementPlus, Steam, CSS-Tricks ... - [x] **Full Typed**, with the power of typescript - [ ] Support Vue3 & Vue2 @@ -39,7 +39,7 @@ Assuming a 400px height div, you can easily get a div with beautiful virtual scr [^1]: which is not possible with other libraries -and PRs are welcom +and PRs are welcome ## 📸 Preview @@ -61,7 +61,7 @@ Simple example ```typescript import { onMounted, ref } from 'vue' -import { useSrollbar } from 'use-scrollbars' +import { useScrollbar } from 'use-scrollbars' const componentOrElementRef = ref(null); const barStates = useScrollbar(componentOrElementRef, { @@ -77,7 +77,7 @@ Another example ```typescript import { watchEffect, onMounted, ref } from 'vue' -import { useSrollbar } from 'use-scrollbars' +import { useScrollbar } from 'use-scrollbars' const componentOrElementRef = ref(null); const barStates = useScrollbar(componentOrElementRef, { @@ -86,7 +86,7 @@ const barStates = useScrollbar(componentOrElementRef, { const componentStates = ref('your-states'); watchEffect(() => { - if (componentStates.valu3 === 'your-states') { + if (componentStates.xxx === 'your-states') { barStates.theme = 'steam' } else { barStates.destroy()