index.js 578 B

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