-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4285 from yaodingyd/patch-1
fix #2384: support string-only component for vue
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
examples/vue-kitchen-sink/src/stories/__snapshots__/core-template.stories.storyshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots Core|Template string only 1`] = ` | ||
<button | ||
class="button" | ||
style="color: rgb(66, 185, 131); border-color: #42b983;" | ||
> | ||
A Button with square edges! | ||
</button> | ||
`; |
6 changes: 6 additions & 0 deletions
6
examples/vue-kitchen-sink/src/stories/core-template.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { storiesOf } from '@storybook/vue'; | ||
|
||
storiesOf('Core|Template', module).add( | ||
'string only', | ||
() => '<my-button :rounded="false">A Button with square edges</my-button>' | ||
); |