From 73c496946f3d76cb2d4bf87be87a9becf825d545 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 25 Apr 2023 10:45:41 +0800 Subject: [PATCH] feat: code style --- src/components/Table/src/hooks/useRender.ts | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/components/Table/src/hooks/useRender.ts b/src/components/Table/src/hooks/useRender.ts index 68642d1b..eee214e3 100644 --- a/src/components/Table/src/hooks/useRender.ts +++ b/src/components/Table/src/hooks/useRender.ts @@ -12,11 +12,7 @@ export const useRender = { */ renderImg: (text) => { if (text) { - return h(Image, { - src: text, - height: 80, - width: 80 - }) + return h(Image, { src: text, height: 80, width: 80 }) } return '' }, @@ -28,14 +24,7 @@ export const useRender = { */ renderLink: (url, text?) => { if (url) { - return h( - Button, - { - type: 'link', - href: text - }, - () => text || '' - ) + return h(Button, { type: 'link', href: text }, () => text || '') } return '' }, @@ -105,11 +94,7 @@ export const useRender = { */ renderDict: (text, type, dictType?) => { if (type) { - return h(DictTag, { - type: type, - value: text, - dictType: dictType || 'number' - }) + return h(DictTag, { type: type, value: text, dictType: dictType || 'number' }) } return '' },