Skip to content

Commit

Permalink
fix: update type for the column node that used props instead of `$p…
Browse files Browse the repository at this point in the history
…rops`

Fixes #3395.
  • Loading branch information
volvachev committed Apr 11, 2023
1 parent ff609bf commit ce55227
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/lib/column/Column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface ColumnLoadingOptions extends VirtualScrollerLoaderOptions {
/**
* Column instance
*/
column: Column;
column: ColumnNode;
/**
* Column field
*/
Expand Down Expand Up @@ -288,7 +288,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand All @@ -314,7 +314,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
}): VNode[];
/**
* Custom footer template.
Expand All @@ -324,7 +324,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
}): VNode[];
/**
* Custom editor template.
Expand All @@ -338,7 +338,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand Down Expand Up @@ -467,7 +467,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand Down Expand Up @@ -503,6 +503,8 @@ export interface ColumnEmits {}
*/
declare class Column extends ClassComponent<ColumnProps, ColumnSlots, ColumnEmits> {}

export type ColumnNode = Column & { props: Column['$props'] };

declare module '@vue/runtime-core' {
interface GlobalComponents {
Column: GlobalComponentConstructor<Column>;
Expand Down

0 comments on commit ce55227

Please sign in to comment.