index.js 667 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // components/My_dropdownMenu/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. mtype: {
  8. type: String,
  9. value: "date"
  10. }
  11. },
  12. /**
  13. * 组件的初始数据
  14. */
  15. data: {
  16. sortByDate: [{
  17. text: '默认排序',
  18. value: 0
  19. },
  20. {
  21. text: '按日期升序',
  22. value: 1
  23. },
  24. {
  25. text: '按日期降序',
  26. value: 2
  27. },
  28. ],
  29. sortByDateChecked: 0,
  30. },
  31. /**
  32. * 组件的方法列表
  33. */
  34. methods: {
  35. }
  36. })