Skip to content

The component type definition is wrong in Volar0.27.14 #4619

Open
@Qeney

Description

@Qeney
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.6

Environment

Vscode1.60.0,Volar0.27.14

Reproduction link

vuejs/language-tools#459

Steps to reproduce

vscode中使用volar插件,详见vuejs/language-tools#459

What is expected?

export declare class Button extends AntdComponent {
static Group: typeof ButtonGroup;
$props: {
type?: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
htmlType?: 'button' | 'submit' | 'reset' | 'menu';
icon?: string;
shape?: 'circle' | 'circle-outline';
size?: 'small' | 'large' | 'default';
loading?: boolean | { delay: number };
disabled?: boolean;
ghost?: boolean;
block?: boolean;
}
}

What is actually happening?

export declare class Button extends AntdComponent {
static Group: typeof ButtonGroup;
type: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
htmlType: 'button' | 'submit' | 'reset' | 'menu';
icon: string;
shape: 'circle' | 'circle-outline';
size: 'small' | 'large' | 'default';
loading: boolean | { delay: number };
disabled: boolean;
ghost: boolean;
block: boolean;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions