diff --git a/src/views/checkbox/CheckboxDemo.vue b/src/views/checkbox/CheckboxDemo.vue index d72fe553d..5a0f62edc 100644 --- a/src/views/checkbox/CheckboxDemo.vue +++ b/src/views/checkbox/CheckboxDemo.vue @@ -35,24 +35,12 @@

Dynamic Values, Preselection, Value Binding and Disabled Option

-
- - -
-
- - -
-
- - -
-
- - +
+ +
- Selected Themes : {{this.themes}} + Selected Themes : {{this.selectedThemes}}
@@ -63,8 +51,12 @@ export default { return { checked: false, cities: [], - themes: [{brand: 'Serenity', key: 'S'}, {brand: 'Apollo', key: 'A'}] + themes: [{name: 'Apollo', key: 'A'}, {name: 'Babylon', key: 'B'}, {name: 'Serenity', key: 'S'}, {name: 'Ultima', key: 'U'}], + selectedThemes: [] } + }, + created() { + this.selectedThemes = this.themes.slice(1,3); } }