Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <template>
  2. <input type="color" v-model="color" v-on:click="pute">
  3. </template>
  4.  
  5. <script>
  6. export default {
  7. name: 'ColorPicker',
  8. data: function () {
  9. return {
  10. color: this.lampColor
  11. }
  12. },
  13. watch: {
  14. 'color' () {
  15. this.lampColor = this.color;
  16. }
  17. },
  18. methods: {
  19. pute: function(){
  20. alert("pute");
  21. console.log("pute");
  22. }
  23. }
  24. }
  25. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement