Skip to content

Commit

Permalink
releases 4.2.43
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Nov 6, 2024
1 parent 0fefe40 commit 080e1af
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion helper/vetur/attributes.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion helper/vetur/tags.json

Large diffs are not rendered by default.

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.42",
"version": "4.2.43",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
35 changes: 26 additions & 9 deletions types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,6 @@ export namespace VxeTablePropTypes {
* 是否启用行拖拽排序
*/
drag?: boolean
/**
* 拖拽开始时是否允许行拖拽调整顺序的方法,该方法的返回值用来决定是否允许被拖拽
*/
dragStartMethod?(params: VxeTableDefines.RowDragstartEventParams<D>): boolean
/**
* 拖拽结束时是否允许行拖拽调整顺序的方法,该方法的返回值用来决定是否允许被拖拽调整顺序
*/
dragEndMethod?(params: Omit<VxeTableDefines.RowDragendEventParams<D>, '_index'>): Promise<boolean> | boolean
}
export interface RowOpts<D = any> extends RowConfig<D> { }

Expand All @@ -387,7 +379,32 @@ export namespace VxeTablePropTypes {
* 可拖拽配置项
*/
export interface DragConfig<D = any>{
showIcon?: boolean
/**
* 是否显示拖拽按钮图标
*/
showRowIcon?: boolean
/**
* 是否禁用拖拽按钮
*/
rowDisabledMethod?(params: {
row: D
column: VxeTableDefines.ColumnInfo<D>
}): boolean
/**
* 是否显示拖拽按钮
*/
rowVisibleMethod?(params: {
row: D
column: VxeTableDefines.ColumnInfo<D>
}): boolean
/**
* 拖拽开始时是否允许行拖拽调整顺序的方法,该方法的返回值用来决定是否允许被拖拽
*/
dragStartMethod?(params: VxeTableDefines.RowDragstartEventParams<D>): boolean
/**
* 拖拽结束时是否允许行拖拽调整顺序的方法,该方法的返回值用来决定是否允许被拖拽调整顺序
*/
dragEndMethod?(params: Omit<VxeTableDefines.RowDragendEventParams<D>, '_index'>): Promise<boolean> | boolean
}

/**
Expand Down

0 comments on commit 080e1af

Please sign in to comment.