mirror of https://github.com/ElemeFE/element
				
				
				
			DatePicker: fix the panel is not updated when value change, fixed #1158
							parent
							
								
									304f02ea0e
								
							
						
					
					
						commit
						2f6750964e
					
				| 
						 | 
					@ -228,6 +228,8 @@
 | 
				
			||||||
          this.$refs.yearTable.nextTenYear();
 | 
					          this.$refs.yearTable.nextTenYear();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          this.year++;
 | 
					          this.year++;
 | 
				
			||||||
 | 
					          this.date.setFullYear(this.year);
 | 
				
			||||||
 | 
					          this.resetDate();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -236,6 +238,8 @@
 | 
				
			||||||
          this.$refs.yearTable.prevTenYear();
 | 
					          this.$refs.yearTable.prevTenYear();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          this.year--;
 | 
					          this.year--;
 | 
				
			||||||
 | 
					          this.date.setFullYear(this.year);
 | 
				
			||||||
 | 
					          this.resetDate();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue