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` (#3423)

Fixes #3395.
  • Loading branch information
volvachev authored Oct 5, 2023
1 parent 0993710 commit b09a50d
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 @@ -94,7 +94,7 @@ export interface ColumnLoadingOptions extends VirtualScrollerLoaderOptions {
/**
* Column instance
*/
column: Column;
column: ColumnNode;
/**
* Column field
*/
Expand Down Expand Up @@ -686,7 +686,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand All @@ -713,7 +713,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
}): VNode[];
/**
* Custom footer template.
Expand All @@ -723,7 +723,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
}): VNode[];
/**
* Custom editor template.
Expand All @@ -737,7 +737,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand Down Expand Up @@ -872,7 +872,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand Down Expand Up @@ -988,6 +988,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 b09a50d

Please sign in to comment.