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

32 lines
749 B
JavaScript

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