Browse Source

新的类型提示

xiaochan 1 tháng trước cách đây
mục cha
commit
0a3ed74738
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      src/utils/emr/emr-init-v2.ts

+ 8 - 2
src/utils/emr/emr-init-v2.ts

@@ -1,6 +1,6 @@
 // @ts-nocheck
 import { EditType, Runtime } from "./edit";
-import { resolveDirective, UnwrapRef, withDirectives } from "vue";
+import { UnwrapRef } from "vue";
 import { BizException, ExceptionEnum } from "../BizException";
 import { ElMessageBox } from "element-plus";
 import XEUtils from "xe-utils";
@@ -113,7 +113,13 @@ export function useEmrDiv(
   options?: Options,
   cb?: (res: UseEmrInitReturn) => void
 ) {
-  const divRef = shallowRef<{ rst: UseEmrInitReturn }>();
+  const divRef = shallowRef<{
+    rst: UseEmrInitReturn;
+    myEmr: {
+      emr: EditType;
+      runtime: Runtime;
+    };
+  }>();
   const showLoading = shallowRef(true);
 
   const DivIframe = defineComponent({