Skip to content

Commit 1655b59

Browse files
authored
fix: fix echarts version (#130)
1 parent 0aaa351 commit 1655b59

6 files changed

Lines changed: 18 additions & 6 deletions

File tree

packages/toolkits/pro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opentiny/tiny-toolkit-pro",
3-
"version": "1.0.15",
3+
"version": "1.0.20",
44
"description": "TinyPro 开箱即用的中后台前端/设计解决方案",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

packages/toolkits/pro/template/tinyvue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@vueuse/head": "^2.0.0",
3636
"axios": "^1.6.0",
3737
"dayjs": "^1.11.10",
38-
"echarts": "^5.4.3",
38+
"echarts": "~5.4.3",
3939
"echarts4": "npm:echarts@4.9.0",
4040
"fp-ts": "2.16.1",
4141
"mitt": "^3.0.1",

packages/toolkits/pro/template/tinyvue/src/views/board/home/components/curve.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</template>
88

99
<script lang="ts" setup>
10-
import { onMounted, watch, inject, ref } from 'vue';
10+
import { onMounted, watch, inject, ref, nextTick } from 'vue';
1111
import { useI18n } from 'vue-i18n';
1212
import useLocale from '@/hooks/locale';
1313
@@ -192,6 +192,9 @@
192192
window.addEventListener('resize', () => {
193193
myChart.resize();
194194
});
195+
nextTick(() => {
196+
myChart.resize()
197+
});
195198
});
196199
197200
watch(currentLocale, (newValue, oldValue) => {

packages/toolkits/pro/template/tinyvue/src/views/board/home/components/falls.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</template>
88

99
<script lang="ts" setup>
10-
import { onMounted, watch, inject, ref } from 'vue';
10+
import { onMounted, watch, inject, ref, nextTick } from 'vue';
1111
import { useI18n } from 'vue-i18n';
1212
import useLocale from '@/hooks/locale';
1313
@@ -174,6 +174,9 @@
174174
window.addEventListener('resize', () => {
175175
myChart.resize();
176176
});
177+
nextTick(() => {
178+
myChart.resize()
179+
});
177180
});
178181
179182
watch(currentLocale, (newValue, oldValue) => {

packages/toolkits/pro/template/tinyvue/src/views/board/home/components/region.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</template>
1515

1616
<script lang="ts" setup>
17-
import { onMounted, inject, ref } from 'vue';
17+
import { onMounted, inject, ref, nextTick } from 'vue';
1818
import RegionTable from './regiontable.vue';
1919
2020
const data = [
@@ -115,6 +115,9 @@
115115
myChart.resize();
116116
});
117117
options && myChart.setOption(options);
118+
nextTick(() => {
119+
myChart.resize()
120+
});
118121
});
119122
</script>
120123

packages/toolkits/pro/template/tinyvue/src/views/board/home/components/round.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</template>
1313

1414
<script lang="ts" setup>
15-
import { onMounted, watch, inject, ref } from 'vue';
15+
import { onMounted, watch, inject, ref, nextTick } from 'vue';
1616
import { useI18n } from 'vue-i18n';
1717
import useLocale from '@/hooks/locale';
1818
import RoundTable from './roundtable.vue';
@@ -74,6 +74,9 @@
7474
window.addEventListener('resize', () => {
7575
myChart.resize();
7676
});
77+
nextTick(() => {
78+
myChart.resize()
79+
});
7780
});
7881
7982
watch(currentLocale, (newValue, oldValue) => {

0 commit comments

Comments
 (0)