删掉编辑器 hack 的代码

This commit is contained in:
liaoxuezhi 2019-11-18 15:02:01 +08:00
parent cdbf7db6f0
commit 06e3eda803

View File

@ -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(