component.vue.ejs 498 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div class="<%= data.lowerName %>">
  3. <h2>{{ message }}</h2>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: "<%= data.name %>",
  9. components: {
  10. },
  11. mixins: [],
  12. props: {
  13. },
  14. data: function() {
  15. return {
  16. message: "Hello <%= data.name %>"
  17. }
  18. },
  19. created: function() {
  20. },
  21. mounted: function() {
  22. },
  23. computed: {
  24. },
  25. methods: {
  26. }
  27. }
  28. </script>
  29. <style scoped>
  30. .<%= data.lowerName %> {
  31. }
  32. </style>