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 87
87
</CHeader >
88
88
</template >
89
89
<script lang="ts">
90
- import { defineComponent , ref , watch } from ' vue'
90
+ import { defineComponent } from ' vue'
91
91
import { useColorMode } from ' ../composables'
92
92
93
93
export default defineComponent ({
@@ -96,21 +96,13 @@ export default defineComponent({
96
96
theme: String ,
97
97
},
98
98
emits: [' toggle-color-mode' , ' toggle-sidebar' ],
99
- setup(props ) {
99
+ setup() {
100
100
const storedTheme = useColorMode ()
101
- const theme = ref (props .theme )
102
101
const toggleColorMode = (theme : string ): void => {
103
102
storedTheme .value = theme
104
103
}
105
- watch (
106
- () => props .theme ,
107
- () => {
108
- theme .value = props .theme
109
- },
110
- )
111
104
112
105
return {
113
- theme ,
114
106
storedTheme ,
115
107
toggleColorMode ,
116
108
}
You can’t perform that action at this time.
0 commit comments