chore: 升级依赖,相关兼容处理

This commit is contained in:
xiaoxian521
2026-01-15 13:13:00 +08:00
parent 4c3ad7acce
commit d7c049d821
5 changed files with 950 additions and 936 deletions

View File

@@ -1,7 +1,6 @@
import { ref, computed } from "vue";
import { tableDataDrag } from "../data";
import { message } from "@/utils/message";
import { templateRef } from "@vueuse/core";
import { ref, computed, useTemplateRef } from "vue";
import { clone, useDark, useECharts } from "@pureadmin/utils";
export function useColumns() {
@@ -31,7 +30,7 @@ export function useColumns() {
const theme = computed(() => (isDark.value ? "dark" : "light"));
dataList.value.forEach((_, i) => {
const { setOptions } = useECharts(templateRef(`PieChartRef${i}`), {
const { setOptions } = useECharts(useTemplateRef(`PieChartRef${i}`), {
theme
});

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, nextTick, ref, toRef, watch } from "vue";
import { TransitionPresets, executeTransition } from "@vueuse/core";
import { TransitionPresets, transition } from "@vueuse/core";
import {
Position,
BaseEdge,
@@ -153,7 +153,7 @@ async function runAnimation() {
currentLength.value = totalLength;
}
await executeTransition(edgePoint, from, totalLength, {
await transition(edgePoint, from, totalLength, {
transition: TransitionPresets.easeInOutCubic,
duration: Math.max(1500, totalLength / 2),
abort: () => !isAnimating.value