Skip to content

一个不影响功能的警告 #1935

@peiyanlu

Description

@peiyanlu

WebStorm 警告:showDialog 不是 v-model:show 的有效值。预期值: v-model:show

Image

经过观察发现应该是 v-model:show 实现与官方推荐方式不一致导致:

WebStorm 支持的 v-model:show 为:

props: { modelValue: Boolean }
emits: ['update:modelValue']

编辑器没有检测到 update:show,因此导致 WebStorm 警告。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions