删掉编辑器 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 = { const subProps: any = {
...props, ...props,
btnDisabled: store.dragging, btnDisabled: store.dragging,
@ -1165,7 +1164,6 @@ export default class Table extends React.Component<TableProps, object> {
quickEditFormRef: this.subFormRef, quickEditFormRef: this.subFormRef,
prefix prefix
}; };
delete subProps.$$id;
delete subProps.label; delete subProps.label;
return render( return render(
@ -1173,8 +1171,7 @@ export default class Table extends React.Component<TableProps, object> {
{ {
...column.pristine, ...column.pristine,
column: column.pristine, column: column.pristine,
type: 'cell', type: 'cell'
$$id
}, },
subProps subProps
); );
@ -1306,7 +1303,6 @@ export default class Table extends React.Component<TableProps, object> {
onQuickChange={ onQuickChange={
store.dragging ? null : this.handleQuickChange store.dragging ? null : this.handleQuickChange
} }
$$editable={false /* 为了编辑器特意加的 */}
/> />
); );
}) })
@ -1468,7 +1464,7 @@ export default class Table extends React.Component<TableProps, object> {
} }
const otherProps: any = {}; const otherProps: any = {};
editable === false && (otherProps.$$editable = false); // editable === false && (otherProps.$$editable = false);
const child = headerToolbarRender const child = headerToolbarRender
? headerToolbarRender( ? headerToolbarRender(