forked from p96170835/amis
添加一个 field 可以通过它来实现图片列表成员 popable Copyable 功能
This commit is contained in:
parent
e70ab2070a
commit
7571805403
|
@ -2179,3 +2179,16 @@ export class TableCell extends React.Component<RendererProps> {
|
|||
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',
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue