index.js 310 B

1234567891011121314151617181920212223
  1. Component({
  2. props: {
  3. position: 'bottom',
  4. className: '',
  5. disableScroll: false
  6. },
  7. data: {
  8. show: false
  9. },
  10. methods: {
  11. show(show) {
  12. show = show === undefined ? true : show;
  13. this.setData({
  14. show
  15. });
  16. },
  17. onClose() {
  18. this.show(false);
  19. }
  20. }
  21. });