cnhis-design-vue 3.1.46-release.4 → 3.1.46
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/button-print/src/utils/print.js +1 -1
- package/es/components/form-config/index.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -7
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -1
- package/es/components/form-render/index.d.ts +5 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -3
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -4
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +16 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +32 -4
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +16 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +5 -0
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -1
- package/es/components/form-render/src/types/index.d.ts +1 -7
- package/es/components/iho-table/index.d.ts +12 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +12 -0
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +5 -3
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +14 -12
- package/es/components/info-header/src/InfoHeader.vue.d.ts +14 -12
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -4
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -4
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-person/index.d.ts +153 -14
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +106 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +150 -12
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +4 -0
- package/es/components/select-person/src/types/enums.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +13 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -5
- package/es/components/steps-wheel/index.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +6 -0
- package/es/shared/utils/business.d.ts +6 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
|
@@ -19,6 +19,10 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
+
nextNodeRender: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
22
26
|
noDataMsg: {
|
|
23
27
|
type: StringConstructor;
|
|
24
28
|
default: string;
|
|
@@ -48,6 +52,10 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
48
52
|
type: BooleanConstructor;
|
|
49
53
|
default: boolean;
|
|
50
54
|
};
|
|
55
|
+
nextNodeRender: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
51
59
|
noDataMsg: {
|
|
52
60
|
type: StringConstructor;
|
|
53
61
|
default: string;
|
|
@@ -61,10 +69,13 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
61
69
|
nodeRowCount: import("vue").ComputedRef<number>;
|
|
62
70
|
lastNodeRenderShow: import("vue").ComputedRef<boolean>;
|
|
63
71
|
noDataMsg: import("vue").Ref<string>;
|
|
72
|
+
nextNodeRender: import("vue").Ref<boolean>;
|
|
64
73
|
stepItemRef: any;
|
|
65
74
|
countBoxWidth: import("vue").ComputedRef<string>;
|
|
66
75
|
stepInfoList: import("vue").Ref<any[]>;
|
|
67
76
|
stepInfoArray: import("vue").Ref<any[]>;
|
|
77
|
+
mouseEnter: (stepItem: any) => void;
|
|
78
|
+
mouseLeave: (stepItem: any) => void;
|
|
68
79
|
handleNode: (nodeList: any[], cols: number) => void;
|
|
69
80
|
fillBoxShow: (item: any) => any;
|
|
70
81
|
lineCircleLeft: (stepItem: any) => boolean;
|
|
@@ -97,6 +108,10 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
97
108
|
type: BooleanConstructor;
|
|
98
109
|
default: boolean;
|
|
99
110
|
};
|
|
111
|
+
nextNodeRender: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
100
115
|
noDataMsg: {
|
|
101
116
|
type: StringConstructor;
|
|
102
117
|
default: string;
|
|
@@ -111,6 +126,7 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
111
126
|
currentStep: number;
|
|
112
127
|
toolTipShow: boolean;
|
|
113
128
|
lastNodeRender: boolean;
|
|
129
|
+
nextNodeRender: boolean;
|
|
114
130
|
placement: string;
|
|
115
131
|
}>>;
|
|
116
132
|
export default StepsWheel;
|
|
@@ -18,6 +18,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
+
nextNodeRender: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
21
25
|
noDataMsg: {
|
|
22
26
|
type: StringConstructor;
|
|
23
27
|
default: string;
|
|
@@ -47,6 +51,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
51
|
type: BooleanConstructor;
|
|
48
52
|
default: boolean;
|
|
49
53
|
};
|
|
54
|
+
nextNodeRender: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
50
58
|
noDataMsg: {
|
|
51
59
|
type: StringConstructor;
|
|
52
60
|
default: string;
|
|
@@ -60,10 +68,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
68
|
nodeRowCount: import("vue").ComputedRef<number>;
|
|
61
69
|
lastNodeRenderShow: import("vue").ComputedRef<boolean>;
|
|
62
70
|
noDataMsg: import("vue").Ref<string>;
|
|
71
|
+
nextNodeRender: import("vue").Ref<boolean>;
|
|
63
72
|
stepItemRef: any;
|
|
64
73
|
countBoxWidth: import("vue").ComputedRef<string>;
|
|
65
74
|
stepInfoList: import("vue").Ref<any[]>;
|
|
66
75
|
stepInfoArray: import("vue").Ref<any[]>;
|
|
76
|
+
mouseEnter: (stepItem: any) => void;
|
|
77
|
+
mouseLeave: (stepItem: any) => void;
|
|
67
78
|
handleNode: (nodeList: any[], cols: number) => void;
|
|
68
79
|
fillBoxShow: (item: any) => any;
|
|
69
80
|
lineCircleLeft: (stepItem: any) => boolean;
|
|
@@ -96,6 +107,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
107
|
type: BooleanConstructor;
|
|
97
108
|
default: boolean;
|
|
98
109
|
};
|
|
110
|
+
nextNodeRender: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
99
114
|
noDataMsg: {
|
|
100
115
|
type: StringConstructor;
|
|
101
116
|
default: string;
|
|
@@ -110,6 +125,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
125
|
currentStep: number;
|
|
111
126
|
toolTipShow: boolean;
|
|
112
127
|
lastNodeRender: boolean;
|
|
128
|
+
nextNodeRender: boolean;
|
|
113
129
|
placement: string;
|
|
114
130
|
}>;
|
|
115
131
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as
|
|
1
|
+
import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as o,openBlock as s,createElementBlock as i,normalizeStyle as r,unref as a,normalizeClass as p,createElementVNode as d,Fragment as u,renderList as c,createCommentVNode as m,withDirectives as f,renderSlot as v,toDisplayString as h,vShow as I,createBlock as g,withCtx as x,createVNode as y}from"vue";import{NTooltip as w,NEmpty as B}from"naive-ui";import{useTheme as S}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import{defaultCssVars as T}from"./constants/index.js";const M={class:"stepBox"},b=["title"],k=["onMouseenter","onMouseleave"],_=["onMouseenter","onMouseleave"],C=["title"],R=["title"],N=["title"],$={key:0,style:{height:"48px"}},L={key:1},V={key:1};var j=e({__name:"StepsWheel",props:{stepInfo:{type:Object,default:()=>({list:[],cols:6})},currentStep:{type:Number,default:1},toolTipShow:{type:Boolean,default:!0},lastNodeRender:{type:Boolean,default:!1},nextNodeRender:{type:Boolean,default:!1},noDataMsg:{type:String,default:"暂无节点数据"},placement:{type:String,default:"center"}},setup(e){const j=e,D=S(T,"StepsWheel"),O=t((()=>Math.ceil(q.value.length/j.stepInfo.cols))),A=t((()=>j.lastNodeRender)),{noDataMsg:E,nextNodeRender:P}=l(j),W=n(null),F=t((()=>{var e;let t=72;if(null==(e=null==W?void 0:W.value)?void 0:e.length){let e=W.value[0],l=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;t=isNaN(parseInt(l["min-width"]))?72:parseInt(l["min-width"])}return`${20+j.stepInfo.cols*t}px`})),q=n([]),z=n([]),G=e=>{e.tipVisible=!0},H=e=>{e.tipVisible=!1},J=e=>{if(z.value.length){if(e.rowIndex===z.value.length)return!0;if(e.rowIndex<z.value.length)return z.value[e.rowIndex].some((e=>null==e?void 0:e.title))}return!1},K=e=>{const{list:t=[]}=j.stepInfo;return e.rowIndex%2==0&&"frist"==e.nodeType&&e.nodeIndex!==t.length},Q=e=>{const{list:t=[]}=j.stepInfo;return e.rowIndex%2!=0&&"last"==e.nodeType&&e.nodeIndex!==t.length},U=(e,t)=>P.value?e.rowIndex%2==0?j.currentStep>=t+(j.stepInfo.cols-2*e.sort)-1:j.currentStep>=t+1:e.rowIndex%2==0?j.currentStep>=t+(j.stepInfo.cols-2*e.sort):j.currentStep>=t+2,X=(e,t)=>{let l=e.length,n=l%t==0?l/t:Math.floor(l/t+1),o=[];for(let l=0;l<n;l++){let n=e.slice(l*t,l*t+t);o.push(n)}return o},Y=e=>{const{cols:t}=j.stepInfo;let l=X(q.value,t),n=l[l.length-1].filter((e=>e));return O.value%2==0?e!=n[n.length-1].nodeIndex-(t-2*n[n.length-1].sort):e!=n[n.length-1].nodeIndex-1},Z=e=>{const{cols:t}=j.stepInfo;let l=X(q.value,t),n=l[l.length-1].filter((e=>e));return O.value%2==0?A.value&&e==n[0].nodeIndex-(t-2*n[0].sort):A.value&&e==n[n.length-1].nodeIndex-1},ee=(e,t)=>{const{cols:l}=j.stepInfo;let n=X(q.value,l),o=n[n.length-1].filter((e=>e));return O.value%2==0?"circle"===t?A.value&&e==o[0].nodeIndex-(l-2*o[0].sort)-l:A.value&&e==o[0].nodeIndex-(l-2*o[0].sort):"circle"===t?A.value&&e==o[o.length-1].nodeIndex-1-l:A.value&&e==o[o.length-1].nodeIndex-2};return o((()=>j.stepInfo),(e=>{var t;(null==(t=null==e?void 0:e.list)?void 0:t.length)&&((e,t)=>{let l=e.length+1,n=Math.ceil(e.length/t),o=!0,s=[];for(var i=0;i<n;i++)s[i]=new Array(t),s[i].fill(null);let r=0,a=0;for(let n=1;n<l;n++)s[r][a]=Object.assign(e[n-1],{nodeIndex:n,rowIndex:r+1}),o?n%t!=0?a++:(o=!o,r++):n%t!=0?a--:(o=!o,r++);let p=[];s.map((e=>{e.map(((e,t)=>{e&&(e.sort=t,!e.hasOwnProperty("tipVisible")&&(e.tipVisible=!1))})),e[0]&&(e[0].nodeType="frist"),e[e.length-1]&&(e[e.length-1].nodeType="last"),p=[...p,...e]})),q.value=p,z.value=s})(e.list,e.cols)}),{immediate:!0,deep:!0}),(t,l)=>(s(),i("div",{class:"step-wheel-box",style:r({minWidth:a(F),...a(D)})},[q.value.length?(s(),i("div",{key:0,class:p(["stepOut",{placementLeft:"left"===e.placement,placementRight:"right"===e.placement}])},[d("ul",M,[(s(!0),i(u,null,c(q.value,((l,n)=>(s(),i("li",{ref_for:!0,ref_key:"stepItemRef",ref:W,key:(null==l?void 0:l.stepId)||n,class:p(["stepItem",{[`stepItem_${n+1}`]:!0,[`${null==l?void 0:l.stepId}`]:!!(null==l?void 0:l.stepId)}])},[l?(s(),i(u,{key:0},[m(" 步骤头部信息 "),f(d("div",{class:p(["stepTopBox",{activeTitle:e.currentStep>=l.nodeIndex,finished:Z(n),stepTopBox_right:"right"===e.placement,stepTopBox_left:"left"===e.placement}])},[v(t.$slots,"stepTopBox",{stepItem:l},(()=>[d("span",{title:l.title},h(l.title),9,b)]))],2),[[I,l.title]]),m(" 步骤条的节点,此处为圆圈 "),e.toolTipShow?(s(),g(a(w),{key:0,placement:"top",delay:0,"show-arrow":!0,show:l.tipVisible,trigger:"manual",style:r({opacity:"0.88"}),onMouseenter:e=>G(l),onMouseleave:e=>H(l)},{trigger:x((()=>[d("div",{class:p(["icon",{active:e.currentStep>=l.nodeIndex,finished:Z(n)}]),onMouseenter:e=>G(l),onMouseleave:e=>H(l)},null,42,k)])),default:x((()=>[v(t.$slots,"nodeTipBox",{stepItem:l,stepId:l.stepId})])),_:2},1032,["show","style","onMouseenter","onMouseleave"])):(s(),i("div",{key:1,class:p(["icon",{active:e.currentStep>=l.nodeIndex,finished:Z(n)}])},null,2)),m(" 步骤条连接线,动态显示 "),"last"!==l.nodeType?f((s(),i("div",{key:2,class:p(["line",{lineActive:U(l,n),finished:ee(n)}])},null,2)),[[I,Y(n)]]):m("v-if",!0),m(" 步骤条弯曲连线,动态渲染 "),K(l)||Q(l)?(s(),i("div",{key:3,class:p({lineCircleActive:a(P)?e.currentStep>=l.nodeIndex:e.currentStep>l.nodeIndex,lineCircleFinished:ee(n,"circle"),lineCircleRight:Q(l),lineCircleLeft:K(l),lineCirclePlacementRight:Q(l)&&"right"===e.placement,lineCirclePlacementLeft:K(l)&&"left"===e.placement})},null,2)):m("v-if",!0),m(" 步骤底部信息 "),d("div",{class:p(["stepBottomBox",{stepBottomBox_right:"right"===e.placement,stepBottomBox_left:"left"===e.placement}]),onMouseenter:e=>G(l),onMouseleave:e=>H(l)},[v(t.$slots,"stepBottomBox",{stepItem:l},(()=>[m(" 步骤名称 "),f(d("p",{class:p(["stepLabel",{labelFinsh:Z(n),stepLabel_right:"right"===e.placement,stepLabel_left:"left"===e.placement}]),title:l.label},h(l.label),11,C),[[I,l.label]]),d("div",{class:p({stepBottomCustomBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement})},[v(t.$slots,"stepBottomCustomBox",{stepItem:l},(()=>[d("div",{class:p({stepBottomDefaultBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement}),style:{width:"100%",display:"flex",flexDirection:"column"}},[f(d("p",{class:"stepExtra",title:l.person},h(l.person),9,R),[[I,l.person]]),m(" 步骤时间 "),f(d("p",{class:"statusTime",title:l.statusTime},h(l.statusTime),9,N),[[I,l.statusTime]])],2)]))],2)])),J(l)?(s(),i("div",$)):m("v-if",!0)],42,_)],64)):(s(),i("div",L,[m("null元素占位")]))],2)))),128))])],2)):(s(),i("div",V,[y(a(B),{description:a(E)},null,8,["description"])]))],4))}});export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepBox{display:flex;flex-wrap:wrap;list-style:none;width:100%}.step-wheel-box .stepOut .stepItem{font-family:SimSun;font-size:16px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;border-right:1px dashed rgba(3,2,2,.4);border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementRight{width:100%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementLeft{left:-55%;width:100%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .lineCircleFinished{border:1px solid var(--c-success-color)}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .finished{background-color:var(--c-success-color)!important;border-color:var(--c-success-color)!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:var(--c-success-color)!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .stepTopBox{background
|
|
1
|
+
.step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepBox{display:flex;flex-wrap:wrap;list-style:none;width:100%}.step-wheel-box .stepOut .stepItem{font-family:SimSun;font-size:16px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;border-right:1px dashed rgba(3,2,2,.4);border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementRight{width:100%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementLeft{left:-55%;width:100%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .lineCircleFinished{border:1px solid var(--c-success-color)}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .finished{background-color:var(--c-success-color)!important;border-color:var(--c-success-color)!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:var(--c-success-color)!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .stepTopBox{background:#e6e6e6;border-radius:4px;color:#000;cursor:pointer;height:40px;left:50%;line-height:40px;max-width:70%;min-width:73px;overflow:hidden;padding:0 5px;position:absolute;text-overflow:ellipsis;top:-48px;transform:translateX(-50%);white-space:nowrap}.step-wheel-box .stepOut .stepItem .activeTitle{background:#f1f5fe;color:var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .stepTopBox_right{transform:translateX(-10%)}.step-wheel-box .stepOut .stepItem .stepTopBox_left{transform:translateX(-90%)}.step-wheel-box .stepOut .stepItem .stepBottomBox{align-items:center;cursor:pointer;display:flex;flex-direction:column;margin:8px 0 16px;min-width:73px;overflow:hidden;width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox{align-items:center;display:flex;flex-direction:column;height:calc(100% - 27px);width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .stepBottomDefaultBox{align-items:center}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox_right{align-items:flex-start;left:45%;position:relative}.step-wheel-box .stepOut .stepItem .stepBottomBox_left{align-items:flex-end;left:-45%;position:relative}.step-wheel-box .stepOut .stepItem .stepLabel{color:#212121;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.step-wheel-box .stepOut .stepItem .stepLabel_right{text-align:left}.step-wheel-box .stepOut .stepItem .stepLabel_left{text-align:right}.step-wheel-box .stepOut .stepItem .stepExtra{border:1px solid #cacaca;border-radius:4px;display:inline-block;margin:0;max-width:90%;overflow:hidden;padding:0 4px;text-overflow:ellipsis;white-space:nowrap;width:auto}.step-wheel-box .stepOut .stepItem .statusTime{color:rgba(0,0,0,.6);font-size:14px;font-weight:400;margin:0;max-width:90%}.placementRight{left:-1%;position:relative}.placementLeft{left:10%;position:relative}.nodeTipContent{margin:0;max-height:200px;max-width:400px;overflow:auto;padding:0;text-align:center}.nodeTipContent li{list-style:none;margin-bottom:5px}.nodeTipContent li p{margin:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,inject as t,computed as a,watch as i,openBlock as o,createBlock as s,unref as n,normalizeClass as d,isRef as r,withCtx as u,createVNode as c,normalizeStyle as m,createElementVNode as h,createTextVNode as f,renderSlot as p,toDisplayString as v,h as g}from"vue";import{useMessage as b,NModal as w,NCard as x,NButton as L,NCheckbox as y,NSelect as
|
|
1
|
+
import{defineComponent as e,ref as l,inject as t,computed as a,watch as i,openBlock as o,createBlock as s,unref as n,normalizeClass as d,isRef as r,withCtx as u,createVNode as c,normalizeStyle as m,createElementVNode as h,createTextVNode as f,renderSlot as p,toDisplayString as v,h as g}from"vue";import{useMessage as b,NModal as w,NCard as x,NButton as L,NCheckbox as y,NSelect as F,NCheckboxGroup as k,NPopover as I,NPopconfirm as A,NIcon as N}from"naive-ui";import{Trash as C}from"@vicons/ionicons5";import{InjectionExportApiConfig as _}from"../constants/index.js";import P from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import S from"../hooks/useAsyncData.js";import{dragFieldCheckList as z}from"../tool.js";import{cloneDeep as E}from"lodash-es";const j={class:"svg-wrap"},H={class:"flex_right"},O=h("div",{class:"tip"},"提示:支持拖动调整字段顺序,字段导出顺序为从左到右,从上到下。",-1),U={class:"flex_between"},$=["title"];var T=e({__name:"ExportModal",props:{visible:{type:Boolean,default:!1},tableListId:{type:String,default:""},curProgram:{type:Object,default:()=>({})},programOptions:{type:Array,default:()=>[]},downLoadFieldList:{type:Array,default:()=>[]},showAllFieldList:{type:Array,default:()=>[]}},emits:["cancelModal","updateCurProgram","updateFieldCheckList","updateShowAllFieldList"],setup(e,{emit:T}){const K=e,M="default",D="860px",B="496px",V={class:"select-export-popover"},q=b(),{deleteTableListExportScheme:G,exportTableListScheme:J}=S(),Q=l(!1),R=l(D),W=l({maxHeight:B,height:B}),X=l(!1),Y=l(!0),Z=l([]),ee=t(_),le=a((()=>K.curProgram.schemeId));function te(){T("updateShowAllFieldList",K.showAllFieldList)}function ae({option:e}){return g("span",e.schemeName)}function ie(e){const l=[g(I,{trigger:"hover",duration:0},{default:()=>e.schemeName,trigger:()=>g("span",{class:"content"},e.schemeName)})],t=[g(A,{placement:"top-start",positiveText:"确认",negativeText:"取消",onPositiveClick:()=>function(e){const{schemeId:l}=K.curProgram;if(l===e.schemeId)return q.warning("当前正在使用该方案,请先切换其他方案再删除");!async function(e){if(!K.tableListId)return q.warning("请传入列表id");try{await G({id:K.tableListId,schemeId:e},ee)&&q.success("删除成功")}catch(e){q.error(`获取导出方案数据请求失败:${e}`)}}(e.schemeId)}(e)},{trigger:()=>g(N,{onclick:oe},{default:()=>g(C)}),default:()=>"确定删除该导出方案吗?"})],a=e.schemeId===M?[l]:[l,t];return g("div",{class:"flex-between"},a)}function oe(e){e.stopPropagation()}function se(e){T("updateCurProgram",e)}function ne(){!async function(){if(!K.tableListId)return q.warning("请传入列表id");if(Z.value.length<1)return q.warning("请至少勾选一个字段");try{const{schemeId:e}=K.curProgram,l=K.programOptions.find((l=>l.schemeId===e)),t={fieldKeys:z(K.showAllFieldList,Z.value),lastUsedSchemeName:l?l.schemeName:"",schemeId:l?l.schemeId:"",schemeName:l?l.schemeName:"",tableListId:K.tableListId};await J(t,ee)&&(q.success("导出成功"),re())}catch(e){q.error(`获取导出方案数据请求失败:${e}`)}}()}function de(e){var l,t,a;Y.value=!1,Z.value=e?(null==(l=K.showAllFieldList)?void 0:l.map((e=>e.columnName)))||[]:(null==(a=null==(t=K.showAllFieldList)?void 0:t.filter((e=>e.fixedExport)))?void 0:a.map((e=>e.columnName)))||[]}function re(){T("cancelModal"),R.value=D,W.value={height:B,maxHeight:B},Q.value=!1}function ue(){Q.value=!Q.value;let e=document.body.clientHeight;R.value===D?(R.value="100%",W.value.maxHeight=`${e}px`,W.value.height=`${e}px`):(R.value=D,W.value.maxHeight=B,W.value.height=B)}return i((()=>Z.value),(e=>{K.showAllFieldList.length>0&&(Y.value=e.length>0&&e.length<K.showAllFieldList.length,X.value=e.length===K.showAllFieldList.length,T("updateFieldCheckList",e))}),{immediate:!0}),i((()=>K.curProgram),(e=>{e&&function(e){const l=K.programOptions.find((l=>l.schemeId===e));if(l){let t=[];const a=K.downLoadFieldList.filter((e=>e.fixedExport)).map((e=>e.columnName)),i=l.fieldKeys.filter((e=>!a.includes(e)));if(Z.value=[...i,...a],e===M){const e=E(K.downLoadFieldList);return void T("updateShowAllFieldList",e)}Z.value.forEach((e=>{const l=K.downLoadFieldList.find((l=>l.columnName===e));l&&t.push(l)}));const o=K.downLoadFieldList.filter((e=>!Z.value.includes(e.columnName))),s=[...t,...o];T("updateShowAllFieldList",s)}}(e.schemeId)}),{immediate:!0}),(l,t)=>(o(),s(n(w),{class:d(["table-export-field-modal",{"modal-screen":Q.value}]),show:e.visible,"onUpdate:show":t[3]||(t[3]=e=>r(visible)?visible.value=e:null),maskClosable:!1,width:R.value,bodyStyle:W.value,closable:!1,centered:"",onPositiveClick:ne,onNegativeClick:re},{default:u((()=>[c(n(x),{style:m({width:R.value,...W.value}),title:"选择导出字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":u((()=>[h("div",j,[h("i",{onClick:ue,class:d(["iconfont-table-filter",Q.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),h("i",{onClick:re,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:u((()=>[h("div",H,[c(n(L),{onClick:re},{default:u((()=>[f("取消")])),_:1}),p(l.$slots,"add"),c(n(L),{type:"info",onClick:ne},{default:u((()=>[f("导出")])),_:1})])])),default:u((()=>[O,h("header",U,[c(n(y),{checked:X.value,"onUpdate:checked":[t[0]||(t[0]=e=>X.value=e),de],indeterminate:Y.value},{default:u((()=>[f(" 全选 ")])),_:1},8,["checked","indeterminate"]),c(n(F),{style:{width:"200px"},value:n(le),"onUpdate:value":[t[1]||(t[1]=e=>r(le)?le.value=e:null),se],filterable:"","label-field":"schemeName","value-field":"schemeId","show-checkmark":!1,"render-label":ie,"render-tag":ae,"menu-props":V,options:e.programOptions},null,8,["value","options"])]),c(n(k),{value:Z.value,"onUpdate:value":t[2]||(t[2]=e=>Z.value=e)},{default:u((()=>[c(n(P),{class:"draggable-checkbox-list",list:e.showAllFieldList,animation:"300",itemKey:"columnName",onEnd:te},{item:u((({element:e})=>{var l;return[c(n(y),{disabled:e.fixedExport,class:d(Z.value.includes(e.columnName)?"":"checkbox-disabled"),value:e.columnName,label:null!=(l=e.alias)?l:e.title},{default:u((()=>{var l,t;return[h("span",{title:null!=(l=e.alias)?l:e.title},v(null!=(t=e.alias)?t:e.title),9,$)]})),_:2},1032,["disabled","class","value","label"])]})),_:1},8,["list"])])),_:1},8,["value"])])),_:3},8,["style"])])),_:3},8,["class","show","width","bodyStyle"]))}});export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.46",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},d={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},o={name:e,version:"3.1.46",private:!0,main:"index.ts",peerDependencies:n,dependencies:d};export{o as default,d as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
|
@@ -14,3 +14,9 @@ export declare type BindEventSettingItem = {
|
|
|
14
14
|
}[];
|
|
15
15
|
[K: string]: unknown;
|
|
16
16
|
};
|
|
17
|
+
export declare type FormOperationalConfig = {
|
|
18
|
+
operationFormParam: string[];
|
|
19
|
+
operationalRule: string;
|
|
20
|
+
operationalPrecision: string;
|
|
21
|
+
operationalResult: string;
|
|
22
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BindEventSettingItem, LOW_CODE_EVENT_TYPE, LOW_CODE_VALUE_RELATION } from '../../../es/shared/types';
|
|
1
|
+
import { BindEventSettingItem, FormOperationalConfig, LOW_CODE_EVENT_TYPE, LOW_CODE_VALUE_RELATION } from '../../../es/shared/types';
|
|
2
|
+
import { MaybeRef } from '@vueuse/core';
|
|
2
3
|
export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
3
4
|
con: LOW_CODE_VALUE_RELATION;
|
|
4
5
|
value: unknown;
|
|
@@ -8,4 +9,8 @@ declare function handleFieldTriggerSetValue(bindEventSetting: BindEventSettingIt
|
|
|
8
9
|
getter: (key: string) => unknown;
|
|
9
10
|
}): void;
|
|
10
11
|
export declare function getBindEventSettingTrigger(key: LOW_CODE_EVENT_TYPE): typeof handleFieldTriggerSetValue;
|
|
12
|
+
export declare function getOperationalFormHandler(operationalForm: MaybeRef<FormOperationalConfig[] | undefined>, getter: (field: string) => unknown, setter: (field: string, value: unknown) => void): {
|
|
13
|
+
operationalFormHandler: (field: string) => void;
|
|
14
|
+
triggerAllOperationalFormHandler: () => void;
|
|
15
|
+
};
|
|
11
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isArray as e,isString as
|
|
1
|
+
import{isArray as e,isString as n,includes as r,isEmpty as t,negate as o,gt as a,gte as l,lt as i,lte as u,noop as c,isObject as p,isNumber as f}from"lodash-es";import{unref as s}from"vue";const E={EQ:(e,n)=>`${e}`===n,NEQ:(e,n)=>`${e}`!==n,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:t,NOT_NULL:o(t),BIG:a,BIGEQ:l,LESS:i,LESSEQ:u};function m(e,n){return(E[n.con]||(()=>!1))(e,`${n.value}`)}const L=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!p(e))return;const{results:t=[],params:o=[]}=e;if(!t.length)return;o.every((e=>e&&e.p_name&&m(n(e.p_name),{con:e.p_select,value:e.p_value})))&&t.forEach((e=>r(e.p_name,e.p_value)))},REPEAT_VALIDATE:c,IS_SHOW_FIELD:c,SQLSAVE:c,API:c});function _(e){return L[e]||c}function S(r,t,o){function a(n){return e(n)&&!!n.length}function l(e,r=!0){e.forEach((e=>{const a=e.operationFormParam.reduce(((e,n)=>(e[n=n.replace(/^table\./,"")]=+t(n),e)),{}),l=e.operationalRule.replace(/\${(.+?)}/g,"$1");let i=new Function("table",`return ${l}`)(a);n(i)&&(i=+i),i=f(i)?isNaN(i)?"":i.toFixed(+e.operationalPrecision):"",(r||null==t(e.operationalResult))&&o(e.operationalResult,i)}))}return{operationalFormHandler:function(e){if(!a(s(r)))return;const n=s(r).filter((n=>n.operationFormParam.includes(`table.${e}`)));n.length&&l(n)},triggerAllOperationalFormHandler:function(){a(s(r))&&l(s(r),!1)}}}export{_ as getBindEventSettingTrigger,S as getOperationalFormHandler,m as isMatchLowCodeCondition};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useMemoize as t}from"@vueuse/core";import{isObject as e,isString as n,isNumber as r,isArray as o,isFunction as i}from"lodash-es";import{getCurrentInstance as
|
|
1
|
+
import{useMemoize as t}from"@vueuse/core";import{isObject as e,isString as n,isNumber as r,isArray as o,isFunction as i}from"lodash-es";import{getCurrentInstance as u}from"vue";import c from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition}from"./business.js";function s(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=l(r),e=l(e);for(let c=0;c<e.length;c++){if(n(e[c],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[c][r[i]];if(Array.isArray(u)&&t(u,n,r,e[c]),o)return}}}(t,e,n,r)}function f(t,n,r=n.name,o){if(!r)throw new Error(`[CUI]: invalid component name for ${n}`);const{components:i={}}=t._context;i[r]||(!Reflect.get(t,"__cnhis_version")&&e(c)&&Reflect.set(t,"__cnhis_version",c.version),o?o():t.component(r,n))}function a(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function l(t){return Array.isArray(t)?t:[t]}function x(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const d=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),m=Object.seal(Object.create(null));function p(t,n){return function t(n,r){return e(n)?o(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((n,[o,u])=>(r.includes(o)||(e(u)&&!i(u)?n[o]=t(u,r):n[o]=u),n)),{}):n}(t,n)}function h(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function g(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function v(t,e="px"){if(r(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function y(t,e){return t.some((t=>e.includes(t)))}const b=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function j(t,n){if(!e(t))return t;const r={...t};for(let t=0;t<n.length;t++)Reflect.deleteProperty(r,n[t]);return r}function w(t){if(!u())throw new Error(t||"can't use this hook out of setup environment")}function $(t,e=1){const[n,o,i,u,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const s=c&&parseInt(c,16)/255;return[parseInt(o,16),parseInt(i,16),parseInt(u,16),+(r(s)?s.toFixed(2):e)]}export{m as DMZ,l as arrayed,w as checkInSetupEnv,p as deepOmit,g as findAncestor,a as generateTimeFormat,d as getStringWidth,$ as hex2rgba,b as jsonParse,f as safeComponentRegister,h as separateMetaModule,j as shallowOmit,y as targetStringIncludes,s as traverse,x as uuidGenerator,v as widthAppend};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare type PluginName = string | {
|
|
2
|
+
name: string;
|
|
3
|
+
stage: number;
|
|
4
|
+
};
|
|
5
|
+
declare type WithStage<T extends (...p: any[]) => any> = {
|
|
6
|
+
stage: number;
|
|
7
|
+
callback: T;
|
|
8
|
+
};
|
|
9
|
+
declare type ReplaceWithString<T extends any[]> = T extends [infer A, ...infer R] ? [string, ...ReplaceWithString<R>] : T;
|
|
10
|
+
export declare class SyncHook<T extends any[]> {
|
|
11
|
+
private args;
|
|
12
|
+
constructor(args: ReplaceWithString<T>);
|
|
13
|
+
callbackList: WithStage<(...payload: T) => any>[];
|
|
14
|
+
tap(pluginName: PluginName, callback: (...payload: T) => any): void;
|
|
15
|
+
tapPromise(pluginName: PluginName, callback: (...payload: T) => any): void;
|
|
16
|
+
call(...payload: T): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class SyncWaterfallHook<T extends any[]> extends SyncHook<T> {
|
|
19
|
+
callbackList: WithStage<(...payload: T) => T[0]>[];
|
|
20
|
+
call(...payload: T): T[0];
|
|
21
|
+
}
|
|
22
|
+
export declare class AsyncParallelHook<T extends any[]> extends SyncHook<T> {
|
|
23
|
+
promise(...payload: T): void;
|
|
24
|
+
}
|
|
25
|
+
export declare class AsyncSeriesHook<T extends any[]> extends SyncHook<T> {
|
|
26
|
+
promise(...payload: T): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isObject as a}from"@vueuse/core";import{isString as s,sortBy as c}from"lodash-es";class l{constructor(a){this.args=a,this.callbackList=[]}tap(l,t){var i;if(s(l))this.callbackList.push({stage:0,callback:t});else{if(!a(l))return;this.callbackList.push({stage:null!=(i=l.stage)?i:0,callback:t})}this.callbackList=c(this.callbackList,(a=>a.stage))}tapPromise(l,t){var i;if(s(l))this.callbackList.push({stage:0,callback:t});else{if(!a(l))return;this.callbackList.push({stage:null!=(i=l.stage)?i:0,callback:t})}this.callbackList=c(this.callbackList,(a=>a.stage))}call(...a){this.callbackList.forEach((({callback:s})=>s(...a)))}}class t extends l{constructor(){super(...arguments),this.callbackList=[]}call(...a){return this.callbackList.reduce(((s,{callback:c})=>c(s,...a.slice(1))),a[0])}}class i extends l{promise(...a){this.callbackList.forEach((({callback:s})=>s(...a)))}}class e extends l{promise(...a){return this.callbackList.reduce((async(s,{callback:c})=>(await s,c(...a))),Promise.resolve())}}export{i as AsyncParallelHook,e as AsyncSeriesHook,l as SyncHook,t as SyncWaterfallHook};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.46
|
|
3
|
+
"version": "3.1.46",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d6ccb05ea236a2052f9155b4ffab73a8b3c727b7"
|
|
65
65
|
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const LEVEL_SEARCH_CASCADER: vue_2.DefineComponent<{
|
|
3
|
-
options: {
|
|
4
|
-
type: ArrayConstructor;
|
|
5
|
-
default: () => never[];
|
|
6
|
-
};
|
|
7
|
-
labelField: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
valueField: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
autograph: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
lazyRequest: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
requestCache: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
wordbook: {
|
|
28
|
-
type: ObjectConstructor;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
onChange: {};
|
|
32
|
-
value: {
|
|
33
|
-
type: (ArrayConstructor | StringConstructor)[];
|
|
34
|
-
};
|
|
35
|
-
}, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
|
|
36
|
-
options: {
|
|
37
|
-
type: ArrayConstructor;
|
|
38
|
-
default: () => never[];
|
|
39
|
-
};
|
|
40
|
-
labelField: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
valueField: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
autograph: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
lazyRequest: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
requestCache: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
wordbook: {
|
|
61
|
-
type: ObjectConstructor;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
onChange: {};
|
|
65
|
-
value: {
|
|
66
|
-
type: (ArrayConstructor | StringConstructor)[];
|
|
67
|
-
};
|
|
68
|
-
}>> & {
|
|
69
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
options: unknown[];
|
|
72
|
-
labelField: string;
|
|
73
|
-
valueField: string;
|
|
74
|
-
lazyRequest: boolean;
|
|
75
|
-
requestCache: boolean;
|
|
76
|
-
}>;
|
|
77
|
-
import vue_2 = require("vue");
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const SEARCH_CASCADER: vue_2.DefineComponent<{
|
|
3
|
-
options: {
|
|
4
|
-
type: ArrayConstructor;
|
|
5
|
-
default: () => never[];
|
|
6
|
-
};
|
|
7
|
-
depth: {
|
|
8
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
9
|
-
};
|
|
10
|
-
urlConfig: {
|
|
11
|
-
type: ObjectConstructor;
|
|
12
|
-
};
|
|
13
|
-
lazyRequest: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
requestCache: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
onFocus: {
|
|
22
|
-
type: FunctionConstructor;
|
|
23
|
-
};
|
|
24
|
-
filterable: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
checkStrategy: {
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
labelField: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
valueField: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
onChange: {};
|
|
41
|
-
value: {};
|
|
42
|
-
}, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
|
|
43
|
-
options: {
|
|
44
|
-
type: ArrayConstructor;
|
|
45
|
-
default: () => never[];
|
|
46
|
-
};
|
|
47
|
-
depth: {
|
|
48
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
49
|
-
};
|
|
50
|
-
urlConfig: {
|
|
51
|
-
type: ObjectConstructor;
|
|
52
|
-
};
|
|
53
|
-
lazyRequest: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
requestCache: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
onFocus: {
|
|
62
|
-
type: FunctionConstructor;
|
|
63
|
-
};
|
|
64
|
-
filterable: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
checkStrategy: {
|
|
69
|
-
type: StringConstructor;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
labelField: {
|
|
73
|
-
type: StringConstructor;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
valueField: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
onChange: {};
|
|
81
|
-
value: {};
|
|
82
|
-
}>> & {
|
|
83
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
options: unknown[];
|
|
86
|
-
checkStrategy: string;
|
|
87
|
-
labelField: string;
|
|
88
|
-
valueField: string;
|
|
89
|
-
lazyRequest: boolean;
|
|
90
|
-
requestCache: boolean;
|
|
91
|
-
filterable: boolean;
|
|
92
|
-
}>;
|
|
93
|
-
import vue_2 = require("vue");
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const IhoTableUtils: Readonly<{
|
|
3
|
-
getCellType: (lowCodeField: any) => any;
|
|
4
|
-
}>;
|
|
5
|
-
export const IhoTableRenderHelper: Readonly<{
|
|
6
|
-
createDefaultRenderCell: typeof createDefaultRenderCell;
|
|
7
|
-
createRenderEdit: typeof createRenderEdit;
|
|
8
|
-
isEditableColumn: (config: any, column: any) => any;
|
|
9
|
-
hasFilter: (lowCodeField: any) => boolean;
|
|
10
|
-
hasDateFiler: (lowCodeField: any) => any;
|
|
11
|
-
}>;
|
|
12
|
-
export const IhoTableStatusHelper: Readonly<{
|
|
13
|
-
isPositive: (value: any) => boolean;
|
|
14
|
-
isNegative: (value: any) => boolean;
|
|
15
|
-
notPositive: (value: any) => boolean;
|
|
16
|
-
notNegative: (value: any) => boolean;
|
|
17
|
-
}>;
|
|
18
|
-
export function createIhoTableClearActivedInterceptor(type: any, solution: any): (_a: any) => boolean;
|
|
19
|
-
export function IhoTableLog(message: any): void;
|
|
20
|
-
export function IhoTableWarn(message: any): void;
|
|
21
|
-
export function getRowHeight(): number;
|
|
22
|
-
export function eventListener2EventName(eventListenerName: any): string;
|
|
23
|
-
export function eventName2EventListener(eventName: any): string;
|
|
24
|
-
export function useUUIDMap(creator: any, isReactive: any): {
|
|
25
|
-
getItemFromUUID: (uuid: any) => any;
|
|
26
|
-
setItemFromUUID: (uuid: any, value: any) => void;
|
|
27
|
-
removeItemFromUUID: (uuid: any) => void;
|
|
28
|
-
};
|
|
29
|
-
export function getColumnRenderWidth(column: any, $table: any): any;
|
|
30
|
-
export function useIhoTableFormEvent(payload: any): {
|
|
31
|
-
emitFormChange: () => void;
|
|
32
|
-
emitFormClick: () => void;
|
|
33
|
-
emitFormChangeWithParams: (params: any) => void;
|
|
34
|
-
emitFormClickWithParams: (params: any) => void;
|
|
35
|
-
};
|
|
36
|
-
export function getLowCodeFieldFromField(field: any): any;
|
|
37
|
-
declare function createDefaultRenderCell(): (_: any, _a: any) => any[];
|
|
38
|
-
declare function createRenderEdit(renderer: any): (_a: any, params: any) => any;
|
|
39
|
-
export function isTransformTreeType(config: any): boolean;
|
|
40
|
-
export function isRichContent(content: any): boolean;
|
|
41
|
-
export function parseRichContent(richContent: any): any;
|
|
42
|
-
export function parseMergeField(row: any, column: any): any;
|
|
43
|
-
export function isCompatibleColumn(field: any): any;
|
|
44
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
declare const _default: vue_1.DefineComponent<{
|
|
3
|
-
form: {
|
|
4
|
-
type: ObjectConstructor;
|
|
5
|
-
default: () => void;
|
|
6
|
-
};
|
|
7
|
-
item: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
default: () => void;
|
|
10
|
-
};
|
|
11
|
-
isLock: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
-
form: {
|
|
17
|
-
type: ObjectConstructor;
|
|
18
|
-
default: () => void;
|
|
19
|
-
};
|
|
20
|
-
item: {
|
|
21
|
-
type: ObjectConstructor;
|
|
22
|
-
default: () => void;
|
|
23
|
-
};
|
|
24
|
-
isLock: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
}>> & {
|
|
29
|
-
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
item: Record<string, any>;
|
|
32
|
-
isLock: boolean;
|
|
33
|
-
form: Record<string, any>;
|
|
34
|
-
}>;
|
|
35
|
-
export default _default;
|
|
36
|
-
import vue_1 = require("vue");
|