@byteluck-fe/runtime-engine 1.2.0 → 1.2.2
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/runtime-engine.js +497 -498
- package/dist/src/entry_desktop/controls/components/ag-grid/hooks/useModel.d.ts +1 -1
- package/dist/src/entry_desktop/controls/components/ag-grid/hooks/useTableHeight.d.ts +6 -0
- package/dist/src/hooks/controls/listViewSelect/useListViewSelect.d.ts +1 -0
- package/dist/src/hooks/controls/simpleSearch/useSimpleSearch.d.ts +0 -1
- package/dist/src/store/index.d.ts +1 -0
- package/dist/src/utils/controls/amountUtils.d.ts +1 -1
- package/dist/src/utils/tools/domUtils.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
export declare function useAgGridModel(): {
|
|
2
|
+
export declare function useAgGridModel(emit?: EmitType): {
|
|
3
3
|
fetchViewConfig: (query: Recordable<any>, gridTableId: string) => Promise<typing.ViewConfigVo | undefined>;
|
|
4
4
|
saveViewConfig: (viewParams: {
|
|
5
5
|
viewConfig: any;
|
|
@@ -3,6 +3,7 @@ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
|
3
3
|
export default function useListViewSelect(params: {
|
|
4
4
|
instance: ControlRuntimeInstance<'list-view-select'>;
|
|
5
5
|
emit: EmitType;
|
|
6
|
+
device: string;
|
|
6
7
|
}): {
|
|
7
8
|
dataSource: Ref<Recordable<any>[]>;
|
|
8
9
|
viewValue: Ref<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const thousFormat: (value: number | string) => string;
|
|
2
2
|
declare const okToFixed: (num: number | string, precision: number) => string;
|
|
3
|
-
export declare function clearNumber(num: any, precision: number | ''):
|
|
3
|
+
export declare function clearNumber(num: any, precision: number | ''): number | "";
|
|
4
4
|
export { thousFormat, okToFixed };
|
|
@@ -2,3 +2,22 @@ export declare function on(element: Element | HTMLElement | Document | Window, e
|
|
|
2
2
|
export declare function off(element: Element | HTMLElement | Document | Window, event: string, handler: Fn): void;
|
|
3
3
|
export declare function parentsUntil(el: HTMLElement | any, selector: string, filter: string): any[];
|
|
4
4
|
export declare const scrollToTop: () => void;
|
|
5
|
+
/**
|
|
6
|
+
* 获取当前dom距离页顶的距离,该方法会根据父节点有没有position定位属性进行计算,父层没有设置定位的话,则该层会自动忽略
|
|
7
|
+
* @param dom
|
|
8
|
+
* @param data 该字段不传,返回的数据即为该字段
|
|
9
|
+
* @param data.distance 距离顶部距离
|
|
10
|
+
* @param data.type 该dom是在modal弹窗,runtime-quote-list引用列表,或body内
|
|
11
|
+
* @param data.container 当type为modal或runtime-quote-list时,该字段为所在容器dom
|
|
12
|
+
*/
|
|
13
|
+
export declare function calcDomOffsetTop(dom: HTMLElement | any, data?: {
|
|
14
|
+
distance: number;
|
|
15
|
+
type: string;
|
|
16
|
+
container: any;
|
|
17
|
+
}): any;
|
|
18
|
+
/**
|
|
19
|
+
* 搜索最近父层包含样式类的节点,无数据返回空
|
|
20
|
+
* @param $el
|
|
21
|
+
* @param className
|
|
22
|
+
*/
|
|
23
|
+
export declare function getParentElementByClassName($el: any, className: string): any;
|