index.js 724 B

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var component_1 = require("../common/component");
  4. (0, component_1.VantComponent)({
  5. props: {
  6. show: Boolean,
  7. customStyle: String,
  8. duration: {
  9. type: null,
  10. value: 300,
  11. },
  12. zIndex: {
  13. type: Number,
  14. value: 1,
  15. },
  16. lockScroll: {
  17. type: Boolean,
  18. value: true,
  19. },
  20. rootPortal: {
  21. type: Boolean,
  22. value: false,
  23. },
  24. },
  25. methods: {
  26. onClick: function () {
  27. this.$emit('click');
  28. },
  29. // for prevent touchmove
  30. noop: function () { },
  31. },
  32. });