Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <input type="color" v-model="color" v-on:click="pute">
- </template>
- <script>
- export default {
- name: 'ColorPicker',
- data: function () {
- return {
- color: this.lampColor
- }
- },
- watch: {
- 'color' () {
- this.lampColor = this.color;
- }
- },
- methods: {
- pute: function(){
- alert("pute");
- console.log("pute");
- }
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement