index.js 638 B

12345678910111213141516171819202122232425262728
  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. },
  21. methods: {
  22. onClick: function () {
  23. this.$emit('click');
  24. },
  25. // for prevent touchmove
  26. noop: function () { },
  27. },
  28. });