index.js 564 B

1234567891011121314151617181920212223242526272829303132333435
  1. Component({
  2. externalClasses: ['wr-class'],
  3. options: {
  4. multipleSlots: true,
  5. },
  6. properties: {
  7. show: {
  8. type: Boolean,
  9. observer(show) {
  10. this.setData({ visible: show });
  11. },
  12. },
  13. closeBtn: {
  14. type: Boolean,
  15. value: false,
  16. },
  17. },
  18. data: { visible: false },
  19. methods: {
  20. reset() {
  21. this.triggerEvent('reset');
  22. },
  23. confirm() {
  24. this.triggerEvent('confirm');
  25. },
  26. close() {
  27. this.triggerEvent('showFilterPopupClose');
  28. this.setData({ visible: false });
  29. },
  30. },
  31. });