index.js 559 B

12345678910111213141516171819202122232425262728
  1. define([
  2. 'text!./index.html',
  3. 'css!./index.css'
  4. ], function(html) {
  5. return {
  6. props: {
  7. recommend: {
  8. type: Object,
  9. default: function () {
  10. return {};
  11. }
  12. },
  13. articleList: {
  14. type: Array,
  15. default: function () {
  16. return [];
  17. }
  18. }
  19. },
  20. data: function () {
  21. return {};
  22. },
  23. methods: {
  24. },
  25. template: html
  26. };
  27. });