mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 空间交互失效
This commit is contained in:
@@ -31,12 +31,12 @@ const option = shallowReactive({
|
||||
|
||||
const onChange = (v: number | number[]) => {
|
||||
if (v instanceof Array) {
|
||||
const data1 = dayjs(v[0]).format('YYYY-MM-DD')
|
||||
const data2 = dayjs(v[1]).format('YYYY-MM-DD')
|
||||
useChartInteract(props.chartConfig, useChartEditStore, { data1, data2 }, 'change')
|
||||
const dateStart = dayjs(v[0]).format('YYYY-MM-DD')
|
||||
const dateEnd = dayjs(v[1]).format('YYYY-MM-DD')
|
||||
useChartInteract(props.chartConfig, useChartEditStore, { dateStart, dateEnd }, 'change')
|
||||
} else {
|
||||
const data1 = dayjs(v).format('YYYY-MM-DD')
|
||||
useChartInteract(props.chartConfig, useChartEditStore, { data1 }, 'change')
|
||||
const date = dayjs(v).format('YYYY-MM-DD')
|
||||
useChartInteract(props.chartConfig, useChartEditStore, { date }, 'change')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user