From 1c1753dd24f32dbe3df62f87e7b92a5a1d715cd3 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 19 Aug 2019 19:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=20field=20?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E9=80=9A=E8=BF=87=E5=AE=83=E6=9D=A5=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E5=9B=BE=E7=89=87=E5=88=97=E8=A1=A8=E6=88=90=E5=91=98?= =?UTF-8?q?=20popable=20Copyable=20=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Table.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/renderers/Table.tsx b/src/renderers/Table.tsx index 495b34f52..b8970dc33 100644 --- a/src/renderers/Table.tsx +++ b/src/renderers/Table.tsx @@ -2179,3 +2179,16 @@ export class TableCell extends React.Component { export class TableCellRenderer extends TableCell { static propsList = ['quickEdit', 'quickEditEnabledOn', 'popOver', 'copyable', 'inline', ...TableCell.propsList]; } + +@Renderer({ + test: /(^|\/)field$/, + name: 'field', +}) +@PopOverable() +@Copyable() +export class FieldRenderer extends TableCell { + static defaultProps = { + ...TableCell.defaultProps, + wrapperComponent: 'div', + }; +}