Created
May 22, 2021 07:45
-
-
Save PragatiVerma18/6bb8f2a7d03d207aa9384d8948adfd55 to your computer and use it in GitHub Desktop.
The files required for building your first Adobe Photoshop and XD Plugin using VueJS - hello.vue contains the code for basic counter functionality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <form style="width: 300px;"> | |
| <h1> | |
| {{ message }} | |
| </h1> | |
| <p> | |
| Button has been clicked {{ count }} times. | |
| </p> | |
| <footer> | |
| <button uxp-variant="cta" v-on:click="increment">Click me</button> | |
| <button type="submit" uxp-variant="primary" v-on:click="close">Done</button> | |
| </footer> | |
| </form> | |
| </template> | |
| <script> | |
| module.exports = { | |
| props: { | |
| dialog: { | |
| type: Object | |
| } | |
| }, | |
| methods: { | |
| increment() { | |
| this.count++; | |
| }, | |
| close() { | |
| this.dialog.close(); | |
| } | |
| }, | |
| data() { | |
| return { | |
| reactive: true, | |
| message: 'Hello World Vue Component!', | |
| count: 0 | |
| } | |
| } | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment