Skip to content

recommended to provide a default value for the Props property defined in VPfeature Component #1936

Closed
@daiwanxing

Description

@daiwanxing

Is your feature request related to a problem? Please describe.

When I used the VPfeature component, I only passed a title attribute value to it, but I opened the devtools and found that I got related warning information. I don't think this kind of warning message is very necessary for users.

image

Describe the solution you'd like

Provide a default value for non-required properties in the component

Describe alternatives you've considered

I have completed the relevant feature locally, If you think this is a good suggestion, I am willing to submit the relevant PR

Additional context

No response

Validations

  • Follow our Code of Conduct
    Read the docs.
    Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @daiwanxing

      Issue actions

        recommended to provide a default value for the Props property defined in VPfeature Component · Issue #1936 · vuejs/vitepress