new-template.js 667 B

12345678910111213141516171819202122232425262728
  1. var NewTemplate = {
  2. template: '<div>\
  3. <div class="title-name c-f16">\
  4. <span class="c-vam">模板未命名</span>\
  5. </div>\
  6. <div class="c-t-center">\
  7. <img src="../../../images/wushuju_img.png" class="wushuju"/>\
  8. </div>\
  9. <div class="c-t-center mt30">\
  10. <a @click="newTemplate" class="new-temp-btn">创建新模板</a>\
  11. </div>\
  12. </div>',
  13. props: [],
  14. data: function() {
  15. return {
  16. }
  17. },
  18. mounted: function() {
  19. var vm = this
  20. },
  21. methods: {
  22. newTemplate: function() {
  23. var vm = this
  24. vm.$router.push('/new-template-form')
  25. }
  26. }
  27. }