Skip to content

Commit

Permalink
feat(checkbox): add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Nov 13, 2021
1 parent 1a1fc57 commit cee8c2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/varlet-ui/src/checkbox-group/example/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import AppType from '@varlet/cli/site/mobile/components/AppType'
import { reactive, toRefs } from 'vue'
import { watchLang } from '@varlet/cli/site/utils'
import { use, pack } from './locale'
import { watchDarkMode } from '../../utils/components'
export default {
name: 'CheckboxGroupExample',
Expand All @@ -81,6 +82,7 @@ export default {
})
watchLang(use)
watchDarkMode()
return {
pack,
Expand Down
3 changes: 3 additions & 0 deletions packages/varlet-ui/src/themes/dark/checkbox.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
'--checkbox-unchecked-color': '#fff',
}
2 changes: 2 additions & 0 deletions packages/varlet-ui/src/themes/dark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import table from './talble'
import input from './input'
import select from './select'
import radio from './radio'
import checkbox from './checkbox'
import { StyleVars } from '../../style-provider'

export default {
Expand Down Expand Up @@ -47,4 +48,5 @@ export default {
...input,
...select,
...radio,
...checkbox,
} as StyleVars

0 comments on commit cee8c2c

Please sign in to comment.