index.js 218 B

123456789101112131415161718
  1. Component({
  2. properties: {
  3. list1: Array,
  4. list2: Array
  5. },
  6. data: {
  7. showAll: false
  8. },
  9. methods: {
  10. onChange({
  11. detail
  12. }) {
  13. this.setData({
  14. showAll: detail
  15. })
  16. }
  17. }
  18. })