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

fix #2384: support string-only component for vue #4285

Merged
merged 2 commits into from
Oct 8, 2018
Merged

fix #2384: support string-only component for vue #4285

merged 2 commits into from
Oct 8, 2018

Conversation

yaodingyd
Copy link
Contributor

Issue: #2384

What I did

Add support for string only component

@@ -20,6 +20,10 @@ export default function render({
Vue.config.errorHandler = showException;

const component = story();

if (typeof component === 'string') {
component = { template: component };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

component is a const, you can't reassign it, can you please fix it ?
I think we need an example story as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@codecov
Copy link

codecov bot commented Oct 8, 2018

Codecov Report

Merging #4285 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4285      +/-   ##
==========================================
- Coverage    40.2%   40.19%   -0.02%     
==========================================
  Files         510      510              
  Lines        5944     5946       +2     
  Branches      794      795       +1     
==========================================
  Hits         2390     2390              
- Misses       3169     3170       +1     
- Partials      385      386       +1
Impacted Files Coverage Δ
app/vue/src/client/preview/render.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db9616b...c93bcaf. Read the comment docs.

Copy link
Member

@igor-dv igor-dv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@igor-dv igor-dv merged commit c845723 into storybookjs:master Oct 8, 2018
@yaodingyd yaodingyd deleted the patch-1 branch October 9, 2018 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants