From 91b3461baa4ea76ebaf55762a25d197a3ca9f92a Mon Sep 17 00:00:00 2001 From: wangailin Date: Wed, 13 Apr 2022 18:40:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=97=E8=A1=A8=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0URL=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tableColumns/text/index.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/tableColumns/text/index.tsx b/src/components/tableColumns/text/index.tsx index 639f6fc..e82a169 100644 --- a/src/components/tableColumns/text/index.tsx +++ b/src/components/tableColumns/text/index.tsx @@ -3,10 +3,13 @@ import Column, { ColumnConfig } from '../common' export interface TextColumnConfig extends ColumnConfig { type: 'text' + // 临时方案 后续优化 + linkUrl: boolean } export interface ITextColumn { value: string + linkUrl: boolean } export default class TextColumn extends Column { @@ -31,11 +34,17 @@ export default class TextColumn extends Column { } render = () => { + const { + config: { + linkUrl + } + } = this.props + const value = this.getValue() return ( - {this.renderComponent({ value })} + {this.renderComponent({ value, linkUrl })} ) } -- Gitee