Skip to content

Commit

Permalink
releases 4.3.25
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Dec 10, 2024
1 parent 9f75df9 commit 2a763cb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-pc-ui",
"version": "4.3.24",
"version": "4.3.25",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand All @@ -25,7 +25,7 @@
"style": "lib/style.css",
"typings": "types/index.d.ts",
"dependencies": {
"@vxe-ui/core": "^4.0.20"
"@vxe-ui/core": "^4.0.22"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.21.0",
Expand Down
6 changes: 3 additions & 3 deletions types/components/table-module/filter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,17 @@ export interface TableFilterMethods<D = any> {
openFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any>):Promise<void>
/**
* 用于 filters,修改筛选列表
* 在筛选条件更新之后可以调用 updateData 函数处理表格数据
* @param columnOrField 列对象或字段名
* @param options 选项列表
* @param update 是否同时更新数据
* @param update 是否同时更新数据,如果不传,则可以手动调用 updateData() 更新数据
*/
setFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any>, options: VxeColumnPropTypes.FilterItem[], update?: boolean): Promise<void>
/**
* 手动清空筛选条件
* 如果不传 column 则清空所有筛选条件,数据会恢复成未筛选的状态
* @param column 字段名
*/
clearFilter(column?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): Promise<void>
clearFilter(fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): Promise<void>
/**
* 用于在自定义面板中使用,手动确认筛选
*/
Expand All @@ -69,6 +68,7 @@ export interface TableFilterPrivateMethods<D = any> {
checkFilterOptions(): void
handleClearFilter(column: any): void
triggerFilterEvent(evnt: any, column: any, params: any): void
handleColumnConfirmFilter(column: VxeTableDefines.ColumnInfo, evnt: Event | null): Promise<any>
confirmFilterEvent(evnt: Event | null): void
handleFilterChangeRadioOption (evnt: Event, checked: boolean, item: any): void
handleFilterChangeMultipleOption (evnt: Event, checked: boolean, item: any): void
Expand Down
10 changes: 9 additions & 1 deletion types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3308,13 +3308,20 @@ export interface TableMethods<DT = any> {
*/
clearCurrentColumn(): Promise<void>
/**
* 手动对表格进行排序
* 手动对表格进行排序,建议使用 setSort 方法
* @param sortConfs 字段名、多列排序
* @param order 排序方式
*/
sort(field: string, order?: VxeTablePropTypes.SortOrder): Promise<void>
sort(sortConfs: VxeTableDefines.SortConfs, order?: VxeTablePropTypes.SortOrder): Promise<void>
sort(sortConfs: VxeTableDefines.SortConfs[], order?: VxeTablePropTypes.SortOrder): Promise<void>

/**
* 手动对表格进行排序
* @param sortConfs
* @param update 是否同时更新数据,如果不传,则可以手动调用 updateData() 更新数据
*/
setSort(sortConfs: VxeTableDefines.SortConfs | VxeTableDefines.SortConfs[], update?: boolean)
/**
* 手动清空排序条件,数据会恢复成未排序的状态
* @param columnOrField 列对象或字段名
Expand Down Expand Up @@ -3584,6 +3591,7 @@ export interface TablePrivateMethods<D = any> {
}): void
triggerRowExpandEvent(evnt: Event, params: VxeTableDefines.CellRenderBodyParams<any>): void
triggerTreeExpandEvent(evnt: Event, params: VxeTableDefines.CellRenderBodyParams<any>): void
handleColumnSortEvent(evnt: Event, column: VxeTableDefines.ColumnInfo): void
triggerSortEvent(evnt: Event, column: VxeTableDefines.ColumnInfo<any>, order: VxeTablePropTypes.SortOrder): void
handleRowDragDragstartEvent (evnt: DragEvent): void
handleRowDragDragendEvent(evnt: DragEvent): void
Expand Down

0 comments on commit 2a763cb

Please sign in to comment.