cnhis-design-vue 3.3.1-beta.3 → 3.3.1-beta.5
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.
- package/es/components/ai-chat/index.d.ts +17 -147
- package/es/components/ai-chat/src/Index.vue.d.ts +17 -147
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +2 -55
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.d.ts +7 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/utils/index.d.ts +0 -1
- package/es/components/ai-chat/src/utils/index.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +6 -5
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/form.vue.d.ts +49 -0
- package/es/components/audio-sdk/src/components/form.vue.js +1 -0
- package/es/components/audio-sdk/src/components/form.vue2.js +1 -0
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +18 -2
- package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -4
- package/es/components/audio-sdk/src/utils/recordingModal.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +7 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/editor/src/Editor.js +1 -1
- package/es/components/editor/style/index.css +0 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/field-editor/index.d.ts +7 -1
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +7 -1
- package/es/components/form-config/index.d.ts +33 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +33 -3
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +7 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +7 -1
- package/es/components/form-render/index.d.ts +7 -1
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +7 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +7 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/input.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/select.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -0
- package/es/components/form-render/src/types/index.d.ts +2 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +7 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +24 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +7 -1
- package/es/components/shortcut-setter/index.d.ts +7 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +7 -1
- package/es/shared/components/ArrowIcon/ArrowIcon.vue.js +1 -0
- package/es/shared/components/ArrowIcon/index.d.ts +2 -0
- package/es/shared/components/ArrowIcon/index.js +1 -0
- package/es/shared/components/DateIcon/DateIcon.vue.js +1 -0
- package/es/shared/components/DateIcon/index.d.ts +2 -0
- package/es/shared/components/DateIcon/index.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/ai-chat/src/api/index.d.ts +0 -6
- package/es/components/ai-chat/src/api/index.js +0 -1
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -44
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -1
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -1
- package/es/components/ai-chat/src/components/ChatMainInner.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMainInner.js +0 -1
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -56
- package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -1
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -1
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
- package/es/components/ai-chat/src/components/card/JsonCard.js +0 -1
- package/es/components/ai-chat/src/components/card/SelectIcon.d.ts +0 -14
- package/es/components/ai-chat/src/components/card/SelectIcon.js +0 -1
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -6
- package/es/components/ai-chat/src/hooks/useProgram.js +0 -1
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -2
- package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -1
- package/es/shared/assets/img/file-emr.png.js +0 -1
- package/es/shared/assets/img/file.png.js +0 -1
- package/es/shared/assets/img/use.png.js +0 -1
@@ -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
|
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
|
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
|
}>> & {}>>;
|
@@ -2904,6 +2918,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
2904
2918
|
fixMemoLeak: {
|
2905
2919
|
type: BooleanConstructor;
|
2906
2920
|
};
|
2921
|
+
lazyRender: BooleanConstructor;
|
2907
2922
|
}, {
|
2908
2923
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
2909
2924
|
fieldList: {
|
@@ -3106,6 +3121,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3106
3121
|
fixMemoLeak: {
|
3107
3122
|
type: BooleanConstructor;
|
3108
3123
|
};
|
3124
|
+
lazyRender: BooleanConstructor;
|
3109
3125
|
}>> & {
|
3110
3126
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
3111
3127
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -3280,6 +3296,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3280
3296
|
linebarTextDirection: "horizontal" | "vertical";
|
3281
3297
|
autoWidth: number | boolean;
|
3282
3298
|
feedbackType: "default" | "tooltip";
|
3299
|
+
fixMemoLeak: boolean;
|
3300
|
+
lazyRender: boolean;
|
3283
3301
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
3284
3302
|
[key: symbol]: any;
|
3285
3303
|
[key: `x-${string}`]: any;
|
@@ -3666,6 +3684,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3666
3684
|
fixMemoLeak: {
|
3667
3685
|
type: BooleanConstructor;
|
3668
3686
|
};
|
3687
|
+
lazyRender: BooleanConstructor;
|
3669
3688
|
}>> & {
|
3670
3689
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
3671
3690
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -3697,9 +3716,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3697
3716
|
linebarTextDirection: "horizontal" | "vertical";
|
3698
3717
|
autoWidth: number | boolean;
|
3699
3718
|
feedbackType: "default" | "tooltip";
|
3719
|
+
fixMemoLeak: boolean;
|
3720
|
+
lazyRender: boolean;
|
3700
3721
|
operationalFormInit: boolean;
|
3701
3722
|
incrementalRender: boolean;
|
3702
|
-
fixMemoLeak: boolean;
|
3703
3723
|
}>;
|
3704
3724
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
3705
3725
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -3815,6 +3835,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
3815
3835
|
linebarTextDirection: "horizontal" | "vertical";
|
3816
3836
|
autoWidth: number | boolean;
|
3817
3837
|
feedbackType: "default" | "tooltip";
|
3838
|
+
fixMemoLeak: boolean;
|
3839
|
+
lazyRender: boolean;
|
3818
3840
|
}>>>;
|
3819
3841
|
};
|
3820
3842
|
}>>, {}>;
|
@@ -4244,6 +4266,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
4244
4266
|
fixMemoLeak: {
|
4245
4267
|
type: BooleanConstructor;
|
4246
4268
|
};
|
4269
|
+
lazyRender: BooleanConstructor;
|
4247
4270
|
}, {
|
4248
4271
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
4249
4272
|
fieldList: {
|
@@ -4446,6 +4469,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
4446
4469
|
fixMemoLeak: {
|
4447
4470
|
type: BooleanConstructor;
|
4448
4471
|
};
|
4472
|
+
lazyRender: BooleanConstructor;
|
4449
4473
|
}>> & {
|
4450
4474
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
4451
4475
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -4620,6 +4644,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
4620
4644
|
linebarTextDirection: "horizontal" | "vertical";
|
4621
4645
|
autoWidth: number | boolean;
|
4622
4646
|
feedbackType: "default" | "tooltip";
|
4647
|
+
fixMemoLeak: boolean;
|
4648
|
+
lazyRender: boolean;
|
4623
4649
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
4624
4650
|
[key: symbol]: any;
|
4625
4651
|
[key: `x-${string}`]: any;
|
@@ -5006,6 +5032,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
5006
5032
|
fixMemoLeak: {
|
5007
5033
|
type: BooleanConstructor;
|
5008
5034
|
};
|
5035
|
+
lazyRender: BooleanConstructor;
|
5009
5036
|
}>> & {
|
5010
5037
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
5011
5038
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -5037,9 +5064,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
5037
5064
|
linebarTextDirection: "horizontal" | "vertical";
|
5038
5065
|
autoWidth: number | boolean;
|
5039
5066
|
feedbackType: "default" | "tooltip";
|
5067
|
+
fixMemoLeak: boolean;
|
5068
|
+
lazyRender: boolean;
|
5040
5069
|
operationalFormInit: boolean;
|
5041
5070
|
incrementalRender: boolean;
|
5042
|
-
fixMemoLeak: boolean;
|
5043
5071
|
}>;
|
5044
5072
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
5045
5073
|
}, 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 +5239,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
5211
5239
|
linebarTextDirection: "horizontal" | "vertical";
|
5212
5240
|
autoWidth: number | boolean;
|
5213
5241
|
feedbackType: "default" | "tooltip";
|
5242
|
+
fixMemoLeak: boolean;
|
5243
|
+
lazyRender: boolean;
|
5214
5244
|
}>>>;
|
5215
5245
|
};
|
5216
5246
|
beforeMove: {
|
@@ -125,6 +125,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
125
125
|
linebarTextDirection: "horizontal" | "vertical";
|
126
126
|
autoWidth: number | boolean;
|
127
127
|
feedbackType: "default" | "tooltip";
|
128
|
+
fixMemoLeak: boolean;
|
129
|
+
lazyRender: boolean;
|
128
130
|
}>>>;
|
129
131
|
};
|
130
132
|
beforeMove: {
|
@@ -253,6 +255,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
253
255
|
linebarTextDirection: "horizontal" | "vertical";
|
254
256
|
autoWidth: number | boolean;
|
255
257
|
feedbackType: "default" | "tooltip";
|
258
|
+
fixMemoLeak: boolean;
|
259
|
+
lazyRender: boolean;
|
256
260
|
}>>>;
|
257
261
|
};
|
258
262
|
beforeMove: {
|
@@ -621,6 +625,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
621
625
|
fixMemoLeak: {
|
622
626
|
type: BooleanConstructor;
|
623
627
|
};
|
628
|
+
lazyRender: BooleanConstructor;
|
624
629
|
}, {
|
625
630
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
626
631
|
fieldList: {
|
@@ -823,6 +828,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
823
828
|
fixMemoLeak: {
|
824
829
|
type: BooleanConstructor;
|
825
830
|
};
|
831
|
+
lazyRender: BooleanConstructor;
|
826
832
|
}>> & {
|
827
833
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
828
834
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -997,6 +1003,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
997
1003
|
linebarTextDirection: "horizontal" | "vertical";
|
998
1004
|
autoWidth: number | boolean;
|
999
1005
|
feedbackType: "default" | "tooltip";
|
1006
|
+
fixMemoLeak: boolean;
|
1007
|
+
lazyRender: boolean;
|
1000
1008
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
1001
1009
|
[key: symbol]: any;
|
1002
1010
|
[key: `x-${string}`]: any;
|
@@ -1383,6 +1391,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1383
1391
|
fixMemoLeak: {
|
1384
1392
|
type: BooleanConstructor;
|
1385
1393
|
};
|
1394
|
+
lazyRender: BooleanConstructor;
|
1386
1395
|
}>> & {
|
1387
1396
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1388
1397
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1414,9 +1423,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1414
1423
|
linebarTextDirection: "horizontal" | "vertical";
|
1415
1424
|
autoWidth: number | boolean;
|
1416
1425
|
feedbackType: "default" | "tooltip";
|
1426
|
+
fixMemoLeak: boolean;
|
1427
|
+
lazyRender: boolean;
|
1417
1428
|
operationalFormInit: boolean;
|
1418
1429
|
incrementalRender: boolean;
|
1419
|
-
fixMemoLeak: boolean;
|
1420
1430
|
}>;
|
1421
1431
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
1422
1432
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
@@ -1645,6 +1655,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
1645
1655
|
linebarTextDirection: "horizontal" | "vertical";
|
1646
1656
|
autoWidth: number | boolean;
|
1647
1657
|
feedbackType: "default" | "tooltip";
|
1658
|
+
fixMemoLeak: boolean;
|
1659
|
+
lazyRender: boolean;
|
1648
1660
|
}>>>;
|
1649
1661
|
};
|
1650
1662
|
}, {
|
@@ -1761,6 +1773,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
1761
1773
|
linebarTextDirection: "horizontal" | "vertical";
|
1762
1774
|
autoWidth: number | boolean;
|
1763
1775
|
feedbackType: "default" | "tooltip";
|
1776
|
+
fixMemoLeak: boolean;
|
1777
|
+
lazyRender: boolean;
|
1764
1778
|
}>>>;
|
1765
1779
|
};
|
1766
1780
|
}>> & {}>>;
|
@@ -2907,6 +2921,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2907
2921
|
fixMemoLeak: {
|
2908
2922
|
type: BooleanConstructor;
|
2909
2923
|
};
|
2924
|
+
lazyRender: BooleanConstructor;
|
2910
2925
|
}, {
|
2911
2926
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
2912
2927
|
fieldList: {
|
@@ -3109,6 +3124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3109
3124
|
fixMemoLeak: {
|
3110
3125
|
type: BooleanConstructor;
|
3111
3126
|
};
|
3127
|
+
lazyRender: BooleanConstructor;
|
3112
3128
|
}>> & {
|
3113
3129
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
3114
3130
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -3283,6 +3299,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
3283
3299
|
linebarTextDirection: "horizontal" | "vertical";
|
3284
3300
|
autoWidth: number | boolean;
|
3285
3301
|
feedbackType: "default" | "tooltip";
|
3302
|
+
fixMemoLeak: boolean;
|
3303
|
+
lazyRender: boolean;
|
3286
3304
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
3287
3305
|
[key: symbol]: any;
|
3288
3306
|
[key: `x-${string}`]: any;
|
@@ -3669,6 +3687,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3669
3687
|
fixMemoLeak: {
|
3670
3688
|
type: BooleanConstructor;
|
3671
3689
|
};
|
3690
|
+
lazyRender: BooleanConstructor;
|
3672
3691
|
}>> & {
|
3673
3692
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
3674
3693
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -3700,9 +3719,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3700
3719
|
linebarTextDirection: "horizontal" | "vertical";
|
3701
3720
|
autoWidth: number | boolean;
|
3702
3721
|
feedbackType: "default" | "tooltip";
|
3722
|
+
fixMemoLeak: boolean;
|
3723
|
+
lazyRender: boolean;
|
3703
3724
|
operationalFormInit: boolean;
|
3704
3725
|
incrementalRender: boolean;
|
3705
|
-
fixMemoLeak: boolean;
|
3706
3726
|
}>;
|
3707
3727
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
3708
3728
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -3818,6 +3838,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
3818
3838
|
linebarTextDirection: "horizontal" | "vertical";
|
3819
3839
|
autoWidth: number | boolean;
|
3820
3840
|
feedbackType: "default" | "tooltip";
|
3841
|
+
fixMemoLeak: boolean;
|
3842
|
+
lazyRender: boolean;
|
3821
3843
|
}>>>;
|
3822
3844
|
};
|
3823
3845
|
}>>, {}>;
|
@@ -4247,6 +4269,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
4247
4269
|
fixMemoLeak: {
|
4248
4270
|
type: BooleanConstructor;
|
4249
4271
|
};
|
4272
|
+
lazyRender: BooleanConstructor;
|
4250
4273
|
}, {
|
4251
4274
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
4252
4275
|
fieldList: {
|
@@ -4449,6 +4472,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
4449
4472
|
fixMemoLeak: {
|
4450
4473
|
type: BooleanConstructor;
|
4451
4474
|
};
|
4475
|
+
lazyRender: BooleanConstructor;
|
4452
4476
|
}>> & {
|
4453
4477
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
4454
4478
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -4623,6 +4647,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
4623
4647
|
linebarTextDirection: "horizontal" | "vertical";
|
4624
4648
|
autoWidth: number | boolean;
|
4625
4649
|
feedbackType: "default" | "tooltip";
|
4650
|
+
fixMemoLeak: boolean;
|
4651
|
+
lazyRender: boolean;
|
4626
4652
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
4627
4653
|
[key: symbol]: any;
|
4628
4654
|
[key: `x-${string}`]: any;
|
@@ -5009,6 +5035,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
5009
5035
|
fixMemoLeak: {
|
5010
5036
|
type: BooleanConstructor;
|
5011
5037
|
};
|
5038
|
+
lazyRender: BooleanConstructor;
|
5012
5039
|
}>> & {
|
5013
5040
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
5014
5041
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -5040,9 +5067,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
5040
5067
|
linebarTextDirection: "horizontal" | "vertical";
|
5041
5068
|
autoWidth: number | boolean;
|
5042
5069
|
feedbackType: "default" | "tooltip";
|
5070
|
+
fixMemoLeak: boolean;
|
5071
|
+
lazyRender: boolean;
|
5043
5072
|
operationalFormInit: boolean;
|
5044
5073
|
incrementalRender: boolean;
|
5045
|
-
fixMemoLeak: boolean;
|
5046
5074
|
}>;
|
5047
5075
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
5048
5076
|
}, 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<{
|
@@ -5214,6 +5242,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
5214
5242
|
linebarTextDirection: "horizontal" | "vertical";
|
5215
5243
|
autoWidth: number | boolean;
|
5216
5244
|
feedbackType: "default" | "tooltip";
|
5245
|
+
fixMemoLeak: boolean;
|
5246
|
+
lazyRender: boolean;
|
5217
5247
|
}>>>;
|
5218
5248
|
};
|
5219
5249
|
beforeMove: {
|