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

Component description is not being generated when using class-style components #174

Open
tomvanoosterwyck opened this issue Jul 9, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@tomvanoosterwyck
Copy link

Describe the bug
Component description is not being generated when using class-style components

To Reproduce
Steps to reproduce the behavior:
1: Component:

<script lang="ts">
import Vue from 'vue'
import Component from 'vue-class-component'
import { Prop } from 'vue-property-decorator'

@Component({
  // ...
})
/**
 * @group GroupA
 * This is a description of the component
 */
export default class Child extends Vue {
  @Prop(Object) readonly propA: any
}
</script>

2: vuese gen

3:
Output:

# Child

## Props

<!-- @vuese:Child:props:start -->
|Name|Description|Type|Required|Default|
|---|---|---|---|---|
|propA|-|`Object`|`false`|-|

<!-- @vuese:Child:props:end -->

Expected behavior

# Child
This is a description of the component
## Props

<!-- @vuese:Child:props:start -->
|Name|Description|Type|Required|Default|
|---|---|---|---|---|
|propA|-|`Object`|`false`|-|

<!-- @vuese:Child:props:end -->

Environmental information:

vuese --version
1.4.7

System:

OS: Win 10 Pro Version 1903
Binaries:
Node: v12.18.2
Yarn: 1.22.4
npm: 6.14.5

Additional information
none

@IWANABETHATGUY IWANABETHATGUY added the bug Something isn't working label Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants