index.js 695 B

12345678910111213141516171819202122232425262728293031323334
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. props: {
  4. show: Boolean,
  5. mask: Boolean,
  6. message: String,
  7. forbidClick: Boolean,
  8. zIndex: {
  9. type: Number,
  10. value: 1000
  11. },
  12. type: {
  13. type: String,
  14. value: 'text'
  15. },
  16. loadingType: {
  17. type: String,
  18. value: 'circular'
  19. },
  20. position: {
  21. type: String,
  22. value: 'middle'
  23. }
  24. },
  25. methods: {
  26. clear() {
  27. this.set({
  28. show: false
  29. });
  30. },
  31. // for prevent touchmove
  32. noop() { }
  33. }
  34. });