index.js 435 B

12345678910111213141516171819202122
  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. },
  15. methods: {
  16. onClick() {
  17. this.$emit('click');
  18. },
  19. // for prevent touchmove
  20. noop() { }
  21. }
  22. });