@juzhenfe/page-model 3.21.14 → 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 -14542
- 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 -338
- 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,344 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../types/common.d.ts" />
|
|
2
|
-
/// <reference path="./components/top-tabs/type.d.ts" />
|
|
3
|
-
/// <reference path="../search-form/type.d.ts" />
|
|
4
|
-
/// <reference path="../table/type.d.ts" />
|
|
5
|
-
/// <reference path="../form/type.d.ts" />
|
|
6
|
-
|
|
7
|
-
import ReflectRelation from "../../utils/reflect/reflect-collector";
|
|
8
|
-
import { Component, WatchStopHandle } from "vue";
|
|
9
|
-
import FormManager from "../form/constructor";
|
|
10
|
-
import SearchFormManager from "../search-form/constructor";
|
|
11
|
-
import PageModelManager from "./constructor";
|
|
12
|
-
|
|
13
|
-
declare global {
|
|
14
|
-
namespace PageModel {
|
|
15
|
-
|
|
16
|
-
type Size = 'large' | 'default' | 'small'
|
|
17
|
-
|
|
18
|
-
type UrlMode = 'path' | 'params'
|
|
19
|
-
|
|
20
|
-
type AjaxMethod = 'get' | 'post' | 'delete' | 'put' | 'patch' | 'head' | 'options' | 'connect' | 'trace'
|
|
21
|
-
|
|
22
|
-
type ExportMode = 'get' | 'build'
|
|
23
|
-
|
|
24
|
-
type RequestProcessFn<CTX = any> = (this: CTX, ...rest: any[]) => any;
|
|
25
|
-
|
|
26
|
-
type GetReqResultProcessFn<CTX = any> = (this: CTX, ...rest: any[]) => {
|
|
27
|
-
total: number;
|
|
28
|
-
list: any[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* 可能返回promise的函数
|
|
33
|
-
*/
|
|
34
|
-
type MayBeAPromiseFn<T extends (...args: any[]) => any> = T | ((...args: Parameters<T>) => Promise<ReturnType<T>>)
|
|
35
|
-
|
|
36
|
-
type PatchConfigFn = {
|
|
37
|
-
(this: PageModelManager, config: PageModel.Config | PageModel.UConfig): PageModel.Config | PageModel.UConfig
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type InnerPatchName = 'serverFormErrorHandler'
|
|
41
|
-
|
|
42
|
-
type Patch = InnerPatchName | PatchConfigFn
|
|
43
|
-
|
|
44
|
-
type Reflections = {
|
|
45
|
-
[key: string]: any[];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
type TreeProps = {
|
|
49
|
-
id: string;
|
|
50
|
-
pId: string;
|
|
51
|
-
children?: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type ReflectWatches = WatchStopHandle[] & {
|
|
55
|
-
reflect: ReflectRelation
|
|
56
|
-
}
|
|
57
|
-
type Config<MODEL = AnyObject, EXTENDS = any> = {
|
|
58
|
-
// 模块名称
|
|
59
|
-
name?: string;
|
|
60
|
-
/**
|
|
61
|
-
* 启用按钮权限
|
|
62
|
-
*/
|
|
63
|
-
openAuthButton?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* 是否在config准备完毕后直接获取数据
|
|
66
|
-
*/
|
|
67
|
-
getImmediate?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* 是否开启外置数据反射
|
|
70
|
-
*/
|
|
71
|
-
reflect?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* 全局设置尺寸
|
|
74
|
-
*/
|
|
75
|
-
size?: Size;
|
|
76
|
-
/**
|
|
77
|
-
* 阴影
|
|
78
|
-
*/
|
|
79
|
-
shadow?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* 键盘事件
|
|
82
|
-
*/
|
|
83
|
-
keyboardEvents?: {
|
|
84
|
-
[key: string]: (this: PageModelManager, e: KeyboardEvent) => any;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 基请求地址,增删改查接口基于此url构建restful风格地址
|
|
89
|
-
*/
|
|
90
|
-
url?: string;
|
|
91
|
-
/**
|
|
92
|
-
* 删除接口、详情接口参数构建方式,path参与路径,params参数请求
|
|
93
|
-
*/
|
|
94
|
-
urlMode?: UrlMode;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* 获取API地址
|
|
98
|
-
*/
|
|
99
|
-
getUrl?: string;
|
|
100
|
-
/**
|
|
101
|
-
* 获取method
|
|
102
|
-
*/
|
|
103
|
-
getMethod?: AjaxMethod;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* 自定义获取器
|
|
107
|
-
*/
|
|
108
|
-
customGetter?: MayBeAPromiseFn<(this: PageModelManager, reqParams: AnyObject) => {
|
|
109
|
-
total: number;
|
|
110
|
-
data: MODEL[];
|
|
111
|
-
}>
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* 获取的其他参数
|
|
115
|
-
*/
|
|
116
|
-
otherParams?: AnyObject;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* 列表接口请求前回调
|
|
120
|
-
*/
|
|
121
|
-
beforeGetRequest?: (this: PageModelManager, reqParams: AnyObject) => void;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* 获取的数据拿取方式(处理不同请求返回数据列表的方法)
|
|
125
|
-
*/
|
|
126
|
-
getReqResultProcessFn?: MayBeAPromiseFn<GetReqResultProcessFn<PageModelManager>>
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* 请求参数回调处理
|
|
130
|
-
* @param this
|
|
131
|
-
* @param data 列表数据
|
|
132
|
-
* @returns 列表数据
|
|
133
|
-
*/
|
|
134
|
-
getDataCallback?: (this: PageModelManager, data: MODEL[]) => ExtendKeys<MODEL>[];
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 树形数据配置
|
|
138
|
-
*/
|
|
139
|
-
treeProps?: TreeProps;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 删除地址
|
|
143
|
-
*/
|
|
144
|
-
delUrl?: string;
|
|
145
|
-
/**
|
|
146
|
-
* 从row中获取删除参数的key
|
|
147
|
-
*/
|
|
148
|
-
delKey?: keyof MODEL;
|
|
149
|
-
/**
|
|
150
|
-
* 删除参数的rowKey键名称
|
|
151
|
-
*/
|
|
152
|
-
delParamsKey?: keyof MODEL;
|
|
153
|
-
/**
|
|
154
|
-
* 删除method
|
|
155
|
-
*/
|
|
156
|
-
delMethod?: AjaxMethod;
|
|
157
|
-
/**
|
|
158
|
-
* 删除参数
|
|
159
|
-
*/
|
|
160
|
-
delParams?: AnyObject | ((this: PageModelManager, data: MODEL) => AnyObject);
|
|
161
|
-
/**
|
|
162
|
-
* 删除的参数处理方法
|
|
163
|
-
*/
|
|
164
|
-
delReqDataProcessFn?: RequestProcessFn;
|
|
165
|
-
/**
|
|
166
|
-
* 删除的数据拿取方式
|
|
167
|
-
*/
|
|
168
|
-
delReqResultProcessFn?: RequestProcessFn;
|
|
169
|
-
|
|
170
|
-
// 更新地址
|
|
171
|
-
updUrl?: string;
|
|
172
|
-
// 更新方法
|
|
173
|
-
updMethod?: AjaxMethod;
|
|
174
|
-
// 更新的数据拿取方式
|
|
175
|
-
updReqResultProcessFn?: RequestProcessFn;
|
|
176
|
-
|
|
177
|
-
// 新增地址
|
|
178
|
-
addUrl?: string;
|
|
179
|
-
// 新增方法
|
|
180
|
-
addMethod?: AjaxMethod;
|
|
181
|
-
// 新增的数据拿取方式
|
|
182
|
-
addReqResultProcessFn?: RequestProcessFn;
|
|
183
|
-
// 新增按钮的样式
|
|
184
|
-
addButton?: Pick<Button, 'text' | 'props'>;
|
|
185
|
-
// 新增按钮是否放置在多选操作
|
|
186
|
-
addButtonInSelectButtonsArea?: boolean;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* 详情地址
|
|
190
|
-
*/
|
|
191
|
-
detailUrl?: string;
|
|
192
|
-
/**
|
|
193
|
-
* 提取详情参数的rowKey键名称
|
|
194
|
-
*/
|
|
195
|
-
detailKey?: keyof MODEL;
|
|
196
|
-
/**
|
|
197
|
-
* 详情请求参数的rowKey键名称
|
|
198
|
-
*/
|
|
199
|
-
detailParamsKey?: keyof MODEL;
|
|
200
|
-
/**
|
|
201
|
-
* 详情method
|
|
202
|
-
*/
|
|
203
|
-
detailMethod?: string;
|
|
204
|
-
// 详情的参数获取方式
|
|
205
|
-
detailReqDataProcessFn?: RequestProcessFn;
|
|
206
|
-
// 详情的数据拿取方式
|
|
207
|
-
detailReqResultProcessFn?: RequestProcessFn;
|
|
208
|
-
// 详情是否显示记载中
|
|
209
|
-
detailLoading?: boolean;
|
|
210
|
-
// 是否使用详情
|
|
211
|
-
useDetail?: boolean;
|
|
212
|
-
|
|
213
|
-
// 导入地址
|
|
214
|
-
importUrl?: string;
|
|
215
|
-
// 导入方法
|
|
216
|
-
importMethod?: AjaxMethod;
|
|
217
|
-
// 导入文件名称
|
|
218
|
-
importFileKey?: string;
|
|
219
|
-
// 导入参数
|
|
220
|
-
importParams?: AnyObject | ((this: any, data: MODEL) => AnyObject);
|
|
221
|
-
|
|
222
|
-
// 导出地址
|
|
223
|
-
exportUrl?: string;
|
|
224
|
-
// 导出的模式 后端构建 get 或者 前端构建 build
|
|
225
|
-
exportMode?: ExportMode;
|
|
226
|
-
// 导出参数
|
|
227
|
-
exportParams?: AnyObject | ((this: any, data: MODEL) => AnyObject);
|
|
228
|
-
|
|
229
|
-
// 补丁,可以对config进行处理
|
|
230
|
-
patches?: Patch[];
|
|
231
|
-
|
|
232
|
-
// 顶部布局参数,包含tab栏等
|
|
233
|
-
tabs?: Tabs;
|
|
234
|
-
|
|
235
|
-
// config事件
|
|
236
|
-
events?: {
|
|
237
|
-
[key: string]: (this: PageModelManager, ...rest: any[]) => any;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// 搜索表单
|
|
241
|
-
searchForm?: SearchForm<MODEL, SearchFormManager>;
|
|
242
|
-
|
|
243
|
-
// 表格
|
|
244
|
-
table: Table<MODEL, TableManager>;
|
|
245
|
-
|
|
246
|
-
// 是否存在表单
|
|
247
|
-
hasForm?: boolean;
|
|
248
|
-
|
|
249
|
-
// 表单配置
|
|
250
|
-
form?: Form<MODEL, FormManager<MODEL>>;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
// 使用配置
|
|
254
|
-
type UConfig<T = AnyObject, K = any> = Config<T, K> & {
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// 注册时候的配置
|
|
259
|
-
type InstallOptions = {
|
|
260
|
-
// 请求对象 必须实现
|
|
261
|
-
request: IRequest;
|
|
262
|
-
// 捕获错误
|
|
263
|
-
errorHandler?: ErrorHandler;
|
|
264
|
-
// 默认配置
|
|
265
|
-
config?: Config<any, any>;
|
|
266
|
-
// patches
|
|
267
|
-
patches?: PatchConfigFn[];
|
|
268
|
-
// 文本配置
|
|
269
|
-
textConfig: TextConfig;
|
|
270
|
-
// 样式
|
|
271
|
-
style?: GlobalStyle;
|
|
272
|
-
// 导出excel的配置
|
|
273
|
-
excelExportConfig?: ExcelExportConfig;
|
|
274
|
-
// 保存配置
|
|
275
|
-
userSetting?: UserSetting
|
|
276
|
-
// 空内容组件
|
|
277
|
-
emptyData?: Component
|
|
278
|
-
/**
|
|
279
|
-
* 获取zIndex
|
|
280
|
-
*/
|
|
281
|
-
getZIndex?: () => number;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
type ErrorHandler = {
|
|
286
|
-
(error: any): void;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
type IRquestRquestMethods<T extends string, K> = {
|
|
290
|
-
[key in T]: K;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
type IRequest = IRquestRquestMethods<AjaxMethod, (url: string, ...rest: any[]) => Promise<any>>
|
|
294
|
-
|
|
295
|
-
type TextConfig = {
|
|
296
|
-
delTitle?: string;
|
|
297
|
-
delText?: string;
|
|
298
|
-
delSuccessText?: string;
|
|
299
|
-
addSuccessText?: string;
|
|
300
|
-
updSuccessText?: string;
|
|
301
|
-
importSuccessText?: string;
|
|
302
|
-
leaveConfirmTitle?: string;
|
|
303
|
-
leaveConfirmText?: string;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
type GlobalStyle = {
|
|
307
|
-
searchFormItemWidth?: string;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
type ExcelExportConfig = {
|
|
311
|
-
fontFamily?: string;
|
|
312
|
-
fontSize?: number;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
type PageModelUserConfig = {
|
|
316
|
-
/**
|
|
317
|
-
* 显示的行数,超出隐藏
|
|
318
|
-
*/
|
|
319
|
-
showRowNumbers?: number;
|
|
320
|
-
/**
|
|
321
|
-
* 改变即刻搜索
|
|
322
|
-
*/
|
|
323
|
-
searchOnValueChange?: boolean;
|
|
324
|
-
/**
|
|
325
|
-
* enter监听搜索
|
|
326
|
-
*/
|
|
327
|
-
enterSearch?: boolean;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
type userSettingMode = 'user' | 'server'
|
|
331
|
-
|
|
332
|
-
type UserSetting = {
|
|
333
|
-
// 配置的模式 本地 、服务端
|
|
334
|
-
mode?: userSettingMode;
|
|
335
|
-
// 提交的方法
|
|
336
|
-
serverUpdateFn?: (key: string, val: string) => Promise<boolean>;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export type Config<MODEL, EXTEND> = PageModel.Config<MODEL, EXTEND>
|
|
343
|
-
|
|
344
|
-
export type InstallOptions = PageModel.InstallOptions
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
-
getValue: () => {};
|
|
3
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
-
export default _sfc_main;
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import SearchFormManager from "../../constructor";
|
|
2
|
-
type Opts = {
|
|
3
|
-
formData: AnyObject;
|
|
4
|
-
context: any;
|
|
5
|
-
formEls: any[];
|
|
6
|
-
searchFormManager: SearchFormManager;
|
|
7
|
-
};
|
|
8
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
9
|
-
formData: import("vue").Ref<{}, {}>;
|
|
10
|
-
formEls: import("vue").Ref<any[], any[]>;
|
|
11
|
-
context: import("vue").Ref<any, any>;
|
|
12
|
-
searchFormManager: SearchFormManager;
|
|
13
|
-
createBEMName: (name: string) => string;
|
|
14
|
-
isShow: import("vue").Ref<boolean, boolean>;
|
|
15
|
-
show: (opts: Opts) => void;
|
|
16
|
-
emit: (event: "filter", ...args: any[]) => void;
|
|
17
|
-
doFilter: () => void;
|
|
18
|
-
resetSearch: () => void;
|
|
19
|
-
FormDialog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
20
|
-
modelValue: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
title: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
required: false;
|
|
27
|
-
};
|
|
28
|
-
width: {
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
required: false;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
dialogProps: {
|
|
34
|
-
type: any;
|
|
35
|
-
required: false;
|
|
36
|
-
};
|
|
37
|
-
dialogEvents: {
|
|
38
|
-
type: any;
|
|
39
|
-
required: false;
|
|
40
|
-
};
|
|
41
|
-
customClass: {
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
required: false;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
}>, {
|
|
47
|
-
MIN_WIDTH: number;
|
|
48
|
-
MIN_HEIGHT: number;
|
|
49
|
-
props: any;
|
|
50
|
-
dragElRef: import("vue").Ref<HTMLElement, HTMLElement>;
|
|
51
|
-
dialogRef: import("vue").Ref<any, any>;
|
|
52
|
-
emit: (event: "update:model-value", ...args: any[]) => void;
|
|
53
|
-
BEMSpace: string;
|
|
54
|
-
createBEMName: (name: string) => string;
|
|
55
|
-
onUpdateModelValue: (value: boolean) => void;
|
|
56
|
-
bind: (bindElement: HTMLElement) => void;
|
|
57
|
-
destroy: () => void;
|
|
58
|
-
slots: Readonly<{
|
|
59
|
-
[name: string]: import("vue").Slot<any>;
|
|
60
|
-
}>;
|
|
61
|
-
hasFooterSlot: import("vue").ComputedRef<boolean>;
|
|
62
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
-
modelValue: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
required: true;
|
|
66
|
-
};
|
|
67
|
-
title: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
required: false;
|
|
70
|
-
};
|
|
71
|
-
width: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
required: false;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
dialogProps: {
|
|
77
|
-
type: any;
|
|
78
|
-
required: false;
|
|
79
|
-
};
|
|
80
|
-
dialogEvents: {
|
|
81
|
-
type: any;
|
|
82
|
-
required: false;
|
|
83
|
-
};
|
|
84
|
-
customClass: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
required: false;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
}>> & Readonly<{
|
|
90
|
-
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
91
|
-
}>, {
|
|
92
|
-
width: string;
|
|
93
|
-
dialogProps: any;
|
|
94
|
-
dialogEvents: any;
|
|
95
|
-
customClass: string;
|
|
96
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
97
|
-
FormItemRenderer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
98
|
-
modelValue: any;
|
|
99
|
-
renderFn: {
|
|
100
|
-
type: import("vue").PropType<PageModel.RenderFn>;
|
|
101
|
-
default: any;
|
|
102
|
-
};
|
|
103
|
-
change: {
|
|
104
|
-
type: import("vue").PropType<(...rest: any[]) => void>;
|
|
105
|
-
default: any;
|
|
106
|
-
};
|
|
107
|
-
options: {
|
|
108
|
-
type: import("vue").PropType<any>;
|
|
109
|
-
default: () => void;
|
|
110
|
-
};
|
|
111
|
-
context: {
|
|
112
|
-
type: import("vue").PropType<any>;
|
|
113
|
-
default: () => void;
|
|
114
|
-
};
|
|
115
|
-
disabled: {
|
|
116
|
-
type: import("vue").PropType<boolean>;
|
|
117
|
-
default: any;
|
|
118
|
-
};
|
|
119
|
-
model: {
|
|
120
|
-
type: import("vue").PropType<AnyObject>;
|
|
121
|
-
default: () => {};
|
|
122
|
-
};
|
|
123
|
-
multProps: {
|
|
124
|
-
type: import("vue").PropType<string[]>;
|
|
125
|
-
default: any;
|
|
126
|
-
};
|
|
127
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
128
|
-
[key: string]: any;
|
|
129
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
130
|
-
modelValue: any;
|
|
131
|
-
renderFn: {
|
|
132
|
-
type: import("vue").PropType<PageModel.RenderFn>;
|
|
133
|
-
default: any;
|
|
134
|
-
};
|
|
135
|
-
change: {
|
|
136
|
-
type: import("vue").PropType<(...rest: any[]) => void>;
|
|
137
|
-
default: any;
|
|
138
|
-
};
|
|
139
|
-
options: {
|
|
140
|
-
type: import("vue").PropType<any>;
|
|
141
|
-
default: () => void;
|
|
142
|
-
};
|
|
143
|
-
context: {
|
|
144
|
-
type: import("vue").PropType<any>;
|
|
145
|
-
default: () => void;
|
|
146
|
-
};
|
|
147
|
-
disabled: {
|
|
148
|
-
type: import("vue").PropType<boolean>;
|
|
149
|
-
default: any;
|
|
150
|
-
};
|
|
151
|
-
model: {
|
|
152
|
-
type: import("vue").PropType<AnyObject>;
|
|
153
|
-
default: () => {};
|
|
154
|
-
};
|
|
155
|
-
multProps: {
|
|
156
|
-
type: import("vue").PropType<string[]>;
|
|
157
|
-
default: any;
|
|
158
|
-
};
|
|
159
|
-
}>> & Readonly<{}>, {
|
|
160
|
-
context: any;
|
|
161
|
-
renderFn: PageModel.RenderFn;
|
|
162
|
-
modelValue: any;
|
|
163
|
-
change: (...rest: any[]) => void;
|
|
164
|
-
disabled: boolean;
|
|
165
|
-
options: any;
|
|
166
|
-
model: AnyObject;
|
|
167
|
-
multProps: string[];
|
|
168
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
169
|
-
readonly Filter: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
170
|
-
readonly RefreshLeft: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "filter"[], "filter", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
172
|
-
onFilter?: (...args: any[]) => any;
|
|
173
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
174
|
-
export default _sfc_main;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../types/common.d.ts" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare namespace PageModel {
|
|
5
|
-
|
|
6
|
-
type SearchFormExpandMode = 'dialog' | 'expanded'
|
|
7
|
-
|
|
8
|
-
type SearchForm<MODEL = any, CTX = any> = {
|
|
9
|
-
// 更多的扩展形式
|
|
10
|
-
expandMode?: SearchFormExpandMode;
|
|
11
|
-
// 尺寸
|
|
12
|
-
size?: Size;
|
|
13
|
-
// label宽度
|
|
14
|
-
labelWidth?: string;
|
|
15
|
-
// 初始表单数据
|
|
16
|
-
initialData?: Partial<MODEL>;
|
|
17
|
-
// 成员
|
|
18
|
-
els: LinkedFormItem<MODEL, CTX>[];
|
|
19
|
-
// 处理函数
|
|
20
|
-
beforeSubmit?: (this: any, data: ExtendKeys<MODEL>) => ExtendKeys<MODEL> | false;
|
|
21
|
-
|
|
22
|
-
// 表单数据变化回调
|
|
23
|
-
onFormDataChange?: (this: CTX, data: MODEL) => void;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* 是否值变化检索
|
|
27
|
-
*/
|
|
28
|
-
searchOnValueChange?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* 是否设置私人配置
|
|
31
|
-
*/
|
|
32
|
-
searchOnValueChangeSetted?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 是否静态enter检索
|
|
35
|
-
*/
|
|
36
|
-
enterSearch?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* 是否设置私人配置
|
|
39
|
-
*/
|
|
40
|
-
enterSearchSetted?: boolean;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
width: {
|
|
3
|
-
type: NumberConstructor;
|
|
4
|
-
required: false;
|
|
5
|
-
default: number;
|
|
6
|
-
};
|
|
7
|
-
placement: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: false;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
zIndex: {
|
|
13
|
-
type: NumberConstructor;
|
|
14
|
-
required: false;
|
|
15
|
-
};
|
|
16
|
-
}>, {
|
|
17
|
-
BEMSpace: string;
|
|
18
|
-
props: any;
|
|
19
|
-
emit: (event: "closed", ...args: any[]) => void;
|
|
20
|
-
visible: import("vue").Ref<boolean, boolean>;
|
|
21
|
-
isShow: import("vue").Ref<boolean, boolean>;
|
|
22
|
-
_debounceUpdateShow: (...rest: any[]) => void;
|
|
23
|
-
currentTriggerElement: HTMLElement;
|
|
24
|
-
popoverRectInfo: import("vue").Ref<any, any>;
|
|
25
|
-
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
26
|
-
popoverRef: import("vue").Ref<HTMLElement, HTMLElement>;
|
|
27
|
-
popoverElementRect: import("vue").Ref<DOMRect, DOMRect>;
|
|
28
|
-
getPopoverElementRect: () => void;
|
|
29
|
-
popoverStyle: import("vue").ComputedRef<{
|
|
30
|
-
top?: undefined;
|
|
31
|
-
left?: undefined;
|
|
32
|
-
width?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
top: string;
|
|
35
|
-
left: string;
|
|
36
|
-
width: string;
|
|
37
|
-
}>;
|
|
38
|
-
isChildElement: (rootElement: HTMLElement, childElement: HTMLElement) => boolean;
|
|
39
|
-
isPopperChildElement: (element: HTMLElement) => boolean;
|
|
40
|
-
handleClickElement: (e: Event) => void;
|
|
41
|
-
handleResize: (...rest: any[]) => void;
|
|
42
|
-
bindEvent: () => void;
|
|
43
|
-
unbindEvent: () => void;
|
|
44
|
-
hide: () => void;
|
|
45
|
-
getZIndex: () => any;
|
|
46
|
-
show: (element: HTMLElement | DOMRect) => void;
|
|
47
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
-
width: {
|
|
49
|
-
type: NumberConstructor;
|
|
50
|
-
required: false;
|
|
51
|
-
default: number;
|
|
52
|
-
};
|
|
53
|
-
placement: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
required: false;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
zIndex: {
|
|
59
|
-
type: NumberConstructor;
|
|
60
|
-
required: false;
|
|
61
|
-
};
|
|
62
|
-
}>> & Readonly<{
|
|
63
|
-
onClosed?: (...args: any[]) => any;
|
|
64
|
-
}>, {
|
|
65
|
-
width: number;
|
|
66
|
-
placement: string;
|
|
67
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
-
export default _sfc_main;
|