2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00
This commit is contained in:
Jeff Sagal
2021-07-28 15:56:54 -07:00
parent 3399ecbd9a
commit ae2eb99f86
22 changed files with 1196 additions and 234 deletions
+11 -8
View File
@@ -10,7 +10,7 @@
<v-select
:options="options"
:value="person.country"
@input="country => updateCountry(person, country)"
@input="(country) => updateCountry(person, country)"
/>
</td>
</tr>
@@ -18,14 +18,17 @@
</template>
<script>
import countries from '../data/countries.js';
import countries from "../assets/data/countries.js";
export default {
data: () => ({
people: [{name: 'John', country: ''}, {name: 'Jane', country: ''}],
people: [
{ name: "John", country: "" },
{ name: "Jane", country: "" },
],
}),
methods: {
updateCountry (person, country) {
updateCountry(person, country) {
person.country = country;
},
},
@@ -36,8 +39,8 @@ export default {
</script>
<style scoped>
table {
display: table;
width: 100%;
}
table {
display: table;
width: 100%;
}
</style>