index.js 525 B

1234567891011121314151617181920212223242526
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. props: {
  4. show: Boolean,
  5. customStyle: String,
  6. duration: {
  7. type: null,
  8. value: 300,
  9. },
  10. zIndex: {
  11. type: Number,
  12. value: 1,
  13. },
  14. lockScroll: {
  15. type: Boolean,
  16. value: true,
  17. },
  18. },
  19. methods: {
  20. onClick() {
  21. this.$emit('click');
  22. },
  23. // for prevent touchmove
  24. noop() { },
  25. },
  26. });