cnhis-design-vue 3.1.52-release.4 → 3.1.52
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/README.md +87 -87
- package/es/components/body-select/index.d.ts +14 -4
- package/es/components/body-select/src/config/index.js +1 -1
- package/es/components/body-select/src/hooks/renderCanvas.d.ts +1 -1
- package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
- package/es/components/body-select/src/index.vue.d.ts +14 -4
- package/es/components/body-select/src/index.vue2.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/classification/index.d.ts +16 -12
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -12
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -12
- package/es/components/classification/src/index.vue.d.ts +16 -12
- package/es/components/classification/style/index.css +1 -1
- package/es/components/date-picker/index.d.ts +5 -5
- package/es/components/date-picker/src/DatePicker.vue.d.ts +7 -5
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/form-config/index.d.ts +108 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +108 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +36 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +5 -5
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -5
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +3 -1
- package/es/components/quick-search/src/index.vue.d.ts +3 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +12 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +6 -5
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -12
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +20 -20
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +20 -20
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +2 -0
- package/es/shared/utils/business.d.ts +1 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e,computed as t,reactive as a,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{useCumputedPoint as i}from"../useCumputedPoint.js";import{useCanvasEvent as
|
|
1
|
+
import{ref as e,computed as t,reactive as a,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{useCumputedPoint as i}from"../useCumputedPoint.js";import{useCanvasEvent as n}from"../useEvent.js";import{setOtherType as r,getFloorNumber as o}from"../../utils/index.js";import"lodash-es";import{format as s,addDays as d}from"date-fns";import"naive-ui";import"@vueuse/core";import{useTop as v}from"./useTop.js";import{useLeft as c}from"./useLeft.js";import{useRight as h}from"./useRight.js";import{useCenter as p}from"./useCenter.js";import{useBottom as g}from"./useBottom.js";import{useOther as m}from"./useOther.js";function f(f,y,S,b,w,Y){const C=15,x=e(),D=e(),j=e(),V=t((()=>{var e;return(null==(e=y.data.grid)?void 0:e.surplusCell)||[0,0,0,0]})),H=t((()=>{const{top:e}=y.data;return e.date.show&&(e.date.height||C)||0})),X=t((()=>{var e;const{top:t}=y.data;return(null==(e=t.hospitalDays)?void 0:e.show)&&(t.hospitalDays.height||C)||0})),L=t((()=>{var e;const{top:t}=y.data;return(null==(e=t.operationDays)?void 0:e.show)&&(t.operationDays.height||C)||0})),I=t((()=>{var e,t,a;const{top:l}=y.data;return((null==(e=l.xScalevalue)?void 0:e.show)&&(l.xScalevalue.height||C)||0)+((null==(t=l.xScalevalue)?void 0:t.show)&&null!=(a=l.dayHeight)?a:0)})),M=t((()=>{var e;const{bottom:t}=y.data;return(null==(e=null==t?void 0:t.breathing)?void 0:e.show)&&(t.breathing.height||30)||0})),P=t((()=>{const{grid:e}=y.data;return e.mainXCell*e.subXCell+V.value[1]+V.value[3]})),N=t((()=>{const{grid:e}=y.data;return e.mainYCell*e.subYCell+V.value[0]+V.value[2]})),O=t((()=>{var e;const{width:t,right:a=null,top:l}=y.data;if(!a)return t;return t-(null!=(e=a.width)?e:0)})),W=t((()=>O.value-V.value[2]*z.value)),$=t((()=>{const{top:e,left:t}=y.data;return e.titleWidth+A.value})),k=t((()=>{const{bottom:e=null,height:t}=y.data;if(!e)return t;return t-(e.height||30)})),G=t((()=>k.value-V.value[2]*T.value)),R=t((()=>{var e;const{top:t}=y.data,a=t.xScalevalue.show&&(null!=(e=t.dayHeight)?e:0)||0,l=t.xScalevalue.show&&(t.xScalevalue.height||C)||0;return H.value+a+l+X.value+L.value})),q=t((()=>R.value+V.value[0]*T.value)),z=t((()=>(O.value-$.value)/P.value)),T=t((()=>(k.value-R.value)/N.value)),A=t((()=>{var e,t;const{left:a}=y.data;return(null==(e=a.icons)?void 0:e.show)&&((null==(t=a.icons)?void 0:t.width)||100)||0})),B=t((()=>{var e,t;const{top:a,grid:l}=y.data,u=(null==(t=null==(e=a.date.list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],i=a.xScalevalue.times;let n=$.value-z.value;const r=a.date.startDate||s(new Date,"yyyy-MM-dd");return u.reduce(((e,t,a)=>0===a?e.concat(r):e.concat(s(d(new Date(r.replace(/-/g,"/")),a),"yyyy-MM-dd"))),[]).map((e=>i.map((t=>{n+=z.value;const a=Date.parse(`${e} ${t.start}`),l=Date.parse(`${e} ${t.end}`);return{start:a,end:l,left:n,center:n+z.value/2,scaleCell:(l-a)/z.value}})))).flat()})),E=t((()=>ie("breathe"))),F=t((()=>ie("pulse"))),J=t((()=>ie("temperature"))),K=t((()=>ie("pain"))),Q=t((()=>{var e;return(null==(e=y.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),U=t((()=>{const{left:e}=y.data;return e.yScaleValue.map((e=>e.dataList.filter((e=>e.show)).map(((t,a)=>({...t,bigType:r(t.title,e.type),unit:e.unit,dataIndex:a}))))).flat()})),Z=t((()=>{var e,t;const{left:a}=y.data,l=a.yScaleValue.findIndex((e=>"pain"===e.type));return l>-1&&(null==(t=null==(e=a.yScaleValue[l].dataList)?void 0:e[0])?void 0:t.show)?l:-1})),_=t((()=>{const{grid:e}=y.data;return-1===Z.value?0:T.value*e.subYCell})),ee=t((()=>{const{left:e}=y.data,t={originY:q.value,endY:G.value};return 0===Z.value&&e.yScaleValue.length>1?t.endY=q.value+_.value:Z.value===e.yScaleValue.length-1&&(t.originY=G.value-_.value),t})),te=t((()=>{const{left:e}=y.data,t={originY:q.value,endY:G.value};return 0===Z.value&&e.yScaleValue.length>1?t.originY=q.value+_.value:Z.value===e.yScaleValue.length-1&&(t.endY=G.value-_.value),t})),ae=t((()=>{var e,t;const{top:a,grid:l}=y.data,u=[];for(const i in a)a[i].show&&u.push({...a[i],list:(null==(t=null==(e=a[i].list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],key:i});return u.sort(((e,t)=>e.seq-t.seq))})),le=t((()=>{var e;const{left:t,right:a}=y.data,l=t.yScaleValue.find((e=>"temperature"===e.type)),u=(null==a?void 0:a.yScaleValue)||{};if(null==(e=null==l?void 0:l.list)?void 0:e.length){const e=(null==u?void 0:u.showdetailedScale)?l.list.reduce((e=>{const t=e[e.length-1];return t?e.concat([t+1,t+2]):e.concat([92])}),[]):[],t=l.list.map((e=>o(1.8*e+32)));Object.assign(u,{list:t,detailedList:e,spaceGridNumber:l.spaceGridNumber})}return u})),ue=a({canvasWidth:y.data.width,canvasHeight:y.data.height,borderStyle:{...u,...y.data.borderStyle||{}},selectionStyle:y.data.selectionStyle||{},dateHeight:H.value,hospitalDaysHeight:X.value,operationDaysHeight:L.value,xScalevalueHeight:I.value,topList:ae.value,breathingHeight:M.value,hospitalizationDate:y.data.hospitalizationDate,grid:y.data.grid,top:y.data.top,left:y.data.left,right:y.data.right,bottom:y.data.bottom,other:y.data.other,painIndex:Z.value,painHeight:_.value,painOriginY:ee.value,vitalSignsOriginY:te.value,gridXNumber:P.value,gridYNumber:N.value,iconsWidth:A.value,originX:$.value,originY:R.value,originYLimit:q.value,endX:O.value,endXLimit:W.value,endY:k.value,xCellWidth:z.value,yCellHeight:T.value,xScaleList:B.value,breatheYCell:E.value,pulseYCell:F.value,temperatureYCell:J.value,painYCell:K.value,event:Q.value,itemList:U.value,getRightInfo:le.value,config:y.data.config||{},surplusCell:V.value});function ie(e){const{yScaleValue:t}=y.data.left,a=t.find((t=>t.type===e)),l=(null==a?void 0:a.list)||[];return l.length?T.value/((l[1]-l[0])/a.spaceGridNumber):0}const{cumputedX:ne,cumputedY:re,getXValue:oe,getYValue:se}=i(ue);return l((()=>f.value),(e=>{e&&function(){v(f,ue);const{setPopup:e,isAddPoint:t,updateData:a,redrawPoints:l,clickMenu:u,gridPoints:i}=p(f,ue,S,ne,re,oe,se,y.addRenderItem,w,Y);D.value=l,j.value=u;const{drawScaleValue:r}=c(f,ue,S,e,w,ne,re,oe,se,t,a,i);h(f,ue,r),g(f,ue),m(f,ue,ne);const{select:o}=n(f,ue,S);x.value=o}()}),{immediate:!0}),{propItems:ue,redrawPoints:D,select:x,clickMenu:j}}export{f as useTemperatureChart};
|
|
@@ -379,6 +379,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
379
379
|
p_value: string;
|
|
380
380
|
p_name: string;
|
|
381
381
|
}[] | undefined;
|
|
382
|
+
compareMap?: {
|
|
383
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
384
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
385
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
386
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
387
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
388
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
389
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
390
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
391
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
392
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
393
|
+
} | undefined;
|
|
382
394
|
}[] | undefined;
|
|
383
395
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
384
396
|
is_allow_check_mid?: import("..").FormCommonState | undefined;
|
|
@@ -2114,6 +2126,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2114
2126
|
p_value: string;
|
|
2115
2127
|
p_name: string;
|
|
2116
2128
|
}[] | undefined;
|
|
2129
|
+
compareMap?: {
|
|
2130
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2131
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2132
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2133
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2134
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2135
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2136
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2137
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2138
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2139
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2140
|
+
} | undefined;
|
|
2117
2141
|
}[] | undefined;
|
|
2118
2142
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
2119
2143
|
is_allow_check_mid?: import("..").FormCommonState | undefined;
|
|
@@ -3708,6 +3732,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3708
3732
|
field_key: string;
|
|
3709
3733
|
value: unknown;
|
|
3710
3734
|
}[];
|
|
3735
|
+
compareMap?: {
|
|
3736
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3737
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3738
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3739
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3740
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3741
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3742
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3743
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3744
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3745
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3746
|
+
} | undefined;
|
|
3711
3747
|
sqlExpression?: string | undefined;
|
|
3712
3748
|
showField?: string[] | undefined;
|
|
3713
3749
|
hideField?: string[] | undefined;
|
|
@@ -3874,6 +3910,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3874
3910
|
p_value: string;
|
|
3875
3911
|
p_name: string;
|
|
3876
3912
|
}[] | undefined;
|
|
3913
|
+
compareMap?: {
|
|
3914
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3915
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3916
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3917
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3918
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3919
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3920
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3921
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3922
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3923
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3924
|
+
} | undefined;
|
|
3877
3925
|
}[] | undefined;
|
|
3878
3926
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
3879
3927
|
is_allow_check_mid?: import("..").FormCommonState | undefined;
|
|
@@ -5609,6 +5657,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5609
5657
|
p_value: string;
|
|
5610
5658
|
p_name: string;
|
|
5611
5659
|
}[] | undefined;
|
|
5660
|
+
compareMap?: {
|
|
5661
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5662
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5663
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5664
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5665
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5666
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5667
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5668
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5669
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5670
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5671
|
+
} | undefined;
|
|
5612
5672
|
}[] | undefined;
|
|
5613
5673
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
5614
5674
|
is_allow_check_mid?: import("..").FormCommonState | undefined;
|
|
@@ -8616,6 +8676,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8616
8676
|
p_value: string;
|
|
8617
8677
|
p_name: string;
|
|
8618
8678
|
}[] | undefined;
|
|
8679
|
+
compareMap?: {
|
|
8680
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8681
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8682
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8683
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8684
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8685
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8686
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8687
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8688
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8689
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8690
|
+
} | undefined;
|
|
8619
8691
|
}[] | undefined;
|
|
8620
8692
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
8621
8693
|
is_allow_check_mid?: import("..").FormCommonState | undefined;
|
|
@@ -10362,6 +10434,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
10362
10434
|
p_value: string;
|
|
10363
10435
|
p_name: string;
|
|
10364
10436
|
}[] | undefined;
|
|
10437
|
+
compareMap?: {
|
|
10438
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10439
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10440
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10441
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10442
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10443
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10444
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10445
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10446
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10447
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10448
|
+
} | undefined;
|
|
10365
10449
|
}[] | undefined;
|
|
10366
10450
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
10367
10451
|
is_allow_check_mid?: import("..").FormCommonState | undefined;
|
|
@@ -12081,6 +12165,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12081
12165
|
p_value: string;
|
|
12082
12166
|
p_name: string;
|
|
12083
12167
|
}[] | undefined;
|
|
12168
|
+
compareMap?: {
|
|
12169
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12170
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12171
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12172
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12173
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12174
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12175
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12176
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12177
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12178
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12179
|
+
} | undefined;
|
|
12084
12180
|
}[] | undefined;
|
|
12085
12181
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
12086
12182
|
is_allow_check_mid?: import("..").FormCommonState | undefined;
|
|
@@ -14682,6 +14778,18 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14682
14778
|
field_key: string;
|
|
14683
14779
|
value: unknown;
|
|
14684
14780
|
}[];
|
|
14781
|
+
compareMap?: {
|
|
14782
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14783
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14784
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14785
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14786
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14787
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14788
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14789
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14790
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14791
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14792
|
+
} | undefined;
|
|
14685
14793
|
sqlExpression?: string | undefined;
|
|
14686
14794
|
showField?: string[] | undefined;
|
|
14687
14795
|
hideField?: string[] | undefined;
|
|
@@ -381,6 +381,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
p_value: string;
|
|
382
382
|
p_name: string;
|
|
383
383
|
}[] | undefined;
|
|
384
|
+
compareMap?: {
|
|
385
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
386
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
387
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
388
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
389
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
390
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
391
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
392
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
393
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
394
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
395
|
+
} | undefined;
|
|
384
396
|
}[] | undefined;
|
|
385
397
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
386
398
|
is_allow_check_mid?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -2116,6 +2128,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2116
2128
|
p_value: string;
|
|
2117
2129
|
p_name: string;
|
|
2118
2130
|
}[] | undefined;
|
|
2131
|
+
compareMap?: {
|
|
2132
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2133
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2134
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2135
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2136
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2137
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2138
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2139
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2140
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2141
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2142
|
+
} | undefined;
|
|
2119
2143
|
}[] | undefined;
|
|
2120
2144
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
2121
2145
|
is_allow_check_mid?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -3710,6 +3734,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3710
3734
|
field_key: string;
|
|
3711
3735
|
value: unknown;
|
|
3712
3736
|
}[];
|
|
3737
|
+
compareMap?: {
|
|
3738
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3739
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3740
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3741
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3742
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3743
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3744
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3745
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3746
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3747
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3748
|
+
} | undefined;
|
|
3713
3749
|
sqlExpression?: string | undefined;
|
|
3714
3750
|
showField?: string[] | undefined;
|
|
3715
3751
|
hideField?: string[] | undefined;
|
|
@@ -3876,6 +3912,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3876
3912
|
p_value: string;
|
|
3877
3913
|
p_name: string;
|
|
3878
3914
|
}[] | undefined;
|
|
3915
|
+
compareMap?: {
|
|
3916
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3917
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3918
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3919
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3920
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3921
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3922
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3923
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3924
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3925
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3926
|
+
} | undefined;
|
|
3879
3927
|
}[] | undefined;
|
|
3880
3928
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
3881
3929
|
is_allow_check_mid?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -5611,6 +5659,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5611
5659
|
p_value: string;
|
|
5612
5660
|
p_name: string;
|
|
5613
5661
|
}[] | undefined;
|
|
5662
|
+
compareMap?: {
|
|
5663
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5664
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5665
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5666
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5667
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5668
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5669
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5670
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5671
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5672
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
5673
|
+
} | undefined;
|
|
5614
5674
|
}[] | undefined;
|
|
5615
5675
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
5616
5676
|
is_allow_check_mid?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -8618,6 +8678,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8618
8678
|
p_value: string;
|
|
8619
8679
|
p_name: string;
|
|
8620
8680
|
}[] | undefined;
|
|
8681
|
+
compareMap?: {
|
|
8682
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8683
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8684
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8685
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8686
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8687
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8688
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8689
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8690
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8691
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
8692
|
+
} | undefined;
|
|
8621
8693
|
}[] | undefined;
|
|
8622
8694
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
8623
8695
|
is_allow_check_mid?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -10364,6 +10436,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10364
10436
|
p_value: string;
|
|
10365
10437
|
p_name: string;
|
|
10366
10438
|
}[] | undefined;
|
|
10439
|
+
compareMap?: {
|
|
10440
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10441
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10442
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10443
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10444
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10445
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10446
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10447
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10448
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10449
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
10450
|
+
} | undefined;
|
|
10367
10451
|
}[] | undefined;
|
|
10368
10452
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
10369
10453
|
is_allow_check_mid?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -12083,6 +12167,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12083
12167
|
p_value: string;
|
|
12084
12168
|
p_name: string;
|
|
12085
12169
|
}[] | undefined;
|
|
12170
|
+
compareMap?: {
|
|
12171
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12172
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12173
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12174
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12175
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12176
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12177
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12178
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12179
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12180
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
12181
|
+
} | undefined;
|
|
12086
12182
|
}[] | undefined;
|
|
12087
12183
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
12088
12184
|
is_allow_check_mid?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -14684,6 +14780,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14684
14780
|
field_key: string;
|
|
14685
14781
|
value: unknown;
|
|
14686
14782
|
}[];
|
|
14783
|
+
compareMap?: {
|
|
14784
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14785
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14786
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14787
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14788
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14789
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14790
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14791
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14792
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14793
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
14794
|
+
} | undefined;
|
|
14687
14795
|
sqlExpression?: string | undefined;
|
|
14688
14796
|
showField?: string[] | undefined;
|
|
14689
14797
|
hideField?: string[] | undefined;
|
|
@@ -331,6 +331,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
331
331
|
p_value: string;
|
|
332
332
|
p_name: string;
|
|
333
333
|
}[] | undefined;
|
|
334
|
+
compareMap?: {
|
|
335
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
336
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
337
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
338
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
339
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
340
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
341
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
342
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
343
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
344
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
345
|
+
} | undefined;
|
|
334
346
|
}[] | undefined;
|
|
335
347
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
336
348
|
is_allow_check_mid?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -2077,6 +2089,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2077
2089
|
p_value: string;
|
|
2078
2090
|
p_name: string;
|
|
2079
2091
|
}[] | undefined;
|
|
2092
|
+
compareMap?: {
|
|
2093
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2094
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2095
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2096
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2097
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2098
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2099
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2100
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2101
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2102
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
2103
|
+
} | undefined;
|
|
2080
2104
|
}[] | undefined;
|
|
2081
2105
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
2082
2106
|
is_allow_check_mid?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -3796,6 +3820,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3796
3820
|
p_value: string;
|
|
3797
3821
|
p_name: string;
|
|
3798
3822
|
}[] | undefined;
|
|
3823
|
+
compareMap?: {
|
|
3824
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3825
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3826
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3827
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3828
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3829
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3830
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3831
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3832
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3833
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
3834
|
+
} | undefined;
|
|
3799
3835
|
}[] | undefined;
|
|
3800
3836
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
3801
3837
|
is_allow_check_mid?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -18,6 +18,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
field_key: string;
|
|
19
19
|
value: unknown;
|
|
20
20
|
}[];
|
|
21
|
+
compareMap?: {
|
|
22
|
+
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
23
|
+
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
24
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
25
|
+
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
26
|
+
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
27
|
+
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
28
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
29
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
30
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
31
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
32
|
+
} | undefined;
|
|
21
33
|
sqlExpression?: string | undefined;
|
|
22
34
|
showField?: string[] | undefined;
|
|
23
35
|
hideField?: string[] | undefined;
|
|
@@ -69,6 +69,7 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
69
69
|
default: string;
|
|
70
70
|
};
|
|
71
71
|
clearable: BooleanConstructor;
|
|
72
|
+
selectAll: BooleanConstructor;
|
|
72
73
|
onChange: {};
|
|
73
74
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
75
|
value: {
|
|
@@ -138,6 +139,7 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
138
139
|
default: string;
|
|
139
140
|
};
|
|
140
141
|
clearable: BooleanConstructor;
|
|
142
|
+
selectAll: BooleanConstructor;
|
|
141
143
|
onChange: {};
|
|
142
144
|
}>> & {
|
|
143
145
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -151,6 +153,7 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
151
153
|
childFieldStrategy: "checked" | "all";
|
|
152
154
|
childWidthMode: "inner" | "outer";
|
|
153
155
|
clearable: boolean;
|
|
156
|
+
selectAll: boolean;
|
|
154
157
|
}>;
|
|
155
158
|
export declare const CHECKBOX: import("vue").DefineComponent<{
|
|
156
159
|
value: {
|
|
@@ -220,6 +223,7 @@ export declare const CHECKBOX: import("vue").DefineComponent<{
|
|
|
220
223
|
default: string;
|
|
221
224
|
};
|
|
222
225
|
clearable: BooleanConstructor;
|
|
226
|
+
selectAll: BooleanConstructor;
|
|
223
227
|
onChange: {};
|
|
224
228
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
225
229
|
value: {
|
|
@@ -289,6 +293,7 @@ export declare const CHECKBOX: import("vue").DefineComponent<{
|
|
|
289
293
|
default: string;
|
|
290
294
|
};
|
|
291
295
|
clearable: BooleanConstructor;
|
|
296
|
+
selectAll: BooleanConstructor;
|
|
292
297
|
onChange: {};
|
|
293
298
|
}>> & {
|
|
294
299
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -302,4 +307,5 @@ export declare const CHECKBOX: import("vue").DefineComponent<{
|
|
|
302
307
|
childFieldStrategy: "checked" | "all";
|
|
303
308
|
childWidthMode: "inner" | "outer";
|
|
304
309
|
clearable: boolean;
|
|
310
|
+
selectAll: boolean;
|
|
305
311
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,createVNode as
|
|
1
|
+
import{defineComponent as e,computed as t,createVNode as l,mergeProps as a,isVNode as o}from"vue";import i from"../../../../../shared/components/CancelRadio/CancelRadio.js";import{connect as r,mapProps as n}from"@formily/vue";import{isArray as u,xor as d,isNumber as s,isEmpty as c}from"lodash-es";import{NCheckboxGroup as p,NCheckbox as m,NRadioGroup as v}from"naive-ui";import"../../../index.js";import{useComplexOptions as f}from"../../hooks/useComplexOptions.js";import"../../../../../shared/utils/index.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"@vueuse/core";import"date-fns";import{assignUpdateValue as h,createVisitedSetter as y}from"../../utils/schema.js";import{useUrlConfigOptions as g,useAutographOptions as j}from"../../hooks/useFormRenderOptions.js";import{useCommonInjection as b}from"../../hooks/useCommonInjection.js";import{useFormField as x}from"../../hooks/useFormField.js";function k(i,r,n){return e({name:i,props:{value:{type:[String,Number,Object,Array]},options:{type:Array,default:()=>[]},urlConfig:{type:Object},autograph:{type:String},lazyRequest:{type:Boolean,default:!1},requestCache:{type:Boolean,default:!0},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},wordbook:{type:Object},vertical:{type:Boolean,default:!1},childFieldStrategy:{type:String,default:"checked"},childWidthMode:{type:String,default:"outer"},clearable:Boolean,selectAll:Boolean,onChange:{}},emits:["update:value"],setup(e,{emit:i,attrs:v}){const{field:h}=x();const k=t({get(){return t=e.value,s(t)?t+"":t;var t},set(e){i("update:value",e)}}),{renderComplexOption:C}=f(e,k),{labelKey:F,valueKey:S,fullOptions:O}=e.urlConfig?g(e,k):j(e,k),{injectValueBindKey:w,injectValueValidate:_}=b();_(k);const B=w(k);function W(){k.value=null}const K=t({get:()=>u(k.value)&&k.value.length===O.value.length,set(e){const t=e?O.value.map((e=>e[S.value])):[];d(t,k.value).length&&(k.value=t)}}),R=t((()=>u(e.value)&&e.value.length&&e.value.length<O.value.length));function A(t){let a;const i={display:"flex",alignItems:"center"};if(t.__spanPercent&&"inner"===e.childWidthMode){const e=`${t.__spanPercent}%`;i.maxWidth=e,function(e,t){return!c(t.childrenFields)&&(u(e)?e.includes(t[S.value]):e===t[S.value])}(k.value,t)&&(i.width=e)}return l(n,{key:t[S.value],value:t[S.value],disabled:t.disabled,currentValue:k.value,cancelable:e.clearable,onCancel:W,style:i},"function"==typeof(r=a=C({value:k.value,option:t,valueKey:S.value,labelKey:F.value,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode}))||"[object Object]"===Object.prototype.toString.call(r)&&!o(r)?a:{default:()=>[a]});var r}return()=>{const t=O.value.map((e=>{var t;const l=null==(t=e.childrenFields)?void 0:t.reduce(((e,t)=>e+ +(t.elem_width||3)),0);return{...e,__spanPercent:(l||0)/12*100}})),o={display:"flex",flexDirection:e.vertical?"column":"row",flexWrap:"wrap",justifyItems:"flex-start",alignItems:e.vertical?"flex-start":"center",width:"100%"},i=l(r,a({key:B.value,value:k.value,"onUpdate:value":e=>k.value=e,onClick:y(h),style:{width:"100%"}},v),{default:()=>[l("section",{style:o},[t.map(A)])]});return e.selectAll?l("section",null,[[r!==p?null:l(m,{checked:K.value,"onUpdate:checked":e=>K.value=e,indeterminate:R.value},{default:()=>"全选"}),i]]):i}}})}const C=r(k("FormRadio",v,i),n({dataSource:"options"},h)),F=r(k("FormCheckbox",p,m),n({dataSource:"options"},h));export{F as CHECKBOX,C as RADIO};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as i,formRenderLog as r}from"../utils/index.js";import{format as s}from"date-fns";import{useFieldNormalize as l}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as c}from"./useFormValidator.js";import{transformDateFormat as d}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function u(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig","wordbook"])})}function f(f){const{createValidatorSchema:x}=c(),_=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=x(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},h=e=>{var o,t,r,s,l,a,p;const c=_(e);e.urlConfig?u(c,e):e.autograph&&m(c,e);const d=!!e.__multiple,f="1"===e.allowModify,x=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(c["x-component-props"],{multiple:d,options:(null==(r=e.componentProps)?void 0:r.options)||e.option,allowModify:f,allowCreate:"1"===e.free_entry||!!c["x-component-props"].allowCreate||f,shouldSave:"1"===e.save_free_entry,showField:null!=(l=e.show_key)?l:null==(s=e.componentProps)?void 0:s.showField,maxTagCount:null!=(p=i(e.multi_select_value))?p:null==(a=c["x-component-props"])?void 0:a.maxTagCount,selectAll:"1"===x||!0===x,...n(e,["lazyRequest","requestCache"])}),d&&(c.type="array"),c},g=e=>{const
|
|
1
|
+
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as i,formRenderLog as r}from"../utils/index.js";import{format as s}from"date-fns";import{useFieldNormalize as l}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as c}from"./useFormValidator.js";import{transformDateFormat as d}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function u(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig","wordbook"])})}function f(f){const{createValidatorSchema:x}=c(),_=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=x(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},h=e=>{var o,t,r,s,l,a,p;const c=_(e);e.urlConfig?u(c,e):e.autograph&&m(c,e);const d=!!e.__multiple,f="1"===e.allowModify,x=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(c["x-component-props"],{multiple:d,options:(null==(r=e.componentProps)?void 0:r.options)||e.option,allowModify:f,allowCreate:"1"===e.free_entry||!!c["x-component-props"].allowCreate||f,shouldSave:"1"===e.save_free_entry,showField:null!=(l=e.show_key)?l:null==(s=e.componentProps)?void 0:s.showField,maxTagCount:null!=(p=i(e.multi_select_value))?p:null==(a=c["x-component-props"])?void 0:a.maxTagCount,selectAll:"1"===x||!0===x,...n(e,["lazyRequest","requestCache"])}),d&&(c.type="array"),c},g=e=>{var o,t;const n=_(e),i=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(n["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode,vertical:e.__vertical,selectAll:"1"===i||!0===i}),e.urlConfig?u(n,e):e.autograph&&m(n,e),n},y=e=>{const t=_(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},v=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark}}),b=new Map([["LINEBAR",v],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-component-props":{border:e.lineBreaksBorder},"x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=_(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=_(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=_(e),{decimal_length:t,validate:n,allowSlash:i}=e;return!0!==i&&"1"!==i||(o["x-component"]="INPUT_NUMBER_SLASH",o.type="string"),Object.assign(o["x-component-props"],{precision:null!=t?t:null==n?void 0:n.decimal_length,whiteList:e.whiteList,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",h],["REMOTE_SEARCH",h],["DATE",e=>{const o=_(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:d(e.date_format),validate:e.validate}),"current"===o.default&&(o.default=s(new Date,e.date_format||"yyyy-MM-dd")),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=_(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),"1"===e.is_allow_check_mid&&e.allow_check_mid_level&&(o["x-component-props"].checkAbleLevel=+e.allow_check_mid_level),o}],["SEARCH_CASCADER",e=>{var o;const t=_(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=_(e);return o.type="array",!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",g],["CHECKBOX",g],["SWITCH",e=>{const o=_(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close}),o}],["SLIDER",e=>{const o=_(e);return Object.assign(o["x-component-props"],{step:i(e.step_length),max:i(e.max_length),min:i(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=_(e);Array.isArray(e.properties)&&r("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?j(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),w=e=>{if(e.suffixConfig)return C(e);return(b.get(e.html_type)||y)(e)},C=o=>{if(!o.suffixConfig&&!o.prefixConfig)return w(o);const t=o.suffixConfig?e(o.suffixConfig):[],n=[...(o.prefixConfig?e(o.prefixConfig):[]).map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:"1"}))),{...o,is_show:"1",hide_title:"1",suffixConfig:void 0,prefixConfig:void 0},...t.map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:"1"})))],i=_(o),r=n.reduce(((e,o)=>e+2*(o.elem_width||3)),0);return Object.assign(i,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:r},"x-decorator-props":{...i["x-decorator-props"],showFeedback:!1,suffixFields:n.map((e=>e.val_key))},properties:j(n)}),i},{FieldNormalizeWaterfallHook:A,FieldListNormalizeWaterfallHook:O}=l();function j(o,n={column:9999}){let i=null;return O.call(t(o),n).reduce(((e,o,l)=>{var a;const p=null==(a=(o=A.call(o,n)).validate)?void 0:a.obj_type;return p&&f&&f.collect(p,t(o)),"LINEBAR"===o.html_type?(e[s(o)]=r(v(o),l),i=e[s(o)].properties={}):i?i[s(o)]=r(w(o),l):(i=null,e[s(o)]=r(w(o),l)),e}),{});function r(e,o){return e["x-index"]=o,e}function s(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:j}}export{f as useFieldListAdaptor};
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
type: FunctionConstructor;
|
|
34
34
|
};
|
|
35
35
|
formattedValue: {
|
|
36
|
-
type:
|
|
36
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
37
37
|
};
|
|
38
38
|
placeholder: {
|
|
39
39
|
type: StringConstructor;
|
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
type: FunctionConstructor;
|
|
54
54
|
};
|
|
55
55
|
formattedValue: {
|
|
56
|
-
type:
|
|
56
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
57
57
|
};
|
|
58
58
|
placeholder: {
|
|
59
59
|
type: StringConstructor;
|
|
@@ -68,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
68
|
datePickerRef: import("vue").Ref<import("../../../../../../es/shared/types").AnyObject | null>;
|
|
69
69
|
panelInstRef: import("vue").Ref<null>;
|
|
70
70
|
placeholderRef: import("vue").Ref<any>;
|
|
71
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
71
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
72
72
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
73
73
|
formatRef: import("vue").ComputedRef<string>;
|
|
74
74
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -77,7 +77,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
77
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
78
78
|
onUpdateShow: (show: boolean) => void;
|
|
79
79
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
80
|
-
isAllowedInvalidValue: (value
|
|
80
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
81
81
|
NDatePicker: any;
|
|
82
82
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
83
|
updateUnchangedValue: {
|
|
@@ -87,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
87
|
type: FunctionConstructor;
|
|
88
88
|
};
|
|
89
89
|
formattedValue: {
|
|
90
|
-
type:
|
|
90
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
91
91
|
};
|
|
92
92
|
placeholder: {
|
|
93
93
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as e,nextTick as l}from"vue";import{jsonParse as
|
|
1
|
+
import{createVNode as e,nextTick as l}from"vue";import{jsonParse as i,traverse as t,arrayed as r}from"../../../../../shared/utils/index.js";import{isObject as n}from"@vue/shared";import{isArray as o,isString as u,first as s}from"lodash-es";import"../../../index.js";import{IhoTableRenderHelper as d,isCompatibleColumn as a,parseRichContent as f}from"../../utils/index.js";import c from"./filter.vue.js";import{defineTablePlugin as v}from"../../hooks/useTablePlugin.js";function p(){const p="filterRenderPlugin";return v({name:p,vxe(l){l.renderer.mixin({[p]:{showFilterFooter:!1,renderFilter:(l,i)=>e(c,{payload:i,key:i.column.field},null)}})},apply(e){let c=[];e.fieldHooks.field.tap(p,((e,l,t,{$table:r})=>{var c,v,m,h,g,b,k,y;const x=null==(c=e.editRender)?void 0:c.props;if(!n(x))return e;if(!d.hasFilter(x))return e;e.editRender={...e.editRender,props:{...null==(v=e.editRender)?void 0:v.props,sortable:e.sortable}},e.filterRender={name:p};const C=null==(m=r.value)?void 0:m.getColumnByField(e.field),F={};let R;if(C&&o(C.filters)&&C.filters.forEach((e=>{e&&(F[`${e.label}_${e.value}`]=e.checked)})),a(x))R=null!=(h=x.options)?h:[];else{R=null!=(k=null==(b=null==(g=(n(x.fieldSetting)?x.fieldSetting:u(x.fieldSetting)?i(x.fieldSetting||""):{}).mapping)?void 0:g.mappingFiled)?void 0:b.reduce(((e,l)=>{var i;const t=s(l.value);return n(t)&&e.push({label:t.key,value:t.value,data:null!=(i=t.keyword)?i:t.value}),e}),[]))?k:[]}if(e.filters=R.reduce(((e,l)=>(n(l)&&e.push({...l,checked:!!F[`${l.label}_${l.value}`]}),e)),[]),!e.filterMethod){const l=null==(y=t.treeConfig)?void 0:y.children;e.filterMethod=function({option:e,column:i,row:t}){if(l&&o(t[l])&&t[l].length)return!1;const r=t[i.field];if(o(r))return r.some((l=>[e.label,e.value].includes(l)));if(u(r)){if(r===e.value||r===e.label)return!0;const{value:l,change_text:i}=f(r);return i===e.label||l===e.value}return!1}}return t.filterConfig={iconMatch:"iho-table--iconfont iho-table-icon-filter",iconNone:"iho-table--iconfont iho-table-icon-filter",...t.filterConfig},e})),e.fieldHooks.fieldList.tap(p,(e=>c=e)),e.fieldHooks.fieldEnd.tapPromise(p,(async(e,{$table:i})=>{var r;try{if(await l(),!i.value)return;const o=null!=(r=i.value.getColumns())?r:[],u=[];if(t(c,(e=>{o.find((l=>l.field===e.field))||u.push(e)})),!u.length)return;setTimeout((()=>{var l,t;if(null==(l=e.sortConfig)?void 0:l.multiple){const e=null!=(t=i.value.getColumns())?t:[],l=u.concat(e).reduce(((e,l)=>{var i;const t=null==(i=l.editRender)?void 0:i.props;return n(t)&&m(t.isOrder)&&e.push({field:l.field,order:t.isOrder}),e}),[]);i.value.sort(l)}else u.reverse().some((e=>{var l;const t=null==(l=e.editRender)?void 0:l.props;if(n(t)&&m(t.isOrder))return e&&i.value.sort(e.field,t.isOrder),!0}))}),100)}finally{c=[]}})),e.exposeHooks.expose.tap(p,((e,l,{$table:i})=>(Object.assign(e,{setSort(e,l){i.value&&i.value.sort(e,l)},setFilter(e,l){if(!i.value)return;const t=i.value.getColumnByField(e);if(!t||!o(t.filters))return;const n=r(l);t.filters.forEach((e=>{e.checked=n.includes(e.value)})),i.value.updateData()}}),e)))}})}function m(e){return["asc","desc",null].includes(e)}export{p as filterRenderPlugin};
|