@juzhenfe/page-model 3.21.13 → 3.22.1
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.es.js +9723 -14559
- package/dist/index.min.css +2 -1
- package/dist/index.umd.js +2 -7
- package/dist/{components → src/components}/buttons-renderer/utils/index.d.ts +2 -2
- package/dist/{components → src/components}/editable-table/index.d.ts +15 -14
- package/dist/{components → src/components}/form/components/column-tools/use-setting.d.ts +14 -14
- package/dist/src/components/form/components/section-config/merge.d.ts +3 -0
- package/dist/src/components/form/components/section-config/use.d.ts +14 -0
- package/dist/{components → src/components}/form/constructor.d.ts +83 -82
- package/dist/{components → src/components}/form/index.d.ts +5 -4
- package/dist/{components → src/components}/form/utils/save-columns.d.ts +30 -30
- package/dist/{components → src/components}/form/utils/use-form-els.d.ts +4 -4
- package/dist/{components → src/components}/form-dialog/use-move.d.ts +19 -19
- package/dist/{components → src/components}/page-model/components/top-tabs/constructor.d.ts +12 -11
- package/dist/{components → src/components}/page-model/constructor.d.ts +163 -162
- package/dist/{components → src/components}/page-model/index.d.ts +6 -5
- package/dist/{components → src/components}/page-model/patches/patch-config-urls.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-default-config.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-selectable.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-size.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-table-dragable.d.ts +2 -2
- package/dist/{components → src/components}/page-model/patches/patch-user-config.d.ts +2 -2
- package/dist/{components → src/components}/page-model/utils/default-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-excel-export-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-style-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-text-config.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/default-user-setting.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/error-handler.d.ts +1 -1
- package/dist/{components → src/components}/page-model/utils/manager-controller.d.ts +49 -51
- package/dist/{components → src/components}/page-model/utils/patch-config.d.ts +3 -2
- package/dist/{components → src/components}/page-model/utils/use-auth-buttons.d.ts +9 -8
- package/dist/{components → src/components}/page-model/utils/use-keyboard-event.d.ts +9 -9
- package/dist/{components → src/components}/search-form/constructor.d.ts +24 -23
- package/dist/{components → src/components}/search-form/use-detect-item-width.d.ts +7 -6
- package/dist/{components → src/components}/table/components/column-tools/use-setting.d.ts +14 -14
- package/dist/{components → src/components}/table/components/column-tools/use-user-config.d.ts +14 -14
- package/dist/{components → src/components}/table/components/column-tools/use-user-show-row-config.d.ts +35 -35
- package/dist/{components → src/components}/table/components/export-form/use.d.ts +18 -17
- package/dist/{components → src/components}/table/components/selections-table/use.d.ts +15 -15
- package/dist/{components → src/components}/table/components/table-column/components/filter-zone/utils/index.d.ts +69 -69
- package/dist/{components → src/components}/table/constructor.d.ts +347 -339
- package/dist/{components → src/components}/table/utils/save-column-filter.d.ts +2 -2
- package/dist/{components → src/components}/table/utils/save-column-sort.d.ts +2 -2
- package/dist/{components → src/components}/table/utils/save-columns.d.ts +38 -38
- package/dist/{components → src/components}/table/utils/save-config.d.ts +6 -6
- package/dist/{components → src/components}/table/utils/use-column-drag.d.ts +8 -8
- package/dist/{components → src/components}/table/utils/use-listen-scroll.d.ts +7 -9
- package/dist/{components → src/components}/table/utils/use-static-summary.d.ts +13 -15
- package/dist/{components → src/components}/table/utils/use-table-config-change.d.ts +7 -9
- package/dist/{components → src/components}/table/utils/use-table-els.d.ts +6 -8
- package/dist/{main.d.ts → src/main.d.ts} +22 -21
- package/dist/{utils → src/utils}/config-saver.d.ts +51 -51
- package/dist/{utils → src/utils}/define-config.d.ts +3 -2
- package/dist/{utils → src/utils}/event-chain.d.ts +9 -9
- package/dist/{utils → src/utils}/event-emitter.d.ts +7 -7
- package/dist/{utils → src/utils}/index.d.ts +103 -102
- package/dist/src/utils/infinite-table.d.ts +49 -0
- package/dist/{utils → src/utils}/manager.d.ts +17 -16
- package/dist/{utils → src/utils}/provide-keys.d.ts +20 -20
- package/dist/{utils → src/utils}/reflect/index.d.ts +17 -16
- package/dist/{utils → src/utils}/reflect/reflect-collector.d.ts +25 -25
- package/dist/{utils → src/utils}/resize.d.ts +4 -3
- package/package.json +5 -6
- package/dist/components/buttons-renderer/components/button-item-render/index.vue.d.ts +0 -35
- package/dist/components/buttons-renderer/index.vue.d.ts +0 -85
- package/dist/components/column-filter-tools/index.vue.d.ts +0 -148
- package/dist/components/column-sort-tools/index.vue.d.ts +0 -170
- package/dist/components/draggable-list/index.vue.d.ts +0 -39
- package/dist/components/editable-table/components/table-cell/index.vue.d.ts +0 -12
- package/dist/components/form/components/col-container/components/module-container/index.vue.d.ts +0 -156
- package/dist/components/form/components/col-container/components/section-title-els/index.vue.d.ts +0 -45
- package/dist/components/form/components/col-container/components/tabs-mode-container/index.vue.d.ts +0 -100
- package/dist/components/form/components/col-container/index.vue.d.ts +0 -236
- package/dist/components/form/components/container-component/index.vue.d.ts +0 -281
- package/dist/components/form/type.d.ts +0 -167
- package/dist/components/form-container/components/dialog-mode/index.vue.d.ts +0 -116
- package/dist/components/form-container/components/drawer-mode/index.vue.d.ts +0 -123
- package/dist/components/form-container/components/full-page/index.vue.d.ts +0 -39
- package/dist/components/form-container/index.vue.d.ts +0 -35
- package/dist/components/form-dialog/index.vue.d.ts +0 -79
- package/dist/components/form-drawer/index.vue.d.ts +0 -83
- package/dist/components/form-item-renderer/index.vue.d.ts +0 -74
- package/dist/components/line-clamp-tools/index.vue.d.ts +0 -103
- package/dist/components/normal-tab/index.vue.d.ts +0 -35
- package/dist/components/normal-tab/type.d.ts +0 -18
- package/dist/components/page-model/components/selectable-operate/index.vue.d.ts +0 -120
- package/dist/components/page-model/components/top-tabs/index.vue.d.ts +0 -42
- package/dist/components/page-model/components/top-tabs/type.d.ts +0 -11
- package/dist/components/page-model/index.vue.d.ts +0 -2
- package/dist/components/page-model/type.d.ts +0 -344
- package/dist/components/scenes-tab/index.vue.d.ts +0 -4
- package/dist/components/scenes-tab/type.d.ts +0 -14
- package/dist/components/search-form/components/search-form-full/index.vue.d.ts +0 -174
- package/dist/components/search-form/type.d.ts +0 -42
- package/dist/components/simple-popover/index.vue.d.ts +0 -68
- package/dist/components/table/components/context-column-summary/index.vue.d.ts +0 -102
- package/dist/components/table/components/context-menu/index.vue.d.ts +0 -184
- package/dist/components/table/components/empty-data/index.vue.d.ts +0 -12
- package/dist/components/table/components/selections-table/index.vue.d.ts +0 -2
- package/dist/components/table/components/table-column/components/filter-zone/index.vue.d.ts +0 -109
- package/dist/components/table/components/table-column/index.vue.d.ts +0 -339
- package/dist/components/table/components/table-wrap/index.vue.d.ts +0 -16
- package/dist/components/table/index.vue.d.ts +0 -2
- package/dist/components/table/type.d.ts +0 -360
- package/dist/components/table-cell-renderer/index.vue.d.ts +0 -57
- package/dist/components/table-toolsbox/index.vue.d.ts +0 -101
- package/dist/types/common.d.ts +0 -484
- package/dist/types/form-item-types/cascader.d.ts +0 -38
- package/dist/types/form-item-types/checkbox-group.d.ts +0 -19
- package/dist/types/form-item-types/color-picker.d.ts +0 -21
- package/dist/types/form-item-types/date-picker.d.ts +0 -46
- package/dist/types/form-item-types/input-number.d.ts +0 -15
- package/dist/types/form-item-types/input.d.ts +0 -16
- package/dist/types/form-item-types/jz-a-map.d.ts +0 -14
- package/dist/types/form-item-types/jz-cascader.d.ts +0 -20
- package/dist/types/form-item-types/jz-city-picker.d.ts +0 -27
- package/dist/types/form-item-types/jz-ck-editor.d.ts +0 -27
- package/dist/types/form-item-types/jz-editor.d.ts +0 -20
- package/dist/types/form-item-types/jz-file-upload.d.ts +0 -20
- package/dist/types/form-item-types/jz-img-upload.d.ts +0 -23
- package/dist/types/form-item-types/jz-long-input.d.ts +0 -10
- package/dist/types/form-item-types/jz-td-map.d.ts +0 -13
- package/dist/types/form-item-types/no-e-type.d.ts +0 -12
- package/dist/types/form-item-types/radio-group.d.ts +0 -17
- package/dist/types/form-item-types/rate.d.ts +0 -30
- package/dist/types/form-item-types/select-v2.d.ts +0 -47
- package/dist/types/form-item-types/select.d.ts +0 -43
- package/dist/types/form-item-types/slider.d.ts +0 -31
- package/dist/types/form-item-types/switch.d.ts +0 -14
- package/dist/types/form-item-types/time-picker.d.ts +0 -41
- package/dist/types/form-item-types/time-select.d.ts +0 -30
- package/dist/types/renderer.d.ts +0 -9
- package/dist/types/shims-vue-property.d.ts +0 -7
- package/dist/types/shims-vue.d.ts +0 -7
- package/dist/types/window.d.ts +0 -10
|
@@ -1,163 +1,164 @@
|
|
|
1
|
-
import IManager from '../../utils/manager';
|
|
1
|
+
import { default as IManager } from '../../utils/manager';
|
|
2
2
|
import { App, Component, ComponentPublicInstance } from 'vue';
|
|
3
|
-
import TableManager from '../table/constructor';
|
|
4
|
-
import SearchFormManager from '../search-form/constructor';
|
|
5
|
-
import TopTabsManager from './components/top-tabs/constructor';
|
|
6
|
-
import FormManager from '../form/constructor';
|
|
7
|
-
import Reflections from '../../utils/reflect';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static
|
|
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
|
-
config: PageModel.UConfig;
|
|
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
|
-
|
|
3
|
+
import { default as TableManager } from '../table/constructor';
|
|
4
|
+
import { default as SearchFormManager } from '../search-form/constructor';
|
|
5
|
+
import { default as TopTabsManager } from './components/top-tabs/constructor';
|
|
6
|
+
import { default as FormManager } from '../form/constructor';
|
|
7
|
+
import { default as Reflections } from '../../utils/reflect';
|
|
8
|
+
|
|
9
|
+
export default class PageModelManager extends Reflections {
|
|
10
|
+
static _app: App<Element>;
|
|
11
|
+
static installOption: PageModel.InstallOptions;
|
|
12
|
+
static defaultConfig: PageModel.Config;
|
|
13
|
+
static setDefaultConfig(config: PageModel.Config): void;
|
|
14
|
+
static request: PageModel.IRequest;
|
|
15
|
+
static setRequest(request: PageModel.IRequest): void;
|
|
16
|
+
static errorHandler: PageModel.ErrorHandler;
|
|
17
|
+
static setErrorHandler(errorHandler: PageModel.ErrorHandler): void;
|
|
18
|
+
static textConfig: PageModel.TextConfig;
|
|
19
|
+
static setTextConfig(config: PageModel.TextConfig): void;
|
|
20
|
+
static globalPatches: PageModel.PatchConfigFn[];
|
|
21
|
+
static setGlobalPatches(patches: PageModel.PatchConfigFn[]): void;
|
|
22
|
+
static globalStyle: PageModel.GlobalStyle;
|
|
23
|
+
static setGlobalStyle(style: PageModel.GlobalStyle): void;
|
|
24
|
+
static excelExportConfig: PageModel.ExcelExportConfig;
|
|
25
|
+
static setExcelExportConfig(config: PageModel.ExcelExportConfig): void;
|
|
26
|
+
static userSetting: PageModel.UserSetting;
|
|
27
|
+
static setUserSettingConfig(config: PageModel.UserSetting): void;
|
|
28
|
+
static emptyTableComponent: Component;
|
|
29
|
+
static setEmptyTableComponent(config: Component): void;
|
|
30
|
+
/**
|
|
31
|
+
* 正在获取数据
|
|
32
|
+
*/
|
|
33
|
+
loadingData: boolean;
|
|
34
|
+
rawConfig: PageModel.UConfig;
|
|
35
|
+
updateRaw(config: PageModel.UConfig): void;
|
|
36
|
+
config: PageModel.UConfig;
|
|
37
|
+
context: ComponentPublicInstance;
|
|
38
|
+
children: IManager[];
|
|
39
|
+
_immediateGeted: boolean;
|
|
40
|
+
_firstUpdatedConfig: boolean;
|
|
41
|
+
tableManager: TableManager;
|
|
42
|
+
searchFormManager: SearchFormManager;
|
|
43
|
+
topTabsManager: TopTabsManager;
|
|
44
|
+
formManager: FormManager;
|
|
45
|
+
staticData: AnyObject;
|
|
46
|
+
/**
|
|
47
|
+
* id 唯一id
|
|
48
|
+
*/
|
|
49
|
+
id: number;
|
|
50
|
+
constructor();
|
|
51
|
+
updateContext(context: ComponentPublicInstance): void;
|
|
52
|
+
markComponentRaw(config: PageModel.UConfig): void;
|
|
53
|
+
/**
|
|
54
|
+
* 是否表格全屏
|
|
55
|
+
*/
|
|
56
|
+
isTableFullscreen: boolean;
|
|
57
|
+
updateConfig(config: PageModel.UConfig): void;
|
|
58
|
+
onFirstUpdateConfig(): void;
|
|
59
|
+
/**
|
|
60
|
+
* 更新映射数据源
|
|
61
|
+
* @param reflections
|
|
62
|
+
*/
|
|
63
|
+
updateReflections(reflections: PageModel.Reflections): void;
|
|
64
|
+
doImmediateRequest(): void;
|
|
65
|
+
onUpdated(): void;
|
|
66
|
+
updatedChildrenConfig(): void;
|
|
67
|
+
registerChildManager(managerName: any, manager: TableManager | SearchFormManager | TopTabsManager | FormManager): void;
|
|
68
|
+
handleSubmit(): Promise<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* 上次请求数据
|
|
71
|
+
*/
|
|
72
|
+
lastReqData: any;
|
|
73
|
+
/**
|
|
74
|
+
* 请求取消函数
|
|
75
|
+
*/
|
|
76
|
+
_cancelFn: any;
|
|
77
|
+
doGetDataRequest(): Promise<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* 处理表格数据
|
|
80
|
+
* @param reqResult
|
|
81
|
+
* @returns
|
|
82
|
+
*/
|
|
83
|
+
proceessResult(reqResult: any): Promise<{
|
|
84
|
+
total: number;
|
|
85
|
+
list: any[];
|
|
86
|
+
}>;
|
|
87
|
+
treeResult(list: any[]): any[];
|
|
88
|
+
getListReqData(): AnyObject;
|
|
89
|
+
/**
|
|
90
|
+
* 获取处理后的提交请求列表数据
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
getListReqDataProcessed(): Promise<false | AnyObject>;
|
|
94
|
+
doDelRequest(row: AnyObject): Promise<boolean>;
|
|
95
|
+
getDelReqData(row: AnyObject): any;
|
|
96
|
+
doAddDataRequest(): Promise<boolean>;
|
|
97
|
+
doUpdDataRequest(): Promise<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* 模型普通更新 -- 只提交数据
|
|
100
|
+
* @param data 更新的数据
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
postUpdDataRequest(data: any): Promise<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* 基础更新方法
|
|
106
|
+
* @param api 更新的url
|
|
107
|
+
* @param method 更新的方法
|
|
108
|
+
* @param data 更新的数据
|
|
109
|
+
* @returns
|
|
110
|
+
*/
|
|
111
|
+
baseUpdDataRequest(api: string, method: PageModel.AjaxMethod, data: any): Promise<boolean>;
|
|
112
|
+
getSubmitFormData(formData: AnyObject, isValid?: boolean): Promise<false | AnyObject>;
|
|
113
|
+
doImportDataRequest(file: File): Promise<boolean>;
|
|
114
|
+
onFileUpload(file: File): void;
|
|
115
|
+
private static importInputId;
|
|
116
|
+
triggerImport(accept?: string): void;
|
|
117
|
+
getImportReqData(): AnyObject;
|
|
118
|
+
isTableSelecting: boolean;
|
|
119
|
+
updateTableSelecting(status: boolean): void;
|
|
120
|
+
updateStaticData(data: AnyObject): void;
|
|
121
|
+
getEventHandler(eventName: string): (this: PageModelManager, ...rest: any[]) => any;
|
|
122
|
+
loadingInstance: any;
|
|
123
|
+
loading(): void;
|
|
124
|
+
stopLoading(): void;
|
|
125
|
+
/**
|
|
126
|
+
* 授权按钮列表
|
|
127
|
+
*/
|
|
128
|
+
authButtons: string[];
|
|
129
|
+
/**
|
|
130
|
+
* 更新授权按钮
|
|
131
|
+
*/
|
|
132
|
+
updateAuthButtons(buttons: string[]): void;
|
|
133
|
+
/**
|
|
134
|
+
* 组件暴露的方法
|
|
135
|
+
*/
|
|
136
|
+
exposeActions: {
|
|
137
|
+
[key: string]: (...rest: any[]) => unknown;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* 筛选弹出框是否可见
|
|
141
|
+
*/
|
|
142
|
+
isFilterPopupVisible: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* 设置筛选弹出可见性
|
|
145
|
+
*/
|
|
146
|
+
updateFilterPopupVisible(visible: boolean): void;
|
|
147
|
+
/**
|
|
148
|
+
* 排序弹出框是否可见
|
|
149
|
+
*/
|
|
150
|
+
isSortPopupVisible: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* 设置排序弹出可见性
|
|
153
|
+
*/
|
|
154
|
+
updateSortPopupVisible(visible: boolean): void;
|
|
155
|
+
/**
|
|
156
|
+
* 行高弹出框是否可见
|
|
157
|
+
*/
|
|
158
|
+
isLineClampPopupVisible: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* 设置行高弹出可见性
|
|
161
|
+
*/
|
|
162
|
+
updateLineClampPopupVisible(visible: boolean): void;
|
|
163
|
+
destroy(): void;
|
|
164
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import PageModel from './index.vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { default as PageModel } from './index.vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: {
|
|
5
|
+
install(app: App, options: PageModel.InstallOptions): void;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchConfigUrl: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
-
export default patchConfigUrl;
|
|
1
|
+
declare const patchConfigUrl: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
+
export default patchConfigUrl;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchDefaultConfig: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
-
export default patchDefaultConfig;
|
|
1
|
+
declare const patchDefaultConfig: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
+
export default patchDefaultConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchSelectable: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
-
export default patchSelectable;
|
|
1
|
+
declare const patchSelectable: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
+
export default patchSelectable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchConfigSize: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
-
export default patchConfigSize;
|
|
1
|
+
declare const patchConfigSize: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
+
export default patchConfigSize;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchSelectable: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
-
export default patchSelectable;
|
|
1
|
+
declare const patchSelectable: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
+
export default patchSelectable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const patchUserConfig: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
-
export default patchUserConfig;
|
|
1
|
+
declare const patchUserConfig: (config: PageModel.Config) => PageModel.Config<AnyObject, any>;
|
|
2
|
+
export default patchUserConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getPageModelDefaultConfig: () => PageModel.Config;
|
|
1
|
+
export declare const getPageModelDefaultConfig: () => PageModel.Config;
|
package/dist/{components → src/components}/page-model/utils/default-excel-export-config.d.ts
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getDefaultExcelExportConfig: () => PageModel.ExcelExportConfig;
|
|
1
|
+
export declare const getDefaultExcelExportConfig: () => PageModel.ExcelExportConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getDefaultGlobalStyleConfig: () => PageModel.GlobalStyle;
|
|
1
|
+
export declare const getDefaultGlobalStyleConfig: () => PageModel.GlobalStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getDefaultTextConfig: () => PageModel.TextConfig;
|
|
1
|
+
export declare const getDefaultTextConfig: () => PageModel.TextConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getDefaultUserSettingConfig: () => PageModel.UserSetting;
|
|
1
|
+
export declare const getDefaultUserSettingConfig: () => PageModel.UserSetting;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function defaultErrorHandler(error: Error): void;
|
|
1
|
+
export default function defaultErrorHandler(error: Error): void;
|
|
@@ -1,51 +1,49 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
declare const managerController: ManagerController;
|
|
51
|
-
export default managerController;
|
|
1
|
+
import { default as PageModelManager } from '../constructor';
|
|
2
|
+
|
|
3
|
+
declare class ManagerController {
|
|
4
|
+
/**
|
|
5
|
+
* 初始的managerId
|
|
6
|
+
*/
|
|
7
|
+
private _id;
|
|
8
|
+
/**
|
|
9
|
+
* 当前激活的managerId
|
|
10
|
+
*/
|
|
11
|
+
private currentManagerId;
|
|
12
|
+
/**
|
|
13
|
+
* managers
|
|
14
|
+
*/
|
|
15
|
+
private managers;
|
|
16
|
+
/**
|
|
17
|
+
* 获取一个managerId
|
|
18
|
+
*/
|
|
19
|
+
getManagerId(): number;
|
|
20
|
+
/**
|
|
21
|
+
* 获取一个manager
|
|
22
|
+
*/
|
|
23
|
+
getManager(id: number): PageModelManager;
|
|
24
|
+
/**
|
|
25
|
+
* 获取当前激活的manager
|
|
26
|
+
*/
|
|
27
|
+
getCurrentManager(): PageModelManager;
|
|
28
|
+
/**
|
|
29
|
+
* 获取当前激活的managerId
|
|
30
|
+
*/
|
|
31
|
+
getCurrentManagerId(): number;
|
|
32
|
+
/**
|
|
33
|
+
* 设置当前激活的managerId
|
|
34
|
+
*/
|
|
35
|
+
setCurrentManagerId(id: number): void;
|
|
36
|
+
/**
|
|
37
|
+
* 注册一个manager
|
|
38
|
+
*/
|
|
39
|
+
register(manager: PageModelManager): void;
|
|
40
|
+
/**
|
|
41
|
+
* 销毁一个manager
|
|
42
|
+
*/
|
|
43
|
+
destroy(id: number): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* 全局managerl管理器
|
|
47
|
+
*/
|
|
48
|
+
declare const managerController: ManagerController;
|
|
49
|
+
export default managerController;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import PageModelManager from
|
|
2
|
-
|
|
1
|
+
import { default as PageModelManager } from '../constructor';
|
|
2
|
+
|
|
3
|
+
export default function patchConfig(this: PageModelManager, config: PageModel.Config, patches: PageModel.PatchConfigFn[]): any;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Ref } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 使用授权按钮
|
|
5
|
+
*/
|
|
6
|
+
declare function useAuthButtons(props: any, injectValue?: string[] | Ref<string[]>): {
|
|
7
|
+
authButtons: import('vue').ComputedRef<any>;
|
|
8
|
+
};
|
|
9
|
+
export { useAuthButtons };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 监听键盘事件
|
|
3
|
-
* @returns
|
|
4
|
-
*/
|
|
5
|
-
export declare const useKeyBoardEvent: () => {
|
|
6
|
-
useKeyboardEvents: {
|
|
7
|
-
onMouseenter: (...rest: any[]) => void;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 监听键盘事件
|
|
3
|
+
* @returns
|
|
4
|
+
*/
|
|
5
|
+
export declare const useKeyBoardEvent: () => {
|
|
6
|
+
useKeyboardEvents: {
|
|
7
|
+
onMouseenter: (...rest: any[]) => void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import IManager from '../../utils/manager';
|
|
1
|
+
import { default as IManager } from '../../utils/manager';
|
|
2
2
|
import { ComponentPublicInstance } from 'vue';
|
|
3
|
-
import PageModelManager from '../page-model/constructor';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get
|
|
11
|
-
get
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
3
|
+
import { default as PageModelManager } from '../page-model/constructor';
|
|
4
|
+
|
|
5
|
+
export default class SearchFormManager extends IManager {
|
|
6
|
+
propsConfig?: PageModel.SearchForm;
|
|
7
|
+
formData: AnyObject;
|
|
8
|
+
isExpanded: boolean;
|
|
9
|
+
constructor(form?: PageModel.SearchForm);
|
|
10
|
+
get form(): PageModel.SearchForm<any, any>;
|
|
11
|
+
get size(): PageModel.Size;
|
|
12
|
+
get expandMode(): PageModel.SearchFormExpandMode;
|
|
13
|
+
refreshPage(): void;
|
|
14
|
+
getReqParams(): {};
|
|
15
|
+
init(): void;
|
|
16
|
+
getInitialFormData(): {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
};
|
|
19
|
+
setInitialFormData(): void;
|
|
20
|
+
toggleExpand(): void;
|
|
21
|
+
updateContext(context: ComponentPublicInstance): void;
|
|
22
|
+
isUpdateConfig: boolean;
|
|
23
|
+
onConfigUpdated(): void;
|
|
24
|
+
register(manager: PageModelManager): void;
|
|
25
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const useDetectItemWidth: (searchFormRef: Ref<HTMLDivElement>, totalShowFormEls: any[]) => {
|
|
4
|
+
showFormELsCount: Ref<number, number>;
|
|
5
|
+
showMoreButton: Ref<boolean, boolean>;
|
|
6
|
+
doSearchFormLayout: () => void;
|
|
7
|
+
};
|