Feature/add switch type for theme settings (halo-dev/console#120)

* 1.3.0-beta.2

* feat: add switch type for theme settings.
pull/3445/head
Ryan Wang 2020-03-29 11:48:03 +08:00 committed by GitHub
parent dfa0d91007
commit 83bc23c697
1 changed files with 11 additions and 0 deletions

View File

@ -148,6 +148,17 @@
<a-icon type="picture" /> <a-icon type="picture" />
</a> </a>
</a-input> </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 <a-input
v-model="themeSettings[item.name]" v-model="themeSettings[item.name]"
:defaultValue="item.defaultValue" :defaultValue="item.defaultValue"