fix: Slider error when clicking mark #407
							parent
							
								
									99bf3044d6
								
							
						
					
					
						commit
						73f9b23f8b
					
				|  | @ -140,9 +140,7 @@ export default { | |||
|         tabBarExtraContent, | ||||
|         renderTabBar: renderTabBarSlot, | ||||
|       }, | ||||
|       on: { | ||||
|         ...this.$listeners, | ||||
|       }, | ||||
|       on: this.$listeners, | ||||
|     }; | ||||
|     const contentCls = { | ||||
|       [`${prefixCls}-${tabPosition}-content`]: true, | ||||
|  |  | |||
|  | @ -190,7 +190,7 @@ export default function createSlider(Component) { | |||
|       }, | ||||
|       onClickMarkLabel(e, value) { | ||||
|         e.stopPropagation(); | ||||
|         this.onChange({ value }); | ||||
|         this.onChange({ sValue: value }); | ||||
|         this.onEnd(); | ||||
|       }, | ||||
|       getSliderStart() { | ||||
|  | @ -294,7 +294,7 @@ export default function createSlider(Component) { | |||
|           min, | ||||
|           className: `${prefixCls}-mark`, | ||||
|         }, | ||||
|         listeners: { | ||||
|         on: { | ||||
|           clickLabel: disabled ? noop : this.onClickMarkLabel, | ||||
|         }, | ||||
|       }; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 tangjinzhou
						tangjinzhou