mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 04:46:31 +08:00
fix(charts): chartColors -> chartColor.value
This commit is contained in:
parent
aa25962d8d
commit
1bd40889a5
|
@ -390,10 +390,10 @@ export default defineComponent({
|
||||||
BUY_COLUMNS,
|
BUY_COLUMNS,
|
||||||
onCurrencyChange(checkedValues: string[]) {
|
onCurrencyChange(checkedValues: string[]) {
|
||||||
currentMonth.value = getThisMonth(checkedValues);
|
currentMonth.value = getThisMonth(checkedValues);
|
||||||
monitorChart.setOption(getLineChartDataSet({ dateTime: checkedValues, ...chartColors }));
|
monitorChart.setOption(getLineChartDataSet({ dateTime: checkedValues, ...chartColors.value }));
|
||||||
},
|
},
|
||||||
onStokeDataChange(checkedValues: string[]) {
|
onStokeDataChange(checkedValues: string[]) {
|
||||||
stokeChart.setOption(constructInitDataset({ dateTime: checkedValues, ...chartColors }));
|
stokeChart.setOption(constructInitDataset({ dateTime: checkedValues, ...chartColors.value }));
|
||||||
},
|
},
|
||||||
rehandleClickOp(val: MouseEvent) {
|
rehandleClickOp(val: MouseEvent) {
|
||||||
console.log(val);
|
console.log(val);
|
||||||
|
|
|
@ -168,7 +168,7 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
const onAlertChange = () => {
|
const onAlertChange = () => {
|
||||||
dataChart.setOption(get2ColBarChartDataSet({ ...chartColors }));
|
dataChart.setOption(get2ColBarChartDataSet({ ...chartColors.value }));
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user