From b09a50d41ab70cd14c9037c6a483fb17cc2842a0 Mon Sep 17 00:00:00 2001 From: Egor Volvachev <34657605+volvachev@users.noreply.github.com> Date: Thu, 5 Oct 2023 15:48:38 +0300 Subject: [PATCH] fix: update type for the column node that used `props` instead of `$props` (#3423) 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 d2a293de23..aa8b0fa77c 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -94,7 +94,7 @@ export interface ColumnLoadingOptions extends VirtualScrollerLoaderOptions { /** * Column instance */ - column: Column; + column: ColumnNode; /** * Column field */ @@ -686,7 +686,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -713,7 +713,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; }): VNode[]; /** * Custom footer template. @@ -723,7 +723,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; }): VNode[]; /** * Custom editor template. @@ -737,7 +737,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -872,7 +872,7 @@ export interface ColumnSlots { /** * Column node. */ - column: Column; + column: ColumnNode; /** * Column field. */ @@ -988,6 +988,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;