Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix performance warning of ButtonLink component. (#8849)

3.0.0/version-upgrade
Amy0104 3 years ago committed by GitHub
parent
commit
fe7e987d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui-next/src/components/button-link/index.tsx

4
dolphinscheduler-ui-next/src/components/button-link/index.tsx

@ -40,8 +40,8 @@ const ButtonLink = defineComponent({
return () => ( return () => (
<NButton {...props} onClick={onClick} text class={styles['button-link']}> <NButton {...props} onClick={onClick} text class={styles['button-link']}>
{{ {{
default: renderSlot(slots, 'default'), default: () => renderSlot(slots, 'default'),
icon: renderSlot(slots, 'icon') icon: () => renderSlot(slots, 'icon')
}} }}
</NButton> </NButton>
) )

Loading…
Cancel
Save