Skip to content

Commit

Permalink
releases 4.2.50
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Nov 10, 2024
1 parent e449b69 commit 7328cb8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
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.49",
"version": "4.2.50",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
4 changes: 4 additions & 0 deletions types/components/grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ export namespace VxeGridDefines {
export interface EditDisabledEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditDisabledEventParams<D> { }
export interface ValidErrorEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ValidErrorEventParams<D> { }
export interface ScrollEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollEventParams<D> { }
export interface ScrollBoundaryEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollBoundaryEventParams<D> { }
export interface CustomEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomEventParams<D> { }
export interface RowDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragstartEventParams<D> { }
export interface RowDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragoverEventParams<D> { }
Expand Down Expand Up @@ -459,6 +460,7 @@ export interface VxeGridEventProps<D = any> {
onEditDisabled?: VxeGridEvents.EditDisabled<D>
onValidError?: VxeGridEvents.ValidError<D>
onScroll?: VxeGridEvents.Scroll<D>
onScrollBoundary?: VxeGridEvents.ScrollBoundary<D>
onCustom?: VxeGridEvents.Custom<D>
onRowDragstart?: VxeGridEvents.RowDragstart<D>
onRowDragover?: VxeGridEvents.RowDragover<D>
Expand Down Expand Up @@ -519,6 +521,7 @@ export interface VxeGridListeners<D = any> {
editDisabled?: VxeGridEvents.EditDisabled<D>
validError?: VxeGridEvents.ValidError<D>
scroll?: VxeGridEvents.Scroll<D>
scrollBoundary?: VxeGridEvents.ScrollBoundary<D>
custom?: VxeGridEvents.Custom<D>
rowDragstart?: VxeGridEvents.RowDragstart<D>
rowDragover?: VxeGridEvents.RowDragover<D>
Expand Down Expand Up @@ -579,6 +582,7 @@ export namespace VxeGridEvents {
export type EditDisabled<D = any> = (params: VxeGridDefines.EditDisabledEventParams<D>) => void
export type ValidError<D = any> = (params: VxeGridDefines.ValidErrorEventParams<D>) => void
export type Scroll<D = any> = (params: VxeGridDefines.ScrollEventParams<D>) => void
export type ScrollBoundary<D = any> = (params: VxeGridDefines.ScrollBoundaryEventParams<D>) => void
export type Custom<D = any> = (params: VxeGridDefines.CustomEventParams<D>) => void
export type RowDragstart<D = any> = (params: VxeGridDefines.RowDragstartEventParams<D>) => void
export type RowDragover<D = any> = (params: VxeGridDefines.RowDragoverEventParams<D>) => void
Expand Down
26 changes: 21 additions & 5 deletions types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,10 @@ export namespace VxeTablePropTypes {
* 当数据源被更改时,自动将横向滚动条滚动到左侧
*/
scrollToLeftOnChange?: boolean
/**
* 滚动到边界触发的阈值,当设置该值后,可以通过 scroll 事件中的参数 triggerBoundary 判断是否触发边界值
*/
threshold?: string | number
}
export interface SXOpts extends ScrollX {
gt: number
Expand All @@ -1516,7 +1520,9 @@ export namespace VxeTablePropTypes {

export interface ScrollY {
/**
* 滚动模式
* 滚动模式,
* default 原生滚动模式
* wheel 优化模式可以降低渲染期的白屏
*/
mode?: 'default' | 'wheel'
/**
Expand All @@ -1528,21 +1534,25 @@ export namespace VxeTablePropTypes {
*/
oSize?: number
/**
* 是否启用
* 是否启用纵向虚拟滚动
*/
enabled?: boolean
/**
* 当数据源被更改时,自动将纵向滚动条滚动到顶部
* 当数据源被更改时,自动将纵向滚动条复原到顶部
*/
scrollToTopOnChange?: boolean
/**
* 滚动到边界触发的阈值,当设置该值后,可以通过 scroll 事件中的参数 triggerBoundary 判断是否触发边界值
*/
threshold?: string | number

/**
* 请使用 row-config.height
* 已废弃,请使用 row-config.height
* @deprecated
*/
rHeight?: number
/**
* 不建议使用
* 已废弃,不建议使用
* @deprecated
*/
adaptive?: boolean
Expand Down Expand Up @@ -3401,6 +3411,7 @@ export type VxeTableEmits = [
'edit-disabled',
'valid-error',
'scroll',
'scroll-boundary',
'custom',

...VxeTableProEmits
Expand Down Expand Up @@ -3997,10 +4008,12 @@ export namespace VxeTableDefines {
isBottom: boolean
isLeft: boolean
isRight: boolean
direction: 'top' | 'bottom' | 'left' | 'right'
}
export interface ScrollEventParams<D = any> extends TableEventParams<D>, ScrollParams {
target: HTMLDivElement
}
export interface ScrollBoundaryEventParams<D = any> extends ScrollEventParams<D> {}

export type CustomType = '' | 'confirm' | 'reset' | 'cancel' | 'close' | 'open'

Expand Down Expand Up @@ -4290,6 +4303,7 @@ export interface VxeTableEventProps<D = any> {
onEditDisabled?: VxeTableEvents.EditDisabled<D>
onValidError?: VxeTableEvents.ValidError<D>
onScroll?: VxeTableEvents.Scroll<D>
onScrollBoundary?: VxeTableEvents.ScrollBoundary<D>
onCustom?: VxeTableEvents.Custom<D>
onRowDragstart?: VxeTableEvents.RowDragstart<D>
onRowDragover?: VxeTableEvents.RowDragover<D>
Expand Down Expand Up @@ -4355,6 +4369,7 @@ export interface VxeTableListeners<D = any> {
* 表格滚动时会触发该事件
*/
scroll?: VxeTableEvents.Scroll<D>
scrollBoundary?: VxeTableEvents.ScrollBoundary<D>
/**
* 如果与工具栏关联,在自定义列按钮被手动点击后会触发该事件
*/
Expand Down Expand Up @@ -4409,6 +4424,7 @@ export namespace VxeTableEvents {
export type EditDisabled<D = VxeTablePropTypes.Row> = (params: VxeTableDefines.EditDisabledEventParams<D>) => void
export type ValidError<D = VxeTablePropTypes.Row> = (params: VxeTableDefines.ValidErrorEventParams<D>) => void
export type Scroll<D = VxeTablePropTypes.Row> = (params: VxeTableDefines.ScrollEventParams<D>) => void
export type ScrollBoundary<D = VxeTablePropTypes.Row> = (params: VxeTableDefines.ScrollBoundaryEventParams<D>) => void
export type Custom<D = VxeTablePropTypes.Row> = (params: VxeTableDefines.CustomEventParams<D>) => void
export type RowDragstart<D = VxeTablePropTypes.Row> = (params: VxeTableDefines.RowDragstartEventParams<D>) => void
export type RowDragover<D = VxeTablePropTypes.Row> = (params: VxeTableDefines.RowDragoverEventParams<D>) => void
Expand Down

0 comments on commit 7328cb8

Please sign in to comment.