@juzhenfe/page-model 3.22.3 → 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 +168 -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 +20 -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/components/top-tabs/type.d.ts +11 -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 +345 -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/scenes-tab/type.d.ts +14 -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/type.d.ts +42 -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 +366 -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 +485 -0
- package/dist/types/form-item-types/cascader.d.ts +39 -0
- package/dist/types/form-item-types/checkbox-group.d.ts +19 -0
- package/dist/types/form-item-types/color-picker.d.ts +21 -0
- package/dist/types/form-item-types/date-picker.d.ts +46 -0
- package/dist/types/form-item-types/input-number.d.ts +16 -0
- package/dist/types/form-item-types/input.d.ts +18 -0
- package/dist/types/form-item-types/jz-a-map.d.ts +14 -0
- package/dist/types/form-item-types/jz-cascader.d.ts +21 -0
- package/dist/types/form-item-types/jz-city-picker.d.ts +28 -0
- package/dist/types/form-item-types/jz-ck-editor.d.ts +27 -0
- package/dist/types/form-item-types/jz-editor.d.ts +20 -0
- package/dist/types/form-item-types/jz-file-upload.d.ts +20 -0
- package/dist/types/form-item-types/jz-img-upload.d.ts +23 -0
- package/dist/types/form-item-types/jz-long-input.d.ts +10 -0
- package/dist/types/form-item-types/jz-td-map.d.ts +13 -0
- package/dist/types/form-item-types/no-e-type.d.ts +12 -0
- package/dist/types/form-item-types/radio-group.d.ts +17 -0
- package/dist/types/form-item-types/rate.d.ts +30 -0
- package/dist/types/form-item-types/select-v2.d.ts +48 -0
- package/dist/types/form-item-types/select.d.ts +43 -0
- package/dist/types/form-item-types/slider.d.ts +31 -0
- package/dist/types/form-item-types/switch.d.ts +15 -0
- package/dist/types/form-item-types/time-picker.d.ts +42 -0
- package/dist/types/form-item-types/time-select.d.ts +31 -0
- package/dist/types/renderer.d.ts +10 -0
- package/dist/types/shims-vue-property.d.ts +8 -0
- package/dist/types/shims-vue.d.ts +7 -0
- package/dist/types/window.d.ts +10 -0
- 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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
modelValue: any;
|
|
6
|
+
renderFn: {
|
|
7
|
+
type: PropType<PageModel.RenderFn>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
change: {
|
|
11
|
+
type: PropType<(...rest: any[]) => void>;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
options: {
|
|
15
|
+
type: PropType<any>;
|
|
16
|
+
default: () => void;
|
|
17
|
+
};
|
|
18
|
+
context: {
|
|
19
|
+
type: PropType<any>;
|
|
20
|
+
default: () => void;
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: PropType<boolean>;
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
model: {
|
|
27
|
+
type: PropType<AnyObject>;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
multProps: {
|
|
31
|
+
type: PropType<string[]>;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
modelValue: any;
|
|
38
|
+
renderFn: {
|
|
39
|
+
type: PropType<PageModel.RenderFn>;
|
|
40
|
+
default: any;
|
|
41
|
+
};
|
|
42
|
+
change: {
|
|
43
|
+
type: PropType<(...rest: any[]) => void>;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
options: {
|
|
47
|
+
type: PropType<any>;
|
|
48
|
+
default: () => void;
|
|
49
|
+
};
|
|
50
|
+
context: {
|
|
51
|
+
type: PropType<any>;
|
|
52
|
+
default: () => void;
|
|
53
|
+
};
|
|
54
|
+
disabled: {
|
|
55
|
+
type: PropType<boolean>;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
model: {
|
|
59
|
+
type: PropType<AnyObject>;
|
|
60
|
+
default: () => {};
|
|
61
|
+
};
|
|
62
|
+
multProps: {
|
|
63
|
+
type: PropType<string[]>;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{}>, {
|
|
67
|
+
options: any;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
change: (...rest: any[]) => void;
|
|
70
|
+
modelValue: any;
|
|
71
|
+
renderFn: PageModel.RenderFn;
|
|
72
|
+
context: any;
|
|
73
|
+
model: AnyObject;
|
|
74
|
+
multProps: string[];
|
|
75
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
els?: any[];
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {
|
|
5
|
+
showPopover: (element: HTMLElement) => void;
|
|
6
|
+
hidePopover: () => void;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, any, string, import('vue').PublicProps, any, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
4
|
+
panes: PageModel.NormalTabItem[];
|
|
5
|
+
props?: AnyObject;
|
|
6
|
+
}, {
|
|
7
|
+
getValue: () => AnyObject;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
+
change: (value: AnyObject, tabComponent: any, event: Event) => any;
|
|
10
|
+
refresh: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
12
|
+
panes: PageModel.NormalTabItem[];
|
|
13
|
+
props?: AnyObject;
|
|
14
|
+
}> & Readonly<{
|
|
15
|
+
onChange?: (value: AnyObject, tabComponent: any, event: Event) => any;
|
|
16
|
+
onRefresh?: () => any;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference path="../../types/common.d.ts" />
|
|
2
|
+
|
|
3
|
+
import { TabsProps } from 'element-plus';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
declare global {
|
|
7
|
+
namespace PageModel {
|
|
8
|
+
type NormalTabItem = {
|
|
9
|
+
label: string;
|
|
10
|
+
value: AnyObject;
|
|
11
|
+
default?: boolean;
|
|
12
|
+
} & _Badge
|
|
13
|
+
|
|
14
|
+
type NormalTab = {
|
|
15
|
+
props?: Partial<TabsProps>;
|
|
16
|
+
panes?: NormalTabItem[];
|
|
17
|
+
refreshOnChange?: boolean;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as TableManager } from '../../../table/constructor';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
5
|
+
els: PageModel.Button[];
|
|
6
|
+
tableManager?: TableManager;
|
|
7
|
+
manager: any;
|
|
8
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
+
"visible-change": (visible: boolean) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
11
|
+
els: PageModel.Button[];
|
|
12
|
+
tableManager?: TableManager;
|
|
13
|
+
manager: any;
|
|
14
|
+
}> & Readonly<{
|
|
15
|
+
"onVisible-change"?: (visible: boolean) => any;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as IManager } from '../../../../utils/manager';
|
|
2
2
|
import { ComponentPublicInstance } from 'vue';
|
|
3
3
|
import { default as PageModelManager } from '../../constructor';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
4
|
+
export default class TopTabsManager extends IManager {
|
|
5
|
+
constructor();
|
|
6
|
+
register(manager: PageModelManager): void;
|
|
7
|
+
refreshPage(): void;
|
|
8
|
+
emitChange(): void;
|
|
9
|
+
getReqParams(): any;
|
|
10
|
+
onConfigUpdated(): void;
|
|
11
|
+
updateContext(context: ComponentPublicInstance): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as PageModelManager } from '../../constructor';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
5
|
+
tabs: PageModel.Tabs;
|
|
6
|
+
manager?: PageModelManager;
|
|
7
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
custom: (eventName: string, ...rest: any[]) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
10
|
+
tabs: PageModel.Tabs;
|
|
11
|
+
manager?: PageModelManager;
|
|
12
|
+
}> & Readonly<{
|
|
13
|
+
onCustom?: (eventName: string, ...rest: any[]) => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -5,160 +5,159 @@ import { default as SearchFormManager } from '../search-form/constructor';
|
|
|
5
5
|
import { default as TopTabsManager } from './components/top-tabs/constructor';
|
|
6
6
|
import { default as FormManager } from '../form/constructor';
|
|
7
7
|
import { default as Reflections } from '../../utils/reflect';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static
|
|
14
|
-
static request: PageModel.IRequest;
|
|
15
|
-
static
|
|
16
|
-
static errorHandler: PageModel.ErrorHandler;
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
20
|
-
static
|
|
21
|
-
static
|
|
22
|
-
static
|
|
23
|
-
static
|
|
24
|
-
static
|
|
25
|
-
static
|
|
26
|
-
static
|
|
27
|
-
static
|
|
28
|
-
static
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
*
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*
|
|
80
|
-
* @
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
*
|
|
100
|
-
* @
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
*
|
|
106
|
-
* @param
|
|
107
|
-
* @param
|
|
108
|
-
* @
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
8
|
+
export default class PageModelManager extends Reflections {
|
|
9
|
+
static _app: App<Element>;
|
|
10
|
+
static installOption: PageModel.InstallOptions;
|
|
11
|
+
static defaultConfig: PageModel.Config;
|
|
12
|
+
static setDefaultConfig(config: PageModel.Config): void;
|
|
13
|
+
static request: PageModel.IRequest;
|
|
14
|
+
static setRequest(request: PageModel.IRequest): void;
|
|
15
|
+
static errorHandler: PageModel.ErrorHandler;
|
|
16
|
+
static setErrorHandler(errorHandler: PageModel.ErrorHandler): void;
|
|
17
|
+
static textConfig: PageModel.TextConfig;
|
|
18
|
+
static setTextConfig(config: PageModel.TextConfig): void;
|
|
19
|
+
static globalPatches: PageModel.PatchConfigFn[];
|
|
20
|
+
static setGlobalPatches(patches: PageModel.PatchConfigFn[]): void;
|
|
21
|
+
static globalStyle: PageModel.GlobalStyle;
|
|
22
|
+
static setGlobalStyle(style: PageModel.GlobalStyle): void;
|
|
23
|
+
static excelExportConfig: PageModel.ExcelExportConfig;
|
|
24
|
+
static setExcelExportConfig(config: PageModel.ExcelExportConfig): void;
|
|
25
|
+
static userSetting: PageModel.UserSetting;
|
|
26
|
+
static setUserSettingConfig(config: PageModel.UserSetting): void;
|
|
27
|
+
static emptyTableComponent: Component;
|
|
28
|
+
static setEmptyTableComponent(config: Component): void;
|
|
29
|
+
/**
|
|
30
|
+
* 正在获取数据
|
|
31
|
+
*/
|
|
32
|
+
loadingData: boolean;
|
|
33
|
+
rawConfig: PageModel.UConfig;
|
|
34
|
+
updateRaw(config: PageModel.UConfig): void;
|
|
35
|
+
config: PageModel.UConfig;
|
|
36
|
+
context: ComponentPublicInstance;
|
|
37
|
+
children: IManager[];
|
|
38
|
+
_immediateGeted: boolean;
|
|
39
|
+
_firstUpdatedConfig: boolean;
|
|
40
|
+
tableManager: TableManager;
|
|
41
|
+
searchFormManager: SearchFormManager;
|
|
42
|
+
topTabsManager: TopTabsManager;
|
|
43
|
+
formManager: FormManager;
|
|
44
|
+
staticData: AnyObject;
|
|
45
|
+
/**
|
|
46
|
+
* id 唯一id
|
|
47
|
+
*/
|
|
48
|
+
id: number;
|
|
49
|
+
constructor();
|
|
50
|
+
updateContext(context: ComponentPublicInstance): void;
|
|
51
|
+
markComponentRaw(config: PageModel.UConfig): void;
|
|
52
|
+
/**
|
|
53
|
+
* 是否表格全屏
|
|
54
|
+
*/
|
|
55
|
+
isTableFullscreen: boolean;
|
|
56
|
+
updateConfig(config: PageModel.UConfig): void;
|
|
57
|
+
onFirstUpdateConfig(): void;
|
|
58
|
+
/**
|
|
59
|
+
* 更新映射数据源
|
|
60
|
+
* @param reflections
|
|
61
|
+
*/
|
|
62
|
+
updateReflections(reflections: PageModel.Reflections): void;
|
|
63
|
+
doImmediateRequest(): void;
|
|
64
|
+
onUpdated(): void;
|
|
65
|
+
updatedChildrenConfig(): void;
|
|
66
|
+
registerChildManager(managerName: any, manager: TableManager | SearchFormManager | TopTabsManager | FormManager): void;
|
|
67
|
+
handleSubmit(): Promise<boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* 上次请求数据
|
|
70
|
+
*/
|
|
71
|
+
lastReqData: any;
|
|
72
|
+
/**
|
|
73
|
+
* 请求取消函数
|
|
74
|
+
*/
|
|
75
|
+
_cancelFn: any;
|
|
76
|
+
doGetDataRequest(): Promise<boolean>;
|
|
77
|
+
/**
|
|
78
|
+
* 处理表格数据
|
|
79
|
+
* @param reqResult
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
proceessResult(reqResult: any): Promise<{
|
|
83
|
+
total: number;
|
|
84
|
+
list: any[];
|
|
85
|
+
}>;
|
|
86
|
+
treeResult(list: any[]): any[];
|
|
87
|
+
getListReqData(): AnyObject;
|
|
88
|
+
/**
|
|
89
|
+
* 获取处理后的提交请求列表数据
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
getListReqDataProcessed(): Promise<false | AnyObject>;
|
|
93
|
+
doDelRequest(row: AnyObject): Promise<boolean>;
|
|
94
|
+
getDelReqData(row: AnyObject): any;
|
|
95
|
+
doAddDataRequest(): Promise<boolean>;
|
|
96
|
+
doUpdDataRequest(): Promise<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* 模型普通更新 -- 只提交数据
|
|
99
|
+
* @param data 更新的数据
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
postUpdDataRequest(data: any): Promise<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* 基础更新方法
|
|
105
|
+
* @param api 更新的url
|
|
106
|
+
* @param method 更新的方法
|
|
107
|
+
* @param data 更新的数据
|
|
108
|
+
* @returns
|
|
109
|
+
*/
|
|
110
|
+
baseUpdDataRequest(api: string, method: PageModel.AjaxMethod, data: any): Promise<boolean>;
|
|
111
|
+
getSubmitFormData(formData: AnyObject, isValid?: boolean): Promise<false | AnyObject>;
|
|
112
|
+
doImportDataRequest(file: File): Promise<boolean>;
|
|
113
|
+
onFileUpload(file: File): void;
|
|
114
|
+
private static importInputId;
|
|
115
|
+
triggerImport(accept?: string): void;
|
|
116
|
+
getImportReqData(): AnyObject;
|
|
117
|
+
isTableSelecting: boolean;
|
|
118
|
+
updateTableSelecting(status: boolean): void;
|
|
119
|
+
updateStaticData(data: AnyObject): void;
|
|
120
|
+
getEventHandler(eventName: string): (this: PageModelManager, ...rest: any[]) => any;
|
|
121
|
+
loadingInstance: any;
|
|
122
|
+
loading(): void;
|
|
123
|
+
stopLoading(): void;
|
|
124
|
+
/**
|
|
125
|
+
* 授权按钮列表
|
|
126
|
+
*/
|
|
127
|
+
authButtons: string[];
|
|
128
|
+
/**
|
|
129
|
+
* 更新授权按钮
|
|
130
|
+
*/
|
|
131
|
+
updateAuthButtons(buttons: string[]): void;
|
|
132
|
+
/**
|
|
133
|
+
* 组件暴露的方法
|
|
134
|
+
*/
|
|
135
|
+
exposeActions: {
|
|
136
|
+
[key: string]: (...rest: any[]) => unknown;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* 筛选弹出框是否可见
|
|
140
|
+
*/
|
|
141
|
+
isFilterPopupVisible: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* 设置筛选弹出可见性
|
|
144
|
+
*/
|
|
145
|
+
updateFilterPopupVisible(visible: boolean): void;
|
|
146
|
+
/**
|
|
147
|
+
* 排序弹出框是否可见
|
|
148
|
+
*/
|
|
149
|
+
isSortPopupVisible: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* 设置排序弹出可见性
|
|
152
|
+
*/
|
|
153
|
+
updateSortPopupVisible(visible: boolean): void;
|
|
154
|
+
/**
|
|
155
|
+
* 行高弹出框是否可见
|
|
156
|
+
*/
|
|
157
|
+
isLineClampPopupVisible: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* 设置行高弹出可见性
|
|
160
|
+
*/
|
|
161
|
+
updateLineClampPopupVisible(visible: boolean): void;
|
|
162
|
+
destroy(): void;
|
|
163
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
2
|
+
declare const _default: {
|
|
3
|
+
install(app: App, options: PageModel.InstallOptions): void;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { default as PageModelManager } from './constructor';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
5
|
+
/**
|
|
6
|
+
* 页面配置
|
|
7
|
+
*/
|
|
8
|
+
config: PageModel.Config;
|
|
9
|
+
/**
|
|
10
|
+
* 外置数据源
|
|
11
|
+
*/
|
|
12
|
+
reflections?: PageModel.Reflections;
|
|
13
|
+
/**
|
|
14
|
+
* 高度
|
|
15
|
+
*/
|
|
16
|
+
height?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 静态数据
|
|
19
|
+
*/
|
|
20
|
+
staticData?: AnyObject;
|
|
21
|
+
/**
|
|
22
|
+
* 授权按钮列表
|
|
23
|
+
*/
|
|
24
|
+
authButtons?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* injectKey
|
|
27
|
+
*/
|
|
28
|
+
authButtonInjectKey?: string | symbol;
|
|
29
|
+
}, {
|
|
30
|
+
doTableLayout: () => void;
|
|
31
|
+
refreshTableData: () => Promise<boolean>;
|
|
32
|
+
resetTableData: () => Promise<boolean>;
|
|
33
|
+
emitCustomEvent: (eventName: string, ...rest: any[]) => void;
|
|
34
|
+
updateTableData: (data: any[]) => void;
|
|
35
|
+
getTableData: () => any[];
|
|
36
|
+
showImport: () => void;
|
|
37
|
+
trigTableToolboxEvent: (event: PageModel.ToolBoxEvent) => void;
|
|
38
|
+
applyConfig: () => void;
|
|
39
|
+
getSearchFormData: (isclone?: boolean) => any;
|
|
40
|
+
updateSearchFormData: (formData: AnyObject) => any;
|
|
41
|
+
doSearchFormLayout: () => void;
|
|
42
|
+
getListReqData: () => AnyObject;
|
|
43
|
+
getListReqDataProcessed: () => Promise<false | AnyObject>;
|
|
44
|
+
hideForm: (needLeaveConfirm?: boolean) => void;
|
|
45
|
+
showForm: () => void;
|
|
46
|
+
handleSubmitForm: () => Promise<void>;
|
|
47
|
+
handleAddEvent: () => void;
|
|
48
|
+
handleUpdEvent: (row: AnyObject, index: number) => void;
|
|
49
|
+
handleDelEvent: (row: AnyObject, index: number) => Promise<boolean>;
|
|
50
|
+
showFormClumnTool: () => void;
|
|
51
|
+
updateSelection: (selection: any[]) => void;
|
|
52
|
+
getSelection: () => any[];
|
|
53
|
+
getRadioData: () => AnyObject;
|
|
54
|
+
updateRadioData: (data: AnyObject) => void;
|
|
55
|
+
showExport: () => void;
|
|
56
|
+
clearSelection: () => void;
|
|
57
|
+
getRenderedEls: () => any;
|
|
58
|
+
exportDataToExcel: (opts: PageModel.TableDataExportModel) => void;
|
|
59
|
+
setFormTabsActiveName: (moduleName: string) => void;
|
|
60
|
+
manager: PageModelManager;
|
|
61
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
62
|
+
[x: string]: never;
|
|
63
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
64
|
+
/**
|
|
65
|
+
* 页面配置
|
|
66
|
+
*/
|
|
67
|
+
config: PageModel.Config;
|
|
68
|
+
/**
|
|
69
|
+
* 外置数据源
|
|
70
|
+
*/
|
|
71
|
+
reflections?: PageModel.Reflections;
|
|
72
|
+
/**
|
|
73
|
+
* 高度
|
|
74
|
+
*/
|
|
75
|
+
height?: string;
|
|
76
|
+
/**
|
|
77
|
+
* 静态数据
|
|
78
|
+
*/
|
|
79
|
+
staticData?: AnyObject;
|
|
80
|
+
/**
|
|
81
|
+
* 授权按钮列表
|
|
82
|
+
*/
|
|
83
|
+
authButtons?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* injectKey
|
|
86
|
+
*/
|
|
87
|
+
authButtonInjectKey?: string | symbol;
|
|
88
|
+
}> & Readonly<{
|
|
89
|
+
[x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
|
|
90
|
+
}>, {
|
|
91
|
+
height: string;
|
|
92
|
+
authButtons: string[];
|
|
93
|
+
config: PageModel.Config;
|
|
94
|
+
reflections: PageModel.Reflections;
|
|
95
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
96
|
+
'tabs-right'?: (props: {}) => any;
|
|
97
|
+
} & {
|
|
98
|
+
search?: (props: {}) => any;
|
|
99
|
+
} & {
|
|
100
|
+
'selectable-right'?: (props: {}) => any;
|
|
101
|
+
} & {
|
|
102
|
+
'main-header'?: (props: {}) => any;
|
|
103
|
+
} & {
|
|
104
|
+
table?: (props: {
|
|
105
|
+
data: any;
|
|
106
|
+
}) => any;
|
|
107
|
+
} & {
|
|
108
|
+
sum?: (props: {
|
|
109
|
+
data: any;
|
|
110
|
+
}) => any;
|
|
111
|
+
} & {
|
|
112
|
+
'form-bottom'?: (props: {}) => any;
|
|
113
|
+
}>;
|
|
114
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
115
|
+
new (): {
|
|
116
|
+
$slots: S;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchConfigUrl: (config: PageModel.Config) =>
|
|
2
|
-
export default patchConfigUrl;
|
|
1
|
+
declare const patchConfigUrl: (config: PageModel.Config) => any;
|
|
2
|
+
export default patchConfigUrl;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchDefaultConfig: (config: PageModel.Config) =>
|
|
2
|
-
export default patchDefaultConfig;
|
|
1
|
+
declare const patchDefaultConfig: (config: PageModel.Config) => any;
|
|
2
|
+
export default patchDefaultConfig;
|