Skip to content

Commit

Permalink
fix: fix echarts version (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol authored Apr 9, 2024
1 parent 0aaa351 commit 1655b59
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/toolkits/pro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentiny/tiny-toolkit-pro",
"version": "1.0.15",
"version": "1.0.20",
"description": "TinyPro 开箱即用的中后台前端/设计解决方案",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkits/pro/template/tinyvue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@vueuse/head": "^2.0.0",
"axios": "^1.6.0",
"dayjs": "^1.11.10",
"echarts": "^5.4.3",
"echarts": "~5.4.3",
"echarts4": "npm:[email protected]",
"fp-ts": "2.16.1",
"mitt": "^3.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>

<script lang="ts" setup>
import { onMounted, watch, inject, ref } from 'vue';
import { onMounted, watch, inject, ref, nextTick } from 'vue';
import { useI18n } from 'vue-i18n';
import useLocale from '@/hooks/locale';
Expand Down Expand Up @@ -192,6 +192,9 @@
window.addEventListener('resize', () => {
myChart.resize();
});
nextTick(() => {
myChart.resize()
});
});
watch(currentLocale, (newValue, oldValue) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>

<script lang="ts" setup>
import { onMounted, watch, inject, ref } from 'vue';
import { onMounted, watch, inject, ref, nextTick } from 'vue';
import { useI18n } from 'vue-i18n';
import useLocale from '@/hooks/locale';
Expand Down Expand Up @@ -174,6 +174,9 @@
window.addEventListener('resize', () => {
myChart.resize();
});
nextTick(() => {
myChart.resize()
});
});
watch(currentLocale, (newValue, oldValue) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<script lang="ts" setup>
import { onMounted, inject, ref } from 'vue';
import { onMounted, inject, ref, nextTick } from 'vue';
import RegionTable from './regiontable.vue';
const data = [
Expand Down Expand Up @@ -115,6 +115,9 @@
myChart.resize();
});
options && myChart.setOption(options);
nextTick(() => {
myChart.resize()
});
});
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</template>

<script lang="ts" setup>
import { onMounted, watch, inject, ref } from 'vue';
import { onMounted, watch, inject, ref, nextTick } from 'vue';
import { useI18n } from 'vue-i18n';
import useLocale from '@/hooks/locale';
import RoundTable from './roundtable.vue';
Expand Down Expand Up @@ -74,6 +74,9 @@
window.addEventListener('resize', () => {
myChart.resize();
});
nextTick(() => {
myChart.resize()
});
});
watch(currentLocale, (newValue, oldValue) => {
Expand Down

0 comments on commit 1655b59

Please sign in to comment.