trunk/pc4mobx/organization/components/columnSetting/customItem.js

32 lines
749 B
JavaScript
Raw Normal View History

2022-11-10 16:10:21 +08:00
import React, { Component } from "react";
import { WeaTableEdit } from "ecCom";
import { inject, observer } from "mobx-react";
2022-11-10 18:50:45 +08:00
@inject("columnSetting")
2022-11-10 16:10:21 +08:00
@observer
class CustomItem extends Component {
componentDidMount() {
this.init();
}
init = () => {
2022-11-10 18:50:45 +08:00
const { columnSetting } = this.props;
columnSetting.loadTabThreeRelatedData();
2022-11-10 16:10:21 +08:00
};
render() {
2022-11-10 18:50:45 +08:00
const { columnSetting } = this.props, { tableEditConfig, refreshMainTabComponent } = columnSetting;
2022-11-10 16:10:21 +08:00
return (
<div>
<WeaTableEdit
ecId={`${this && this.props && this.props.ecId || ""}_WeaTableEdit@5fu5eh`}
rowKey={"fieldidrowKey"}
{...tableEditConfig['fieldDef']}
/>
</div>
);
}
}
export default CustomItem;