index.js 737 B

1234567891011121314151617181920212223242526272829303132
  1. define([
  2. 'text!./index.html',
  3. 'css!./index.css'
  4. ], function(html) {
  5. return {
  6. props: {
  7. materialList: {
  8. type: Array,
  9. default: function () {
  10. return [];
  11. }
  12. },
  13. typeSetting: {
  14. type: Number,
  15. default: 2
  16. },
  17. allLink: {
  18. type: String,
  19. default: 'javascript:'
  20. },
  21. cellLink: {
  22. type: String,
  23. default: 'javascript:'
  24. },
  25. materialTitle: {
  26. type: String,
  27. default: '资料下载'
  28. }
  29. },
  30. template: html
  31. };
  32. });