vxe-pc-ui 4.10.30 → 4.10.32

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.
Files changed (37) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/style.css +1 -1
  3. package/es/style.min.css +1 -1
  4. package/es/ui/index.js +1 -1
  5. package/es/ui/src/log.js +1 -1
  6. package/es/upload/src/upload.js +8 -4
  7. package/lib/icon/style/style.css +1 -1
  8. package/lib/icon/style/style.min.css +1 -1
  9. package/lib/index.umd.js +12 -6
  10. package/lib/index.umd.min.js +1 -1
  11. package/lib/style.css +1 -1
  12. package/lib/style.min.css +1 -1
  13. package/lib/ui/index.js +1 -1
  14. package/lib/ui/index.min.js +1 -1
  15. package/lib/ui/src/log.js +1 -1
  16. package/lib/ui/src/log.min.js +1 -1
  17. package/lib/upload/src/upload.js +10 -4
  18. package/lib/upload/src/upload.min.js +1 -1
  19. package/package.json +2 -2
  20. package/packages/upload/src/upload.ts +8 -4
  21. package/types/components/column.d.ts +44 -36
  22. package/types/components/gantt.d.ts +50 -2
  23. package/types/components/grid.d.ts +52 -27
  24. package/types/components/upload.d.ts +2 -0
  25. package/types/ui/renderer.d.ts +23 -1
  26. /package/es/icon/{iconfont.1764046265223.ttf → iconfont.1764235392040.ttf} +0 -0
  27. /package/es/icon/{iconfont.1764046265223.woff → iconfont.1764235392040.woff} +0 -0
  28. /package/es/icon/{iconfont.1764046265223.woff2 → iconfont.1764235392040.woff2} +0 -0
  29. /package/es/{iconfont.1764046265223.ttf → iconfont.1764235392040.ttf} +0 -0
  30. /package/es/{iconfont.1764046265223.woff → iconfont.1764235392040.woff} +0 -0
  31. /package/es/{iconfont.1764046265223.woff2 → iconfont.1764235392040.woff2} +0 -0
  32. /package/lib/icon/style/{iconfont.1764046265223.ttf → iconfont.1764235392040.ttf} +0 -0
  33. /package/lib/icon/style/{iconfont.1764046265223.woff → iconfont.1764235392040.woff} +0 -0
  34. /package/lib/icon/style/{iconfont.1764046265223.woff2 → iconfont.1764235392040.woff2} +0 -0
  35. /package/lib/{iconfont.1764046265223.ttf → iconfont.1764235392040.ttf} +0 -0
  36. /package/lib/{iconfont.1764046265223.woff → iconfont.1764235392040.woff} +0 -0
  37. /package/lib/{iconfont.1764046265223.woff2 → iconfont.1764235392040.woff2} +0 -0
@@ -92,6 +92,16 @@ export namespace VxeGridPropTypes {
92
92
  }
93
93
  }
94
94
 
95
+ interface ProxyAjaxQueryFooterParams<D = any> {
96
+ $table: VxeTableConstructor<D>
97
+ $grid: VxeGridConstructor<D> | null | undefined
98
+ $gantt: VxeGanttConstructor<D> | null | undefined
99
+ filters: VxeTableDefines.FilterCheckedParams[]
100
+ form: {
101
+ [key: string]: any
102
+ }
103
+ }
104
+
95
105
  interface ProxyAjaxQueryAllParams<D = any> {
96
106
  $table: VxeTableConstructor<D>
97
107
  $grid: VxeGridConstructor<D> | null | undefined
@@ -150,32 +160,8 @@ export namespace VxeGridPropTypes {
150
160
  sort?: boolean
151
161
  filter?: boolean
152
162
  form?: boolean
153
- response?: {
154
- list?: string | null | ((params: {
155
- data: any
156
- $table: VxeTableConstructor<D>
157
- $grid: VxeGridConstructor<D> | null | undefined
158
- $gantt: VxeGanttConstructor<D> | null | undefined
159
- }) => any[])
160
- result?: string | ((params: {
161
- data: any
162
- $table: VxeTableConstructor<D>
163
- $grid: VxeGridConstructor<D> | null | undefined
164
- $gantt: VxeGanttConstructor<D> | null | undefined
165
- }) => any[])
166
- total?: string | ((params: {
167
- data: any
168
- $table: VxeTableConstructor<D>
169
- $grid: VxeGridConstructor<D> | null | undefined
170
- $gantt: VxeGanttConstructor<D> | null | undefined
171
- }) => number)
172
- message?: string | ((params: {
173
- data: any
174
- $table: VxeTableConstructor<D>
175
- $grid: VxeGridConstructor<D> | null | undefined
176
- $gantt: VxeGanttConstructor<D> | null | undefined
177
- }) => string)
178
- }
163
+ footer?: boolean
164
+ response?: VxeGridDefines.ProxyConfigResponseConfig<D>
179
165
  ajax?: {
180
166
  query?(params: ProxyAjaxQueryParams<D>, ...args: any[]): Promise<any>
181
167
  querySuccess?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
@@ -183,6 +169,9 @@ export namespace VxeGridPropTypes {
183
169
  queryAll?(params: ProxyAjaxQueryAllParams<D>): Promise<any>
184
170
  queryAllSuccess?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
185
171
  queryAllError?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
172
+ queryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): Promise<any>
173
+ queryFooterSuccess?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
174
+ queryFooterError?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
186
175
  delete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): Promise<any>
187
176
  deleteSuccess?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
188
177
  deleteError?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
@@ -301,6 +290,7 @@ export interface GridReactData<D = any> {
301
290
  filterData: VxeTableDefines.FilterCheckedParams<D>[]
302
291
  formData: any
303
292
  sortData: VxeTableDefines.SortCheckedParams<D>[]
293
+ footerData: any[]
304
294
  tZindex: number
305
295
  tablePage: {
306
296
  total: number
@@ -309,7 +299,9 @@ export interface GridReactData<D = any> {
309
299
  }
310
300
  }
311
301
 
312
- export interface GridInternalData {}
302
+ export interface GridInternalData {
303
+ uFoot?: boolean
304
+ }
313
305
 
314
306
  export interface GridMethods<D = any> {
315
307
  dispatchEvent(type: ValueOf<VxeGridEmits>, params: Record<string, any>, evnt: Event | null): void
@@ -581,6 +573,39 @@ export namespace VxeGridDefines {
581
573
  type: 'max' | 'revert'
582
574
  }
583
575
  export interface ZoomEventParams<D = any> extends GridEventParams<D>, ZoomParams { }
576
+
577
+ export interface ProxyConfigResponseConfig<D = any> {
578
+ list?: string | null | ((params: {
579
+ data: any
580
+ $table: VxeTableConstructor<D>
581
+ $grid: VxeGridConstructor<D> | null | undefined
582
+ $gantt: VxeGanttConstructor<D> | null | undefined
583
+ }) => any[])
584
+ result?: string | ((params: {
585
+ data: any
586
+ $table: VxeTableConstructor<D>
587
+ $grid: VxeGridConstructor<D> | null | undefined
588
+ $gantt: VxeGanttConstructor<D> | null | undefined
589
+ }) => any[])
590
+ footerData?: string | ((params: {
591
+ data: any
592
+ $table: VxeTableConstructor<D>
593
+ $grid: VxeGridConstructor<D> | null | undefined
594
+ $gantt: VxeGanttConstructor<D> | null | undefined
595
+ }) => any[])
596
+ total?: string | ((params: {
597
+ data: any
598
+ $table: VxeTableConstructor<D>
599
+ $grid: VxeGridConstructor<D> | null | undefined
600
+ $gantt: VxeGanttConstructor<D> | null | undefined
601
+ }) => number)
602
+ message?: string | ((params: {
603
+ data: any
604
+ $table: VxeTableConstructor<D>
605
+ $grid: VxeGridConstructor<D> | null | undefined
606
+ $gantt: VxeGanttConstructor<D> | null | undefined
607
+ }) => string)
608
+ }
584
609
  }
585
610
 
586
611
  export interface VxeGridEventProps<D = any> {
@@ -54,6 +54,7 @@ export namespace VxeUploadPropTypes {
54
54
  export type SingleMode = boolean
55
55
  export type DragSort = boolean
56
56
  export type DragToUpload = boolean
57
+ export type DragPlaceholder = string
57
58
  export type PasteToUpload = boolean
58
59
  export type KeyField = string
59
60
  export type UrlMode = boolean
@@ -152,6 +153,7 @@ export interface VxeUploadProps {
152
153
  singleMode?: VxeUploadPropTypes.SingleMode
153
154
  dragSort?: VxeUploadPropTypes.DragSort
154
155
  dragToUpload?: VxeUploadPropTypes.DragToUpload
156
+ dragPlaceholder?: VxeUploadPropTypes.DragPlaceholder
155
157
  pasteToUpload?: VxeUploadPropTypes.PasteToUpload
156
158
  keyField?: VxeUploadPropTypes.KeyField
157
159
  urlMode?: VxeUploadPropTypes.UrlMode
@@ -2,7 +2,7 @@ import { VxeComponentStyleType, VxeComponentClassNameType, VxeComponentSlotType,
2
2
  import { VxeTableConstructor, VxeTablePropTypes, VxeTableDefines } from '../components/table'
3
3
  import { VxeFormItemPropTypes, VxeFormItemSlotTypes, FormItemContentRenderParams, FormItemVisibleParams, FormItemResetParams } from '../components/form-item'
4
4
  import { VxeGridConstructor, VxeGridPropTypes } from '../components/grid'
5
- import { VxeColumnPropTypes } from '../components/column'
5
+ import { VxeColumnPropTypes, VxeColumnDefines } from '../components/column'
6
6
  import { VxeToolbarPropTypes } from '../components/toolbar'
7
7
  import { VxeButtonConstructor, VxeButtonPropTypes } from '../components/button'
8
8
  import { VxeIconPickerConstructor, VxeIconPickerDefines } from '../components/icon-picker'
@@ -102,6 +102,22 @@ declare module '@vxe-ui/core' {
102
102
  * 表格 - 自定义表尾单元格导出逻辑
103
103
  */
104
104
  tableFooterExportMethod?(params: VxeGlobalRendererHandles.TableFooterExportMethodParams<any>): string
105
+ /**
106
+ * 表格 - 自定义单元格格式化方法
107
+ */
108
+ tableCellFormatter?(renderOpts: VxeGlobalRendererHandles.RenderTableDefaultOptions, params: VxeGlobalRendererHandles.TableCellFormatterParams<any>): string
109
+ /**
110
+ * 表格 - 自定义单元格复制方法
111
+ */
112
+ tableCellCopyMethod?(renderOpts: VxeGlobalRendererHandles.RenderTableDefaultOptions, params: VxeGlobalRendererHandles.TableCellCopyMethodParams<any>): string
113
+ /**
114
+ * 表格 - 自定义单元格剪贴方法
115
+ */
116
+ tableCellCutMethod?(renderOpts: VxeGlobalRendererHandles.RenderTableDefaultOptions, params: VxeGlobalRendererHandles.TableCellCutMethodParams<any>): void
117
+ /**
118
+ * 表格 - 自定义单元格粘贴方法
119
+ */
120
+ tableCellPasteMethod?(renderOpts: VxeGlobalRendererHandles.RenderTableDefaultOptions, params: VxeGlobalRendererHandles.TableCellPasteMethodParams<any>): void
105
121
 
106
122
  /**
107
123
  * 表格 - 激活编辑状态时,设置自动聚焦的 class
@@ -404,6 +420,12 @@ declare module '@vxe-ui/core' {
404
420
  options: VxeTablePropTypes.ExportHandleOptions
405
421
  }
406
422
 
423
+ export interface TableCellFormatterParams<D = any> extends VxeColumnDefines.CellFormatterParams<D> {}
424
+
425
+ export interface TableCellCopyMethodParams<D = any> extends VxeColumnDefines.CellCopyParams<D> {}
426
+ export interface TableCellCutMethodParams<D = any> extends VxeColumnDefines.CellCutParams<D> {}
427
+ export interface TableCellPasteMethodParams<D = any> extends VxeColumnDefines.CellPasteParams<D> {}
428
+
407
429
  /**
408
430
  * @deprecated
409
431
  */