Commit e66bae5f34a09301bea5a3b4f945a773d2eaa991

Authored by xp.Huang
2 parents fec47c39 22c56d2c

Merge branch 'perf/type-error' into 'main_dev'

perf(src/views): 优化装饰27到30,类型错误

See merge request yunteng/thingskit-view!256
@@ -180,8 +180,8 @@ const { w, h } = toRefs(props.chartConfig.attr) @@ -180,8 +180,8 @@ const { w, h } = toRefs(props.chartConfig.attr)
180 const { dataset, fontConfig } = toRefs(props.chartConfig.option as typeof option) 180 const { dataset, fontConfig } = toRefs(props.chartConfig.option as typeof option)
181 181
182 // 预览更新 182 // 预览更新
183 -useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string | number) => {  
184 - dataset.value = newData as string | number 183 +useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string) => {
  184 + dataset.value = newData as string
185 }) 185 })
186 </script> 186 </script>
187 187
@@ -331,8 +331,8 @@ const { w, h } = toRefs(props.chartConfig.attr) @@ -331,8 +331,8 @@ const { w, h } = toRefs(props.chartConfig.attr)
331 const { dataset, fontConfig } = toRefs(props.chartConfig.option as typeof option) 331 const { dataset, fontConfig } = toRefs(props.chartConfig.option as typeof option)
332 332
333 // 预览更新 333 // 预览更新
334 -useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string | number) => {  
335 - dataset.value = newData as string | number 334 +useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string) => {
  335 + dataset.value = newData as string
336 }) 336 })
337 </script> 337 </script>
338 338
@@ -315,8 +315,8 @@ const { w, h } = toRefs(props.chartConfig.attr) @@ -315,8 +315,8 @@ const { w, h } = toRefs(props.chartConfig.attr)
315 const { dataset, fontConfig } = toRefs(props.chartConfig.option as typeof option) 315 const { dataset, fontConfig } = toRefs(props.chartConfig.option as typeof option)
316 316
317 // 预览更新 317 // 预览更新
318 -useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string | number) => {  
319 - dataset.value = newData as string | number 318 +useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string) => {
  319 + dataset.value = newData as string
320 }) 320 })
321 </script> 321 </script>
322 322
@@ -286,8 +286,8 @@ const { w, h } = toRefs(props.chartConfig.attr) @@ -286,8 +286,8 @@ const { w, h } = toRefs(props.chartConfig.attr)
286 const { dataset, fontConfig, unitStr, titleStr } = toRefs(props.chartConfig.option as typeof option) 286 const { dataset, fontConfig, unitStr, titleStr } = toRefs(props.chartConfig.option as typeof option)
287 287
288 // 预览更新 288 // 预览更新
289 -useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string | number) => {  
290 - dataset.value = newData as string | number 289 +useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string) => {
  290 + dataset.value = newData as string
291 }) 291 })
292 </script> 292 </script>
293 293