cnhis-design-vue 3.2.5-beta.11 → 3.2.5-beta.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -610,7 +610,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
610
610
  setGroupTreeExpand: () => void;
611
611
  resetTableInlineEditStatus: () => false | undefined;
612
612
  renderAnnotation: (columnConfig: import("../../shared/types").AnyObject) => JSX.Element | null;
613
- toolTipTitle: (item: any, type?: any) => (() => any) | (JSX.Element | null)[];
613
+ toolTipTitle: (item: any, type?: any) => (JSX.Element | null)[] | (() => any);
614
614
  triggerExpand: (e: any, isExpand: any) => void;
615
615
  getOtherConfigInit: () => any;
616
616
  refreshTable: () => void;
@@ -612,7 +612,7 @@ declare const _default: import("vue").DefineComponent<{
612
612
  setGroupTreeExpand: () => void;
613
613
  resetTableInlineEditStatus: () => false | undefined;
614
614
  renderAnnotation: (columnConfig: AnyObject) => JSX.Element | null;
615
- toolTipTitle: (item: any, type?: any) => (() => any) | (JSX.Element | null)[];
615
+ toolTipTitle: (item: any, type?: any) => (JSX.Element | null)[] | (() => any);
616
616
  triggerExpand: (e: any, isExpand: any) => void;
617
617
  getOtherConfigInit: () => any;
618
618
  refreshTable: () => void;
@@ -4186,6 +4186,7 @@ export declare const CallbackMaps: Map<string, {
4186
4186
  pagerScroll?: {
4187
4187
  enable?: boolean | undefined;
4188
4188
  capacity?: number | undefined;
4189
+ loading?: boolean | undefined;
4189
4190
  } | undefined;
4190
4191
  stickyFixedConfig?: {
4191
4192
  enable?: boolean | undefined;
@@ -7758,6 +7759,7 @@ export declare const CallbackMaps: Map<string, {
7758
7759
  pagerScroll?: {
7759
7760
  enable?: boolean | undefined;
7760
7761
  capacity?: number | undefined;
7762
+ loading?: boolean | undefined;
7761
7763
  } | undefined;
7762
7764
  stickyFixedConfig?: {
7763
7765
  enable?: boolean | undefined;
@@ -3219,6 +3219,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
3219
3219
  pagerScroll?: {
3220
3220
  enable?: boolean | undefined;
3221
3221
  capacity?: number | undefined;
3222
+ loading?: boolean | undefined;
3222
3223
  } | undefined;
3223
3224
  stickyFixedConfig?: {
3224
3225
  enable?: boolean | undefined;
@@ -6791,6 +6792,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
6791
6792
  pagerScroll?: {
6792
6793
  enable?: boolean | undefined;
6793
6794
  capacity?: number | undefined;
6795
+ loading?: boolean | undefined;
6794
6796
  } | undefined;
6795
6797
  stickyFixedConfig?: {
6796
6798
  enable?: boolean | undefined;
@@ -3220,6 +3220,7 @@ declare const _default: import("vue").DefineComponent<{
3220
3220
  pagerScroll?: {
3221
3221
  enable?: boolean | undefined;
3222
3222
  capacity?: number | undefined;
3223
+ loading?: boolean | undefined;
3223
3224
  } | undefined;
3224
3225
  stickyFixedConfig?: {
3225
3226
  enable?: boolean | undefined;
@@ -6792,6 +6793,7 @@ declare const _default: import("vue").DefineComponent<{
6792
6793
  pagerScroll?: {
6793
6794
  enable?: boolean | undefined;
6794
6795
  capacity?: number | undefined;
6796
+ loading?: boolean | undefined;
6795
6797
  } | undefined;
6796
6798
  stickyFixedConfig?: {
6797
6799
  enable?: boolean | undefined;
@@ -1 +1 @@
1
- import{useThrottleFn as e}from"@vueuse/core";import{onBeforeUnmount as t}from"vue";import"../../../index.js";import{LOWEST_PRIORITY as o}from"../../constants/index.js";import{isPagerScrollEnable as a,scrollStateMap as l,pageCapacityCalc as r}from"./utils.js";import{defineTablePlugin as u}from"../../hooks/useTablePlugin.js";function i(){const i="pagerScrollPlugin";return u({name:i,apply(u){u.configHooks.config.tap(i,(e=>a(e)&&e.uuid?(e.scrollY={...e.scrollY,gt:0},e):e));u.eventHooks.onScroll.tap(i,e((async({$event:e},t,{$table:o,loading:r,$xeTable:u})=>{var i,n,s;if(!a(t)||!t.uuid)return;const c=null==(s=null==(n=null==(i=null==u?void 0:u.value)?void 0:i.getRefMaps().refTableBody)?void 0:n.value)?void 0:s.$el;if(c&&c.scrollHeight-c.scrollTop-c.clientHeight<3){const e=l.getItemFromUUID(t.uuid),{capacityInfo:a,currentPage:u=0}=e;if(!a)return;if(u<a.length-1){e.currentPage=u+1;try{r.value=!0,await(null==o?void 0:o.insertAt(a[u+1].pageData,-1))}finally{r.value=!1}}}}),300)),u.dataHooks.dataList.tap({name:i,stage:o},((e,t)=>{var o,u;if(!a(t)||!t.uuid)return e;const i=l.getItemFromUUID(t.uuid);return i.dataList=e,i.capacityInfo=r(e,t),i.currentPage=0,null!=(u=null==(o=i.capacityInfo[0])?void 0:o.pageData)?u:[]})),u.setupHooks.setup.tap(i,(e=>{t((()=>{e.value.uuid&&l.removeItemFromUUID(e.value.uuid)}))}))}})}export{i as pagerScrollPlugin};
1
+ import{useThrottleFn as e}from"@vueuse/core";import{promiseTimeout as t}from"@vueuse/shared";import{onBeforeUnmount as o}from"vue";import"../../../index.js";import{LOWEST_PRIORITY as a}from"../../constants/index.js";import{isPagerScrollEnable as l,scrollStateMap as r,pageCapacityCalc as i}from"./utils.js";import{defineTablePlugin as u}from"../../hooks/useTablePlugin.js";function n(){const n="pagerScrollPlugin";return u({name:n,apply(u){u.configHooks.config.tap(n,(e=>l(e)&&e.uuid?(e.scrollY={...e.scrollY,gt:0},e):e));u.eventHooks.onScroll.tap(n,e((async(e,o,{$table:a,loading:i,$xeTable:u})=>{var n,s,c;if(!l(o)||!o.uuid)return;const p=null==(c=null==(s=null==(n=null==u?void 0:u.value)?void 0:n.getRefMaps().refTableBody)?void 0:s.value)?void 0:c.$el;if(p&&p.scrollHeight-p.scrollTop-p.clientHeight<3){const e=r.getItemFromUUID(o.uuid),{capacityInfo:l,currentPage:u=0}=e;if(!l)return;if(u<l.length-1){e.currentPage=u+1;const r=()=>null==a?void 0:a.insertAt(l[u+1].pageData,-1);if(o.pagerScroll.loading)try{i.value=!0,await r(),await t(100)}finally{i.value=!1}else await r()}}}),300)),u.dataHooks.dataList.tap({name:n,stage:a},((e,t)=>{var o,a;if(!l(t)||!t.uuid)return e;const u=r.getItemFromUUID(t.uuid);return u.dataList=e,u.capacityInfo=i(e,t),u.currentPage=0,null!=(a=null==(o=u.capacityInfo[0])?void 0:o.pageData)?a:[]})),u.setupHooks.setup.tap(n,(e=>{o((()=>{e.value.uuid&&r.removeItemFromUUID(e.value.uuid)}))}))}})}export{n as pagerScrollPlugin};
@@ -92,6 +92,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
92
92
  pagerScroll: Partial<{
93
93
  enable: boolean;
94
94
  capacity: number;
95
+ loading: boolean;
95
96
  }>;
96
97
  stickyFixedConfig: Partial<{
97
98
  enable: boolean;
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.2.5-beta.11",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@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"},d={name:e,version:"3.2.5-beta.11",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.2.5-beta.12",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@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"},d={name:e,version:"3.2.5-beta.12",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.2.5-beta.11",
3
+ "version": "3.2.5-beta.12",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -71,5 +71,5 @@
71
71
  "iOS 7",
72
72
  "last 3 iOS versions"
73
73
  ],
74
- "gitHead": "c51c8280a3630c9195a05f17a03c9e280f505304"
74
+ "gitHead": "4c098f08cc158f81c08dd72495529136f8cdd193"
75
75
  }