mirror of
				https://github.com/ecomfe/vue-echarts.git
				synced 2025-10-31 00:46:04 +08:00 
			
		
		
		
	fix: fix updateOptions
This commit is contained in:
		| @ -160,10 +160,7 @@ export default defineComponent({ | ||||
|       if (!chart.value) { | ||||
|         init(option); | ||||
|       } else { | ||||
|         chart.value.setOption(option, { | ||||
|           ...realUpdateOptions.value, | ||||
|           ...updateOptions | ||||
|         }); | ||||
|         chart.value.setOption(option, updateOptions || {}); | ||||
|       } | ||||
|     } | ||||
|  | ||||
| @ -193,7 +190,7 @@ export default defineComponent({ | ||||
|               if (!chart.value) { | ||||
|                 init(); | ||||
|               } else { | ||||
|                 chart.value.setOption(option, props.updateOptions); | ||||
|                 chart.value.setOption(option, realUpdateOptions.value); | ||||
|               } | ||||
|             }, | ||||
|             { deep: true } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Justineo
					Justineo