You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/14 07:18:59 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix performance warning of ButtonLink component. (#8849)

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new fe7e987  [Fix][UI Next][V1.0.0-Alpha] Fix performance warning of ButtonLink component. (#8849)
fe7e987 is described below

commit fe7e987d5374ff5854384df8c2854dc40ef1e351
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Mon Mar 14 15:18:53 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha] Fix performance warning of ButtonLink component. (#8849)
---
 dolphinscheduler-ui-next/src/components/button-link/index.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dolphinscheduler-ui-next/src/components/button-link/index.tsx b/dolphinscheduler-ui-next/src/components/button-link/index.tsx
index 96f1aff..19e5ef1 100644
--- a/dolphinscheduler-ui-next/src/components/button-link/index.tsx
+++ b/dolphinscheduler-ui-next/src/components/button-link/index.tsx
@@ -40,8 +40,8 @@ const ButtonLink = defineComponent({
     return () => (
       <NButton {...props} onClick={onClick} text class={styles['button-link']}>
         {{
-          default: renderSlot(slots, 'default'),
-          icon: renderSlot(slots, 'icon')
+          default: () => renderSlot(slots, 'default'),
+          icon: () => renderSlot(slots, 'icon')
         }}
       </NButton>
     )