index.js 742 B

123456789101112131415161718192021222324252627282930313233343536
  1. // components/toast/index.js
  2. import { CDN_URL,API_BASE_URL,TYPE } from '../../config/index'
  3. import { VantComponent } from '../vant-ui/common/component';
  4. VantComponent({
  5. props: {
  6. show: Boolean,
  7. mask: Boolean,
  8. message: String,
  9. forbidClick: Boolean,
  10. zIndex: {
  11. type: Number,
  12. value: 1000
  13. },
  14. type: {
  15. type: String,
  16. value: 'text'
  17. },
  18. loadingType: {
  19. type: String,
  20. value: 'circular'
  21. },
  22. position: {
  23. type: String,
  24. value: 'middle'
  25. }
  26. },
  27. data:{
  28. cdn_url:CDN_URL,
  29. },
  30. methods: {
  31. // for prevent touchmove
  32. noop() { }
  33. }
  34. });