diff --git a/src/views/multiselect/MultiSelectDemo.vue b/src/views/multiselect/MultiSelectDemo.vue index acba66604..238163a3e 100755 --- a/src/views/multiselect/MultiSelectDemo.vue +++ b/src/views/multiselect/MultiSelectDemo.vue @@ -11,23 +11,23 @@
Basic
- +
Advanced with Templating and Filtering
- + @@ -44,18 +44,26 @@ import MultiSelectDoc from './MultiSelectDoc'; export default { data() { return { - selectedCars1: null, - selectedCars2: null, - cars: [ - {brand: 'Audi', value: 'Audi'}, - {brand: 'BMW', value: 'BMW'}, - {brand: 'Fiat', value: 'Fiat'}, - {brand: 'Honda', value: 'Honda'}, - {brand: 'Jaguar', value: 'Jaguar'}, - {brand: 'Mercedes', value: 'Mercedes'}, - {brand: 'Renault', value: 'Renault'}, - {brand: 'Volkswagen', value: 'Volkswagen'}, - {brand: 'Volvo', value: 'Volvo'} + selectedCities: null, + selectedCountries: null, + cities: [ + {name: 'New York', code: 'NY'}, + {name: 'Rome', code: 'RM'}, + {name: 'London', code: 'LDN'}, + {name: 'Istanbul', code: 'IST'}, + {name: 'Paris', code: 'PRS'} + ], + countries: [ + {name: 'Australia', code: 'AU'}, + {name: 'Brazil', code: 'BR'}, + {name: 'China', code: 'CN'}, + {name: 'Egypt', code: 'EG'}, + {name: 'France', code: 'FR'}, + {name: 'Germany', code: 'DE'}, + {name: 'India', code: 'IN'}, + {name: 'Japan', code: 'JP'}, + {name: 'Spain', code: 'ES'}, + {name: 'United States', code: 'US'} ] } }, @@ -76,32 +84,17 @@ export default { padding-bottom: .25rem; } - .p-multiselect-car-option { - display: flex; - align-items: center; - - img { - margin-right: .5rem; - width: 24px; - } - } - - .p-multiselect-car-token { + .country-item-value { padding: .25rem .5rem; - margin: 0 0.286rem 0 0; border-radius: 3px; display: inline-flex; - } - - .p-multiselect-car-token img { - width: 17px; margin-right: .5rem; - align-items: center; - } + background-color: var(--primary-color); + color: var(--primary-color-text); - .p-multiselect-car-token { - background: #2196f3; - color: #ffffff; + img.flag { + width: 17px; + } } } diff --git a/src/views/multiselect/MultiSelectDoc.vue b/src/views/multiselect/MultiSelectDoc.vue index 0bbcc2b3f..b68171299 100755 --- a/src/views/multiselect/MultiSelectDoc.vue +++ b/src/views/multiselect/MultiSelectDoc.vue @@ -279,24 +279,24 @@ data() {