@juzhenfe/page-model 3.22.4 → 3.22.6
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/components/buttons-renderer/components/button-item-render/index.vue.d.ts +66 -0
- package/dist/components/buttons-renderer/index.vue.d.ts +40 -0
- package/dist/components/buttons-renderer/utils/index.d.ts +2 -2
- package/dist/components/column-filter-tools/index.vue.d.ts +10 -0
- package/dist/components/column-sort-tools/index.vue.d.ts +10 -0
- package/dist/components/draggable-list/index.vue.d.ts +25 -0
- package/dist/components/editable-table/components/column-tools/index.vue.d.ts +11 -0
- package/dist/components/editable-table/components/column-tools/setting.vue.d.ts +9 -0
- package/dist/components/editable-table/components/table-cell/index.vue.d.ts +16 -0
- package/dist/components/editable-table/index.d.ts +13 -14
- package/dist/components/editable-table/index.vue.d.ts +74 -0
- package/dist/components/form/components/col-container/components/module-container/index.vue.d.ts +30 -0
- package/dist/components/form/components/col-container/components/section-title-els/index.vue.d.ts +24 -0
- package/dist/components/form/components/col-container/components/tabs-mode-container/index.vue.d.ts +32 -0
- package/dist/components/form/components/col-container/index.vue.d.ts +24 -0
- package/dist/components/form/components/column-tools/setting.vue.d.ts +11 -0
- package/dist/components/form/components/column-tools/use-setting.d.ts +14 -14
- package/dist/components/form/components/container-component/index.vue.d.ts +22 -0
- package/dist/components/form/components/section-config/merge.d.ts +3 -3
- package/dist/components/form/components/section-config/use.d.ts +14 -14
- package/dist/components/form/constructor.d.ts +79 -80
- package/dist/components/form/index.d.ts +2 -3
- package/dist/components/form/index.vue.d.ts +19 -0
- package/dist/components/form/type.d.ts +2 -0
- package/dist/components/form/utils/save-columns.d.ts +30 -30
- package/dist/components/form/utils/use-form-els.d.ts +4 -4
- package/dist/components/form-container/components/dialog-mode/index.vue.d.ts +29 -0
- package/dist/components/form-container/components/drawer-mode/index.vue.d.ts +29 -0
- package/dist/components/form-container/components/full-page/index.vue.d.ts +29 -0
- package/dist/components/form-container/index.vue.d.ts +27 -0
- package/dist/components/form-dialog/index.vue.d.ts +30 -0
- package/dist/components/form-dialog/use-move.d.ts +19 -19
- package/dist/components/form-drawer/index.vue.d.ts +35 -0
- package/dist/components/form-item-renderer/index.vue.d.ts +75 -0
- package/dist/components/line-clamp-tools/index.vue.d.ts +9 -0
- package/dist/components/normal-tab/index.vue.d.ts +17 -0
- package/dist/components/normal-tab/type.d.ts +2 -0
- package/dist/components/page-model/components/selectable-operate/index.vue.d.ts +16 -0
- package/dist/components/page-model/components/top-tabs/constructor.d.ts +9 -10
- package/dist/components/page-model/components/top-tabs/index.vue.d.ts +21 -0
- package/dist/components/page-model/constructor.d.ts +156 -157
- package/dist/components/page-model/index.d.ts +4 -6
- package/dist/components/page-model/index.vue.d.ts +118 -0
- package/dist/components/page-model/patches/patch-config-urls.d.ts +2 -2
- package/dist/components/page-model/patches/patch-default-config.d.ts +2 -2
- package/dist/components/page-model/patches/patch-selectable.d.ts +2 -2
- package/dist/components/page-model/patches/patch-size.d.ts +2 -2
- package/dist/components/page-model/patches/patch-table-dragable.d.ts +2 -2
- package/dist/components/page-model/patches/patch-user-config.d.ts +2 -2
- package/dist/components/page-model/type.d.ts +6 -0
- package/dist/components/page-model/utils/default-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-excel-export-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-style-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-text-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-user-setting.d.ts +1 -1
- package/dist/components/page-model/utils/error-handler.d.ts +1 -1
- package/dist/components/page-model/utils/manager-controller.d.ts +47 -48
- package/dist/components/page-model/utils/patch-config.d.ts +1 -2
- package/dist/components/page-model/utils/use-auth-buttons.d.ts +7 -8
- package/dist/components/page-model/utils/use-keyboard-event.d.ts +9 -9
- package/dist/components/scenes-tab/index.vue.d.ts +5 -0
- package/dist/components/search-form/components/search-form-full/index.vue.d.ts +16 -0
- package/dist/components/search-form/constructor.d.ts +21 -22
- package/dist/components/search-form/index.vue.d.ts +19 -0
- package/dist/components/search-form/use-detect-item-width.d.ts +5 -6
- package/dist/components/simple-popover/index.vue.d.ts +29 -0
- package/dist/components/table/components/column-tools/index.vue.d.ts +10 -0
- package/dist/components/table/components/column-tools/setting.vue.d.ts +17 -0
- package/dist/components/table/components/column-tools/use-setting.d.ts +14 -14
- package/dist/components/table/components/column-tools/use-user-config.d.ts +14 -14
- package/dist/components/table/components/column-tools/use-user-show-row-config.d.ts +35 -35
- package/dist/components/table/components/column-tools/user-config.vue.d.ts +11 -0
- package/dist/components/table/components/context-column-summary/index.vue.d.ts +13 -0
- package/dist/components/table/components/context-menu/index.vue.d.ts +35 -0
- package/dist/components/table/components/empty-data/index.vue.d.ts +7 -0
- package/dist/components/table/components/export-form/index.vue.d.ts +13 -0
- package/dist/components/table/components/export-form/use.d.ts +16 -17
- package/dist/components/table/components/selections-table/index.vue.d.ts +10 -0
- package/dist/components/table/components/selections-table/use.d.ts +15 -15
- package/dist/components/table/components/table-column/components/filter-zone/index.vue.d.ts +9 -0
- package/dist/components/table/components/table-column/components/filter-zone/utils/index.d.ts +69 -69
- package/dist/components/table/components/table-column/index.vue.d.ts +7 -0
- package/dist/components/table/components/table-v2/index.vue.d.ts +20 -0
- package/dist/components/table/components/table-wrap/index.vue.d.ts +24 -0
- package/dist/components/table/constructor.d.ts +344 -345
- package/dist/components/table/index.vue.d.ts +30 -0
- package/dist/components/table/type.d.ts +2 -0
- package/dist/components/table/utils/save-column-filter.d.ts +2 -2
- package/dist/components/table/utils/save-column-sort.d.ts +2 -2
- package/dist/components/table/utils/save-columns.d.ts +38 -38
- package/dist/components/table/utils/save-config.d.ts +6 -6
- package/dist/components/table/utils/use-column-drag.d.ts +8 -8
- package/dist/components/table/utils/use-listen-scroll.d.ts +5 -6
- package/dist/components/table/utils/use-static-summary.d.ts +11 -12
- package/dist/components/table/utils/use-table-config-change.d.ts +5 -6
- package/dist/components/table/utils/use-table-els.d.ts +4 -5
- package/dist/components/table-cell-renderer/index.vue.d.ts +58 -0
- package/dist/components/table-toolsbox/index.vue.d.ts +24 -0
- package/dist/index.es.js +1809 -1803
- package/dist/index.umd.js +2 -2
- package/dist/main.d.ts +14 -13
- package/dist/types/common.d.ts +25 -0
- package/dist/types/form-item-types/cascader.d.ts +2 -0
- package/dist/types/form-item-types/color-picker.d.ts +21 -20
- package/dist/types/form-item-types/date-picker.d.ts +45 -41
- package/dist/types/form-item-types/input-number.d.ts +2 -0
- package/dist/types/form-item-types/input.d.ts +2 -0
- package/dist/types/form-item-types/jz-cascader.d.ts +3 -0
- package/dist/types/form-item-types/jz-city-picker.d.ts +3 -0
- package/dist/types/form-item-types/rate.d.ts +30 -29
- package/dist/types/form-item-types/select-v2.d.ts +2 -0
- package/dist/types/form-item-types/slider.d.ts +31 -31
- package/dist/types/form-item-types/switch.d.ts +13 -9
- package/dist/types/form-item-types/time-picker.d.ts +40 -36
- package/dist/types/form-item-types/time-select.d.ts +30 -26
- package/dist/utils/config-saver.d.ts +51 -51
- package/dist/utils/define-config.d.ts +2 -3
- package/dist/utils/event-chain.d.ts +9 -9
- package/dist/utils/event-emitter.d.ts +7 -7
- package/dist/utils/index.d.ts +101 -102
- package/dist/utils/infinite-table.d.ts +49 -49
- package/dist/utils/manager.d.ts +13 -14
- package/dist/utils/provide-keys.d.ts +20 -20
- package/dist/utils/reflect/index.d.ts +14 -15
- package/dist/utils/reflect/reflect-collector.d.ts +25 -25
- package/dist/utils/resize.d.ts +2 -3
- package/package.json +9 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
(...rest: any[]): any;
|
|
3
|
-
};
|
|
4
|
-
export default class EventChain {
|
|
5
|
-
chains: EventChainItem[];
|
|
6
|
-
setChain(chainItem: EventChainItem): this;
|
|
7
|
-
passRequest(...rest: any[]): any;
|
|
8
|
-
}
|
|
9
|
-
export {};
|
|
1
|
+
type EventChainItem = {
|
|
2
|
+
(...rest: any[]): any;
|
|
3
|
+
};
|
|
4
|
+
export default class EventChain {
|
|
5
|
+
chains: EventChainItem[];
|
|
6
|
+
setChain(chainItem: EventChainItem): this;
|
|
7
|
+
passRequest(...rest: any[]): any;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export default class EventEmitter<T = string> {
|
|
2
|
-
events: Map<T, Function[]>;
|
|
3
|
-
on(eventName: T, cb: Function): void;
|
|
4
|
-
emit(eventName: T, ...rest: any[]): void;
|
|
5
|
-
has(eventName: T): boolean;
|
|
6
|
-
remove(eventName: T, cb: Function): void;
|
|
7
|
-
}
|
|
1
|
+
export default class EventEmitter<T = string> {
|
|
2
|
+
events: Map<T, Function[]>;
|
|
3
|
+
on(eventName: T, cb: Function): void;
|
|
4
|
+
emit(eventName: T, ...rest: any[]): void;
|
|
5
|
+
has(eventName: T): boolean;
|
|
6
|
+
remove(eventName: T, cb: Function): void;
|
|
7
|
+
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,103 +1,102 @@
|
|
|
1
1
|
import { default as IManager } from './manager';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
*
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
*
|
|
61
|
-
* @param {Array}
|
|
62
|
-
* @param {
|
|
63
|
-
* @
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
* @
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
export declare const
|
|
77
|
-
export declare const
|
|
78
|
-
export declare const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
*
|
|
82
|
-
* @param
|
|
83
|
-
* @
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
* @param
|
|
90
|
-
* @
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
*
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
export
|
|
103
|
-
export {};
|
|
2
|
+
/**
|
|
3
|
+
* 创建命名空间
|
|
4
|
+
* @param space
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const createBEMSpace: (space: string) => {
|
|
8
|
+
BEMSpace: string;
|
|
9
|
+
createBEMName: (name: string) => string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 深层拷贝
|
|
13
|
+
* 需要可以拷贝的类型
|
|
14
|
+
* 1、对象
|
|
15
|
+
* 2、数组
|
|
16
|
+
* 3、基本类型
|
|
17
|
+
* 4、函数
|
|
18
|
+
*/
|
|
19
|
+
type ShowItem = AnyObject & {
|
|
20
|
+
isShow?: Function;
|
|
21
|
+
children?: ShowItem[];
|
|
22
|
+
};
|
|
23
|
+
type DisabledItem = AnyObject & {
|
|
24
|
+
isDisabled?: Function;
|
|
25
|
+
children?: DisabledItem[];
|
|
26
|
+
};
|
|
27
|
+
type AuthButtonItem = AnyObject & {
|
|
28
|
+
authValue?: string;
|
|
29
|
+
children?: ShowItem[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 过滤不显示的表单元素
|
|
33
|
+
* @param this
|
|
34
|
+
* @param item
|
|
35
|
+
* @param restParams
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export declare const filterShowItem: (this: IManager, item: ShowItem, ...restParams: any[]) => any;
|
|
39
|
+
/**
|
|
40
|
+
* 过滤无权限的按钮
|
|
41
|
+
* @param this
|
|
42
|
+
* @param item
|
|
43
|
+
* @param restParams
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
export declare const filterAuthedItem: (this: any, item: AuthButtonItem, authButtons: string[]) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 设置禁用的表单元素
|
|
49
|
+
* @param this
|
|
50
|
+
* @param item
|
|
51
|
+
* @param restParams
|
|
52
|
+
*/
|
|
53
|
+
export declare const setItemDisabled: (this: IManager, item: DisabledItem, ...restParams: any[]) => void;
|
|
54
|
+
/**
|
|
55
|
+
* 为props和events中的函数绑定上下文
|
|
56
|
+
*/
|
|
57
|
+
export declare const attributesBinding: <T = any>(props: any, binding: any) => T;
|
|
58
|
+
/**
|
|
59
|
+
* 比对新老数据列表,得出新增、更新、删除数据
|
|
60
|
+
* @param {Array} oldList
|
|
61
|
+
* @param {Array} newList
|
|
62
|
+
* @param {string} compareKey
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
export declare const compareTwoList: <T = AnyObject>(oldList: T[], newList: T[], compareKey: keyof T) => {
|
|
66
|
+
adds: T[];
|
|
67
|
+
upds: T[];
|
|
68
|
+
dels: T[];
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 返回数值的类型
|
|
72
|
+
* @param val
|
|
73
|
+
* @returns string
|
|
74
|
+
*/
|
|
75
|
+
export declare const getType: (val: any) => string;
|
|
76
|
+
export declare const groupArray: (list: any[], gropupKey: string) => AnyObject;
|
|
77
|
+
export declare const jsonClone: <T = any>(data: T) => T;
|
|
78
|
+
export declare const tree: <T = any>(data: T[], supKey: keyof T, subKey: keyof T, childrenKey: string) => any[];
|
|
79
|
+
/**
|
|
80
|
+
* debounce
|
|
81
|
+
* @param fn
|
|
82
|
+
* @param interval
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
export declare const debounce: (fn: Function, interval?: number, immediate?: boolean) => (...rest: any[]) => void;
|
|
86
|
+
/**
|
|
87
|
+
* 节流函数
|
|
88
|
+
* @param fn
|
|
89
|
+
* @param interval 节流间隔
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
export declare const throttle: (fn: Function, interval?: number) => (...rest: any[]) => void;
|
|
93
|
+
/**
|
|
94
|
+
* 生产随机字符串
|
|
95
|
+
* @param len 字符串位数
|
|
96
|
+
*/
|
|
97
|
+
export declare const randomStr: (len?: number) => string;
|
|
98
|
+
/**
|
|
99
|
+
* 重新尝试方法
|
|
100
|
+
*/
|
|
101
|
+
export declare function retryFunc(fn: Function, isCanExecute: Function, retryTimes?: number, interval?: number): () => void;
|
|
102
|
+
export {};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 无限滚动表格
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 表格容器元素,通常不包含表头
|
|
7
|
-
*/
|
|
8
|
-
getContainElement: () => HTMLElement;
|
|
9
|
-
/**
|
|
10
|
-
* 滚动列表元素
|
|
11
|
-
*/
|
|
12
|
-
getScrollListElement: () => HTMLElement;
|
|
13
|
-
/**
|
|
14
|
-
* 单元格高度 px
|
|
15
|
-
*/
|
|
16
|
-
itemHeight: number;
|
|
17
|
-
/**
|
|
18
|
-
* 预加载数量
|
|
19
|
-
*/
|
|
20
|
-
topPrefetchCount: number;
|
|
21
|
-
/**
|
|
22
|
-
* 底部预加载数量
|
|
23
|
-
*/
|
|
24
|
-
bottomPrefetchCount: number;
|
|
25
|
-
/**
|
|
26
|
-
* 滚动数量
|
|
27
|
-
*/
|
|
28
|
-
dataCount: number;
|
|
29
|
-
/**
|
|
30
|
-
* 显示数据索引更新
|
|
31
|
-
*/
|
|
32
|
-
onDataIndexRangeUpdate?: (dataIndexRange: [number, number]) => void;
|
|
33
|
-
};
|
|
34
|
-
export declare const useInfiniteTable: (options: InfiniteTableProps) => {
|
|
35
|
-
currentScrollTop: import('vue').Ref<number, number>;
|
|
36
|
-
viewportRange: import('vue').Ref<[number, number], [number, number]>;
|
|
37
|
-
dataIndexRange: import('vue').Ref<[number, number], [number, number]>;
|
|
38
|
-
offsetTop: import('vue').Ref<number, number>;
|
|
39
|
-
scrollbarScrollPercent: import('vue').Ref<number, number>;
|
|
40
|
-
viewportHeight: import('vue').Ref<number, number>;
|
|
41
|
-
totalHeight: import('vue').Ref<number, number>;
|
|
42
|
-
scrollableDistance: import('vue').Ref<number, number>;
|
|
43
|
-
init: () => boolean;
|
|
44
|
-
dispose: () => void;
|
|
45
|
-
handleScroll: (wheelDeltaY: number) => void;
|
|
46
|
-
setScrollTop: (scrollTop: number) => void;
|
|
47
|
-
updateScrollbarScrollPercent: (percent: number) => void;
|
|
48
|
-
};
|
|
49
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* 无限滚动表格
|
|
3
|
+
*/
|
|
4
|
+
type InfiniteTableProps = {
|
|
5
|
+
/**
|
|
6
|
+
* 表格容器元素,通常不包含表头
|
|
7
|
+
*/
|
|
8
|
+
getContainElement: () => HTMLElement;
|
|
9
|
+
/**
|
|
10
|
+
* 滚动列表元素
|
|
11
|
+
*/
|
|
12
|
+
getScrollListElement: () => HTMLElement;
|
|
13
|
+
/**
|
|
14
|
+
* 单元格高度 px
|
|
15
|
+
*/
|
|
16
|
+
itemHeight: number;
|
|
17
|
+
/**
|
|
18
|
+
* 预加载数量
|
|
19
|
+
*/
|
|
20
|
+
topPrefetchCount: number;
|
|
21
|
+
/**
|
|
22
|
+
* 底部预加载数量
|
|
23
|
+
*/
|
|
24
|
+
bottomPrefetchCount: number;
|
|
25
|
+
/**
|
|
26
|
+
* 滚动数量
|
|
27
|
+
*/
|
|
28
|
+
dataCount: number;
|
|
29
|
+
/**
|
|
30
|
+
* 显示数据索引更新
|
|
31
|
+
*/
|
|
32
|
+
onDataIndexRangeUpdate?: (dataIndexRange: [number, number]) => void;
|
|
33
|
+
};
|
|
34
|
+
export declare const useInfiniteTable: (options: InfiniteTableProps) => {
|
|
35
|
+
currentScrollTop: import('vue').Ref<number, number>;
|
|
36
|
+
viewportRange: import('vue').Ref<[number, number], [number, number]>;
|
|
37
|
+
dataIndexRange: import('vue').Ref<[number, number], [number, number]>;
|
|
38
|
+
offsetTop: import('vue').Ref<number, number>;
|
|
39
|
+
scrollbarScrollPercent: import('vue').Ref<number, number>;
|
|
40
|
+
viewportHeight: import('vue').Ref<number, number>;
|
|
41
|
+
totalHeight: import('vue').Ref<number, number>;
|
|
42
|
+
scrollableDistance: import('vue').Ref<number, number>;
|
|
43
|
+
init: () => boolean;
|
|
44
|
+
dispose: () => void;
|
|
45
|
+
handleScroll: (wheelDeltaY: number) => void;
|
|
46
|
+
setScrollTop: (scrollTop: number) => void;
|
|
47
|
+
updateScrollbarScrollPercent: (percent: number) => void;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
package/dist/utils/manager.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { default as PageModelManager } from '../components/page-model/constructor';
|
|
2
2
|
import { ComponentPublicInstance } from 'vue';
|
|
3
3
|
import { default as Reflections } from './reflect';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
abstract
|
|
11
|
-
abstract
|
|
12
|
-
abstract
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
4
|
+
export default abstract class IManager extends Reflections {
|
|
5
|
+
config: PageModel.UConfig;
|
|
6
|
+
context: ComponentPublicInstance;
|
|
7
|
+
manager: PageModelManager;
|
|
8
|
+
updateConfig(config: PageModel.UConfig): void;
|
|
9
|
+
abstract onConfigUpdated(config: PageModel.UConfig): void;
|
|
10
|
+
abstract updateContext(context: ComponentPublicInstance): void;
|
|
11
|
+
abstract register(manager: PageModelManager): void;
|
|
12
|
+
abstract getReqParams(...rest: any[]): AnyObject;
|
|
13
|
+
staticData: AnyObject;
|
|
14
|
+
updateStaticData(data: AnyObject): void;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description provide keys
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* 表单组件
|
|
6
|
-
*/
|
|
7
|
-
declare const formManagerProvideKey: unique symbol;
|
|
8
|
-
/**
|
|
9
|
-
* 注册属性
|
|
10
|
-
*/
|
|
11
|
-
declare const registerPropertyProvideKey: unique symbol;
|
|
12
|
-
/**
|
|
13
|
-
* 是否开启授权按钮
|
|
14
|
-
*/
|
|
15
|
-
declare const isOpenAuthButtonProvideKey: unique symbol;
|
|
16
|
-
/**
|
|
17
|
-
* 授权按钮
|
|
18
|
-
*/
|
|
19
|
-
declare const authButtonsProvideKey: unique symbol;
|
|
20
|
-
export { formManagerProvideKey, registerPropertyProvideKey, isOpenAuthButtonProvideKey, authButtonsProvideKey };
|
|
1
|
+
/**
|
|
2
|
+
* @description provide keys
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 表单组件
|
|
6
|
+
*/
|
|
7
|
+
declare const formManagerProvideKey: unique symbol;
|
|
8
|
+
/**
|
|
9
|
+
* 注册属性
|
|
10
|
+
*/
|
|
11
|
+
declare const registerPropertyProvideKey: unique symbol;
|
|
12
|
+
/**
|
|
13
|
+
* 是否开启授权按钮
|
|
14
|
+
*/
|
|
15
|
+
declare const isOpenAuthButtonProvideKey: unique symbol;
|
|
16
|
+
/**
|
|
17
|
+
* 授权按钮
|
|
18
|
+
*/
|
|
19
|
+
declare const authButtonsProvideKey: unique symbol;
|
|
20
|
+
export { formManagerProvideKey, registerPropertyProvideKey, isOpenAuthButtonProvideKey, authButtonsProvideKey };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { WatchStopHandle } from 'vue';
|
|
2
2
|
import { default as ReflectRelation } from './reflect-collector';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
3
|
+
type ReflectionWatch = WatchStopHandle & {
|
|
4
|
+
reflect: ReflectRelation;
|
|
5
|
+
};
|
|
6
|
+
export default class Reflections {
|
|
7
|
+
reflections: PageModel.Reflections;
|
|
8
|
+
reflectionWatch: ReflectionWatch;
|
|
9
|
+
isInitReflectionsDataWatch: boolean;
|
|
10
|
+
updateReflectionsData(reflections: PageModel.Reflections): void;
|
|
11
|
+
initReflect(target: AnyObject): boolean;
|
|
12
|
+
initReflectionsKeyWatch(target: AnyObject): void;
|
|
13
|
+
destroyReflect(): void;
|
|
14
|
+
unwatch(): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file 检测到目标对象里存在key为_reflect的对象,则收集当前对象的路径,以当前对象key为_reflectChangeKey的值(default: list)进行存储路径数组(二维,可能存在多对一)
|
|
3
|
-
* @function collectRelations 负责收集路径
|
|
4
|
-
* @function getRelations 负责获取路径
|
|
5
|
-
* @author yangshangman
|
|
6
|
-
*/
|
|
7
|
-
interface propKeys extends Array<any> {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
[index: number]: string | number;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
[key: string]: Array<propKeys>;
|
|
13
|
-
};
|
|
14
|
-
export default class ReflectRelation {
|
|
15
|
-
reflectRelations: reflectRelations | null;
|
|
16
|
-
constructor();
|
|
17
|
-
/**
|
|
18
|
-
* @description 收集关系依赖
|
|
19
|
-
* @param config 收集对象
|
|
20
|
-
*/
|
|
21
|
-
collectRelations(config: AnyObject): void;
|
|
22
|
-
getRelations(key: string): propKeys[];
|
|
23
|
-
destroy(): void;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @file 检测到目标对象里存在key为_reflect的对象,则收集当前对象的路径,以当前对象key为_reflectChangeKey的值(default: list)进行存储路径数组(二维,可能存在多对一)
|
|
3
|
+
* @function collectRelations 负责收集路径
|
|
4
|
+
* @function getRelations 负责获取路径
|
|
5
|
+
* @author yangshangman
|
|
6
|
+
*/
|
|
7
|
+
interface propKeys extends Array<any> {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
[index: number]: string | number;
|
|
10
|
+
}
|
|
11
|
+
type reflectRelations = {
|
|
12
|
+
[key: string]: Array<propKeys>;
|
|
13
|
+
};
|
|
14
|
+
export default class ReflectRelation {
|
|
15
|
+
reflectRelations: reflectRelations | null;
|
|
16
|
+
constructor();
|
|
17
|
+
/**
|
|
18
|
+
* @description 收集关系依赖
|
|
19
|
+
* @param config 收集对象
|
|
20
|
+
*/
|
|
21
|
+
collectRelations(config: AnyObject): void;
|
|
22
|
+
getRelations(key: string): propKeys[];
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
package/dist/utils/resize.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzhenfe/page-model",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.6",
|
|
4
4
|
"types": "dist/main.d.ts",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"keywords": [
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
"@juzhenfe/modules": "^2.3.4",
|
|
26
26
|
"@juzhenfe/request": "^1.8.6",
|
|
27
27
|
"@types/node": "^22.5.0",
|
|
28
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
29
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
28
30
|
"@vue/compiler-sfc": "3.2.30",
|
|
31
|
+
"@vue/language-core": "~3.1.5",
|
|
29
32
|
"core-js": "3.21.0",
|
|
30
33
|
"cross-env": "7.0.3",
|
|
31
34
|
"element-plus": "^2.6.0",
|
|
@@ -34,11 +37,10 @@
|
|
|
34
37
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
35
38
|
"sass": "^1.55.0",
|
|
36
39
|
"tslib": "2.3.1",
|
|
37
|
-
"typescript": "
|
|
40
|
+
"typescript": "5.7.3",
|
|
41
|
+
"unplugin-dts": "^1.0.1",
|
|
38
42
|
"vite": "^8.0.1",
|
|
39
|
-
"
|
|
40
|
-
"@vitejs/plugin-vue": "^6.0.5",
|
|
41
|
-
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
43
|
+
"vue": "^3.5.34",
|
|
42
44
|
"vue-router": "^4.0.13",
|
|
43
45
|
"xlsx": "^0.18.3",
|
|
44
46
|
"xlsx-style": "^0.8.13"
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
"sortablejs": "^1.15.0"
|
|
50
52
|
},
|
|
51
53
|
"peerDependencies": {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
+
"@juzhenfe/request": "^1.7.0",
|
|
55
|
+
"element-plus": "^2.3.0"
|
|
54
56
|
}
|
|
55
57
|
}
|