cnhis-design-vue 3.1.42-beta.46 → 3.1.42-beta.48

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.
@@ -1 +1 @@
1
- import{shallowOmit as l}from"../../../../../shared/utils/index.js";import{ref as e,watch as t,unref as i}from"vue";import{useThrottleFn as n}from"@vueuse/core";import{cloneDeep as o,findLastIndex as u}from"lodash-es";function r(e,t){e.forEach((e=>{var i;if(null==(i=e.children)?void 0:i.length){const i=l(o(e),["children"]);i.width=0,t.push(i),r(e.children,t)}else(function(l){return l.visible||!Reflect.has(l,"visible")})(e)&&t.push(e)}))}const c=(l,c,d)=>{const f=e([]),a=e();let s=!0;const v=n((function({scrollLeft:l,bodyWidth:e}){if(!f.value.length||!s)return;const t=l+e/2,i=u(f.value,(l=>t>=l.left));~i&&(a.value=f.value[i].field)}),800);return t([d,l],(()=>{!function(){var e,t,n;if(null==(e=i(l))?void 0:e.length){f.value=[];let e=0;const u=[];r(o(d.value),u),u.forEach((t=>{var n;const{field:o="",minWidth:u,width:r,fixed:c,title:d=""}=t,a=+(null!=(n=null!=u?u:r)?n:0);"left"==c||(e+=a,i(l).find((l=>l===o))&&f.value.push({field:o,title:d,left:e-a}))})),a.value=(null==(n=null==(t=f.value)?void 0:t[0])?void 0:n.field)||""}}()}),{immediate:!0,deep:!0}),{updateAnchor:async function(l){var e,t;s=!1;const i=f.value.find((e=>e.field===l));await(null==(t=c.value)?void 0:t.scrollTo(null!=(e=null==i?void 0:i.left)?e:0)),setTimeout((()=>{s=!0}),900)},onScroll:v,currentAnchorList:f,anchorValue:a}};export{c as useAnchor};
1
+ import{shallowOmit as l}from"../../../../../shared/utils/index.js";import{ref as e,watch as t,unref as i}from"vue";import{useThrottleFn as n}from"@vueuse/core";import{cloneDeep as o,findLastIndex as u}from"lodash-es";function r(e,t){e.forEach((e=>{var i;if(null==(i=e.children)?void 0:i.length){const i=l(o(e),["children"]);i.width=0,t.push(i),r(e.children,t)}else(function(l){return l.visible||!Reflect.has(l,"visible")})(e)&&t.push(e)}))}const a=(l,a,c)=>{const d=e([]),f=e();let v=!0;const s=n((function({scrollLeft:l,bodyWidth:e}){if(!d.value.length||!v)return;const t=l+e/2,i=u(d.value,(l=>t>=l.left));~i&&(f.value=d.value[i].field)}),800);return t([()=>c.value,()=>l.value],(()=>{!function(){var e,t,n;if(d.value=[],null==(e=i(l))?void 0:e.length){let e=0;const u=[];r(o(c.value),u),u.forEach((t=>{var n;const{field:o="",minWidth:u,width:r,fixed:a,title:c=""}=t,f=+(null!=(n=null!=u?u:r)?n:0);"left"==a||(e+=f,i(l).find((l=>l===o))&&d.value.push({field:o,title:c,left:e-f}))})),f.value=(null==(n=null==(t=d.value)?void 0:t[0])?void 0:n.field)||""}}()}),{immediate:!0,deep:!0}),{updateAnchor:async function(l){var e,t;v=!1;const i=d.value.find((e=>e.field===l));await(null==(t=a.value)?void 0:t.scrollTo(null!=(e=null==i?void 0:i.left)?e:0)),setTimeout((()=>{v=!0}),900)},onScroll:s,currentAnchorList:d,anchorValue:f}};export{a as useAnchor};
@@ -1 +1 @@
1
- import{defineComponent as e,inject as t,ref as o,computed as n,provide as r,watch as l,onMounted as a,createVNode as s,h as i,unref as d,onBeforeUnmount as u,shallowReactive as c}from"vue";import{traverse as m}from"../../../../../shared/utils/index.js";import{useThrottleFn as p}from"@vueuse/core";import{promiseTimeout as f}from"@vueuse/shared";import{ary as h,isFunction as g,isNumber as v,omit as x,last as I}from"lodash-es";import"../../../index.js";import{InjectionIhoTableUUID as b,InjectionIhoTableConfig as w,WIDGET_TYPE as y}from"../../constants/index.js";import{useUUIDMap as R}from"../../utils/index.js";import{defineTablePlugin as H}from"../../hooks/useTablePlugin.js";class D{constructor(){this.records={},this.maxRecords=c(new Map)}set(e,t,o){if(this.records[e]||(this.records[e]={}),this.records[e][t]===o)return;this.records[e][t]=o;const n=Math.max(...Object.values(this.records[e]),0);this.maxRecords.get(e)!==n&&this.maxRecords.set(e,n)}getMax(e){return this.maxRecords.get(e)||0}}const{getItemFromUUID:U,removeItemFromUUID:S}=R((()=>new D),!0),{getItemFromUUID:T,removeItemFromUUID:M,setItemFromUUID:C}=R((()=>null)),{getItemFromUUID:E,removeItemFromUUID:k,setItemFromUUID:F}=R((()=>{})),$=e({props:{payload:{type:Object,required:!0}},setup(e){const d=t(b),u=t("$xetable"),c=t(w),m=o(),p=U(d),x=n((()=>e.payload.row[e.payload.column.field]));async function I(t=0){var o,n;if(t>2)return;await f(0);const{row:r,column:l}=e.payload,a=u.getRowSeq(r);if(!p||null==a||!m.value)return;const s=null==(n=null==(o=c.value)?void 0:o.rowConfig)?void 0:n.height,i=m.value.clientHeight;v(s)&&s>=i||(m.value.clientWidth<l.renderWidth/2?(p.set(a,l.field,i),await f(100),I(++t)):p.set(a,l.field,i))}r("updateCellHeight",I),l([()=>e.payload.rowIndex,()=>e.payload.column.field,x,()=>e.payload.column.renderWidth],h(I,0),{immediate:!0}),a((()=>{u&&!T(d)&&C(d,u)}));const y=n((()=>{var t,o,n,r;const l=null!=(o=null==(t=e.payload.column.editRender)?void 0:t.props)?o:{},a=null!=(r=null==(n=l.slots)?void 0:n.default)?r:l.slotFn;return g(a)?a:()=>x.value}));return()=>s("div",{ref:m,style:"padding:7px 0"},[i(y.value,e.payload)])}});function j(e,t,{scrollTop:o=0}){var n,r;const{uuid:l,rowConfig:a={}}=t;if(!l)return;const s=U(l),{oSize:i=0,gt:u=100}=null!=(n=E(l))?n:{},{internalData:c,reactData:m}=e,{scrollYStore:p,elemStore:f,afterFullData:h,fullDataRowIdData:v}=c;if(u>h.length)return;const x=null!=(r=a.height)?r:36,b=f["main-body-wrapper"],w=b?d(b):null;let y=w?Math.max(8,Math.ceil(w.clientHeight/x)+2+i):8;const R=[0];let H=0;if(o&&h.find(((t,n)=>{const r=e.getRowSeq(t),l=(I(R)||0)+Math.max(x,s.getMax(r));if(R.push(l),l>o)return H=Math.max(0,n-i),y+=Math.min(H,i),!0})),H>0&&g(t.spanMethod)){const{spanMethod:o}=t,n={rowspan:1,colspan:1};for(;H>0;){if(!e.getColumns().some(((e,t)=>{const{rowspan:r,colspan:l}=o({column:e,columnIndex:t,$columnIndex:t,row:h[H],rowIndex:H,$rowIndex:H,_rowIndex:H,isHidden:!e.visible,fixed:e.fixed,type:e.type,visibleData:h})||n;if(0===r&&0===l)return H--,!0})))break}}const D=H+y;if(p.startIndex===H&&p.endIndex===D)return;p.startIndex=H,p.endIndex=D;const S=`${R[H]}px`,T=`${h.reduce(((t,o)=>{const n=e.getRowSeq(o);return t+Math.max(x,s.getMax(n))}),0)}px`;["main","left","right"].forEach((e=>{const t=f[`${e}-body-table`],o=t?d(t):null;o&&(o.style.marginTop=S),["header","body","footer"].forEach((t=>{const o=f[`${e}-${t}-ySpace`],n=o?d(o):null;n&&(n.style.height=T)}))}));const M=h.slice(p.startIndex,p.endIndex);M.forEach(((t,o)=>{const n=e.getRowid(t),r=v[n];r&&(r.$index=o)})),m.tableData.length=0,m.tableData.push(...M)}function Y(){const e="variableHeightRendererPlugin";return H({name:e,vxe(e){e.renderer.add(y.VARIABLE_HEIGHT,{renderCell:(e,t)=>s($,{payload:t},null)})},apply(t){function o(e){if(!e.uuid)return;const t=E(e.uuid);t&&(e.scrollY=t),setTimeout((()=>{const t=T(e.uuid);if(!t)return;e.scrollY={enabled:!1},t.reactData.scrollYLoad=!1;const o=t.getScroll();j(t,e,{scrollTop:o.scrollTop})}),300)}t.dataHooks.dataStart.tap(e,o),t.eventHooks.onFilterChange.tap(e,((e,t)=>o(t))),t.eventHooks.onSortChange.tap(e,((e,t)=>o(t))),t.eventHooks.onToggleTreeExpand.tap(e,((e,t)=>o(t))),t.eventHooks.onResizableChange.tap(e,(async({column:e},t)=>{if(!e.editRender||!e.editRender.props)return;e.editRender.props.variableHeight&&o(t)})),t.fieldHooks.field.tap(e,(e=>{if(Reflect.get(e,"variableHeight")){const t=e.slots;e.slots=x(t,["default"]),e.editRender={...e.editRender,name:y.VARIABLE_HEIGHT},e.showOverflow=null;const o=e.className,n="variable-height";e.className=o?function(e){return g(o)?[o(e),n]:[o,n]}:n}return e})),t.fieldHooks.fieldList.tap(e,((e,t,{$table:o})=>(t.uuid&&m(e,((e,n)=>{var r,l,a;if((null==(r=e.editRender)?void 0:r.name)===y.VARIABLE_HEIGHT){const e=null!=(a=null==(l=t.rowConfig)?void 0:l.height)?a:36,r=U(t.uuid),s=t.cellStyle;if(t.cellStyle=function(t){const n={};if(t.column.fixed&&o.value){const l=r.getMax(o.value.getRowSeq(t.row));l&&l>e&&(n.height=`${l}px`)}return Object.assign(n,s?g(s)?s(t):s:null)},t.sortableConfig&&t.sortableConfig.enable){const e=t.sortableConfig.onEnd;t.sortableConfig.onEnd=function(o){const n=T(t.uuid);if(n){const{internalData:{elemStore:e}}=n,o=e["main-table-body"];o&&d(o)&&j(n,t,{scrollTop:d(o).scrollTop})}g(e)&&e(o)}}setTimeout((()=>{F(t.uuid,t.scrollY),t.scrollY={enabled:!1};const e=T(t.uuid);e&&(e.reactData.scrollYLoad=!1,j(e,t,{scrollTop:0}))}),300),n()}})),e))),t.setupHooks.setup.tap(e,(e=>{u((()=>{e.value.uuid&&(S(e.value.uuid),M(e.value.uuid),k(e.value.uuid))}))})),t.eventHooks.onScroll.tap(e,p((async(e,t)=>{if(e.isX)return;const{uuid:o}=t;if(!o)return;const n=T(o);n&&(await f(0),j(n,t,e))}),200))}})}export{Y as variableHeightRendererPlugin};
1
+ import{defineComponent as e,inject as t,ref as o,computed as n,provide as r,watch as l,onMounted as a,createVNode as s,h as i,unref as d,onBeforeUnmount as u,shallowReactive as c}from"vue";import{traverse as m}from"../../../../../shared/utils/index.js";import{useThrottleFn as p}from"@vueuse/core";import{promiseTimeout as f}from"@vueuse/shared";import{isFunction as h,omit as g,last as x}from"lodash-es";import"../../../index.js";import{InjectionIhoTableUUID as v,WIDGET_TYPE as I}from"../../constants/index.js";import{useUUIDMap as b}from"../../utils/index.js";import{defineTablePlugin as w}from"../../hooks/useTablePlugin.js";class y{constructor(){this.records={},this.maxRecords=c(new Map)}set(e,t,o){if(this.records[e]||(this.records[e]={}),this.records[e][t]===o)return;this.records[e][t]=o;const n=Math.max(...Object.values(this.records[e]),0);this.maxRecords.get(e)!==n&&this.maxRecords.set(e,n)}getMax(e){return this.maxRecords.get(e)||0}}const{getItemFromUUID:R,removeItemFromUUID:H}=b((()=>new y),!0),{getItemFromUUID:D,removeItemFromUUID:M,setItemFromUUID:U}=b((()=>null)),{getItemFromUUID:S,removeItemFromUUID:T,setItemFromUUID:C}=b((()=>{})),E=e({props:{payload:{type:Object,required:!0}},setup(e){const d=t(v),u=t("$xetable"),c=o(),m=R(d),p=n((()=>e.payload.row[e.payload.column.field]));function g(){const{row:t,column:o}=e.payload,n=u.getRowSeq(t);if(!m||null==n||!c.value)return;const r=c.value.clientHeight;m.set(n,o.field,r)}r("updateCellHeight",g),l([()=>e.payload.rowIndex,()=>e.payload.column.field,p,()=>e.payload.column.renderWidth],(async()=>{await f(0),g()})),a((()=>{u&&!D(d)&&U(d,u),g()}));const x=n((()=>{var t,o,n,r;const l=null!=(o=null==(t=e.payload.column.editRender)?void 0:t.props)?o:{},a=null!=(r=null==(n=l.slots)?void 0:n.default)?r:l.slotFn;return h(a)?a:()=>p.value}));return()=>s("div",{ref:c,style:"padding:7px 0"},[i(x.value,e.payload)])}});function k(e,t,{scrollTop:o=0}){var n,r;const{uuid:l,rowConfig:a={}}=t;if(!l)return;const s=R(l),{oSize:i=0,gt:u=100}=null!=(n=S(l))?n:{},{internalData:c,reactData:m}=e,{scrollYStore:p,elemStore:f,afterFullData:g,fullDataRowIdData:v}=c;if(u>g.length)return;const I=null!=(r=a.height)?r:36,b=f["main-body-wrapper"],w=b?d(b):null;let y=w?Math.max(8,Math.ceil(w.clientHeight/I)+2+i):8;const H=[0];let D=0;if(o&&g.find(((t,n)=>{const r=e.getRowSeq(t),l=(x(H)||0)+Math.max(I,s.getMax(r));if(H.push(l),l>o)return D=Math.max(0,n-i),y+=Math.min(D,i),!0})),D>0&&h(t.spanMethod)){const{spanMethod:o}=t,n={rowspan:1,colspan:1};for(;D>0;){if(!e.getColumns().some(((e,t)=>{const{rowspan:r,colspan:l}=o({column:e,columnIndex:t,$columnIndex:t,row:g[D],rowIndex:D,$rowIndex:D,_rowIndex:D,isHidden:!e.visible,fixed:e.fixed,type:e.type,visibleData:g})||n;if(0===r&&0===l)return D--,!0})))break}}const M=`${H[D]}px`,U=`${g.reduce(((t,o)=>{const n=e.getRowSeq(o);return t+Math.max(I,s.getMax(n))}),0)}px`;["main","left","right"].forEach((e=>{const t=f[`${e}-body-table`],n=t?d(t):null;n&&(n.style.marginTop=M,n.scrollTop=o),["header","body","footer"].forEach((t=>{const o=f[`${e}-${t}-ySpace`],n=o?d(o):null;n&&(n.style.height=U)}))}));const T=Math.min(g.length,D+y);if(p.startIndex===D&&p.endIndex===T)return;p.startIndex=D,p.endIndex=T;const C=g.slice(p.startIndex,p.endIndex);C.forEach(((t,o)=>{const n=e.getRowid(t),r=v[n];r&&(r.$index=o)})),m.tableData.length=0,m.tableData.push(...C)}function F(){const e="variableHeightRendererPlugin";return w({name:e,vxe(e){e.renderer.add(I.VARIABLE_HEIGHT,{renderCell:(e,t)=>s(E,{payload:t},null)})},apply(t){function o(e,t){const o=D(e.uuid);if(!o)return;e.scrollY={enabled:!1,mode:t},o.reactData.scrollYLoad=!1;const n=function(e){const t=e.internalData.elemStore["main-body-wrapper"];return t?d(t):null}(o);n&&k(o,e,{scrollTop:n.scrollTop})}function n(e){if(!e.uuid)return;const t=S(e.uuid);t&&(e.scrollY=t),setTimeout((()=>o(e,null==t?void 0:t.mode)),300)}t.dataHooks.dataStart.tap(e,n),t.eventHooks.onFilterChange.tap(e,((e,t)=>n(t))),t.eventHooks.onSortChange.tap(e,((e,t)=>n(t))),t.eventHooks.onToggleTreeExpand.tap(e,((e,t)=>n(t))),t.eventHooks.onResizableChange.tap(e,(async({column:e},t)=>{if(!e.editRender||!e.editRender.props)return;e.editRender.props.variableHeight&&n(t)})),t.eventHooks.onScroll.tap(e,p(((e,t)=>{if(e.isX)return;const{uuid:o}=t;if(!o)return;const n=D(o);n&&k(n,t,e)}),100,!0,!0)),t.fieldHooks.field.tap(e,(e=>{if(Reflect.get(e,"variableHeight")){const t=e.slots;e.slots=g(t,["default"]),e.editRender={...e.editRender,name:I.VARIABLE_HEIGHT};const o=e.className,n="variable-height";e.className=o?function(e){return h(o)?[o(e),n]:[o,n]}:n}return e})),t.fieldHooks.fieldList.tap(e,((e,t,{$table:n})=>(t.uuid&&m(e,((r,l)=>{var a,s,i;if((null==(a=r.editRender)?void 0:a.name)===I.VARIABLE_HEIGHT){const r=null!=(i=null==(s=t.rowConfig)?void 0:s.height)?i:36,a=R(t.uuid),u=t.cellStyle;if(t.cellStyle=function(e){const t={};if(e.column.fixed&&Reflect.get(e,"fixed")&&n.value){const o=Math.max(r,a.getMax(n.value.getRowSeq(e.row)));t.height=`${o}px`}return Object.assign(t,u?h(u)?u(e):u:null)},t.sortableConfig&&t.sortableConfig.enable){const e=t.sortableConfig.onEnd;t.sortableConfig.onEnd=function(o){const n=D(t.uuid);if(n){const{internalData:{elemStore:e}}=n,o=e["main-table-body"];o&&d(o)&&k(n,t,{scrollTop:d(o).scrollTop})}h(e)&&e(o)}}t.showOverflow="tooltip",m(e,(e=>{e.showOverflow="tooltip"})),setTimeout((()=>{var e;C(t.uuid,t.scrollY),o(t,null==(e=t.scrollY)?void 0:e.mode)}),300),l()}})),e))),t.setupHooks.setup.tap(e,(e=>{u((()=>{e.value.uuid&&(H(e.value.uuid),M(e.value.uuid),T(e.value.uuid))}))}))}})}export{F as variableHeightRendererPlugin};
@@ -28,9 +28,10 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
28
28
  slots: VxeColumnPropTypes.Slots;
29
29
  maxCheckSize: number;
30
30
  }>;
31
- sortableConfig: Partial<Sortable.Options & {
31
+ sortableConfig: Partial<{
32
32
  enable: boolean;
33
33
  usePreset: boolean;
34
+ [K: string]: any;
34
35
  }>;
35
36
  [K: string]: unknown;
36
37
  }>;
@@ -100,10 +100,10 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
100
100
  };
101
101
  }>> & {
102
102
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
103
- onChoose?: ((...args: any[]) => any) | undefined;
104
103
  onDelete?: ((...args: any[]) => any) | undefined;
105
104
  onClear?: ((...args: any[]) => any) | undefined;
106
105
  onSearch?: ((...args: any[]) => any) | undefined;
106
+ onChoose?: ((...args: any[]) => any) | undefined;
107
107
  onOpenMenu?: ((...args: any[]) => any) | undefined;
108
108
  onCloseMenu?: ((...args: any[]) => any) | undefined;
109
109
  }>>;
@@ -169,10 +169,10 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
169
169
  };
170
170
  }>> & {
171
171
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
172
- onChoose?: ((...args: any[]) => any) | undefined;
173
172
  onDelete?: ((...args: any[]) => any) | undefined;
174
173
  onClear?: ((...args: any[]) => any) | undefined;
175
174
  onSearch?: ((...args: any[]) => any) | undefined;
175
+ onChoose?: ((...args: any[]) => any) | undefined;
176
176
  onOpenMenu?: ((...args: any[]) => any) | undefined;
177
177
  onCloseMenu?: ((...args: any[]) => any) | undefined;
178
178
  }>>;
@@ -252,8 +252,8 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
252
252
  required: false;
253
253
  };
254
254
  }>> & {
255
- onChoose?: ((...args: any[]) => any) | undefined;
256
255
  onDelete?: ((...args: any[]) => any) | undefined;
256
+ onChoose?: ((...args: any[]) => any) | undefined;
257
257
  }, {
258
258
  commonList: unknown[];
259
259
  recentList: unknown[];
@@ -372,10 +372,10 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
372
372
  };
373
373
  }>> & {
374
374
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
375
- onChoose?: ((...args: any[]) => any) | undefined;
376
375
  onDelete?: ((...args: any[]) => any) | undefined;
377
376
  onClear?: ((...args: any[]) => any) | undefined;
378
377
  onSearch?: ((...args: any[]) => any) | undefined;
378
+ onChoose?: ((...args: any[]) => any) | undefined;
379
379
  onOpenMenu?: ((...args: any[]) => any) | undefined;
380
380
  onCloseMenu?: ((...args: any[]) => any) | undefined;
381
381
  }, {
@@ -453,10 +453,10 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
453
453
  };
454
454
  }>> & {
455
455
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
456
- onChoose?: ((...args: any[]) => any) | undefined;
457
456
  onDelete?: ((...args: any[]) => any) | undefined;
458
457
  onClear?: ((...args: any[]) => any) | undefined;
459
458
  onSearch?: ((...args: any[]) => any) | undefined;
459
+ onChoose?: ((...args: any[]) => any) | undefined;
460
460
  onOpenMenu?: ((...args: any[]) => any) | undefined;
461
461
  onCloseMenu?: ((...args: any[]) => any) | undefined;
462
462
  }>>;
@@ -609,10 +609,10 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
609
609
  };
610
610
  }>> & {
611
611
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
612
- onChoose?: ((...args: any[]) => any) | undefined;
613
612
  onDelete?: ((...args: any[]) => any) | undefined;
614
613
  onClear?: ((...args: any[]) => any) | undefined;
615
614
  onSearch?: ((...args: any[]) => any) | undefined;
615
+ onChoose?: ((...args: any[]) => any) | undefined;
616
616
  onOpenMenu?: ((...args: any[]) => any) | undefined;
617
617
  onCloseMenu?: ((...args: any[]) => any) | undefined;
618
618
  }, {
@@ -680,10 +680,10 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
680
680
  };
681
681
  }>> & {
682
682
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
683
- onChoose?: ((...args: any[]) => any) | undefined;
684
683
  onDelete?: ((...args: any[]) => any) | undefined;
685
684
  onClear?: ((...args: any[]) => any) | undefined;
686
685
  onSearch?: ((...args: any[]) => any) | undefined;
686
+ onChoose?: ((...args: any[]) => any) | undefined;
687
687
  onOpenMenu?: ((...args: any[]) => any) | undefined;
688
688
  onCloseMenu?: ((...args: any[]) => any) | undefined;
689
689
  }, {
@@ -102,10 +102,10 @@ declare const _default: import("vue").DefineComponent<{
102
102
  };
103
103
  }>> & {
104
104
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
105
- onChoose?: ((...args: any[]) => any) | undefined;
106
105
  onDelete?: ((...args: any[]) => any) | undefined;
107
106
  onClear?: ((...args: any[]) => any) | undefined;
108
107
  onSearch?: ((...args: any[]) => any) | undefined;
108
+ onChoose?: ((...args: any[]) => any) | undefined;
109
109
  onOpenMenu?: ((...args: any[]) => any) | undefined;
110
110
  onCloseMenu?: ((...args: any[]) => any) | undefined;
111
111
  }>>;
@@ -171,10 +171,10 @@ declare const _default: import("vue").DefineComponent<{
171
171
  };
172
172
  }>> & {
173
173
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
174
- onChoose?: ((...args: any[]) => any) | undefined;
175
174
  onDelete?: ((...args: any[]) => any) | undefined;
176
175
  onClear?: ((...args: any[]) => any) | undefined;
177
176
  onSearch?: ((...args: any[]) => any) | undefined;
177
+ onChoose?: ((...args: any[]) => any) | undefined;
178
178
  onOpenMenu?: ((...args: any[]) => any) | undefined;
179
179
  onCloseMenu?: ((...args: any[]) => any) | undefined;
180
180
  }>>;
@@ -254,8 +254,8 @@ declare const _default: import("vue").DefineComponent<{
254
254
  required: false;
255
255
  };
256
256
  }>> & {
257
- onChoose?: ((...args: any[]) => any) | undefined;
258
257
  onDelete?: ((...args: any[]) => any) | undefined;
258
+ onChoose?: ((...args: any[]) => any) | undefined;
259
259
  }, {
260
260
  commonList: unknown[];
261
261
  recentList: unknown[];
@@ -374,10 +374,10 @@ declare const _default: import("vue").DefineComponent<{
374
374
  };
375
375
  }>> & {
376
376
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
377
- onChoose?: ((...args: any[]) => any) | undefined;
378
377
  onDelete?: ((...args: any[]) => any) | undefined;
379
378
  onClear?: ((...args: any[]) => any) | undefined;
380
379
  onSearch?: ((...args: any[]) => any) | undefined;
380
+ onChoose?: ((...args: any[]) => any) | undefined;
381
381
  onOpenMenu?: ((...args: any[]) => any) | undefined;
382
382
  onCloseMenu?: ((...args: any[]) => any) | undefined;
383
383
  }, {
@@ -455,10 +455,10 @@ declare const _default: import("vue").DefineComponent<{
455
455
  };
456
456
  }>> & {
457
457
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
458
- onChoose?: ((...args: any[]) => any) | undefined;
459
458
  onDelete?: ((...args: any[]) => any) | undefined;
460
459
  onClear?: ((...args: any[]) => any) | undefined;
461
460
  onSearch?: ((...args: any[]) => any) | undefined;
461
+ onChoose?: ((...args: any[]) => any) | undefined;
462
462
  onOpenMenu?: ((...args: any[]) => any) | undefined;
463
463
  onCloseMenu?: ((...args: any[]) => any) | undefined;
464
464
  }>>;
@@ -611,10 +611,10 @@ declare const _default: import("vue").DefineComponent<{
611
611
  };
612
612
  }>> & {
613
613
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
614
- onChoose?: ((...args: any[]) => any) | undefined;
615
614
  onDelete?: ((...args: any[]) => any) | undefined;
616
615
  onClear?: ((...args: any[]) => any) | undefined;
617
616
  onSearch?: ((...args: any[]) => any) | undefined;
617
+ onChoose?: ((...args: any[]) => any) | undefined;
618
618
  onOpenMenu?: ((...args: any[]) => any) | undefined;
619
619
  onCloseMenu?: ((...args: any[]) => any) | undefined;
620
620
  }, {
@@ -682,10 +682,10 @@ declare const _default: import("vue").DefineComponent<{
682
682
  };
683
683
  }>> & {
684
684
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
685
- onChoose?: ((...args: any[]) => any) | undefined;
686
685
  onDelete?: ((...args: any[]) => any) | undefined;
687
686
  onClear?: ((...args: any[]) => any) | undefined;
688
687
  onSearch?: ((...args: any[]) => any) | undefined;
688
+ onChoose?: ((...args: any[]) => any) | undefined;
689
689
  onOpenMenu?: ((...args: any[]) => any) | undefined;
690
690
  onCloseMenu?: ((...args: any[]) => any) | undefined;
691
691
  }, {
@@ -61,10 +61,10 @@ declare const _default: import("vue").DefineComponent<{
61
61
  };
62
62
  }>> & {
63
63
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
64
- onChoose?: ((...args: any[]) => any) | undefined;
65
64
  onDelete?: ((...args: any[]) => any) | undefined;
66
65
  onClear?: ((...args: any[]) => any) | undefined;
67
66
  onSearch?: ((...args: any[]) => any) | undefined;
67
+ onChoose?: ((...args: any[]) => any) | undefined;
68
68
  onOpenMenu?: ((...args: any[]) => any) | undefined;
69
69
  onCloseMenu?: ((...args: any[]) => any) | undefined;
70
70
  }>>;
@@ -144,8 +144,8 @@ declare const _default: import("vue").DefineComponent<{
144
144
  required: false;
145
145
  };
146
146
  }>> & {
147
- onChoose?: ((...args: any[]) => any) | undefined;
148
147
  onDelete?: ((...args: any[]) => any) | undefined;
148
+ onChoose?: ((...args: any[]) => any) | undefined;
149
149
  }, {
150
150
  commonList: unknown[];
151
151
  recentList: unknown[];
@@ -264,10 +264,10 @@ declare const _default: import("vue").DefineComponent<{
264
264
  };
265
265
  }>> & {
266
266
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
267
- onChoose?: ((...args: any[]) => any) | undefined;
268
267
  onDelete?: ((...args: any[]) => any) | undefined;
269
268
  onClear?: ((...args: any[]) => any) | undefined;
270
269
  onSearch?: ((...args: any[]) => any) | undefined;
270
+ onChoose?: ((...args: any[]) => any) | undefined;
271
271
  onOpenMenu?: ((...args: any[]) => any) | undefined;
272
272
  onCloseMenu?: ((...args: any[]) => any) | undefined;
273
273
  }, {
@@ -50,8 +50,8 @@ declare const _default: import("vue").DefineComponent<{
50
50
  required: false;
51
51
  };
52
52
  }>> & {
53
- onChoose?: ((...args: any[]) => any) | undefined;
54
53
  onDelete?: ((...args: any[]) => any) | undefined;
54
+ onChoose?: ((...args: any[]) => any) | undefined;
55
55
  }, {
56
56
  commonList: unknown[];
57
57
  recentList: unknown[];
@@ -68,10 +68,10 @@ declare const _default: import("vue").DefineComponent<{
68
68
  };
69
69
  }>> & {
70
70
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
71
- onChoose?: ((...args: any[]) => any) | undefined;
72
71
  onDelete?: ((...args: any[]) => any) | undefined;
73
72
  onClear?: ((...args: any[]) => any) | undefined;
74
73
  onSearch?: ((...args: any[]) => any) | undefined;
74
+ onChoose?: ((...args: any[]) => any) | undefined;
75
75
  onOpenMenu?: ((...args: any[]) => any) | undefined;
76
76
  onCloseMenu?: ((...args: any[]) => any) | undefined;
77
77
  }>>;
@@ -224,10 +224,10 @@ declare const _default: import("vue").DefineComponent<{
224
224
  };
225
225
  }>> & {
226
226
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
227
- onChoose?: ((...args: any[]) => any) | undefined;
228
227
  onDelete?: ((...args: any[]) => any) | undefined;
229
228
  onClear?: ((...args: any[]) => any) | undefined;
230
229
  onSearch?: ((...args: any[]) => any) | undefined;
230
+ onChoose?: ((...args: any[]) => any) | undefined;
231
231
  onOpenMenu?: ((...args: any[]) => any) | undefined;
232
232
  onCloseMenu?: ((...args: any[]) => any) | undefined;
233
233
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.42-beta.46",
3
+ "version": "3.1.42-beta.48",
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": "e47b4d552bd780866f54e3126aec382f7ec82b3e"
64
+ "gitHead": "448c0e2b699a69ef9392a5db7045e0b4e3db8589"
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,75 +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
- requestCache: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- onFocus: {
18
- type: FunctionConstructor;
19
- };
20
- filterable: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- labelField: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- valueField: {
29
- type: StringConstructor;
30
- default: string;
31
- };
32
- onChange: {};
33
- value: {};
34
- }, () => 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<{
35
- options: {
36
- type: ArrayConstructor;
37
- default: () => never[];
38
- };
39
- depth: {
40
- type: (NumberConstructor | StringConstructor)[];
41
- };
42
- urlConfig: {
43
- type: ObjectConstructor;
44
- };
45
- requestCache: {
46
- type: BooleanConstructor;
47
- default: boolean;
48
- };
49
- onFocus: {
50
- type: FunctionConstructor;
51
- };
52
- filterable: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- labelField: {
57
- type: StringConstructor;
58
- default: string;
59
- };
60
- valueField: {
61
- type: StringConstructor;
62
- default: string;
63
- };
64
- onChange: {};
65
- value: {};
66
- }>> & {
67
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
68
- }, {
69
- options: unknown[];
70
- labelField: string;
71
- valueField: string;
72
- requestCache: boolean;
73
- filterable: boolean;
74
- }>;
75
- import vue_2 = require("vue");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function highLightSetPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../es/components/iho-table");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function defaultRendererPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../../../es/components/iho-table");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function seqRendererPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../../../es/components/iho-table");
@@ -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");
@@ -1,57 +0,0 @@
1
- export const __esModule: true;
2
- export const SearchMenu: vue_1.DefineComponent<{
3
- childKey: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- options: {
8
- type: ArrayConstructor;
9
- default: () => never[];
10
- };
11
- labelKey: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- valueKey: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- currentNode: {
20
- type: ObjectConstructor;
21
- };
22
- cursorNode: {
23
- type: ObjectConstructor;
24
- };
25
- }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
26
- childKey: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- options: {
31
- type: ArrayConstructor;
32
- default: () => never[];
33
- };
34
- labelKey: {
35
- type: StringConstructor;
36
- default: string;
37
- };
38
- valueKey: {
39
- type: StringConstructor;
40
- default: string;
41
- };
42
- currentNode: {
43
- type: ObjectConstructor;
44
- };
45
- cursorNode: {
46
- type: ObjectConstructor;
47
- };
48
- }>> & {
49
- onNodeClick?: ((...args: any[]) => any) | undefined;
50
- onChangeCursor?: ((...args: any[]) => any) | undefined;
51
- }, {
52
- options: unknown[];
53
- valueKey: string;
54
- childKey: string;
55
- labelKey: string;
56
- }>;
57
- import vue_1 = require("vue");
@@ -1,57 +0,0 @@
1
- export const __esModule: true;
2
- export const SearchMenu: vue_1.DefineComponent<{
3
- childKey: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- options: {
8
- type: ArrayConstructor;
9
- default: () => never[];
10
- };
11
- labelKey: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- valueKey: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- currentNode: {
20
- type: ObjectConstructor;
21
- };
22
- cursorNode: {
23
- type: ObjectConstructor;
24
- };
25
- }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
26
- childKey: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- options: {
31
- type: ArrayConstructor;
32
- default: () => never[];
33
- };
34
- labelKey: {
35
- type: StringConstructor;
36
- default: string;
37
- };
38
- valueKey: {
39
- type: StringConstructor;
40
- default: string;
41
- };
42
- currentNode: {
43
- type: ObjectConstructor;
44
- };
45
- cursorNode: {
46
- type: ObjectConstructor;
47
- };
48
- }>> & {
49
- onNodeClick?: ((...args: any[]) => any) | undefined;
50
- onChangeCursor?: ((...args: any[]) => any) | undefined;
51
- }, {
52
- options: unknown[];
53
- valueKey: string;
54
- childKey: string;
55
- labelKey: string;
56
- }>;
57
- import vue_1 = require("vue");