Skip to content

Commit

Permalink
Merge pull request #3409 from yi-ge/master
Browse files Browse the repository at this point in the history
fixed Duplicate declaration h
  • Loading branch information
danielduan authored Apr 17, 2018
2 parents d956d51 + 064f058 commit 287a09d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/cli/generators/VUE/template/stories/index.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ storiesOf('Button', module)
}))
.add('with JSX', () => ({
components: { MyButton },
render() {
// eslint-disable-next-line no-unused-vars
render(h) {
return <my-button onClick={this.action}>With JSX</my-button>;
},
methods: { action: linkTo('clicked') },
Expand Down
3 changes: 2 additions & 1 deletion lib/cli/test/snapshots/vue/stories/index.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ storiesOf('Button', module)
}))
.add('with JSX', () => ({
components: { MyButton },
render() {
// eslint-disable-next-line no-unused-vars
render(h) {
return <my-button onClick={this.action}>With JSX</my-button>;
},
methods: { action: linkTo('clicked') },
Expand Down

0 comments on commit 287a09d

Please sign in to comment.