@fox-js/foxui 4.0.1-36 → 4.0.1-37
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/dist/index.cjs.js +10 -10
- package/dist/index.esm.js +11355 -11144
- package/dist/index.umd.js +9 -9
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +39 -27
- package/package.json +1 -1
package/dist/style.esm.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ExecuteValidator } from '@fox-js/validator';
|
|
|
8
8
|
import { FoxComponentPublicInstance } from './types';
|
|
9
9
|
import { FoxUI } from './interface';
|
|
10
10
|
import { FoxUIOptions } from './interface';
|
|
11
|
+
import { HintTextTooltip } from './types';
|
|
11
12
|
import { multiply } from '@fox-js/big-decimal';
|
|
12
13
|
import { negate } from '@fox-js/big-decimal';
|
|
13
14
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
@@ -915,6 +916,8 @@ declare class DialogOptions {
|
|
|
915
916
|
lockScroll?: boolean;
|
|
916
917
|
}
|
|
917
918
|
|
|
919
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
920
|
+
|
|
918
921
|
/**
|
|
919
922
|
* 禁用属性
|
|
920
923
|
* @param source
|
|
@@ -1186,12 +1189,6 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
1186
1189
|
*/
|
|
1187
1190
|
export declare function getRootDomain(): Domain;
|
|
1188
1191
|
|
|
1189
|
-
/**
|
|
1190
|
-
* 获取scroll top root
|
|
1191
|
-
* @returns
|
|
1192
|
-
*/
|
|
1193
|
-
export declare const getScrollTopRoot: () => number;
|
|
1194
|
-
|
|
1195
1192
|
/**
|
|
1196
1193
|
* Group Content
|
|
1197
1194
|
*/
|
|
@@ -1208,27 +1205,7 @@ export declare const hasSymbol: boolean;
|
|
|
1208
1205
|
/**
|
|
1209
1206
|
* hint text function
|
|
1210
1207
|
*/
|
|
1211
|
-
declare const HintTextFunction:
|
|
1212
|
-
/**
|
|
1213
|
-
* 显示
|
|
1214
|
-
* @param reference
|
|
1215
|
-
* @param message
|
|
1216
|
-
* @param opts
|
|
1217
|
-
* @param only
|
|
1218
|
-
* @returns
|
|
1219
|
-
*/
|
|
1220
|
-
show(reference: HTMLElement, message: string, opts?: Record<string, any>, only?: boolean): string;
|
|
1221
|
-
/**
|
|
1222
|
-
* 隐藏
|
|
1223
|
-
* @param id
|
|
1224
|
-
*/
|
|
1225
|
-
hide(id?: string): void;
|
|
1226
|
-
/**
|
|
1227
|
-
* 安装
|
|
1228
|
-
* @param app
|
|
1229
|
-
*/
|
|
1230
|
-
install(app: any): void;
|
|
1231
|
-
};
|
|
1208
|
+
declare const HintTextFunction: HintTextTooltip;
|
|
1232
1209
|
export { HintTextFunction as FoxHintText }
|
|
1233
1210
|
export { HintTextFunction as HintText }
|
|
1234
1211
|
|
|
@@ -1440,6 +1417,12 @@ export declare function isSubPage(domain: Domain): boolean;
|
|
|
1440
1417
|
*/
|
|
1441
1418
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1442
1419
|
|
|
1420
|
+
/**
|
|
1421
|
+
* 是否为支持触摸
|
|
1422
|
+
* @returns
|
|
1423
|
+
*/
|
|
1424
|
+
export declare function isTouch(): boolean;
|
|
1425
|
+
|
|
1443
1426
|
/**
|
|
1444
1427
|
* 是否是window对象
|
|
1445
1428
|
* @param obj
|
|
@@ -1893,6 +1876,31 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1893
1876
|
*/
|
|
1894
1877
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1895
1878
|
|
|
1879
|
+
/**
|
|
1880
|
+
* 获取非响应式touch对象
|
|
1881
|
+
* @returns
|
|
1882
|
+
*/
|
|
1883
|
+
export declare function useRawTouch(): {
|
|
1884
|
+
move: EventListener;
|
|
1885
|
+
start: EventListener;
|
|
1886
|
+
reset: () => void;
|
|
1887
|
+
isVertical: () => boolean;
|
|
1888
|
+
isHorizontal: () => boolean;
|
|
1889
|
+
state: {
|
|
1890
|
+
startX: number;
|
|
1891
|
+
startY: number;
|
|
1892
|
+
startTime: number;
|
|
1893
|
+
duration: number;
|
|
1894
|
+
moveX: number;
|
|
1895
|
+
moveY: number;
|
|
1896
|
+
deltaX: number;
|
|
1897
|
+
deltaY: number;
|
|
1898
|
+
offsetX: number;
|
|
1899
|
+
offsetY: number;
|
|
1900
|
+
direction: Direction;
|
|
1901
|
+
};
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1896
1904
|
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1897
1905
|
|
|
1898
1906
|
/**
|
|
@@ -1902,6 +1910,10 @@ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Wi
|
|
|
1902
1910
|
*/
|
|
1903
1911
|
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1904
1912
|
|
|
1913
|
+
/**
|
|
1914
|
+
* 获取响应式touch对象
|
|
1915
|
+
* @returns
|
|
1916
|
+
*/
|
|
1905
1917
|
export declare function useTouch(): {
|
|
1906
1918
|
move: EventListener;
|
|
1907
1919
|
start: EventListener;
|