Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Feature/add switch type for theme settings (#120)
Browse files Browse the repository at this point in the history
* 1.3.0-beta.2

* feat: add switch type for theme settings.
  • Loading branch information
ruibaby authored Mar 29, 2020
1 parent 794e24e commit c1e5104
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/views/interface/components/ThemeSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,17 @@
<a-icon type="picture" />
</a>
</a-input>
<a-input-number
v-model="themeSettings[item.name]"
:defaultValue="item.defaultValue"
v-else-if="item.type == 'NUMBER'"
style="width:100%"
/>
<a-switch
v-model="themeSettings[item.name]"
:defaultChecked="item.defaultValue"
v-else-if="item.type == 'SWITCH'"
/>
<a-input
v-model="themeSettings[item.name]"
:defaultValue="item.defaultValue"
Expand Down

0 comments on commit c1e5104

Please sign in to comment.