فهرست منبع

fix: 抽离引入冲突

bill 4 روز پیش
والد
کامیت
9d90b4c383

+ 2 - 0
src/core/components/line-chunk/attrib.ts

@@ -0,0 +1,2 @@
+
+export const fixedStrokeOptions:number[] = [];

+ 2 - 2
src/core/components/line-chunk/index.ts

@@ -1,5 +1,5 @@
 import { inRevise, onlyId } from "@/utils/shared";
-import { InteractiveFix, InteractiveTo } from "..";
+import type { InteractiveFix, InteractiveTo } from "..";
 import { LineData, generateUseDraw } from "../line";
 import { getBaseItem } from "../util";
 import { getMouseColors } from "@/utils/colors";
@@ -19,7 +19,7 @@ export const defaultStyle = {
   dash: [30, 0],
 };
 
-export const fixedStrokeOptions:number[] = [];
+export { fixedStrokeOptions } from "./attrib";
 export const useDraw = generateUseDraw('lineChunk');
 
 export const getMouseStyle = (data: LineData) => {

+ 1 - 1
src/core/components/line/single-line.vue

@@ -111,7 +111,7 @@ import { useStore } from "@/core/store/index.ts";
 import { useHistory } from "@/core/hook/use-history.ts";
 import { useTransformIngShapes } from "@/core/hook/use-global-vars.ts";
 import { components } from "../index.ts";
-import { fixedStrokeOptions } from "../line-chunk/index.ts";
+import { fixedStrokeOptions } from "../line-chunk/attrib.ts";
 import { ui18n } from "@/lang/index.ts";
 
 const props = defineProps<{