|
|
@@ -17,7 +17,7 @@
|
|
|
<li class="legend-item">MA10: {{ selectedItem.ma10 }}</li>
|
|
|
<li class="legend-item">MA15: {{ selectedItem.ma15 }}</li>
|
|
|
</ul>
|
|
|
- <app-echarts :option="options.candlestick" v-model:index="dataIndex" @ready="mainReady" />
|
|
|
+ <app-echarts :option="options.candlestick" v-model:dataIndex="dataIndex" @ready="mainReady" />
|
|
|
</div>
|
|
|
<template v-if="showIndicator">
|
|
|
<div class="app-echats-kline__container indicator">
|
|
|
@@ -28,14 +28,14 @@
|
|
|
<li class="legend-item">DIF: {{ selectedItem.dif }}</li>
|
|
|
<li class="legend-item">DEA: {{ selectedItem.dea }}</li>
|
|
|
</ul>
|
|
|
- <app-echarts :option="options.macd" v-model:index="dataIndex" @ready="indicatorReady" />
|
|
|
+ <app-echarts :option="options.macd" v-model:dataIndex="dataIndex" @ready="indicatorReady" />
|
|
|
</section>
|
|
|
<!-- VOL -->
|
|
|
<section class="section" v-if="activeSeriesType === EChartsSeriesType.VOL">
|
|
|
<ul class="legend">
|
|
|
<li class="legend-item">VOL: {{ selectedItem.vol }}</li>
|
|
|
</ul>
|
|
|
- <app-echarts :option="options.vol" v-model:index="dataIndex" @ready="indicatorReady" />
|
|
|
+ <app-echarts :option="options.vol" v-model:dataIndex="dataIndex" @ready="indicatorReady" />
|
|
|
</section>
|
|
|
<!-- KDJ -->
|
|
|
<section class="section" v-if="activeSeriesType === EChartsSeriesType.KDJ">
|
|
|
@@ -44,14 +44,14 @@
|
|
|
<li class="legend-item">D: {{ selectedItem.d }}</li>
|
|
|
<li class="legend-item">J: {{ selectedItem.j }}</li>
|
|
|
</ul>
|
|
|
- <app-echarts :option="options.kdj" v-model:index="dataIndex" @ready="indicatorReady" />
|
|
|
+ <app-echarts :option="options.kdj" v-model:dataIndex="dataIndex" @ready="indicatorReady" />
|
|
|
</section>
|
|
|
<!-- CCI -->
|
|
|
<section class="section" v-if="activeSeriesType === EChartsSeriesType.CCI">
|
|
|
<ul class="legend">
|
|
|
<li class="legend-item">CCI: {{ selectedItem.cci }}</li>
|
|
|
</ul>
|
|
|
- <app-echarts :option="options.cci" v-model:index="dataIndex" @ready="indicatorReady" />
|
|
|
+ <app-echarts :option="options.cci" v-model:dataIndex="dataIndex" @ready="indicatorReady" />
|
|
|
</section>
|
|
|
</div>
|
|
|
<app-tab theme="menu" :data-source="tabs" @change="tabChange" />
|
|
|
@@ -62,11 +62,11 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { ref, PropType, watch } from 'vue'
|
|
|
+import { echarts } from '@/components/base/echarts/core'
|
|
|
import { EChartsCycleType, EChartsSeriesType } from '@/constants/enum'
|
|
|
import { useCandlestickChart } from '@/hooks/echarts/candlestick'
|
|
|
import AppEcharts from '@/components/base/echarts/index.vue'
|
|
|
import AppTab from '@/components/base/tab/index.vue'
|
|
|
-import * as echarts from 'echarts'
|
|
|
|
|
|
const props = defineProps({
|
|
|
goodscode: {
|