Skip to content

Commit

Permalink
fix: fix ts private problem in BaseTable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Sep 14, 2023
1 parent 1fb970b commit d808d4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/vtable/src/core/BaseTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,8 @@ export abstract class BaseTable extends EventTarget implements BaseTableAPI {
* 根据设置的列宽配置 计算列宽值
* @param {string|number} width width definition
* @returns {number} the pixels of width
* @private
*/
private _colWidthDefineToPxWidth(width: string | number): number {
_colWidthDefineToPxWidth(width: string | number): number {
if (width === 'auto') {
// hack for defaultWidht support 'auto'
return 0;
Expand Down Expand Up @@ -724,7 +723,7 @@ export abstract class BaseTable extends EventTarget implements BaseTableAPI {
return result as never;
}

private _adjustColWidth(col: number, orgWidth: number): number {
_adjustColWidth(col: number, orgWidth: number): number {
const limits = this._getColWidthLimits(col);
return Math.max(_applyColWidthLimits(limits, orgWidth), 0);
}
Expand Down

0 comments on commit d808d4e

Please sign in to comment.