Skip to content

Commit

Permalink
docs(useColorMode): update demo.vue (#3966)
Browse files Browse the repository at this point in the history
  • Loading branch information
reslear committed May 27, 2024
1 parent 29bc690 commit 51acbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useColorMode/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const mode = useColorMode({
},
})
const { state, next } = useCycleList(['dark', 'light', 'cafe', 'contrast', 'auto'], { initialValue: mode })
const { state, next } = useCycleList(['dark', 'light', 'cafe', 'contrast', 'auto'] as const, { initialValue: mode })
watchEffect(() => mode.value = state.value as any)
watchEffect(() => mode.value = state.value)
</script>

<template>
Expand Down

0 comments on commit 51acbd1

Please sign in to comment.