mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	Merge branch 'master' of gitlab.qima-inc.com:fe/zanui-vue
This commit is contained in:
		
						commit
						e4249aa1da
					
				| @ -3,9 +3,9 @@ import Vue from 'vue'; | ||||
| const ToastConstructor = Vue.extend(require('./toast.vue')); | ||||
| let toastQueue = []; | ||||
| 
 | ||||
| let getInstance = () => { | ||||
| const getInstance = () => { | ||||
|   if (toastQueue.length > 0) { | ||||
|     let instance = toastQueue[0]; | ||||
|     const instance = toastQueue[0]; | ||||
|     toastQueue.splice(0, 1); | ||||
|     return instance; | ||||
|   } | ||||
| @ -26,7 +26,6 @@ const removeDom = event => { | ||||
|   } | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
| var Toast = (options = {}) => { | ||||
|   const duration = options.duration || 3000; | ||||
| 
 | ||||
| @ -41,7 +40,6 @@ var Toast = (options = {}) => { | ||||
|   Vue.nextTick(function() { | ||||
|     instance.visible = true; | ||||
|     instance.$el.removeEventListener('transitionend', removeDom); | ||||
|      | ||||
|     instance.timer = setTimeout(function() { | ||||
|       if (instance.closed) return; | ||||
|       instance.visible = false; | ||||
|  | ||||
| @ -3,9 +3,10 @@ | ||||
| @component-namespace zan { | ||||
|   @b toast { | ||||
|     position: fixed; | ||||
|     z-index: 3000; | ||||
|     border-radius: 5px; | ||||
|     background-color: #272727; | ||||
|     opacity: 0.7; | ||||
|     opacity: .7; | ||||
|     top: 50%; | ||||
|     left: 50%; | ||||
|     transform: translate3d(-50%, -50%, 0); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user