mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
删掉编辑器 hack 的代码
This commit is contained in:
parent
cdbf7db6f0
commit
06e3eda803
@ -1154,7 +1154,6 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
);
|
||||
}
|
||||
|
||||
const $$id = column.pristine.$$id ? `${column.pristine.$$id}-column` : '';
|
||||
const subProps: any = {
|
||||
...props,
|
||||
btnDisabled: store.dragging,
|
||||
@ -1165,7 +1164,6 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
quickEditFormRef: this.subFormRef,
|
||||
prefix
|
||||
};
|
||||
delete subProps.$$id;
|
||||
delete subProps.label;
|
||||
|
||||
return render(
|
||||
@ -1173,8 +1171,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
{
|
||||
...column.pristine,
|
||||
column: column.pristine,
|
||||
type: 'cell',
|
||||
$$id
|
||||
type: 'cell'
|
||||
},
|
||||
subProps
|
||||
);
|
||||
@ -1306,7 +1303,6 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
onQuickChange={
|
||||
store.dragging ? null : this.handleQuickChange
|
||||
}
|
||||
$$editable={false /* 为了编辑器特意加的 */}
|
||||
/>
|
||||
);
|
||||
})
|
||||
@ -1468,7 +1464,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
}
|
||||
|
||||
const otherProps: any = {};
|
||||
editable === false && (otherProps.$$editable = false);
|
||||
// editable === false && (otherProps.$$editable = false);
|
||||
|
||||
const child = headerToolbarRender
|
||||
? headerToolbarRender(
|
||||
|
Loading…
Reference in New Issue
Block a user