Commit e0ae3bd2e95045ccb1c4630ff511e93dc8ca3277
1 parent
06d82be0
feat(packages/external): 重写部分柱状图和部分折线图,新增开启关闭动画效果
Showing
3 changed files
with
4 additions
and
3 deletions
| @@ -156,11 +156,12 @@ watch( | @@ -156,11 +156,12 @@ watch( | ||
| 156 | ) | 156 | ) |
| 157 | 157 | ||
| 158 | const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: typeof dataJson) => { | 158 | const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: typeof dataJson) => { |
| 159 | - addPieInterval(newData) | 159 | + // addPieInterval(newData) |
| 160 | }) | 160 | }) |
| 161 | 161 | ||
| 162 | onMounted(() => { | 162 | onMounted(() => { |
| 163 | seriesDataMaxLength = dataJson.source.length | 163 | seriesDataMaxLength = dataJson.source.length |
| 164 | + console.log(props.chartConfig.option.isCarousel) | ||
| 164 | if (props.chartConfig.option.isCarousel) { | 165 | if (props.chartConfig.option.isCarousel) { |
| 165 | addPieInterval(undefined, true) | 166 | addPieInterval(undefined, true) |
| 166 | } | 167 | } |
| @@ -155,7 +155,7 @@ watch( | @@ -155,7 +155,7 @@ watch( | ||
| 155 | ) | 155 | ) |
| 156 | 156 | ||
| 157 | const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: typeof dataJson) => { | 157 | const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: typeof dataJson) => { |
| 158 | - addPieInterval(newData) | 158 | + // addPieInterval(newData) |
| 159 | }) | 159 | }) |
| 160 | 160 | ||
| 161 | onMounted(() => { | 161 | onMounted(() => { |
| @@ -163,7 +163,7 @@ watch( | @@ -163,7 +163,7 @@ watch( | ||
| 163 | ) | 163 | ) |
| 164 | 164 | ||
| 165 | const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: typeof dataJson) => { | 165 | const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: typeof dataJson) => { |
| 166 | - addPieInterval(newData) | 166 | + // addPieInterval(newData) |
| 167 | }) | 167 | }) |
| 168 | 168 | ||
| 169 | onMounted(() => { | 169 | onMounted(() => { |