Advertisement
Guest User

FilterName.vue

a guest
Jun 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <template>
  2. <div>
  3. <select v-bind:value="selected" @change="onChange($event)">
  4. <option>asc</option>
  5. <option>desc</option>
  6. <option></option>
  7. </select>
  8. </div>
  9. </template>
  10.  
  11. <script>
  12. export default {
  13. data () {
  14. return {
  15. selected: 'asc'
  16. }
  17. },
  18. methods: {
  19. onChange(e) {
  20. this.selected = e.target.value
  21. this.$emit('change', this.selected)
  22. }
  23. }
  24. }
  25. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement