|
@@ -5,7 +5,7 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef } from 'vue'
|
|
import { shallowRef } from 'vue'
|
|
|
import { Chart } from 'hqchart'
|
|
import { Chart } from 'hqchart'
|
|
|
-import { changeUnit, handleNumberValue } from '@/filters'
|
|
|
|
|
|
|
+import { handleNumberValue } from '@/filters'
|
|
|
import { useFuturesStore } from '@/stores'
|
|
import { useFuturesStore } from '@/stores'
|
|
|
import { useDataset } from '@/hooks/hqchart/timeline/dataset'
|
|
import { useDataset } from '@/hooks/hqchart/timeline/dataset'
|
|
|
import { MinuteChartContainer, NetworkFilterData, NetworkFilterCallback } from '@/hooks/hqchart/timeline/types'
|
|
import { MinuteChartContainer, NetworkFilterData, NetworkFilterCallback } from '@/hooks/hqchart/timeline/types'
|
|
@@ -63,7 +63,7 @@ const chartOption = {
|
|
|
const { FormatDateTimeString } = Chart.IFrameSplitOperator
|
|
const { FormatDateTimeString } = Chart.IFrameSplitOperator
|
|
|
// 自定义标题栏,参考源码 DynamicMinuteTitlePainting.GetFormatTitle
|
|
// 自定义标题栏,参考源码 DynamicMinuteTitlePainting.GetFormatTitle
|
|
|
paint.GetFormatTitle = (data) => {
|
|
paint.GetFormatTitle = (data) => {
|
|
|
- const { DateTime, Open, Close, Vol, Amount, YClose, Increase } = data.Data
|
|
|
|
|
|
|
+ const { DateTime, Open, Close, YClose, Increase } = data.Data
|
|
|
const AryText = [
|
|
const AryText = [
|
|
|
{ Text: FormatDateTimeString(DateTime, paint.IsShowDate, paint.IsShowTime), Color: paint.DateTimeColor },
|
|
{ Text: FormatDateTimeString(DateTime, paint.IsShowDate, paint.IsShowTime), Color: paint.DateTimeColor },
|
|
|
{ Text: '价:' + handleNumberValue(Close), Color: paint.GetColor(Open, YClose) },
|
|
{ Text: '价:' + handleNumberValue(Close), Color: paint.GetColor(Open, YClose) },
|