-
-
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.
Vue3: Try reactivity without invoking args as props
- Loading branch information
1 parent
ff3c8c3
commit 8a50224
Showing
6 changed files
with
10 additions
and
71 deletions.
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
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
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
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
33 changes: 0 additions & 33 deletions
33
...rs/vue3/template/stories_vue3-vite-default-ts/CustomRenderOptionsArgsFromProps.stories.ts
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 |
---|---|---|
@@ -1,33 +0,0 @@ | ||
import type { Meta } from '@storybook/vue3'; | ||
import { defineComponent } from 'vue'; | ||
import Reactivity from './Reactivity.vue'; | ||
import * as ReactiveDecorators from './ReactiveDecorators.stories'; | ||
|
||
const meta = { | ||
...ReactiveDecorators.default, | ||
component: Reactivity, | ||
render: (args, { argTypes }) => { | ||
return defineComponent({ | ||
props: Object.keys(argTypes), | ||
components: { Reactivity }, | ||
template: `<div>Custom render uses options api and binds args to props: <Reactivity v-bind="$props"> | ||
<template #header="{title}"><h3>{{ header }} - Title: {{ title }}</h3></template> | ||
{{ $props.default }} | ||
<template #footer>{{ footer }}</template> | ||
</Reactivity> | ||
</div>`, | ||
}); | ||
}, | ||
} satisfies Meta<typeof Reactivity>; | ||
|
||
export default meta; | ||
|
||
export { | ||
NoDecorators, | ||
DecoratorFunctionalComponent, | ||
DecoratorFunctionalComponentArgsFromContext, | ||
DecoratorFunctionalComponentArgsFromProps, | ||
DecoratorComponentOptions, | ||
DecoratorComponentOptionsArgsFromData, | ||
DecoratorComponentOptionsArgsFromProps, | ||
} from './ReactiveDecorators.stories'; | ||
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