File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/docs/.vuepress/theme-coreui/src/client/components Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 8787 </CHeader >
8888</template >
8989<script lang="ts">
90- import { defineComponent , ref , watch } from ' vue'
90+ import { defineComponent } from ' vue'
9191import { useColorMode } from ' ../composables'
9292
9393export default defineComponent ({
@@ -96,21 +96,13 @@ export default defineComponent({
9696 theme: String ,
9797 },
9898 emits: [' toggle-color-mode' , ' toggle-sidebar' ],
99- setup(props ) {
99+ setup() {
100100 const storedTheme = useColorMode ()
101- const theme = ref (props .theme )
102101 const toggleColorMode = (theme : string ): void => {
103102 storedTheme .value = theme
104103 }
105- watch (
106- () => props .theme ,
107- () => {
108- theme .value = props .theme
109- },
110- )
111104
112105 return {
113- theme ,
114106 storedTheme ,
115107 toggleColorMode ,
116108 }
You can’t perform that action at this time.
0 commit comments