refactor(#10336): bind to local args

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-01 16:35:05 +09:00
parent 0960d61ce2
commit f39b5be064
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
14 changed files with 26 additions and 15 deletions

View File

@ -481,10 +481,21 @@ function toStories(component: string): string {
<spread-element <spread-element
argument={ argument={
( (
<member-expression
object={
(
<this-expression />
) as estree.ThisExpression
}
property={
(
<identifier name='args' /> <identifier name='args' />
) as estree.Identifier ) as estree.Identifier
} }
/> />
) as estree.MemberExpression
}
/>
) as estree.SpreadElement, ) as estree.SpreadElement,
]} ]}
/> />

View File

@ -17,7 +17,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -18,7 +18,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -16,7 +16,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -18,7 +18,7 @@ const common = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -16,7 +16,7 @@ const common = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -15,7 +15,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -15,7 +15,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -15,7 +15,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -17,7 +17,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -15,7 +15,7 @@ export const Empty = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -25,7 +25,7 @@ export const Empty = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -19,7 +19,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },

View File

@ -18,7 +18,7 @@ export const Default = {
computed: { computed: {
props() { props() {
return { return {
...args, ...this.args,
}; };
}, },
}, },