-
-
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 latest-release into version-non-patch-from-8.1.0-beta.1 with co…
…nflicts resolved to ours [skip ci]
- Loading branch information
Showing
11 changed files
with
167 additions
and
33 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
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
16 changes: 16 additions & 0 deletions
16
...enderers/vue3/template/stories_vue3-vite-default-ts/component-meta/DefineModel.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { Meta, StoryObj } from '@storybook/vue3'; | ||
import Component from './define-model/component.vue'; | ||
|
||
const meta = { | ||
component: Component, | ||
tags: ['autodocs'], | ||
} satisfies Meta<typeof Component>; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
export default meta; | ||
|
||
export const Default: Story = { | ||
args: { | ||
modelValue: 'Test value', | ||
}, | ||
}; |
18 changes: 18 additions & 0 deletions
18
...enderers/vue3/template/stories_vue3-vite-default-ts/component-meta/DefineSlots.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { Meta, StoryObj } from '@storybook/vue3'; | ||
import Component from './define-slots/component.vue'; | ||
|
||
const meta = { | ||
component: Component, | ||
tags: ['autodocs'], | ||
} satisfies Meta<typeof Component>; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
export default meta; | ||
|
||
export const Default: Story = { | ||
args: { | ||
default: ({ num }) => `Default slot { num=${num} }`, | ||
named: ({ str }) => `Named slot { str=${str} }`, | ||
vbind: ({ num, str }) => `Named v-bind slot { num=${num}, str=${str} }`, | ||
}, | ||
}; |
7 changes: 7 additions & 0 deletions
7
...rers/vue3/template/stories_vue3-vite-default-ts/component-meta/define-model/component.vue
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,7 @@ | ||
<script setup lang="ts"> | ||
const model = defineModel<string>(); | ||
</script> | ||
|
||
<template> | ||
{{ model }} | ||
</template> |
22 changes: 22 additions & 0 deletions
22
...rers/vue3/template/stories_vue3-vite-default-ts/component-meta/define-slots/component.vue
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,22 @@ | ||
<script setup lang="ts"> | ||
defineSlots<{ | ||
/** Some description for "no-bind" slot. */ | ||
'no-bind'(): any; | ||
/** Some description for "default" slot. */ | ||
default(props: { num: number }): any; | ||
/** Some description for "named" slot. */ | ||
named(props: { str: string }): any; | ||
/** Some description for "vbind" slot. */ | ||
vbind(props: { num: number; str: string }): any; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<slot name="no-bind"></slot> | ||
<br /> | ||
<slot :num="123"></slot> | ||
<br /> | ||
<slot name="named" str="str"></slot> | ||
<br /> | ||
<slot name="vbind" v-bind="{ num: 123, str: 'str' }"></slot> | ||
</template> |
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