Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update type for the column node that used props instead of $props #3423

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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