@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,360 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../types/common.d.ts" />
|
|
2
|
-
|
|
3
|
-
import { PaginationProps } from 'element-plus'
|
|
4
|
-
import { Sort } from 'element-plus/es/components/table/src/table/defaults'
|
|
5
|
-
import TableManagerDefault from './constructor'
|
|
6
|
-
import { Component } from 'vue'
|
|
7
|
-
import {
|
|
8
|
-
type FilterItemTypeEnum,
|
|
9
|
-
type FilterMatchModeEnum,
|
|
10
|
-
} from './components/table-column/components/filter-zone/utils'
|
|
11
|
-
import { SummaryTypeEnum } from './utils/use-static-summary'
|
|
12
|
-
|
|
13
|
-
declare global {
|
|
14
|
-
namespace PageModel {
|
|
15
|
-
type TableManager = TableManagerDefault
|
|
16
|
-
|
|
17
|
-
type Pagination = {
|
|
18
|
-
show?: boolean
|
|
19
|
-
} & Partial<PaginationProps>
|
|
20
|
-
|
|
21
|
-
type TableDataExportModel = {
|
|
22
|
-
data: any[]
|
|
23
|
-
columns: any[]
|
|
24
|
-
filename: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 列筛选条件
|
|
29
|
-
*/
|
|
30
|
-
type TableColumnParamsItem = {
|
|
31
|
-
/**
|
|
32
|
-
* 列的属性
|
|
33
|
-
*/
|
|
34
|
-
prop: string
|
|
35
|
-
/**
|
|
36
|
-
* 过滤类型
|
|
37
|
-
*/
|
|
38
|
-
filterType?: FilterItemTypeEnum
|
|
39
|
-
/**
|
|
40
|
-
* 筛选条件文本
|
|
41
|
-
*/
|
|
42
|
-
filterLabel?: string
|
|
43
|
-
/**
|
|
44
|
-
* 筛选项
|
|
45
|
-
*/
|
|
46
|
-
filterOptions?: Array<{ label: string; value: string | boolean | number }>
|
|
47
|
-
/**
|
|
48
|
-
* 当前条件
|
|
49
|
-
*/
|
|
50
|
-
condition?: FilterMatchModeEnum
|
|
51
|
-
/**
|
|
52
|
-
* 输入的值
|
|
53
|
-
*/
|
|
54
|
-
value?: any
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
type SortOption = 'ascending' | 'descending' | null
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* 工具栏事件
|
|
61
|
-
*/
|
|
62
|
-
type ToolBoxEvent =
|
|
63
|
-
| 'export'
|
|
64
|
-
| 'fullscreen'
|
|
65
|
-
| 'column-tool'
|
|
66
|
-
| 'filter'
|
|
67
|
-
| 'sort'
|
|
68
|
-
| 'line-clamp'
|
|
69
|
-
| 'refresh'
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* 列排序参数
|
|
73
|
-
*/
|
|
74
|
-
type TableColumnSortParamsItem = {
|
|
75
|
-
prop: string
|
|
76
|
-
order?: SortOption
|
|
77
|
-
label?: string
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
type TableProps = {
|
|
81
|
-
size?: Size
|
|
82
|
-
border?: boolean
|
|
83
|
-
resizable?: boolean
|
|
84
|
-
elementLoadingText?: string
|
|
85
|
-
height?: string | number
|
|
86
|
-
maxHeight?: string | number
|
|
87
|
-
fit?: boolean
|
|
88
|
-
stripe?: boolean
|
|
89
|
-
rowKey?: string
|
|
90
|
-
showHeader?: boolean
|
|
91
|
-
showSummary?: boolean
|
|
92
|
-
sumText?: string
|
|
93
|
-
summaryMethod?: AnyFunction
|
|
94
|
-
rowClassName?: string | AnyFunction
|
|
95
|
-
rowStyle?: AnyObject | AnyFunction
|
|
96
|
-
cellClassName?: string | AnyFunction
|
|
97
|
-
cellStyle?: AnyObject | AnyFunction
|
|
98
|
-
headerRowClassName?: string | AnyFunction
|
|
99
|
-
headerRowStyle?: AnyObject | AnyFunction
|
|
100
|
-
headerCellClassName?: string | AnyFunction
|
|
101
|
-
headerCellStyle?: AnyObject | AnyFunction
|
|
102
|
-
highlightCurrentRow?: boolean
|
|
103
|
-
currentRowKey?: string | number
|
|
104
|
-
emptyText?: string
|
|
105
|
-
expandRowKeys?: any[]
|
|
106
|
-
defaultExpandAll?: boolean
|
|
107
|
-
defaultSort?: Sort
|
|
108
|
-
tooltipEffect?: string
|
|
109
|
-
spanMethod?: AnyFunction
|
|
110
|
-
selectOnIndeterminate?: boolean
|
|
111
|
-
indent?: number
|
|
112
|
-
treeProps?: {
|
|
113
|
-
hasChildren?: string
|
|
114
|
-
children?: string
|
|
115
|
-
}
|
|
116
|
-
lazy?: boolean
|
|
117
|
-
load?: AnyFunction
|
|
118
|
-
/**
|
|
119
|
-
* pageModel定义合计函数
|
|
120
|
-
*/
|
|
121
|
-
_customSummary?: boolean
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
type TableEvents<MODEL = any> = {
|
|
125
|
-
select?: (selection: any[], row: MODEL) => void
|
|
126
|
-
selectAll?: (selection: any[]) => void
|
|
127
|
-
selectionChange?: (selection: any[]) => void
|
|
128
|
-
cellMouseEnter?: (row: MODEL, column: any, cell: any, event: any) => void
|
|
129
|
-
cellMouseLeave?: (row: MODEL, column: any, cell: any, event: any) => void
|
|
130
|
-
cellClick?: (row: MODEL, column: any, cell: any, event: any) => void
|
|
131
|
-
cellDblclick?: (row: MODEL, column: any, cell: any, event: any) => void
|
|
132
|
-
rowClick?: (row: MODEL, column: any, event: any) => void
|
|
133
|
-
rowContextmenu?: (row: MODEL, column: any, event: any) => void
|
|
134
|
-
rowDblclick?: (row: MODEL, column: any, event: any) => void
|
|
135
|
-
headerClick?: (row: MODEL, column: any, event: any) => void
|
|
136
|
-
headerContextmenu?: (column: any, event: any) => void
|
|
137
|
-
sortChange?: ({
|
|
138
|
-
column,
|
|
139
|
-
prop,
|
|
140
|
-
order,
|
|
141
|
-
}: {
|
|
142
|
-
column: any
|
|
143
|
-
prop: string
|
|
144
|
-
order: SortOption
|
|
145
|
-
}) => void
|
|
146
|
-
filterChange?: (filters: any[]) => void
|
|
147
|
-
currentChange?: (currentRow: MODEL, oldCurrentRow: MODEL) => void
|
|
148
|
-
headerDragend?: (
|
|
149
|
-
newWidth: number,
|
|
150
|
-
oldWidth: number,
|
|
151
|
-
column: any,
|
|
152
|
-
event: any
|
|
153
|
-
) => void
|
|
154
|
-
expandChange?: (row: MODEL, expanded: any) => void
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
type Table<MODEL = any, CTX = any> = {
|
|
158
|
-
els: TableBaseItem<MODEL, CTX>[]
|
|
159
|
-
pagination?: Pagination
|
|
160
|
-
loadingDirectiveName?: string
|
|
161
|
-
props?: ConvertFunctionContext<TableProps, CTX>
|
|
162
|
-
events?: ConvertFunctionContext<TableEvents<MODEL>, CTX>
|
|
163
|
-
/**
|
|
164
|
-
* 是否可拖拽
|
|
165
|
-
*/
|
|
166
|
-
dragable?: boolean
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* 是否保存列筛选
|
|
170
|
-
*/
|
|
171
|
-
saveFilter?: boolean
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* 是否保存列排序
|
|
175
|
-
*/
|
|
176
|
-
saveSort?: boolean
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* 显示工具列
|
|
180
|
-
*/
|
|
181
|
-
showTools?: boolean
|
|
182
|
-
/**
|
|
183
|
-
* 是否显示汇总
|
|
184
|
-
*/
|
|
185
|
-
showSummary?: boolean
|
|
186
|
-
/**
|
|
187
|
-
* 显示索引列
|
|
188
|
-
*/
|
|
189
|
-
showIndex?: boolean
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* 辅助横向滚动
|
|
193
|
-
*/
|
|
194
|
-
assistScrollX?: boolean
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* 显示多选条数提示
|
|
198
|
-
*/
|
|
199
|
-
showSelectableTip?: boolean
|
|
200
|
-
/**
|
|
201
|
-
* 是否多选
|
|
202
|
-
*/
|
|
203
|
-
selectable?: boolean
|
|
204
|
-
/**
|
|
205
|
-
* 点击行自动选中
|
|
206
|
-
*/
|
|
207
|
-
rowClickSelect?: boolean
|
|
208
|
-
/**
|
|
209
|
-
* 多选的操作按钮
|
|
210
|
-
*/
|
|
211
|
-
selectableButtons?: Button<MODEL, CTX>[]
|
|
212
|
-
/**
|
|
213
|
-
* 多选操作独自存活
|
|
214
|
-
*/
|
|
215
|
-
selectableButtonLiveAlone?: boolean
|
|
216
|
-
/**
|
|
217
|
-
* 开启单选
|
|
218
|
-
*/
|
|
219
|
-
showRadio?: boolean
|
|
220
|
-
// 是否可编辑
|
|
221
|
-
editable?: boolean
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* 是否开启服务端汇总
|
|
225
|
-
*/
|
|
226
|
-
useServerSummary?: boolean
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* 服务端汇总请求方法
|
|
230
|
-
*/
|
|
231
|
-
serverSummaryFn?: (this: TableManager, summaryColumns: { prop: string, showSummary: SummaryTypeEnum }[], reqParams: AnyObject, columns: any[]) => Promise<any[]>
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* 汇总过程处理,对每项进行处理
|
|
235
|
-
* @param this
|
|
236
|
-
* @param data 数据列表
|
|
237
|
-
* @param prop 当前列表的prop
|
|
238
|
-
* @param summaryType 合计类型 1累加 2总数
|
|
239
|
-
* @returns
|
|
240
|
-
*/
|
|
241
|
-
summaryItemFn?: (
|
|
242
|
-
this: any,
|
|
243
|
-
data: any[],
|
|
244
|
-
prop: string,
|
|
245
|
-
summaryType: number
|
|
246
|
-
) => any
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* @param rest 汇总结果处理
|
|
250
|
-
* @returns
|
|
251
|
-
*/
|
|
252
|
-
summaryProcessFn?: (this: any, summaryValue: any) => any
|
|
253
|
-
/**
|
|
254
|
-
* pageIndex key
|
|
255
|
-
*/
|
|
256
|
-
pageIndexKey?: string
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* pageSize key
|
|
260
|
-
*/
|
|
261
|
-
pageSizeKey?: string
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* api请求导出每次请求页数
|
|
265
|
-
*/
|
|
266
|
-
exportPageSize?: number
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* 导出的文件默认名称
|
|
270
|
-
*/
|
|
271
|
-
exportFileName?: string
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* 导出的提示文字可选列表
|
|
275
|
-
*/
|
|
276
|
-
exportLoadingText?: string[]
|
|
277
|
-
|
|
278
|
-
// xlsx配置
|
|
279
|
-
xlsx?: {
|
|
280
|
-
// 单元格合并规则
|
|
281
|
-
mergeFn?: (
|
|
282
|
-
this: TableManager,
|
|
283
|
-
exportData: MODEL[],
|
|
284
|
-
columns: TableBaseItem<MODEL, CTX>[]
|
|
285
|
-
) => { s: { r: number; c: number }; e: { r: number; c: number } }[]
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* 提供外部多选导出数据
|
|
290
|
-
*/
|
|
291
|
-
getExportSelectableData?: (this: TableManager) => any[]
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* 操作栏
|
|
295
|
-
*/
|
|
296
|
-
operate?: {
|
|
297
|
-
width?: string | number
|
|
298
|
-
els: Button<MODEL, CTX>[]
|
|
299
|
-
props?: TableBaseItemProps
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* 上下文菜单
|
|
304
|
-
*/
|
|
305
|
-
contextMenu?: {
|
|
306
|
-
/**
|
|
307
|
-
* 是否包含操作栏
|
|
308
|
-
*/
|
|
309
|
-
containOperation?: boolean
|
|
310
|
-
/**
|
|
311
|
-
* 其它项
|
|
312
|
-
*/
|
|
313
|
-
els?: Button<MODEL, CTX>[]
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* 工具箱
|
|
318
|
-
*/
|
|
319
|
-
toolbox?: ToolBoxEvent[]
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* 工具栏显示模式
|
|
323
|
-
*/
|
|
324
|
-
toolboxShowMode?: 'button' | 'icon'
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* 扩展工具栏
|
|
328
|
-
*/
|
|
329
|
-
extendsToolbox?: {
|
|
330
|
-
icon: Component
|
|
331
|
-
text?: string
|
|
332
|
-
event: string
|
|
333
|
-
}[]
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* 工具栏位置
|
|
337
|
-
*/
|
|
338
|
-
toolboxPositon?: 'left' | 'right'
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* 列筛选参数处理函数
|
|
342
|
-
*/
|
|
343
|
-
columnParamsProcessFn?: (
|
|
344
|
-
this: TableManager,
|
|
345
|
-
paramsList: PageModel.TableColumnParamsItem[]
|
|
346
|
-
) => unknown
|
|
347
|
-
/**
|
|
348
|
-
* 列筛选参数查询立即执行
|
|
349
|
-
*/
|
|
350
|
-
columnParamsQueryImmediate?: boolean
|
|
351
|
-
/**
|
|
352
|
-
* 列排序参数处理函数
|
|
353
|
-
*/
|
|
354
|
-
columnSortParamsProcessFn?: (
|
|
355
|
-
this: TableManager,
|
|
356
|
-
sortParamsList: PageModel.TableColumnSortParamsItem[]
|
|
357
|
-
) => unknown
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { PropType } from "vue";
|
|
2
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
renderFn: {
|
|
4
|
-
type: PropType<PageModel.RenderFn>;
|
|
5
|
-
default: any;
|
|
6
|
-
};
|
|
7
|
-
context: {
|
|
8
|
-
type: PropType<any>;
|
|
9
|
-
default: any;
|
|
10
|
-
};
|
|
11
|
-
args: {
|
|
12
|
-
type: PropType<any[]>;
|
|
13
|
-
default: () => any[];
|
|
14
|
-
};
|
|
15
|
-
pure: {
|
|
16
|
-
type: PropType<boolean>;
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
|
-
row: {
|
|
20
|
-
type: ObjectConstructor;
|
|
21
|
-
default: () => void;
|
|
22
|
-
};
|
|
23
|
-
index: {
|
|
24
|
-
type: NumberConstructor;
|
|
25
|
-
};
|
|
26
|
-
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
-
renderFn: {
|
|
28
|
-
type: PropType<PageModel.RenderFn>;
|
|
29
|
-
default: any;
|
|
30
|
-
};
|
|
31
|
-
context: {
|
|
32
|
-
type: PropType<any>;
|
|
33
|
-
default: any;
|
|
34
|
-
};
|
|
35
|
-
args: {
|
|
36
|
-
type: PropType<any[]>;
|
|
37
|
-
default: () => any[];
|
|
38
|
-
};
|
|
39
|
-
pure: {
|
|
40
|
-
type: PropType<boolean>;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
row: {
|
|
44
|
-
type: ObjectConstructor;
|
|
45
|
-
default: () => void;
|
|
46
|
-
};
|
|
47
|
-
index: {
|
|
48
|
-
type: NumberConstructor;
|
|
49
|
-
};
|
|
50
|
-
}>> & Readonly<{}>, {
|
|
51
|
-
context: any;
|
|
52
|
-
renderFn: PageModel.RenderFn;
|
|
53
|
-
args: any[];
|
|
54
|
-
pure: boolean;
|
|
55
|
-
row: Record<string, any>;
|
|
56
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
-
export default _sfc_main;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
toolbox: {
|
|
3
|
-
type: any;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
extendsToolbox: {
|
|
7
|
-
type: any;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
mode: {
|
|
11
|
-
type: any;
|
|
12
|
-
required: false;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
tableManager: {
|
|
16
|
-
type: any;
|
|
17
|
-
required: false;
|
|
18
|
-
};
|
|
19
|
-
}>, {
|
|
20
|
-
props: any;
|
|
21
|
-
emit: (event: "custom-event", ...args: any[]) => void;
|
|
22
|
-
isLoading: import("vue").ComputedRef<any>;
|
|
23
|
-
innerTools: {
|
|
24
|
-
export: {
|
|
25
|
-
icon: 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>;
|
|
26
|
-
text: string;
|
|
27
|
-
event: string;
|
|
28
|
-
desc: string;
|
|
29
|
-
bg: boolean;
|
|
30
|
-
};
|
|
31
|
-
fullscreen: {
|
|
32
|
-
icon: 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>;
|
|
33
|
-
text: string;
|
|
34
|
-
event: string;
|
|
35
|
-
desc: string;
|
|
36
|
-
bg: boolean;
|
|
37
|
-
};
|
|
38
|
-
"column-tool": {
|
|
39
|
-
icon: 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>;
|
|
40
|
-
text: string;
|
|
41
|
-
event: string;
|
|
42
|
-
desc: string;
|
|
43
|
-
bg: boolean;
|
|
44
|
-
};
|
|
45
|
-
filter: {
|
|
46
|
-
icon: 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>;
|
|
47
|
-
text: string;
|
|
48
|
-
event: string;
|
|
49
|
-
desc: string;
|
|
50
|
-
bg: boolean;
|
|
51
|
-
};
|
|
52
|
-
sort: {
|
|
53
|
-
icon: 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>;
|
|
54
|
-
text: string;
|
|
55
|
-
event: string;
|
|
56
|
-
desc: string;
|
|
57
|
-
bg: boolean;
|
|
58
|
-
};
|
|
59
|
-
"line-clamp": {
|
|
60
|
-
icon: 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>;
|
|
61
|
-
text: string;
|
|
62
|
-
event: string;
|
|
63
|
-
desc: string;
|
|
64
|
-
bg: boolean;
|
|
65
|
-
};
|
|
66
|
-
refresh: {
|
|
67
|
-
icon: 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>;
|
|
68
|
-
text: string;
|
|
69
|
-
event: string;
|
|
70
|
-
desc: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
showToolbox: import("vue").ComputedRef<any>;
|
|
74
|
-
handleClickTool: (index: number, e: Event) => void;
|
|
75
|
-
toolboxRef: import("vue").Ref<HTMLElement, HTMLElement>;
|
|
76
|
-
trigEvent: (event: string) => void;
|
|
77
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "custom-event"[], "custom-event", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
-
toolbox: {
|
|
79
|
-
type: any;
|
|
80
|
-
required: true;
|
|
81
|
-
};
|
|
82
|
-
extendsToolbox: {
|
|
83
|
-
type: any;
|
|
84
|
-
required: true;
|
|
85
|
-
};
|
|
86
|
-
mode: {
|
|
87
|
-
type: any;
|
|
88
|
-
required: false;
|
|
89
|
-
default: string;
|
|
90
|
-
};
|
|
91
|
-
tableManager: {
|
|
92
|
-
type: any;
|
|
93
|
-
required: false;
|
|
94
|
-
};
|
|
95
|
-
}>> & Readonly<{
|
|
96
|
-
"onCustom-event"?: (...args: any[]) => any;
|
|
97
|
-
}>, {
|
|
98
|
-
mode: any;
|
|
99
|
-
tableManager: any;
|
|
100
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
|
-
export default _sfc_main;
|