index.js 391 B

12345678910111213141516171819202122232425
  1. Component({
  2. properties: {
  3. list1: {
  4. type: Array
  5. },
  6. list2: {
  7. type: Array
  8. }
  9. },
  10. data: {
  11. showAll: false
  12. },
  13. options: {
  14. addGlobalClass: true
  15. },
  16. methods: {
  17. onChange({
  18. detail
  19. }) {
  20. this.setData({
  21. showAll: detail
  22. })
  23. }
  24. }
  25. })