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,8 +481,19 @@ function toStories(component: string): string {
<spread-element
argument={
(
<identifier name='args' />
) as estree.Identifier
<member-expression
object={
(
<this-expression />
) as estree.ThisExpression
}
property={
(
<identifier name='args' />
) as estree.Identifier
}
/>
) as estree.MemberExpression
}
/>
) as estree.SpreadElement,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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