vant.js 416 B

1234567891011121314151617
  1. import Vue from 'vue';
  2. // import Toast from '../wxcomponents/vant/toast/toast';
  3. import Dialog from '../wxcomponents/vant/dialog/dialog';
  4. // Vue.prototype.$toast = Toast
  5. Vue.prototype.$toast = (msg) => {
  6. uni.showToast({
  7. title: msg,
  8. icon: "none"
  9. });
  10. }
  11. Vue.prototype.$toast.success=(msg)=>{
  12. uni.showToast({
  13. title: msg,
  14. icon: "success"
  15. });
  16. }
  17. Vue.prototype.$dialog = Dialog