refactor(#10336): bind to local args
This commit is contained in:
parent
0960d61ce2
commit
f39b5be064
packages/frontend
.storybook
src/components
MkButton.stories.impl.ts
global
MkA.stories.impl.tsMkAcct.stories.impl.tsMkAd.stories.impl.tsMkAvatar.stories.impl.tsMkCustomEmoji.stories.impl.tsMkEmoji.stories.impl.tsMkLoading.stories.impl.tsMkMisskeyFlavoredMarkdown.stories.impl.tsMkPageHeader.stories.impl.tsMkTime.stories.impl.tsMkUrl.stories.impl.tsMkUserName.stories.impl.ts
@ -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,
|
||||
|
@ -17,7 +17,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -18,7 +18,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -16,7 +16,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -18,7 +18,7 @@ const common = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -16,7 +16,7 @@ const common = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -15,7 +15,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -15,7 +15,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -15,7 +15,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -17,7 +17,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -15,7 +15,7 @@ export const Empty = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -25,7 +25,7 @@ export const Empty = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -19,7 +19,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -18,7 +18,7 @@ export const Default = {
|
||||
computed: {
|
||||
props() {
|
||||
return {
|
||||
...args,
|
||||
...this.args,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user