vuese / vuese

🤗 One-stop solution for vue component documentation. Original org: https://github.com/vuese
https://vuese.github.io/website/
MIT License
1.69k stars 120 forks source link

Default Values missing due to PR #106 #129

Closed ChristianKienle closed 4 years ago

ChristianKienle commented 4 years ago

Describe the bug After PR #106 was merged default values for props stopped working.

To Reproduce Paste

<template>
  <div>
    <!-- Form header -->
    <slot name="header">
      <!-- `<th>title</th>` -->
      <th>title</th>
    </slot>
  </div>
</template>

<script>
// This is a description of the component
export default {
  name: 'MyComponent',
  props: {
    hello: {
      type: Boolean,
      default: true
    },
    // The name of the form, up to 8 characters
    name: {
      type: [String, Number],
      required: true,
      validator () {}
    }
  },
  methods: {
    // @vuese
    // Used to manually clear the form
    clear () {
      // Fire when the form is cleared
      // @arg The argument is a boolean value representing xxx
      this.$emit('onclear', true)
    }
  }
}
</script>

into vuese explorer and you will see that all default values are missing.

ChristianKienle commented 4 years ago

Thank you so much! <3