Skip to content

Commit

Permalink
releases 4.2.37
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Nov 1, 2024
1 parent f234ee8 commit c51adee
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-pc-ui",
"version": "4.2.36",
"version": "4.2.37",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
23 changes: 23 additions & 0 deletions types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,10 @@ export namespace VxeTablePropTypes {
* 自定义打印内容
*/
html?: string
/**
* 自定义参数
*/
params?: Record<string, any>
/**
* 列过滤方法
*/
Expand Down Expand Up @@ -1745,6 +1749,17 @@ export namespace VxeTablePropTypes {
content: string
}): string

/**
* 自定义高级导出窗口的插槽模板
*/
slots?: {
top?: string | ((params: VxeTableDefines.PrintSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
bottom?: string | ((params: VxeTableDefines.PrintSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
default?: string | ((params: VxeTableDefines.PrintSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
footer?: string | ((params: VxeTableDefines.PrintSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
parameter?: string | ((params: VxeTableDefines.PrintSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
}

/**
* 已被 html 替换
* @deprecated
Expand Down Expand Up @@ -3933,6 +3948,14 @@ export namespace VxeTableDefines {
params: Record<string, any>
}

export interface PrintSlotParams {
$table: VxeTableConstructor
$grid: VxeGridConstructor | bull | undefined
options: VxeTablePropTypes.PrintConfig
columns: VxeTableDefines.ColumnInfo[]
params: Record<string, any>
}

export interface ValidatorRule<D = any> {
/**
* 是否必填
Expand Down

0 comments on commit c51adee

Please sign in to comment.