From a1899ded12ea668b3a9c7ea8c8452e8ae04fa5ea 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/column/Column.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/column/Column.d.ts b/components/column/Column.d.ts index 26bc8e1decc..397426e2390 100755 --- a/components/column/Column.d.ts +++ b/components/column/Column.d.ts @@ -47,7 +47,7 @@ export interface ColumnLoadingOptions extends VirtualScrollerLoaderOptions { /** * Column instance */ - column: Column; + column: ColumnNode; /** * Column field */ @@ -264,7 +264,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -290,7 +290,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; }) => VNode[]; /** * Custom footer template. @@ -300,7 +300,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; }) => VNode[]; /** * Custom editor template. @@ -314,7 +314,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -443,7 +443,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -468,6 +468,8 @@ export declare type ColumnEmits = {}; declare class Column extends ClassComponent {} +export declare type ColumnNode = Column & { props: Column['$props'] }; + declare module '@vue/runtime-core' { interface GlobalComponents { Column: GlobalComponentConstructor;