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

When the component has several methods, the generation seems to have bug. #4

Closed
gymmer opened this issue Oct 24, 2018 · 6 comments
Closed

Comments

@gymmer
Copy link

gymmer commented Oct 24, 2018

When the component has more than one methods, the generation seems to have bug.

For example:

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

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

    // @vuese
    // clear2: Used to manually clear the form
    clear2 () {
      // Fire when the form is cleared
      // @arg The argument is a boolean value representing xxx
      this.$emit('onclear', true)
    }
  }
}
</script>

image

@HcySunYang
Copy link
Member

Just use vuese@1.0.4

@ferrinweb
Copy link

sorry, but the bug is still exists in 1.0.4 version.
20181025094416

@HcySunYang
Copy link
Member

Can you provide a component that can reproduce the problem? The component you originally provided works fine.

@ferrinweb
Copy link

Please try this file: scroll-box.vue
And, this component can reproduce #3 bug, too.

@HcySunYang
Copy link
Member

Are you sure you installed 1.0.4? I tried it and it works.

@ferrinweb
Copy link

very sorry, it is indeed that I am wrong, I did not install the new version to the global.
sorry for taking up your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants