mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +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 = {
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user