index.js 395 B

1234567891011121314151617181920212223
  1. Component({
  2. properties: {
  3. list: Array,
  4. showAll: {//是否显示全部(包含值为空项)
  5. type: Boolean,
  6. value: true
  7. }
  8. },
  9. methods: {
  10. /* 单击项目 */
  11. clickItem(e) {
  12. const {
  13. item
  14. } = e.currentTarget.dataset;
  15. },
  16. /* 单击补充区域 */
  17. clickRep(e) {
  18. const {
  19. item
  20. } = e.currentTarget.dataset;
  21. }
  22. }
  23. })