@aplus-frontend/ui 7.1.0 → 7.2.0
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/index.mjs +143 -147
- package/es/src/ag-grid/hooks/use-columns-def.mjs +20 -19
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
- package/es/src/ap-pro-card/components/title/index.vue2.mjs +18 -13
- package/es/src/ap-upload/apUpload.vue.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +45 -42
- package/es/src/business/ap-image/interface.d.ts +2 -0
- package/es/src/business/ap-title/ApTitle.vue2.mjs +24 -21
- package/es/src/business/ap-title/interface.d.ts +2 -0
- package/es/src/business/ap-title/style/index.mjs +11 -11
- package/es/src/business/hooks/index.d.ts +0 -2
- package/es/src/business/hooks/index.mjs +5 -9
- package/es/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/es/src/business/hooks/usePageListApGrid.mjs +35 -44
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/es/src/business/hooks/usePageListApTable.mjs +46 -48
- package/es/src/config-provider/config-provider-props.d.ts +20 -3
- package/es/src/config-provider/config-provider-props.mjs +12 -0
- package/es/src/config-provider/config-provider.d.ts +33 -3
- package/es/src/config-provider/config-provider.mjs +35 -35
- package/es/src/config-provider/constants.d.ts +1 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/es/src/config-provider/index.d.ts +49 -4
- package/es/src/index.mjs +147 -151
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
- package/lib/src/ap-pro-card/components/title/index.vue2.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/interface.d.ts +2 -0
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-title/interface.d.ts +2 -0
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/hooks/index.d.ts +0 -2
- package/lib/src/business/hooks/index.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +20 -3
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +33 -3
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +1 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/lib/src/config-provider/index.d.ts +49 -4
- package/lib/src/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/es/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/es/src/business/hooks/useGridRefresh.mjs +0 -16
- package/es/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/es/src/business/hooks/useTableRefresh.mjs +0 -57
- package/lib/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/lib/src/business/hooks/useGridRefresh.js +0 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/lib/src/business/hooks/useTableRefresh.js +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { ApGridExpose } from '../../ap-grid';
|
|
3
|
-
export interface UseGridRefreshOption {
|
|
4
|
-
/**
|
|
5
|
-
* apTable实例
|
|
6
|
-
*/
|
|
7
|
-
apTableRef?: Ref<ApGridExpose | undefined | null>;
|
|
8
|
-
/**
|
|
9
|
-
* 刷新类型,reset:重置,submit:提交
|
|
10
|
-
*/
|
|
11
|
-
refreshType?: 'reset' | 'submit';
|
|
12
|
-
/**
|
|
13
|
-
* 刷新前执行,返回false则不执行
|
|
14
|
-
*/
|
|
15
|
-
refreshBefore?: () => boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function useGridRefresh(option?: UseGridRefreshOption): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");function i(e){const t=(["reset","submit",void 0].includes(e?.refreshType)?e?.refreshType:"submit")??"submit",u=e?.refreshBefore??(()=>!0);let r=!0;s.onMounted(()=>{r=!1}),s.onActivated(()=>{const f=u?.();r||f&&setTimeout(()=>{e?.apTableRef?.value?.[t]()})})}exports.useGridRefresh=i;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { ApTableExpose } from '../../';
|
|
3
|
-
export interface UseTableRefreshOption {
|
|
4
|
-
/**
|
|
5
|
-
* apTable实例
|
|
6
|
-
*/
|
|
7
|
-
apTableRef?: Ref<ApTableExpose | undefined | null>;
|
|
8
|
-
/**
|
|
9
|
-
* 刷新类型,reset:重置,submit:提交
|
|
10
|
-
*/
|
|
11
|
-
refreshType?: 'reset' | 'submit';
|
|
12
|
-
/**
|
|
13
|
-
* 刷新前执行,返回false则不执行
|
|
14
|
-
*/
|
|
15
|
-
refreshBefore?: () => boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function useTableRefresh(option?: UseTableRefreshOption): {
|
|
18
|
-
tableScrollX: Ref<number, number>;
|
|
19
|
-
tableScrollY: Ref<number, number>;
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");require("../../index.js");const v=require("../../config-provider/hooks/use-global-config.js");function T(e){return e==="admin"?window:(window.top!==window?window.top:window)??window}function n(e,r){return r.document.querySelector(e)}function w(e,r=".demo",u){const t=n(r,u);t&&(t.scrollTop=e)}function S(e){const r=v.useGlobalConfig("scrollYDomName"),u=v.useGlobalConfig("uiMode"),t=T(u.value??"aplus");let a=!0;const c=s.ref(0),i=s.ref(0),m=(["reset","submit",void 0].includes(e?.refreshType)?e?.refreshType:"submit")??"submit",b=e?.refreshBefore??(()=>!0);let f=!0;const d=l=>{if(a===!1)return;const o=l.target;i.value=o.scrollTop};return s.onMounted(()=>{s.nextTick(()=>{f=!1})}),s.onActivated(()=>{const l=b?.();if(f){setTimeout(()=>{const o=n(r.value,t);o&&o.addEventListener("scroll",d)});return}l&&setTimeout(()=>{a=!0,e?.apTableRef?.value?.[m](),e?.apTableRef?.value?.scrollBar?.x?.scroll?.(c.value),w(i.value,r.value,t);const o=n(r.value,t);o&&o.addEventListener("scroll",d)})}),s.onDeactivated(()=>{a=!1,c.value=e?.apTableRef?.value?.scrollBar?.x?.getCurrentScroll?.()??0;const l=n(r.value,t);l&&l.removeEventListener("scroll",d)}),{tableScrollX:c,tableScrollY:i}}exports.useTableRefresh=S;
|