File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <script setup>
2+ const emit = defineEmits ([' click' ])
3+ const onClick = () => emit (' click' )
4+ </script >
5+
6+ <template >
7+ <button type =" button" @click =" onClick" >
8+ <slot />
9+ </button >
10+ </template >
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ const isLikelyVueComponent = (nodeType: any) => {
99 if ( ! ! nodeType . __name && ! ! nodeType . __scopeId ) {
1010 return true
1111 }
12+ if ( ! ! nodeType . __name && ! ! nodeType . __hmrId ) {
13+ return true
14+ }
1215 if ( ! ! nodeType . name && ! ! nodeType . setup ) {
1316 return true
1417 }
Original file line number Diff line number Diff line change 1+ import { Meta } from ' @storybook/blocks'
2+
3+ import DemoStylelessButton from ' ../components/StylelessButton.vue'
4+ import { Fragment } from ' react'
5+ import { Fragment as VueFragment } from ' vue'
6+
7+ <Meta title = " Vue/Without style tag" />
8+
9+ # Vue component without style tag
10+
11+ <DemoStylelessButton >Click me</DemoStylelessButton >
You can’t perform that action at this time.
0 commit comments