mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
添加一个 field 可以通过它来实现图片列表成员 popable Copyable 功能
This commit is contained in:
parent
eaf8135ff8
commit
1c1753dd24
@ -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
Block a user