Skip to content

Commit

Permalink
fix: code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweiguo2013 committed Nov 13, 2021
1 parent 523b9f8 commit 79f48c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions packages/varlet-ui/src/date-picker/src/day-picker-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ export default defineComponent({
return true
}
const isDarkTheme = ref(false)
watchDarkMode((themes) => {
isDarkTheme.value = themes === 'darkThemes'
})
const computeTextColor = (): string | undefined => {
if (disabled) return ''
if (computeOutline()) return color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ export default defineComponent({
return true
}
const isDarkTheme = ref(false)
watchDarkMode((themes) => {
isDarkTheme.value = themes === 'darkThemes'
})
const computeTextColor = (): string | undefined => {
if (disabled) return ''
if (computeOutline()) return color
Expand Down Expand Up @@ -214,6 +209,7 @@ export default defineComponent({
},
{ immediate: true }
)
watchDarkMode((themes) => {
isDarkTheme.value = themes === 'darkThemes'
})
Expand Down

0 comments on commit 79f48c2

Please sign in to comment.