From ce552272acf48fb2fbdecd24c13302c1fac0d313 Mon Sep 17 00:00:00 2001 From: Egor Volvachev Date: Sun, 18 Dec 2022 19:01:17 +0300 Subject: [PATCH] fix: update type for the column node that used `props` instead of `$props` Fixes #3395. --- components/lib/column/Column.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/lib/column/Column.d.ts b/components/lib/column/Column.d.ts index 7bd646f7da..1056de242e 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -61,7 +61,7 @@ export interface ColumnLoadingOptions extends VirtualScrollerLoaderOptions { /** * Column instance */ - column: Column; + column: ColumnNode; /** * Column field */ @@ -288,7 +288,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -314,7 +314,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; }): VNode[]; /** * Custom footer template. @@ -324,7 +324,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; }): VNode[]; /** * Custom editor template. @@ -338,7 +338,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -467,7 +467,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -503,6 +503,8 @@ export interface ColumnEmits {} */ declare class Column extends ClassComponent {} +export type ColumnNode = Column & { props: Column['$props'] }; + declare module '@vue/runtime-core' { interface GlobalComponents { Column: GlobalComponentConstructor;