cnhis-design-vue 3.3.1-beta.0 → 3.3.1-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/es/components/ai-chat/index.d.ts +10 -146
  2. package/es/components/ai-chat/src/Index.vue.d.ts +10 -146
  3. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  4. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  5. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +2 -55
  6. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  7. package/es/components/ai-chat/src/utils/index.d.ts +0 -1
  8. package/es/components/ai-chat/src/utils/index.js +1 -1
  9. package/es/components/ai-chat/style/index.css +1 -1
  10. package/es/components/audio-sdk/index.d.ts +304 -2
  11. package/es/components/audio-sdk/index.js +1 -1
  12. package/es/components/audio-sdk/src/Index.vue.d.ts +304 -0
  13. package/es/components/audio-sdk/src/Index.vue.js +1 -0
  14. package/es/components/audio-sdk/src/Index.vue2.js +1 -0
  15. package/es/components/audio-sdk/src/audioSDK.d.ts +5 -8
  16. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  17. package/es/components/audio-sdk/src/components/form.vue.d.ts +51 -0
  18. package/es/components/audio-sdk/src/components/form.vue.js +1 -0
  19. package/es/components/audio-sdk/src/components/form.vue2.js +1 -0
  20. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +91 -0
  21. package/es/components/audio-sdk/src/components/recording-modal.vue.js +1 -0
  22. package/es/components/audio-sdk/src/components/recording-modal.vue2.js +1 -0
  23. package/es/components/audio-sdk/src/components/recording.vue.d.ts +43 -4
  24. package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
  25. package/es/components/audio-sdk/src/utils/index.d.ts +4 -0
  26. package/es/components/audio-sdk/src/utils/index.js +1 -0
  27. package/es/components/audio-sdk/src/utils/recordingModal.d.ts +7 -4
  28. package/es/components/audio-sdk/src/utils/recordingModal.js +1 -1
  29. package/es/components/audio-sdk/style/index.css +1 -1
  30. package/es/components/callback/src/components/render/popupMaps.d.ts +7 -1
  31. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  32. package/es/components/editor/src/Editor.js +1 -1
  33. package/es/components/editor/style/index.css +0 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  35. package/es/components/field-editor/index.d.ts +7 -1
  36. package/es/components/field-editor/src/FieldEditor.vue.d.ts +7 -1
  37. package/es/components/form-config/index.d.ts +38 -3
  38. package/es/components/form-config/src/FormConfig.vue.d.ts +39 -4
  39. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +7 -1
  40. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +17 -1
  41. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -1
  42. package/es/components/form-render/index.d.ts +7 -1
  43. package/es/components/form-render/index.js +1 -1
  44. package/es/components/form-render/src/FormRender.vue.d.ts +7 -1
  45. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  46. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +7 -1
  47. package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
  48. package/es/components/form-render/src/components/renderer/date.js +1 -1
  49. package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
  50. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  51. package/es/components/form-render/src/components/renderer/input.d.ts +5 -0
  52. package/es/components/form-render/src/components/renderer/input.js +1 -1
  53. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +14 -1
  54. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +14 -1
  55. package/es/components/form-render/src/components/renderer/select.d.ts +5 -0
  56. package/es/components/form-render/src/components/renderer/select.js +1 -1
  57. package/es/components/form-render/src/components/tooltipMessage.vue.d.ts +12 -1
  58. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
  59. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  60. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -0
  61. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  62. package/es/components/form-render/src/types/index.d.ts +2 -0
  63. package/es/components/form-render/src/utils/index.d.ts +1 -0
  64. package/es/components/form-render/src/utils/index.js +1 -1
  65. package/es/components/form-render/style/index.css +1 -1
  66. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  67. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  68. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  69. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -3
  70. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  71. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  72. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +7 -0
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -2
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  79. package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
  80. package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +1 -1
  81. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
  82. package/es/components/iho-table/src/types/index.d.ts +1 -0
  83. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  84. package/es/components/index.css +1 -1
  85. package/es/components/index.d.ts +2 -1
  86. package/es/components/index.js +1 -1
  87. package/es/components/info-header/index.d.ts +24 -2
  88. package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -2
  89. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
  90. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
  91. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -1
  92. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +7 -1
  93. package/es/components/scale-view/index.d.ts +3 -2
  94. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -2
  95. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  96. package/es/components/scale-view/src/hooks/scaleview-init.d.ts +3 -1
  97. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  98. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -2189
  99. package/es/components/shortcut-setter/index.d.ts +8 -1
  100. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -1
  101. package/es/shared/components/ArrowIcon/ArrowIcon.vue.js +1 -0
  102. package/es/shared/components/ArrowIcon/index.d.ts +2 -0
  103. package/es/shared/components/ArrowIcon/index.js +1 -0
  104. package/es/shared/components/DateIcon/DateIcon.vue.js +1 -0
  105. package/es/shared/components/DateIcon/index.d.ts +2 -0
  106. package/es/shared/components/DateIcon/index.js +1 -0
  107. package/es/shared/package.json.js +1 -1
  108. package/package.json +2 -2
  109. package/es/components/ai-chat/src/api/index.d.ts +0 -6
  110. package/es/components/ai-chat/src/api/index.js +0 -1
  111. package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -44
  112. package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -1
  113. package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -1
  114. package/es/components/ai-chat/src/components/ChatMainInner.d.ts +0 -2
  115. package/es/components/ai-chat/src/components/ChatMainInner.js +0 -1
  116. package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -56
  117. package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -1
  118. package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -1
  119. package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
  120. package/es/components/ai-chat/src/components/card/JsonCard.js +0 -1
  121. package/es/components/ai-chat/src/components/card/SelectIcon.d.ts +0 -14
  122. package/es/components/ai-chat/src/components/card/SelectIcon.js +0 -1
  123. package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -6
  124. package/es/components/ai-chat/src/hooks/useProgram.js +0 -1
  125. package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -2
  126. package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -1
  127. package/es/shared/assets/img/file-emr.png.js +0 -1
  128. package/es/shared/assets/img/file.png.js +0 -1
  129. package/es/shared/assets/img/use.png.js +0 -1
@@ -1,11 +1,14 @@
1
- import { ComponentInternalInstance, Ref } from 'vue';
1
+ import { ComponentInternalInstance } from 'vue';
2
+ import { AnyObject } from '../../../../shared/types';
2
3
  export declare class RecordingModal {
3
4
  rendered: boolean;
4
5
  target: HTMLElement | null;
5
- show({ contentRef, onClose, instance }: {
6
- contentRef: Ref<string>;
7
- onClose: () => void;
6
+ modalType: string;
7
+ show({ instance, modalType, onClose, props }: {
8
8
  instance?: ComponentInternalInstance;
9
+ onClose: () => void;
10
+ modalType?: string;
11
+ props: AnyObject;
9
12
  }): void;
10
13
  hide(): void;
11
14
  }
@@ -1 +1 @@
1
- import{ref as e,render as t,createVNode as n,withCtx as r,nextTick as o}from"vue";import{createProviderWrapper as s}from"../../../../shared/utils/index.js";import i from"../components/recording.vue.js";class l{constructor(){this.rendered=!1,this.target=null}show({contentRef:l,onClose:a,instance:d}){if(this.rendered)return;this.rendered=!0;const u=document.createElement("div"),h=e(!1),c=s(d);t(n(c,null,{default:r((()=>n(i,{to:u,content:l.value,show:h.value,"onUpdate:show":e=>h.value=e,onClose:()=>p(),onAfterLeave:()=>p()},null)),d)}),u);const m=this;var v;function p(){a()}v=u,document.body.appendChild(v),m.target=v,o((()=>h.value=!0))}hide(){var e;(null==(e=this.target)?void 0:e.parentElement)&&(this.rendered=!1,this.target.parentElement.removeChild(this.target),this.target=null)}}export{l as RecordingModal};
1
+ import{ref as e,render as t,createVNode as r,withCtx as o,mergeProps as n,nextTick as d}from"vue";import{createProviderWrapper as l}from"../../../../shared/utils/index.js";import s from"../components/recording-modal.vue.js";class i{constructor(){this.rendered=!1,this.target=null,this.modalType="recording"}show({instance:i,modalType:a,onClose:h,props:m}){if(this.modalType=a||"recording",this.rendered)return;this.rendered=!0;const u=document.createElement("div"),p=e(!1),c=l(i),v=this;var g;t(r(c,null,{default:o((()=>r(s,n({show:p.value,"onUpdate:show":e=>p.value=e},{to:u,onClose:h,onAfterLeave:h},{content:m.contentRef.value}),null)),i)}),u),g=u,document.body.appendChild(g),v.target=g,d((()=>p.value=!0))}hide(){var e;(null==(e=this.target)?void 0:e.parentElement)&&(this.rendered=!1,this.target.parentElement.removeChild(this.target),this.target=null)}}export{i as RecordingModal};
@@ -1 +1 @@
1
- .c-recording-wrapper{align-items:center;background-color:#fff;border-radius:10px;bottom:100px;display:flex;height:350px;justify-content:center;left:calc(50% - 250px);position:fixed;width:500px}@keyframes toScale{0%{transform:translateX(-50%) translateY(-50%) scale(1)}to{transform:translateX(-50%) translateY(-50%) scale(1.5)}}.c-recording-wrapper .content{font-size:18px;position:absolute;text-align:center;top:20px}.c-recording-wrapper .animation{animation:toScale 1s infinite;background-color:#5585f54d;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scale(1);z-index:-1}.c-recording-wrapper .animation,.c-recording-wrapper .icon-box{align-items:center;border-radius:50%;display:flex;height:90px;justify-content:center;width:90px}.c-recording-wrapper .icon-box{background-color:#5585f5;cursor:pointer}.c-recording-wrapper .tip{bottom:20px;position:absolute}
1
+ .c-recording-wrapper{align-items:center;background-color:#fff;border-radius:10px;display:flex;flex-flow:column nowrap;height:350px;justify-content:center;padding:20px;width:500px}@keyframes toScale{0%{transform:translateX(-50%) translateY(-50%) scale(1)}to{transform:translateX(-50%) translateY(-50%) scale(1.5)}}.c-recording-wrapper .content{-webkit-box-orient:vertical;-webkit-line-clamp:3;display:-webkit-box;font-size:18px;overflow:hidden;text-align:center}.c-recording-wrapper .icon-box{background-color:#5585f5;cursor:pointer;margin:30px auto;position:relative}.c-recording-wrapper .icon-box,.c-recording-wrapper .icon-box:before{align-items:center;border-radius:50%;display:flex;height:90px;justify-content:center;width:90px}.c-recording-wrapper .icon-box:before{animation:toScale 1s infinite;background-color:#5585f54d;content:"";left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scale(1);transform-origin:center center}.c-recording-wrapper .title{height:50px;width:100%}.c-recording-wrapper .title h5{font-size:15px}.c-recording-wrapper .btns{display:flex;margin-top:10px}.c-recording-wrapper .btns .n-button:first-child{margin-right:30px}.c-recording-sdk-wrapper{height:100%;padding:20px;width:100%}.c-recording-sdk-wrapper .c-recording-wrapper{height:100%;width:100%}
@@ -206,6 +206,7 @@ export declare const CallbackMaps: Map<string, {
206
206
  fixMemoLeak: {
207
207
  type: BooleanConstructor;
208
208
  };
209
+ lazyRender: BooleanConstructor;
209
210
  }, {
210
211
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
211
212
  fieldList: {
@@ -408,6 +409,7 @@ export declare const CallbackMaps: Map<string, {
408
409
  fixMemoLeak: {
409
410
  type: BooleanConstructor;
410
411
  };
412
+ lazyRender: BooleanConstructor;
411
413
  }>> & {
412
414
  onFormChange?: ((...args: any[]) => any) | undefined;
413
415
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -582,6 +584,8 @@ export declare const CallbackMaps: Map<string, {
582
584
  linebarTextDirection: "horizontal" | "vertical";
583
585
  autoWidth: number | boolean;
584
586
  feedbackType: "default" | "tooltip";
587
+ fixMemoLeak: boolean;
588
+ lazyRender: boolean;
585
589
  }>) => Record<string, import("@formily/json-schema").Stringify<{
586
590
  [key: symbol]: any;
587
591
  [key: `x-${string}`]: any;
@@ -968,6 +972,7 @@ export declare const CallbackMaps: Map<string, {
968
972
  fixMemoLeak: {
969
973
  type: BooleanConstructor;
970
974
  };
975
+ lazyRender: BooleanConstructor;
971
976
  }>> & {
972
977
  onFormChange?: ((...args: any[]) => any) | undefined;
973
978
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -999,9 +1004,10 @@ export declare const CallbackMaps: Map<string, {
999
1004
  linebarTextDirection: "horizontal" | "vertical";
1000
1005
  autoWidth: number | boolean;
1001
1006
  feedbackType: "default" | "tooltip";
1007
+ fixMemoLeak: boolean;
1008
+ lazyRender: boolean;
1002
1009
  operationalFormInit: boolean;
1003
1010
  incrementalRender: boolean;
1004
- fixMemoLeak: boolean;
1005
1011
  }>;
1006
1012
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
1007
1013
  props: {
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as a,computed as l,onBeforeUnmount as n,watch as o,openBlock as r,createBlock as u,unref as s,isRef as d,createSlots as i,renderList as p,withCtx as c,renderSlot as y,nextTick as f}from"vue";import{promiseTimeout as v}from"@vueuse/shared";import{NDatePicker as m}from"naive-ui";import"../../../shared/utils/index.js";import{useDateTime as h,handleInputEvent as D}from"../../../shared/hooks/useDateTime.js";import{isArray as g,isEqual as w,isString as b,isFunction as k,isNumber as V}from"lodash-es";import"@vue/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../shared/hooks/useScrollLoading.js";import{subYears as S,addYears as _,isWithinInterval as A,format as I,sub as M,startOfDay as R,endOfDay as C}from"date-fns";var $=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String},to:{type:[Object,String,Boolean],default:"body"},holidays:{type:Array,default:()=>[]},type:{type:String,default:"date"},isDateDisabled:{type:Function}},emits:["update:formatted-value"],setup(e,{expose:$,emit:j}){const F=e,P=t(),U=a(null),q=a(null),x=a();let E="";const H=l({get:()=>W(F.formattedValue)?null:F.formattedValue,set(e){g(e)&&g(E)&&w(E,e)||E===e||(j("update:formatted-value",e,b(e)?Date.parse(e):g(e)?[Date.parse(e[0]),Date.parse(e[1])]:null),E=e)}}),L=l((()=>F.type.includes("datetime"))),B=l((()=>Reflect.get(P,"format")?P.format:L.value?"yyyy-MM-dd HH:mm:ss":"month"===F.type?"yyyy-MM":"year"===F.type?"yyyy":"yyyy-MM-dd")),Y=l((()=>L.value?B.value.split(" "):"")),O=l((()=>{const e=e=>{const t=new Date(e),a=new Date,l=S(a,150),n=_(a,150);return!A(t,{start:l,end:n})};return k(F.isDateDisabled)?(t,...a)=>{var l;return(null==(l=F.isDateDisabled)?void 0:l.call(F,t,...a))||e(t)}:e})),{focus:T,blur:z,handleConfirm:G}=h(U,{formatRef:B,attrs:{...P,type:F.type,isDateDisabled:O.value},emit:j,allowedInvalidValue:F.allowedInvalidValue});async function J(e){!async function(e){var t;if(!e||!F.holidays.length)return;await v(0);const a=null==(t=U.value)?void 0:t.panelInstRef;if(!a)return;const l=a.$el;if(!l)return;N(),"daterange"===F.type?K.push(n((()=>a.startDateArray),".n-date-panel-calendar--start .n-date-panel-dates>div"),n((()=>a.endDateArray),".n-date-panel-calendar--end .n-date-panel-dates>div")):"date"===F.type&&K.push(n((()=>a.dateArray),".n-date-panel-calendar .n-date-panel-dates>div"));function n(e,t){const a=[],n=o(e,(e=>{a.forEach((e=>e.classList.remove("c-date-picker__holiday"))),a.length=0,g(e)&&Array.from(l.querySelectorAll(t)).forEach(((t,l)=>{const{ts:n}=e[l]||{};if(!V(n))return;const o=new Date(n);F.holidays.some((e=>e.getDate()===o.getDate()&&e.getMonth()===o.getMonth()&&e.getFullYear()===o.getFullYear()))&&(f((()=>t.classList.add("c-date-picker__holiday"))),a.push(t))}))}),{immediate:!0,deep:!0});return()=>{n(),a.length=0}}}(e),e&&L.value&&(await f(),async function e(t=0){var a;t>2||(q.value=null==(a=U.value)?void 0:a.panelInstRef,q.value?h(q,{formatRef:Y,attrs:{...P,type:F.type,isDateDisabled:O.value},isPanel:!0}):(await f(),e(++t)))}())}const K=[];function N(){K.forEach((e=>e())),K.length=0}async function Q(...e){var t,a,l,n,o,r;const u=null==(n=null==(l=null==(a=null==(t=U.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(F.type.includes("range")?null==(o=F.onConfirm)||o.call(F,...e):(await f(),u.focus(),G(u),u.blur(),null==(r=F.onConfirm)||r.call(F,Date.parse(u.value),u.value)),!(null==u?void 0:u.value)||!F.updateUnchangedValue||F.type.includes("range"))return;const s=u.value;D(u,I(new Date,B.value)),D(u,s)}function W(e){return F.allowedInvalidValue&&F.allowedInvalidValue===e}return n(N),o((()=>F.formattedValue),(e=>{x.value=W(e)?e:F.placeholder?F.placeholder:"选择日期时间",W(e)||(E=e)}),{immediate:!0}),$({$datePicker:U,focus:T,blur:z,setShortcutValue:async function(e){if(!F.type||!F.type.includes("range")||!U.value)return;const t=U.value.$el.querySelectorAll(".n-input__input-el");let a,l;const n=new Date;if("week"===e){const e=M(n,{weeks:1});a=I(R(e),B.value)}else{const e=M(n,{months:1});a=I(R(e),B.value)}l=I(C(n),B.value),D(t[0],a),await f(),D(t[1],l)}}),(t,a)=>(r(),u(s(m),{ref_key:"datePickerRef",ref:U,"onUpdate:show":J,onConfirm:Q,placeholder:x.value,to:e.to,type:e.type,"formatted-value":s(H),"onUpdate:formatted-value":a[0]||(a[0]=e=>d(H)?H.value=e:null),"is-date-disabled":s(O)},i({_:2},[p(t.$slots,((e,a)=>({name:a,fn:c((()=>[y(t.$slots,a)]))})))]),1032,["placeholder","to","type","formatted-value","is-date-disabled"]))}});export{$ as default};
1
+ import{defineComponent as e,useAttrs as t,ref as a,computed as l,onBeforeUnmount as n,watch as o,openBlock as r,createBlock as u,unref as s,isRef as d,createSlots as i,renderList as c,withCtx as p,renderSlot as y,nextTick as f}from"vue";import{promiseTimeout as v}from"@vueuse/shared";import{NDatePicker as m}from"naive-ui";import"../../../shared/utils/index.js";import{useDateTime as h,handleInputEvent as D}from"../../../shared/hooks/useDateTime.js";import{isArray as g,isEqual as w,isString as b,isFunction as k,isNumber as V}from"lodash-es";import"@vue/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../shared/hooks/useScrollLoading.js";import{subYears as S,addYears as _,isWithinInterval as A,format as I,sub as M,startOfDay as R,endOfDay as C}from"date-fns";var $=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String},to:{type:[Object,String,Boolean],default:"body"},holidays:{type:Array,default:()=>[]},type:{type:String,default:"date"},isDateDisabled:{type:Function}},emits:["update:formatted-value"],setup(e,{expose:$,emit:j}){const F=e,P=t(),U=a(null),q=a(null),x=a();let E="";const H=l({get:()=>W(F.formattedValue)?null:F.formattedValue,set(e){g(e)&&g(E)&&w(E,e)||E===e||(j("update:formatted-value",e,b(e)?Date.parse(e):g(e)?[Date.parse(e[0]),Date.parse(e[1])]:null),E=e)}}),L=l((()=>F.type.includes("datetime"))),B=l((()=>Reflect.get(P,"format")?P.format:L.value?"yyyy-MM-dd HH:mm:ss":"month"===F.type?"yyyy-MM":"year"===F.type?"yyyy":"yyyy-MM-dd")),Y=l((()=>L.value?B.value.split(" "):"")),O=l((()=>{const e=e=>{const t=new Date(e),a=new Date,l=S(a,150),n=_(a,150);return!A(t,{start:l,end:n})};return k(F.isDateDisabled)?(t,...a)=>{var l;return(null==(l=F.isDateDisabled)?void 0:l.call(F,t,...a))||e(t)}:e})),{focus:T,blur:z,handleConfirm:G}=h(U,{formatRef:B,attrs:{...P,type:F.type,isDateDisabled:O.value},emit:j,allowedInvalidValue:F.allowedInvalidValue});async function J(e){!async function(e){var t;if(!e||!F.holidays.length)return;await v(0);const a=null==(t=U.value)?void 0:t.panelInstRef;if(!a)return;const l=a.$el;if(!l)return;N(),"daterange"===F.type?K.push(n((()=>a.startDateArray),".n-date-panel-calendar--start .n-date-panel-dates>div"),n((()=>a.endDateArray),".n-date-panel-calendar--end .n-date-panel-dates>div")):["date","datetime"].includes(F.type)&&K.push(n((()=>a.dateArray),".n-date-panel-calendar .n-date-panel-dates>div"));function n(e,t){const a=[],n=o(e,(e=>{a.forEach((e=>e.classList.remove("c-date-picker__holiday"))),a.length=0,g(e)&&Array.from(l.querySelectorAll(t)).forEach(((t,l)=>{const{ts:n}=e[l]||{};if(!V(n))return;const o=new Date(n);F.holidays.some((e=>e.getDate()===o.getDate()&&e.getMonth()===o.getMonth()&&e.getFullYear()===o.getFullYear()))&&(f((()=>t.classList.add("c-date-picker__holiday"))),a.push(t))}))}),{immediate:!0,deep:!0});return()=>{n(),a.length=0}}}(e),e&&L.value&&(await f(),async function e(t=0){var a;t>2||(q.value=null==(a=U.value)?void 0:a.panelInstRef,q.value?h(q,{formatRef:Y,attrs:{...P,type:F.type,isDateDisabled:O.value},isPanel:!0}):(await f(),e(++t)))}())}const K=[];function N(){K.forEach((e=>e())),K.length=0}async function Q(...e){var t,a,l,n,o,r;const u=null==(n=null==(l=null==(a=null==(t=U.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(F.type.includes("range")?null==(o=F.onConfirm)||o.call(F,...e):(await f(),u.focus(),G(u),u.blur(),null==(r=F.onConfirm)||r.call(F,Date.parse(u.value),u.value)),!(null==u?void 0:u.value)||!F.updateUnchangedValue||F.type.includes("range"))return;const s=u.value;D(u,I(new Date,B.value)),D(u,s)}function W(e){return F.allowedInvalidValue&&F.allowedInvalidValue===e}return n(N),o((()=>F.formattedValue),(e=>{x.value=W(e)?e:F.placeholder?F.placeholder:"选择日期时间",W(e)||(E=e)}),{immediate:!0}),$({$datePicker:U,focus:T,blur:z,setShortcutValue:async function(e){if(!F.type||!F.type.includes("range")||!U.value)return;const t=U.value.$el.querySelectorAll(".n-input__input-el");let a,l;const n=new Date;if("week"===e){const e=M(n,{weeks:1});a=I(R(e),B.value)}else{const e=M(n,{months:1});a=I(R(e),B.value)}l=I(C(n),B.value),D(t[0],a),await f(),D(t[1],l)}}),(t,a)=>(r(),u(s(m),{ref_key:"datePickerRef",ref:U,"onUpdate:show":J,onConfirm:Q,placeholder:x.value,to:e.to,type:e.type,"formatted-value":s(H),"onUpdate:formatted-value":a[0]||(a[0]=e=>d(H)?H.value=e:null),"is-date-disabled":s(O)},i({_:2},[c(t.$slots,((e,a)=>({name:a,fn:p((()=>[y(t.$slots,a)]))})))]),1032,["placeholder","to","type","formatted-value","is-date-disabled"]))}});export{$ as default};
@@ -1 +1 @@
1
- import{defineComponent as e,shallowRef as t,reactive as o,onBeforeUnmount as r,createVNode as i,mergeProps as l}from"vue";import"@wangeditor/editor/dist/css/style.css";import{Editor as d,Toolbar as s}from"@wangeditor/editor-for-vue";var a=e({name:"Editor",inheritAttrs:!1,components:{Editor:d,Toolbar:s},props:{editorConfig:{type:Object},toolbarConfig:{type:Object},uploadImgUrl:{type:String},isDisabled:{type:Boolean,default:!1}},emits:[],setup(e,{attrs:a,slots:n,emit:u}){const p=t(),c=o({MENU_CONF:{uploadImage:{server:e.uploadImgUrl||""}},...e.editorConfig});r((()=>{const e=p.value;null!=e&&e.destroy()}));const f=t=>{p.value=t,e.isDisabled&&t.disable(),console.log("实例",t)};return{editorRef:p,renderVN:()=>i("div",{class:"c-editor"},[i(s,{style:"border-bottom: 1px solid #ccc",editor:p.value,defaultConfig:e.toolbarConfig,mode:"default"},null),i(d,l({class:"c-editor__main",style:"height: 500px"},a,{defaultConfig:c,mode:"default",onOnCreated:f}),null)])}},render(){return this.renderVN()}});export{a as default};
1
+ import{defineComponent as e,shallowRef as o,reactive as t,onBeforeUnmount as r,createVNode as d,mergeProps as l}from"vue";import"@wangeditor/editor/dist/css/style.css";import{Editor as i,Toolbar as s}from"@wangeditor/editor-for-vue";var n=e({name:"Editor",inheritAttrs:!1,components:{Editor:i,Toolbar:s},props:{editorConfig:{type:Object},toolbarConfig:{type:Object},uploadImgUrl:{type:String},isDisabled:{type:Boolean,default:!1}},emits:[],setup(e,{attrs:n,slots:a,emit:u}){const p=o(),f=t({MENU_CONF:{uploadImage:{server:e.uploadImgUrl||""}},...e.editorConfig});r((()=>{const e=p.value;null!=e&&e.destroy()}));const c=o=>{p.value=o,e.isDisabled&&o.disable(),console.log("实例",o)};return{editorRef:p,renderVN:()=>d("div",{style:"border: 1px solid #ccc"},[d(s,{style:"border-bottom: 1px solid #ccc",editor:p.value,defaultConfig:e.toolbarConfig,mode:"default"},null),d(i,l({style:"height: 500px; overflow-y: hidden;"},n,{defaultConfig:f,mode:"default",onOnCreated:c}),null)])}},render(){return this.renderVN()}});export{n as default};
@@ -1 +0,0 @@
1
- .c-editor{border:1px solid #ccc}.c-editor__main{height:500px;overflow-y:hidden}
@@ -1 +1 @@
1
- import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawPoint as e,drawText as i,drawLine as o,defaultLineStyle as n}from"../useDraw.js";import{useBirthProcessCumputedPoint as r}from"../useCumputedPoint.js";import{bus as a}from"../useEvent.js";import{useShadow as l}from"../useShadow.js";import{useCommon as s}from"../useCommon.js";import"vue";import{getIndex as c}from"../../utils/index.js";import{filter as d,cloneDeep as u,omit as f,flatten as h,isNumber as g,pick as m}from"lodash-es";import{format as p}from"date-fns";import{OTHER_MENU as v}from"../../constants/index.js";import"@vueuse/shared";import"naive-ui";import"./useTop.js";import"@vueuse/core";import"../../../../../shared/utils/index.js";const x=d(v,(t=>"add"!==t.type));function y(d,v,y,k,C,w,X,b,E){const{computedX:A,getXValue:L}=r(v),{getEqualXTypes:j,handleAddPrevent:P,isGridLimit:S,getPointEventProps:z}=s(d,y,v),{createShadowLines:I}=l(),{canvasWidth:M,other:T,yCellHeight:H,xCellWidth:O,endX:$,originX:B,originY:W,endY:Y,markHeight:D,event:_,topGridYCellHeight:V,extracorporealCirculationHeight:G}=v,K=new Map,R=u(T);let q=[],F=null;function J(){var o;if(!(null==(o=null==R?void 0:R.horizontal)?void 0:o.length))return;const n="horizontal";K.set(n,[]);const{horizontal:r}=R;let a=W+H/2;r.forEach(((o,r)=>{const{title:l,type:s,pointAttr:c={},textStyle:d={},data:u,showIcon:f=!0}=o;let h=null;u.forEach(((o,u)=>{const{time:g,value:m}=o,p=A(g);if(!ot(p))return;const v=[],x=f&&e(s,{...c,left:p,top:a});x&&v.push(x);const y=f?p+x.width/2+2:p,k=i([y,a],{value:m,...d,originX:"left"});v.push(k);const C=new t.Group(v,{lockMovementY:!0,objectCaching:!1,hasControls:!1,hasBorders:!1,hoverCursor:"pointer",...z()});Object.assign(C,{originLeft:p,iconHalfWidth:x?x.width/2:0,origin:{type:"other",key:n,dataIndex:r,index:u,data:o,title:l},limitX:{x1:B,x2:$-C.width}}),h&&(C.limitX.x1=h.left,h.limitX.x2=C.left,C.prevPoint=h,h.nextPoint=C),h=C,tt(C),K.get(n).push(C)})),a+=H})),d.value.add(...K.get(n))}function N(){var t;if(!(null==(t=null==R?void 0:R.vertical)?void 0:t.length))return;const i="vertical";K.set(i,[]);const{vertical:o}=R;o.forEach(((t,o)=>{const{show:n=!0,marginTop:r=0,textStyle:a={},data:l,time:s}=t,c=A(s);if(!n||!ot(c))return;const{lineHeight:d=H}=a;let u=W+r+d/2;l.forEach(((t,n)=>{const r=e(String(t.value),{...a,lockMovementY:!0,left:c,originX:"left",top:u,origin:{type:"other",key:i,dataIndex:o,index:n,data:t},...z()});u+=d,tt(r),K.get(i).push(r)}));const f=K.get(i).filter((t=>t.origin.dataIndex===o)),h=Math.max(...f.map((t=>t.width))),g=c>$-h;f.forEach(((t,e,i)=>{t.siblingPoints=i.filter((e=>e.origin.index!==t.origin.index)),t.maxTextWidth=h,g&&t.set("originX","right")}))})),d.value.add(...K.get(i))}function Q(t,e="add"){const{dataIndex:i,data:o,index:n,key:r,dataKey:a,time:l}=t,s=R[r],d=["mark","extracorporealCirculation"].includes(r)?s.dataList[i]:s[i];switch(e){case"remove":d.data.splice(n,1);break;case"change":if("mark"===r){d.list.splice(n,1);const t=s.dataList.find((t=>t.time===l));t?t.list.push(o):(s.dataList.push({time:l,list:[o]}),s.dataList.sort(((t,e)=>Date.parse(t.time)-Date.parse(e.time))))}else"extracorporealCirculation"===r?d[a]=o:d.data[n]=o;break;default:{const t=Array.isArray(o)?o[0].time:o.time,e=c(t,d.data),i=Array.isArray(o)?o:[o];d.data.splice(e,0,...i);break}}U(t)}function U(t){var e;const{key:i}=t;switch(null==(e=d.value)||e.remove(...K.get(i)),K.delete(i),i){case"horizontal":J();break;case"vertical":N();break;case"mark":Z();break;case"extracorporealCirculation":rt()}}function Z(){if(!D)return;const{title:t,titleStyle:o,pointAttr:n,dataList:r}=R.mark||{};if(!(null==r?void 0:r.length))return;const a="mark";K.set(a,[]);const l=i([B-5,Y+D/2],{value:t,...o,originX:"right"});d.value.add(l);const s=Y+D+G,c=Y+G;let u=0;const f={};r.forEach(((t,i)=>{const{time:o,list:r=[]}=t,l=A(o);if(!ot(l))return;let h=c+1;r.forEach(((t,o)=>{var r;const{style:g}=t,m=e((null==g?void 0:g.type)||"circleAndText",{...(null==g?void 0:g.pointAttr)||n,text:t.text,left:l,top:c+10,origin:{data:t,key:"mark",type:"other",dataIndex:i,index:o}}),p=m.height;u&&l-u<=O&&(null==(r=f[`x_${u}`])||r.forEach((([t,e])=>{h+p>=s&&(h=Y-1),t<e&&h>=t&&h<e&&(h=e),t>e&&h>e&&h<=t&&(h=e)})));const{topObj:v,startTop:x,oldStartTop:y}=function(t,e){const i={};let o;if(t>Y){const r=t+e;i.y2=t+e/2,r>=s?n(Y-1):(o=t,t=r)}else n(t);function n(n){o=n,i.y2=n-e/2;t=n-e}return{topObj:i,startTop:t,oldStartTop:o}}(h,p);h=x,f[`x_${l}`]||(f[`x_${l}`]=[]),f[`x_${l}`].push([y,h]),m.set("top",v.y2),K.get(a).push(m),tt(m),d.value.add(m)})),u=l})),function(t){const e=t=>{var e,i;return null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart},i=t.find((t=>e(t))),o=t.find((t=>!e(t)&&t.left>i.left)),n=t.filter((t=>!e(t)));t.forEach((t=>{const r={x1:B,x2:$};e(t)?(r.x2=o.left,t.otherPoints=n):(r.x1=i.left,t.startPoint=i),t.limitX=r}))}(K.get(a))}function tt(t){if(_.hovered&&(t.on("mouseover",(()=>{et(t)})),t.on("mouseout",(()=>{k.show=!1}))),t.lockMovementX&&t.lockMovementY)return;const{key:e}=t.origin,i=["mark","horizontal"].includes(e),o=["mark","vertical"].includes(e),n=["mark","extracorporealCirculation"].includes(e),r="extracorporealCirculation"===e;t.on("moving",(()=>{t.moving=!0,i?function(t){const e=t.origin.key,i="horizontal"===e;t.setCoords(),t.left<t.limitX.x1&&t.set("left",t.limitX.x1+(i?1:0));t.left>t.limitX.x2&&t.set("left",t.limitX.x2+(i?-1:0));if("mark"===e){t.top<W&&t.set("top",W);const e=Y+G+D-t.height/2;t.top>e&&t.set("top",e)}i&&(t.originLeft=t.left+t.iconHalfWidth)}(t):r?function(t){t.setCoords();const{left:e,limitX:i}=t,o=p(new Date,"yyyy-MM-dd HH:mm"),n=A(o);i.isCurrentTime&&i.x2<n&&n>0&&n<M&&(i.x2=n);e<i.x1&&t.set({x1:i.x1,x2:i.x1});e>i.x2&&t.set({x1:i.x2,x2:i.x2});it(t,"left"),it(t,"right")}(t):(w(t),function(t){const e=t.left+t.maxTextWidth>$?"right":"left";t.setCoords().set({originX:e}),t.siblingPoints.forEach((i=>i.setCoords().set({originX:e,left:t.left})))}(t)),_.hovered&&et(t)})),t.on("mouseup",(r=>{var a;if(k.show=!1,1===r.button){if(!t.moving)return;t.moving=!1,i&&function(t){var e,i;if("mark"===t.origin.key){if((null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart)&&t.otherPoints)t.otherPoints.forEach((e=>{e.limitX.x1=t.left}));else{const e=t.startPoint.otherPoints.map((t=>t.left)),i=Math.min(...e);t.startPoint.limitX.x2=i}return}t.prevPoint&&(t.prevPoint.limitX.x2=t.left);t.nextPoint&&(t.nextPoint.limitX.x1=t.left)}(t);const e=L(null!=(a=t.originLeft)?a:t.left),r={...t.origin,...o?{time:e}:{data:{...t.origin.data,time:e}}};d.value.discardActiveObject(),y("change",r),n&&Q(r,"change")}3===r.button&&["horizontal","vertical"].includes(e)&&(C.point={x:t.left,y:t.top},C.show=!0,C.target=t,C.list=x.map((t=>({...t,renderItem:()=>t.label,_type:"other"}))))}))}function et(t){k.isTarget=!0,k.show=!0;const{key:e,data:i={}}=t.origin||{};let o=i.value;const n="extracorporealCirculation"===e||"mark"===e;k.point={x:t.left,y:n?t.top:t.top+V/2};const r=!t.origin.isMenu&&t.originLeft?t.originLeft:t.left,a=L(r);k.list=[`时间 ${a.slice(-5)}`],n&&("mark"===e&&(o=i.name),k.list.unshift(o+" ")),k.sourceData=[{type:"other",key:e,time:a,value:o}]}function it(t,e){const{shadowObjs:i,params:o}=t[`${e}ShadowBox`]||{};if(!i||!o)return;i.forEach((t=>d.value.remove(t)));o["left"===e?1:0]=t.left;const n=nt(...o);t[`${e}ShadowBox`]={shadowObjs:n,params:o}}function ot(t){return t>=B&&t<=$}function nt(...e){const[i,o,r,a]=e,{mode:l,style:s}=a,c=f(s,["angle","space"]),u=[[i,Y],[o,Y],[o,r],[i,r]],h=new t.Polygon(u.map((t=>({x:t[0],y:t[1]}))),{...n,...c,stroke:"transparent",..."slash"===l?{fill:"transparent"}:{}}),g=[];return["slash"].includes(l)&&g.push(...I(u,s.angle,s.space,c)),d.value.add(h,...g),K.get("extracorporealCirculation").push(h,...g),[h,...g]}function rt(){if(!G)return;const{dataList:e,ascendAortaStyle:i,extracorporealCirculationStyle:o}=R.extracorporealCirculation||{};if(!(null==e?void 0:e.length))return;const n="extracorporealCirculation";K.set(n,[]);const r=Y+G;let a,l;function s(t){return t&&t>B&&t<M}function c(t){return void 0===t||""===t}e.forEach(((u,f)=>{const h=function(t){const{extracorporealCirculationStart:e,closeAscendAorta:i,openAscendAorta:o,extracorporealCirculationEnd:n}=t;let r,a,l,s;return e&&(r=A(e.time)),i&&(a=A(i.time)),o&&(l=A(o.time)),n&&(s=A(n.time)),[r,a,l,s]}(u);if(-1===h.findIndex((t=>t>0&&t<M)))return;let g;h.forEach(((m,v)=>{if(c(m))return;const x=h[v+1],y=h[v-1];if(s(m)||s(x)){const k=s(m)?m:B,C=s(x)?x:c(x)?null:$,w=s(y)?y:B,X={};if(v<h.length-1&&C&&(X.params=[k,C,r,[0,2].includes(v)?o:i],X.shadowObjs=nt(...X.params)),s(m)){const i=function(t){switch(t){case 0:return"extracorporealCirculationStart";case 1:return"closeAscendAorta";case 2:return"openAscendAorta";case 3:return"extracorporealCirculationEnd"}}(v),o=p(new Date,"yyyy-MM-dd HH:mm"),c=A(o),x=m<c&&s(c)?c:m,y=function(e,i){const o=new t.Line(e,{...i,stroke:"transparent",strokeWidth:5,hasControls:!1,hasBorders:!1,hoverCursor:"e-resize",lockMovementY:!0,originX:"center"});return tt(o),d.value.add(o),K.get("extracorporealCirculation").push(o),o}([m,Y,m,r],{origin:{dataIndex:f,dataKey:i,key:n,data:u[i],type:"other"},limitX:{x1:0===v?null!=a?a:B:w,x2:C||x,isCurrentTime:!C&&f===e.length-1},...[1,2,3].includes(v)?{leftShadowBox:g}:{},...[0,1,2].includes(v)?{rightShadowBox:X}:{}});v===h.length-1&&(a=m,l=y),0===v&&l&&(l.limitX.x2=k)}g=X}}))}))}function at(t){const{code:e}=t;F&&(e.includes("Enter")||e.includes("Esc"))&&(e.includes("Esc")&&(F.text=""),F.exitEditing(),d.value.discardActiveObject(F))}return function(){if(!(null==T?void 0:T.longLine)||!T.longLine.time)return;const{time:t,style:e}=T.longLine,i=A(t),n=o([i,0,i,Y],e);d.value.add(n)}(),function(){var t;if(!(null==(t=null==R?void 0:R.horizontal)?void 0:t.length))return;q=[];const{horizontal:i}=R,o=B-5;let n=W+H/2;i.forEach(((t,i)=>{const{title:r,titleStyle:a={},defaultAddValue:l,data:s=[]}=t,c=r&&e(r,{...a,originX:"right",left:o,top:n,origin:{defaultAddValue:l,dataIndex:i,type:"other",key:"horizontal",title:r,isMenu:!0},originLeft:o,originTop:n});var u;q.push({type:"other",title:r,key:"horizontal",dataIndex:i,dataList:s.map((t=>A(t.time))),y1:n-c.height/2,y2:n+c.height/2}),(u=c).on("moving",(()=>{u.set("originX","center"),S(u)?et(u):k.show=!1})),u.on("mouseup:before",(t=>{if(k.show=!1,0===t.e.button&&S(u))if(j(K.get("horizontal"),u.left,"key",O).includes(u.origin.key))P("repeat"),console.log("重复节点");else{const t={data:{time:L(u.left),value:u.origin.defaultAddValue},...u.origin};y("add",f(t,["isMenu"])),Q(t)}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(u)})),d.value.add(c),n+=H}))}(),J(),N(),Z(),rt(),a.on((()=>{const t="horizontal",e=X(K.get(t));e.length>0?b((()=>{const i=function(t){const e=t.reduce(((t,e)=>{const{dataIndex:i}=e.origin;return t[i]=t[i]?t[i].concat(e.origin):[e.origin],t}),{});return h(Object.keys(e).map((t=>{const i=e[t];return R.horizontal[t].data.splice(i[0].index,i.length),i})))}(e);U({key:t}),y("remove",i)})):E()})),_.evented&&(window.addEventListener("keydown",at,!0),d.value.on("mouse:up",(e=>{var i,o,n,r;if(1===e.button){const{target:a,pointer:l={}}=e,{x:s=0,y:c=0}=l;if(!S({left:s,top:c}))return;if(!(null==q?void 0:q.length)||F)return;if(a&&"horizontal"!==(null==(i=a.origin)?void 0:i.key))return;let u="";if(a){if(a.moving)return;u=null==(r=null==(n=null==(o=a.origin)?void 0:o.data)?void 0:n.value)?void 0:r.toString()}const f=q.find((({y1:t,y2:e})=>c>=t&&c<=e));g(null==f?void 0:f.dataIndex)&&(F=new t.Textbox(u,{left:s,top:c,width:100,height:100,fontSize:18,objectCaching:!1,hasControls:!1,borderColor:"#000",editingBorderColor:"#000",backgroundColor:"#fff",fontFamily:"微软雅黑"}),F.otherListPointHeightRangeItem={...f,left:s,target:a},d.value.add(F),d.value.setActiveObject(F),F.enterEditing(),u&&F.setSelectionEnd(u.length))}})),d.value.on("selection:cleared",(({deselected:t})=>{var e;if(null==t?void 0:t.find((t=>t.otherListPointHeightRangeItem))){let{text:t}=F;const{otherListPointHeightRangeItem:i}=F;if(t=t.replace(/^\s+|\s+$/g,""),d.value.remove(F),F=null,!t)return;const{left:o,target:n}=i;if(n){if(t==(null==(e=n.origin)?void 0:e.data.value))return;const i={...n.origin,data:{...n.origin.data,value:t}};y("change",i),Q(i,"change")}else{const e={...m(i,["title","type","key","dataIndex"]),data:{time:L(o),value:t}};y("add",e),Q(e)}}}))),{clickMenu:function({item:t,target:e}){if(!e)return;const{type:i,_type:o}=t,n={...e.origin,type:o};y(i,n),"remove"===i&&Q(n,i)},handleKeydown:at}}export{y as useOther};
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawPoint as e,drawText as i,drawLine as o,defaultLineStyle as n}from"../useDraw.js";import{useBirthProcessCumputedPoint as r}from"../useCumputedPoint.js";import{bus as a}from"../useEvent.js";import{useShadow as l}from"../useShadow.js";import{useCommon as s}from"../useCommon.js";import"vue";import{getIndex as c}from"../../utils/index.js";import{filter as d,cloneDeep as u,omit as f,flatten as h,isNumber as g,pick as m}from"lodash-es";import{format as p}from"date-fns";import{OTHER_MENU as v}from"../../constants/index.js";import"@vueuse/shared";import"naive-ui";import"./useTop.js";import"@vueuse/core";import"../../../../../shared/utils/index.js";const x=d(v,(t=>"add"!==t.type));function y(d,v,y,k,C,w,X,b,E){const{computedX:A,getXValue:L}=r(v),{getEqualXTypes:j,handleAddPrevent:P,isGridLimit:S,getPointEventProps:z}=s(d,y,v),{createShadowLines:I}=l(),{canvasWidth:M,other:T,yCellHeight:H,xCellWidth:O,endX:$,originX:B,originY:W,endY:Y,markHeight:D,event:_,topGridYCellHeight:V,extracorporealCirculationHeight:G}=v,K=new Map,R=u(T);let q=[],F=null;function J(){var o;if(!(null==(o=null==R?void 0:R.horizontal)?void 0:o.length))return;const n="horizontal";K.set(n,[]);const{horizontal:r}=R;let a=W+H/2;r.forEach(((o,r)=>{const{title:l,type:s,pointAttr:c={},textStyle:d={},data:u,showIcon:f=!0}=o;let h=null;u.forEach(((o,u)=>{const{time:g,value:m}=o,p=A(g);if(!ot(p))return;const v=[],x=f&&e(s,{...c,left:p,top:a});x&&v.push(x);const y=f?p+x.width/2+2:p,k=i([y,a],{value:m,...d,originX:"left"});v.push(k);const C=new t.Group(v,{lockMovementY:!0,objectCaching:!1,hasControls:!1,hasBorders:!1,hoverCursor:"pointer",...z()});Object.assign(C,{originLeft:p,iconHalfWidth:x?x.width/2:0,origin:{type:"other",key:n,dataIndex:r,index:u,data:o,title:l},limitX:{x1:B,x2:$-C.width}}),h&&(C.limitX.x1=h.left,h.limitX.x2=C.left,C.prevPoint=h,h.nextPoint=C),h=C,tt(C),K.get(n).push(C)})),a+=H})),d.value.add(...K.get(n))}function N(){var t;if(!(null==(t=null==R?void 0:R.vertical)?void 0:t.length))return;const i="vertical";K.set(i,[]);const{vertical:o}=R;o.forEach(((t,o)=>{const{show:n=!0,marginTop:r=0,textStyle:a={},data:l,time:s}=t,c=A(s);if(!n||!ot(c))return;const{lineHeight:d=H}=a;let u=W+r+d/2;l.forEach(((t,n)=>{const r=e(String(t.value),{...a,lockMovementY:!0,left:c,originX:"left",top:u,origin:{type:"other",key:i,dataIndex:o,index:n,data:t},...z()});u+=d,tt(r),K.get(i).push(r)}));const f=K.get(i).filter((t=>t.origin.dataIndex===o)),h=Math.max(...f.map((t=>t.width))),g=c>$-h;f.forEach(((t,e,i)=>{t.siblingPoints=i.filter((e=>e.origin.index!==t.origin.index)),t.maxTextWidth=h,g&&t.set("originX","right")}))})),d.value.add(...K.get(i))}function Q(t,e="add"){const{dataIndex:i,data:o,index:n,key:r,dataKey:a,time:l}=t,s=R[r],d=["mark","extracorporealCirculation"].includes(r)?s.dataList[i]:s[i];switch(e){case"remove":d.data.splice(n,1);break;case"change":if("mark"===r){d.list.splice(n,1);const t=s.dataList.find((t=>t.time===l));t?t.list.push(o):(s.dataList.push({time:l,list:[o]}),s.dataList.sort(((t,e)=>Date.parse(t.time)-Date.parse(e.time))))}else"extracorporealCirculation"===r?d[a]=o:d.data[n]=o;break;default:{const t=Array.isArray(o)?o[0].time:o.time,e=c(t,d.data),i=Array.isArray(o)?o:[o];d.data.splice(e,0,...i);break}}U(t)}function U(t){var e;const{key:i}=t;switch(null==(e=d.value)||e.remove(...K.get(i)),K.delete(i),i){case"horizontal":J();break;case"vertical":N();break;case"mark":Z();break;case"extracorporealCirculation":rt()}}function Z(){if(!D)return;const{title:t,titleStyle:o,pointAttr:n,dataList:r}=R.mark||{};if(!(null==r?void 0:r.length))return;const a="mark";K.set(a,[]);const l=i([B-5,Y+D/2],{value:t,...o,originX:"right"});d.value.add(l);const s=Y+D+G,c=Y+G;let u=0;const f={};r.forEach(((t,i)=>{const{time:o,list:r=[]}=t,l=A(o);if(!ot(l))return;let h=c+1;r.forEach(((t,o)=>{var r;const{style:g}=t,m=e((null==g?void 0:g.type)||"circleAndText",{...(null==g?void 0:g.pointAttr)||n,...t.text?{text:t.text}:{},left:l,top:c+10,origin:{data:t,key:"mark",type:"other",dataIndex:i,index:o}}),p=m.height;u&&l-u<=O&&(null==(r=f[`x_${u}`])||r.forEach((([t,e])=>{h+p>=s&&(h=Y-1),t<e&&h>=t&&h<e&&(h=e),t>e&&h>e&&h<=t&&(h=e)})));const{topObj:v,startTop:x,oldStartTop:y}=function(t,e){const i={};let o;if(t>Y){const r=t+e;i.y2=t+e/2,r>=s?n(Y-1):(o=t,t=r)}else n(t);function n(n){o=n,i.y2=n-e/2;t=n-e}return{topObj:i,startTop:t,oldStartTop:o}}(h,p);h=x,f[`x_${l}`]||(f[`x_${l}`]=[]),f[`x_${l}`].push([y,h]),m.set("top",v.y2),K.get(a).push(m),tt(m),d.value.add(m)})),u=l})),function(t){const e=t=>{var e,i;return null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart},i=t.find((t=>e(t))),o=t.find((t=>!e(t)&&t.left>i.left)),n=t.filter((t=>!e(t)));t.forEach((t=>{const r={x1:B,x2:$};e(t)?(r.x2=o.left,t.otherPoints=n):(r.x1=i.left,t.startPoint=i),t.limitX=r}))}(K.get(a))}function tt(t){if(_.hovered&&(t.on("mouseover",(()=>{et(t)})),t.on("mouseout",(()=>{k.show=!1}))),t.lockMovementX&&t.lockMovementY)return;const{key:e}=t.origin,i=["mark","horizontal"].includes(e),o=["mark","vertical"].includes(e),n=["mark","extracorporealCirculation"].includes(e),r="extracorporealCirculation"===e;t.on("moving",(()=>{t.moving=!0,i?function(t){const e=t.origin.key,i="horizontal"===e;t.setCoords(),t.left<t.limitX.x1&&t.set("left",t.limitX.x1+(i?1:0));t.left>t.limitX.x2&&t.set("left",t.limitX.x2+(i?-1:0));if("mark"===e){t.top<W&&t.set("top",W);const e=Y+G+D-t.height/2;t.top>e&&t.set("top",e)}i&&(t.originLeft=t.left+t.iconHalfWidth)}(t):r?function(t){t.setCoords();const{left:e,limitX:i}=t,o=p(new Date,"yyyy-MM-dd HH:mm"),n=A(o);i.isCurrentTime&&i.x2<n&&n>0&&n<M&&(i.x2=n);e<i.x1&&t.set({x1:i.x1,x2:i.x1});e>i.x2&&t.set({x1:i.x2,x2:i.x2});it(t,"left"),it(t,"right")}(t):(w(t),function(t){const e=t.left+t.maxTextWidth>$?"right":"left";t.setCoords().set({originX:e}),t.siblingPoints.forEach((i=>i.setCoords().set({originX:e,left:t.left})))}(t)),_.hovered&&et(t)})),t.on("mouseup",(r=>{var a;if(k.show=!1,1===r.button){if(!t.moving)return;t.moving=!1,i&&function(t){var e,i;if("mark"===t.origin.key){if((null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart)&&t.otherPoints)t.otherPoints.forEach((e=>{e.limitX.x1=t.left}));else{const e=t.startPoint.otherPoints.map((t=>t.left)),i=Math.min(...e);t.startPoint.limitX.x2=i}return}t.prevPoint&&(t.prevPoint.limitX.x2=t.left);t.nextPoint&&(t.nextPoint.limitX.x1=t.left)}(t);const e=L(null!=(a=t.originLeft)?a:t.left),r={...t.origin,...o?{time:e}:{data:{...t.origin.data,time:e}}};d.value.discardActiveObject(),y("change",r),n&&Q(r,"change")}3===r.button&&["horizontal","vertical"].includes(e)&&(C.point={x:t.left,y:t.top},C.show=!0,C.target=t,C.list=x.map((t=>({...t,renderItem:()=>t.label,_type:"other"}))))}))}function et(t){k.isTarget=!0,k.show=!0;const{key:e,data:i={}}=t.origin||{};let o=i.value;const n="extracorporealCirculation"===e||"mark"===e;k.point={x:t.left,y:n?t.top:t.top+V/2};const r=!t.origin.isMenu&&t.originLeft?t.originLeft:t.left,a=L(r);k.list=[`时间 ${a.slice(-5)}`],n&&("mark"===e&&(o=i.name),k.list.unshift(o+" ")),k.sourceData=[{type:"other",key:e,time:a,value:o}]}function it(t,e){const{shadowObjs:i,params:o}=t[`${e}ShadowBox`]||{};if(!i||!o)return;i.forEach((t=>d.value.remove(t)));o["left"===e?1:0]=t.left;const n=nt(...o);t[`${e}ShadowBox`]={shadowObjs:n,params:o}}function ot(t){return t>=B&&t<=$}function nt(...e){const[i,o,r,a]=e,{mode:l,style:s}=a,c=f(s,["angle","space"]),u=[[i,Y],[o,Y],[o,r],[i,r]],h=new t.Polygon(u.map((t=>({x:t[0],y:t[1]}))),{...n,...c,stroke:"transparent",..."slash"===l?{fill:"transparent"}:{}}),g=[];return["slash"].includes(l)&&g.push(...I(u,s.angle,s.space,c)),d.value.add(h,...g),K.get("extracorporealCirculation").push(h,...g),[h,...g]}function rt(){if(!G)return;const{dataList:e,ascendAortaStyle:i,extracorporealCirculationStyle:o}=R.extracorporealCirculation||{};if(!(null==e?void 0:e.length))return;const n="extracorporealCirculation";K.set(n,[]);const r=Y+G;let a,l;function s(t){return t&&t>B&&t<M}function c(t){return void 0===t||""===t}e.forEach(((u,f)=>{const h=function(t){const{extracorporealCirculationStart:e,closeAscendAorta:i,openAscendAorta:o,extracorporealCirculationEnd:n}=t;let r,a,l,s;return e&&(r=A(e.time)),i&&(a=A(i.time)),o&&(l=A(o.time)),n&&(s=A(n.time)),[r,a,l,s]}(u);if(-1===h.findIndex((t=>t>0&&t<M)))return;let g;h.forEach(((m,v)=>{if(c(m))return;const x=h[v+1],y=h[v-1];if(s(m)||s(x)){const k=s(m)?m:B,C=s(x)?x:c(x)?null:$,w=s(y)?y:B,X={};if(v<h.length-1&&C&&(X.params=[k,C,r,[0,2].includes(v)?o:i],X.shadowObjs=nt(...X.params)),s(m)){const i=function(t){switch(t){case 0:return"extracorporealCirculationStart";case 1:return"closeAscendAorta";case 2:return"openAscendAorta";case 3:return"extracorporealCirculationEnd"}}(v),o=p(new Date,"yyyy-MM-dd HH:mm"),c=A(o),x=m<c&&s(c)?c:m,y=function(e,i){const o=new t.Line(e,{...i,stroke:"transparent",strokeWidth:5,hasControls:!1,hasBorders:!1,hoverCursor:"e-resize",lockMovementY:!0,originX:"center"});return tt(o),d.value.add(o),K.get("extracorporealCirculation").push(o),o}([m,Y,m,r],{origin:{dataIndex:f,dataKey:i,key:n,data:u[i],type:"other"},limitX:{x1:0===v?null!=a?a:B:w,x2:C||x,isCurrentTime:!C&&f===e.length-1},...[1,2,3].includes(v)?{leftShadowBox:g}:{},...[0,1,2].includes(v)?{rightShadowBox:X}:{}});v===h.length-1&&(a=m,l=y),0===v&&l&&(l.limitX.x2=k)}g=X}}))}))}function at(t){const{code:e}=t;F&&(e.includes("Enter")||e.includes("Esc"))&&(e.includes("Esc")&&(F.text=""),F.exitEditing(),d.value.discardActiveObject(F))}return function(){if(!(null==T?void 0:T.longLine)||!T.longLine.time)return;const{time:t,style:e}=T.longLine,i=A(t),n=o([i,0,i,Y],e);d.value.add(n)}(),function(){var t;if(!(null==(t=null==R?void 0:R.horizontal)?void 0:t.length))return;q=[];const{horizontal:i}=R,o=B-5;let n=W+H/2;i.forEach(((t,i)=>{const{title:r,titleStyle:a={},defaultAddValue:l,data:s=[]}=t,c=r&&e(r,{...a,originX:"right",left:o,top:n,origin:{defaultAddValue:l,dataIndex:i,type:"other",key:"horizontal",title:r,isMenu:!0},originLeft:o,originTop:n});var u;q.push({type:"other",title:r,key:"horizontal",dataIndex:i,dataList:s.map((t=>A(t.time))),y1:n-c.height/2,y2:n+c.height/2}),(u=c).on("moving",(()=>{u.set("originX","center"),S(u)?et(u):k.show=!1})),u.on("mouseup:before",(t=>{if(k.show=!1,0===t.e.button&&S(u))if(j(K.get("horizontal"),u.left,"key",O).includes(u.origin.key))P("repeat"),console.log("重复节点");else{const t={data:{time:L(u.left),value:u.origin.defaultAddValue},...u.origin};y("add",f(t,["isMenu"])),Q(t)}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(u)})),d.value.add(c),n+=H}))}(),J(),N(),Z(),rt(),a.on((()=>{const t="horizontal",e=X(K.get(t));e.length>0?b((()=>{const i=function(t){const e=t.reduce(((t,e)=>{const{dataIndex:i}=e.origin;return t[i]=t[i]?t[i].concat(e.origin):[e.origin],t}),{});return h(Object.keys(e).map((t=>{const i=e[t];return R.horizontal[t].data.splice(i[0].index,i.length),i})))}(e);U({key:t}),y("remove",i)})):E()})),_.evented&&(window.addEventListener("keydown",at,!0),d.value.on("mouse:up",(e=>{var i,o,n,r;if(1===e.button){const{target:a,pointer:l={}}=e,{x:s=0,y:c=0}=l;if(!S({left:s,top:c}))return;if(!(null==q?void 0:q.length)||F)return;if(a&&"horizontal"!==(null==(i=a.origin)?void 0:i.key))return;let u="";if(a){if(a.moving)return;u=null==(r=null==(n=null==(o=a.origin)?void 0:o.data)?void 0:n.value)?void 0:r.toString()}const f=q.find((({y1:t,y2:e})=>c>=t&&c<=e));g(null==f?void 0:f.dataIndex)&&(F=new t.Textbox(u,{left:s,top:c,width:100,height:100,fontSize:18,objectCaching:!1,hasControls:!1,borderColor:"#000",editingBorderColor:"#000",backgroundColor:"#fff",fontFamily:"微软雅黑"}),F.otherListPointHeightRangeItem={...f,left:s,target:a},d.value.add(F),d.value.setActiveObject(F),F.enterEditing(),u&&F.setSelectionEnd(u.length))}})),d.value.on("selection:cleared",(({deselected:t})=>{var e;if(null==t?void 0:t.find((t=>t.otherListPointHeightRangeItem))){let{text:t}=F;const{otherListPointHeightRangeItem:i}=F;if(t=t.replace(/^\s+|\s+$/g,""),d.value.remove(F),F=null,!t)return;const{left:o,target:n}=i;if(n){if(t==(null==(e=n.origin)?void 0:e.data.value))return;const i={...n.origin,data:{...n.origin.data,value:t}};y("change",i),Q(i,"change")}else{const e={...m(i,["title","type","key","dataIndex"]),data:{time:L(o),value:t}};y("add",e),Q(e)}}}))),{clickMenu:function({item:t,target:e}){if(!e)return;const{type:i,_type:o}=t,n={...e.origin,type:o};y(i,n),"remove"===i&&Q(n,i)},handleKeydown:at}}export{y as useOther};
@@ -210,6 +210,7 @@ declare const FieldEditor: SFCWithInstall<import("vue").DefineComponent<{}, {
210
210
  fixMemoLeak: {
211
211
  type: BooleanConstructor;
212
212
  };
213
+ lazyRender: BooleanConstructor;
213
214
  }, {
214
215
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
215
216
  fieldList: {
@@ -412,6 +413,7 @@ declare const FieldEditor: SFCWithInstall<import("vue").DefineComponent<{}, {
412
413
  fixMemoLeak: {
413
414
  type: BooleanConstructor;
414
415
  };
416
+ lazyRender: BooleanConstructor;
415
417
  }>> & {
416
418
  onFormChange?: ((...args: any[]) => any) | undefined;
417
419
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -586,6 +588,8 @@ declare const FieldEditor: SFCWithInstall<import("vue").DefineComponent<{}, {
586
588
  linebarTextDirection: "horizontal" | "vertical";
587
589
  autoWidth: number | boolean;
588
590
  feedbackType: "default" | "tooltip";
591
+ fixMemoLeak: boolean;
592
+ lazyRender: boolean;
589
593
  }>) => Record<string, import("@formily/json-schema").Stringify<{
590
594
  [key: symbol]: any;
591
595
  [key: `x-${string}`]: any;
@@ -972,6 +976,7 @@ declare const FieldEditor: SFCWithInstall<import("vue").DefineComponent<{}, {
972
976
  fixMemoLeak: {
973
977
  type: BooleanConstructor;
974
978
  };
979
+ lazyRender: BooleanConstructor;
975
980
  }>> & {
976
981
  onFormChange?: ((...args: any[]) => any) | undefined;
977
982
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1003,9 +1008,10 @@ declare const FieldEditor: SFCWithInstall<import("vue").DefineComponent<{}, {
1003
1008
  linebarTextDirection: "horizontal" | "vertical";
1004
1009
  autoWidth: number | boolean;
1005
1010
  feedbackType: "default" | "tooltip";
1011
+ fixMemoLeak: boolean;
1012
+ lazyRender: boolean;
1006
1013
  operationalFormInit: boolean;
1007
1014
  incrementalRender: boolean;
1008
- fixMemoLeak: boolean;
1009
1015
  }>;
1010
1016
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
1011
1017
  export default FieldEditor;
@@ -211,6 +211,7 @@ declare const _default: import("vue").DefineComponent<{}, {
211
211
  fixMemoLeak: {
212
212
  type: BooleanConstructor;
213
213
  };
214
+ lazyRender: BooleanConstructor;
214
215
  }, {
215
216
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
216
217
  fieldList: {
@@ -413,6 +414,7 @@ declare const _default: import("vue").DefineComponent<{}, {
413
414
  fixMemoLeak: {
414
415
  type: BooleanConstructor;
415
416
  };
417
+ lazyRender: BooleanConstructor;
416
418
  }>> & {
417
419
  onFormChange?: ((...args: any[]) => any) | undefined;
418
420
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -587,6 +589,8 @@ declare const _default: import("vue").DefineComponent<{}, {
587
589
  linebarTextDirection: "horizontal" | "vertical";
588
590
  autoWidth: number | boolean;
589
591
  feedbackType: "default" | "tooltip";
592
+ fixMemoLeak: boolean;
593
+ lazyRender: boolean;
590
594
  }>) => Record<string, import("@formily/json-schema").Stringify<{
591
595
  [key: symbol]: any;
592
596
  [key: `x-${string}`]: any;
@@ -973,6 +977,7 @@ declare const _default: import("vue").DefineComponent<{}, {
973
977
  fixMemoLeak: {
974
978
  type: BooleanConstructor;
975
979
  };
980
+ lazyRender: BooleanConstructor;
976
981
  }>> & {
977
982
  onFormChange?: ((...args: any[]) => any) | undefined;
978
983
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1004,9 +1009,10 @@ declare const _default: import("vue").DefineComponent<{}, {
1004
1009
  linebarTextDirection: "horizontal" | "vertical";
1005
1010
  autoWidth: number | boolean;
1006
1011
  feedbackType: "default" | "tooltip";
1012
+ fixMemoLeak: boolean;
1013
+ lazyRender: boolean;
1007
1014
  operationalFormInit: boolean;
1008
1015
  incrementalRender: boolean;
1009
- fixMemoLeak: boolean;
1010
1016
  }>;
1011
1017
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1012
1018
  export default _default;
@@ -122,6 +122,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
122
122
  linebarTextDirection: "horizontal" | "vertical";
123
123
  autoWidth: number | boolean;
124
124
  feedbackType: "default" | "tooltip";
125
+ fixMemoLeak: boolean;
126
+ lazyRender: boolean;
125
127
  }>>>;
126
128
  };
127
129
  beforeMove: {
@@ -250,6 +252,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
250
252
  linebarTextDirection: "horizontal" | "vertical";
251
253
  autoWidth: number | boolean;
252
254
  feedbackType: "default" | "tooltip";
255
+ fixMemoLeak: boolean;
256
+ lazyRender: boolean;
253
257
  }>>>;
254
258
  };
255
259
  beforeMove: {
@@ -618,6 +622,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
618
622
  fixMemoLeak: {
619
623
  type: BooleanConstructor;
620
624
  };
625
+ lazyRender: BooleanConstructor;
621
626
  }, {
622
627
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
623
628
  fieldList: {
@@ -820,6 +825,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
820
825
  fixMemoLeak: {
821
826
  type: BooleanConstructor;
822
827
  };
828
+ lazyRender: BooleanConstructor;
823
829
  }>> & {
824
830
  onFormChange?: ((...args: any[]) => any) | undefined;
825
831
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -994,6 +1000,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
994
1000
  linebarTextDirection: "horizontal" | "vertical";
995
1001
  autoWidth: number | boolean;
996
1002
  feedbackType: "default" | "tooltip";
1003
+ fixMemoLeak: boolean;
1004
+ lazyRender: boolean;
997
1005
  }>) => Record<string, import("@formily/json-schema").Stringify<{
998
1006
  [key: symbol]: any;
999
1007
  [key: `x-${string}`]: any;
@@ -1380,6 +1388,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
1380
1388
  fixMemoLeak: {
1381
1389
  type: BooleanConstructor;
1382
1390
  };
1391
+ lazyRender: BooleanConstructor;
1383
1392
  }>> & {
1384
1393
  onFormChange?: ((...args: any[]) => any) | undefined;
1385
1394
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1411,9 +1420,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
1411
1420
  linebarTextDirection: "horizontal" | "vertical";
1412
1421
  autoWidth: number | boolean;
1413
1422
  feedbackType: "default" | "tooltip";
1423
+ fixMemoLeak: boolean;
1424
+ lazyRender: boolean;
1414
1425
  operationalFormInit: boolean;
1415
1426
  incrementalRender: boolean;
1416
- fixMemoLeak: boolean;
1417
1427
  }>;
1418
1428
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
1419
1429
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1642,6 +1652,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
1642
1652
  linebarTextDirection: "horizontal" | "vertical";
1643
1653
  autoWidth: number | boolean;
1644
1654
  feedbackType: "default" | "tooltip";
1655
+ fixMemoLeak: boolean;
1656
+ lazyRender: boolean;
1645
1657
  }>>>;
1646
1658
  };
1647
1659
  }, {
@@ -1758,6 +1770,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
1758
1770
  linebarTextDirection: "horizontal" | "vertical";
1759
1771
  autoWidth: number | boolean;
1760
1772
  feedbackType: "default" | "tooltip";
1773
+ fixMemoLeak: boolean;
1774
+ lazyRender: boolean;
1761
1775
  }>>>;
1762
1776
  };
1763
1777
  }>> & {}>>;
@@ -1882,6 +1896,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
1882
1896
  extendKey?: string | undefined;
1883
1897
  is_not_fold?: string | undefined;
1884
1898
  remark?: string | undefined;
1899
+ remarkTo?: string | HTMLElement | undefined;
1885
1900
  free_entry?: import("..").FormCommonState | undefined;
1886
1901
  save_free_entry?: import("..").FormCommonState | undefined;
1887
1902
  initialize_high?: number | undefined;
@@ -2134,6 +2149,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
2134
2149
  extendKey?: string | undefined;
2135
2150
  is_not_fold?: string | undefined;
2136
2151
  remark?: string | undefined;
2152
+ remarkTo?: string | HTMLElement | undefined;
2137
2153
  free_entry?: import("..").FormCommonState | undefined;
2138
2154
  save_free_entry?: import("..").FormCommonState | undefined;
2139
2155
  initialize_high?: number | undefined;
@@ -2359,6 +2375,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
2359
2375
  extendKey?: string | undefined;
2360
2376
  is_not_fold?: string | undefined;
2361
2377
  remark?: string | undefined;
2378
+ remarkTo?: string | HTMLElement | undefined;
2362
2379
  free_entry?: import("..").FormCommonState | undefined;
2363
2380
  save_free_entry?: import("..").FormCommonState | undefined;
2364
2381
  initialize_high?: number | undefined;
@@ -2592,6 +2609,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
2592
2609
  extendKey?: string | undefined;
2593
2610
  is_not_fold?: string | undefined;
2594
2611
  remark?: string | undefined;
2612
+ remarkTo?: string | HTMLElement | undefined;
2595
2613
  free_entry?: import("..").FormCommonState | undefined;
2596
2614
  save_free_entry?: import("..").FormCommonState | undefined;
2597
2615
  initialize_high?: number | undefined;
@@ -2904,6 +2922,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
2904
2922
  fixMemoLeak: {
2905
2923
  type: BooleanConstructor;
2906
2924
  };
2925
+ lazyRender: BooleanConstructor;
2907
2926
  }, {
2908
2927
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2909
2928
  fieldList: {
@@ -3106,6 +3125,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3106
3125
  fixMemoLeak: {
3107
3126
  type: BooleanConstructor;
3108
3127
  };
3128
+ lazyRender: BooleanConstructor;
3109
3129
  }>> & {
3110
3130
  onFormChange?: ((...args: any[]) => any) | undefined;
3111
3131
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3280,6 +3300,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3280
3300
  linebarTextDirection: "horizontal" | "vertical";
3281
3301
  autoWidth: number | boolean;
3282
3302
  feedbackType: "default" | "tooltip";
3303
+ fixMemoLeak: boolean;
3304
+ lazyRender: boolean;
3283
3305
  }>) => Record<string, import("@formily/json-schema").Stringify<{
3284
3306
  [key: symbol]: any;
3285
3307
  [key: `x-${string}`]: any;
@@ -3666,6 +3688,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3666
3688
  fixMemoLeak: {
3667
3689
  type: BooleanConstructor;
3668
3690
  };
3691
+ lazyRender: BooleanConstructor;
3669
3692
  }>> & {
3670
3693
  onFormChange?: ((...args: any[]) => any) | undefined;
3671
3694
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3697,9 +3720,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3697
3720
  linebarTextDirection: "horizontal" | "vertical";
3698
3721
  autoWidth: number | boolean;
3699
3722
  feedbackType: "default" | "tooltip";
3723
+ fixMemoLeak: boolean;
3724
+ lazyRender: boolean;
3700
3725
  operationalFormInit: boolean;
3701
3726
  incrementalRender: boolean;
3702
- fixMemoLeak: boolean;
3703
3727
  }>;
3704
3728
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
3705
3729
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -3815,6 +3839,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3815
3839
  linebarTextDirection: "horizontal" | "vertical";
3816
3840
  autoWidth: number | boolean;
3817
3841
  feedbackType: "default" | "tooltip";
3842
+ fixMemoLeak: boolean;
3843
+ lazyRender: boolean;
3818
3844
  }>>>;
3819
3845
  };
3820
3846
  }>>, {}>;
@@ -3966,6 +3992,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3966
3992
  extendKey?: string | undefined;
3967
3993
  is_not_fold?: string | undefined;
3968
3994
  remark?: string | undefined;
3995
+ remarkTo?: string | HTMLElement | undefined;
3969
3996
  free_entry?: import("..").FormCommonState | undefined;
3970
3997
  save_free_entry?: import("..").FormCommonState | undefined;
3971
3998
  initialize_high?: number | undefined;
@@ -4244,6 +4271,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
4244
4271
  fixMemoLeak: {
4245
4272
  type: BooleanConstructor;
4246
4273
  };
4274
+ lazyRender: BooleanConstructor;
4247
4275
  }, {
4248
4276
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
4249
4277
  fieldList: {
@@ -4446,6 +4474,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
4446
4474
  fixMemoLeak: {
4447
4475
  type: BooleanConstructor;
4448
4476
  };
4477
+ lazyRender: BooleanConstructor;
4449
4478
  }>> & {
4450
4479
  onFormChange?: ((...args: any[]) => any) | undefined;
4451
4480
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -4620,6 +4649,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
4620
4649
  linebarTextDirection: "horizontal" | "vertical";
4621
4650
  autoWidth: number | boolean;
4622
4651
  feedbackType: "default" | "tooltip";
4652
+ fixMemoLeak: boolean;
4653
+ lazyRender: boolean;
4623
4654
  }>) => Record<string, import("@formily/json-schema").Stringify<{
4624
4655
  [key: symbol]: any;
4625
4656
  [key: `x-${string}`]: any;
@@ -5006,6 +5037,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
5006
5037
  fixMemoLeak: {
5007
5038
  type: BooleanConstructor;
5008
5039
  };
5040
+ lazyRender: BooleanConstructor;
5009
5041
  }>> & {
5010
5042
  onFormChange?: ((...args: any[]) => any) | undefined;
5011
5043
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -5037,9 +5069,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
5037
5069
  linebarTextDirection: "horizontal" | "vertical";
5038
5070
  autoWidth: number | boolean;
5039
5071
  feedbackType: "default" | "tooltip";
5072
+ fixMemoLeak: boolean;
5073
+ lazyRender: boolean;
5040
5074
  operationalFormInit: boolean;
5041
5075
  incrementalRender: boolean;
5042
- fixMemoLeak: boolean;
5043
5076
  }>;
5044
5077
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
5045
5078
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "validateFailure")[], "update:modelValue" | "validateFailure", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -5211,6 +5244,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
5211
5244
  linebarTextDirection: "horizontal" | "vertical";
5212
5245
  autoWidth: number | boolean;
5213
5246
  feedbackType: "default" | "tooltip";
5247
+ fixMemoLeak: boolean;
5248
+ lazyRender: boolean;
5214
5249
  }>>>;
5215
5250
  };
5216
5251
  beforeMove: {