vueuse / vueuse

Collection of essential Vue Composition Utilities for Vue 2 and 3

Home Page:https://vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useDark's disableTransition configuration does not work

tangllty opened this issue · comments

commented

Describe the bug

I just discovered that the transition animation of el-switch is gone. I searched the issues of vueuse and found that I need to pass this parameter disableTransition: false (#3063 (comment)), but when I passed it, there was still no transition animation.

const isDark = useDark({ disableTransition: false })

When using the ref function to switch, the transition animation is normal.

Reproduction

https://github.com/tangllty/tang-vue/blob/master/src/layout/components/Navbar/index.vue#L79

System Info

System:
    OS: Linux 6.8 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
    Memory: 2.32 GB / 15.36 GB
    Container: Yes
    Shell: 5.2.26 - /bin/bash
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    Yarn: 1.22.21 - /usr/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
    pnpm: 8.15.2 - /usr/bin/pnpm
  Browsers:
    Chromium: 123.0.6312.46
  npmPackages:
    @vueuse/core: ^10.9.0 => 10.9.0 
    vue: ^3.4.21 => 3.4.21

Used Package Manager

pnpm

Validations

commented

I decided not to use this function.