Skip to content

Commit

Permalink
perf: fs-button增加buttonProps参数,当fs-button的属性与x-button属性名重复时使用
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Aug 18, 2023
1 parent aeb4868 commit 5ca5333
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/fast-crud/src/components/basic/fs-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineComponent({
* x-button的配置,当x-button的配置与fs-button的配置有冲突时可以配置在此处
* 比如:n-button的text
*/
props: {
buttonProps: {
type: Object,
default: undefined
}
Expand Down Expand Up @@ -115,7 +115,7 @@ export default defineComponent({
"is-thin": !props.text && !ctx.slots.default
}
},
{ ...ctx.attrs, ...props.props }
{ ...ctx.attrs, ...props.buttonProps }
);
if (iconProp) {
// @ts-ignore
Expand Down

0 comments on commit 5ca5333

Please sign in to comment.