Skip to content

about docgen api when use @property #985

@zhaozhe0831

Description

@zhaozhe0831

Thanks for your git,it’s very helpful to me.

I write comment like this. the docgen api parse to this.

I would like to learn about this is youer design? or is not noticed thing?

I'm hesitant to format the result of docgen api.

      /**
       * Success event.
       * @property {string} content content of the first prop passed to the event
       * @property {string} content.text content of the first prop passed to the event
       */
      this.$emit('success', content, {
        demo: 'example'
      })
{
    "name":"on-click",
    "description":"点击事件",
    "type":{
        "names":[
            "undefined"
        ]
    },
    "properties":[
        {
            "type":{
                "names":[
                    "object"
                ]
            },
            "name":"defaults",
            "description":"The default values for parties."
        },
        {
            "type":{
                "names":[
                    "number"
                ]
            },
            "name":"defaults",
            "description":".players       - The default number of players."
        },
        {
            "type":{
                "names":[
                    "string"
                ]
            },
            "name":"defaults",
            "description":".level         - The default level for the party."
        },
        {
            "type":{
                "names":[
                    "object"
                ]
            },
            "name":"defaults",
            "description":".treasure      - The default treasure."
        },
        {
            "type":{
                "names":[
                    "number"
                ]
            },
            "name":"defaults",
            "description":".treasure.gold - How much gold the party starts with."
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionstalemore than 60 days without activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions