doc.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //格式如下。如果是单选或者多选项,id为必须。
  2. // input或者slider模式,value,必须,其它格式见下面
  3. [{
  4. title: '排序',
  5. disabled: true,
  6. children: [{
  7. title: "默认排序",
  8. model: "checkbox",
  9. children: [{
  10. title: "默认排序",
  11. id: '1-1'
  12. },
  13. {
  14. title: "最近更新",
  15. id: '1-2'
  16. },
  17. {
  18. title: "信誉值最高",
  19. id: '1-3'
  20. },
  21. {
  22. title: "信誉值最高",
  23. id: '1-4'
  24. }
  25. ]
  26. },
  27. {
  28. title: "价格选择",
  29. model: "radio",
  30. children: [{
  31. title: "默认排序",
  32. id: '2-1'
  33. },
  34. {
  35. title: "最近更新",
  36. id: '2-2'
  37. },
  38. {
  39. title: "信誉值最高",
  40. id: '2-3'
  41. },
  42. {
  43. title: "最近更新",
  44. id: '2-4'
  45. },
  46. {
  47. title: "信誉值最高",
  48. id: '2-5'
  49. }
  50. ]
  51. }
  52. ]
  53. }, {
  54. title: '价格',
  55. children: [{
  56. title: "价格排序",
  57. model: "radio",
  58. children: [{
  59. title: "默认排序",
  60. id: '3-1'
  61. },
  62. {
  63. title: "最近更新",
  64. id: '3-2'
  65. },
  66. {
  67. title: "信誉值最高",
  68. id: '3-3'
  69. }
  70. ]
  71. }]
  72. },
  73. {
  74. title: '品牌',
  75. children: [{
  76. title: '自定品牌',
  77. model: "input",
  78. type: "number",
  79. value: ""
  80. },
  81. {
  82. title: '自定价格',
  83. model: "slider",
  84. suffix: '元',
  85. max: 1000,
  86. value: 0
  87. },
  88. {
  89. title: "品牌排序",
  90. model: "checkbox",
  91. children: [{
  92. title: "默认排序",
  93. id: '4-1'
  94. },
  95. {
  96. title: "最近更新",
  97. id: '4-2'
  98. },
  99. {
  100. title: "信誉值最高",
  101. id: '4-3'
  102. }
  103. ]
  104. }
  105. ]
  106. }
  107. ]