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,
};
},
},