You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							65 lines
						
					
					
						
							891 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							65 lines
						
					
					
						
							891 B
						
					
					
				
								Component({
							 | 
						|
								  data: {
							 | 
						|
								    visible: false
							 | 
						|
								  },
							 | 
						|
								  properties: {
							 | 
						|
								    dialogVisible: {
							 | 
						|
								      type: Boolean,
							 | 
						|
								      value: false,
							 | 
						|
								      observer: function () {
							 | 
						|
								        this.setData({
							 | 
						|
								          visible: !this.data.visible
							 | 
						|
								        })
							 | 
						|
								      }
							 | 
						|
								    },
							 | 
						|
								    title: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: ""
							 | 
						|
								    },
							 | 
						|
								    content: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: ""
							 | 
						|
								    },
							 | 
						|
								    confirmText: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: ""
							 | 
						|
								    },
							 | 
						|
								    cancelText: {
							 | 
						|
								      type: String,
							 | 
						|
								      value: ""
							 | 
						|
								    }
							 | 
						|
								  },
							 | 
						|
								  pageLifetimes: {
							 | 
						|
								    show () {
							 | 
						|
								
							 | 
						|
								    },
							 | 
						|
								    hide () {
							 | 
						|
								
							 | 
						|
								    }
							 | 
						|
								  },
							 | 
						|
								  lifetimes: {
							 | 
						|
								    attached () {
							 | 
						|
								
							 | 
						|
								    },
							 | 
						|
								    detached () {
							 | 
						|
								      
							 | 
						|
								    }
							 | 
						|
								  },
							 | 
						|
								  methods: {
							 | 
						|
								    close () {
							 | 
						|
								      this.triggerEvent("close")
							 | 
						|
								      this.setData({
							 | 
						|
								        visible: false
							 | 
						|
								      })
							 | 
						|
								    },
							 | 
						|
								    confirm () {
							 | 
						|
								      this.triggerEvent("confirm")
							 | 
						|
								      this.setData({
							 | 
						|
								        visible: false
							 | 
						|
								      })
							 | 
						|
								    },
							 | 
						|
								    catchmove () {
							 | 
						|
								
							 | 
						|
								    }
							 | 
						|
								  }
							 | 
						|
								})
							 |