feature/低版本火狐浏览器
黎永顺 1 year ago
parent 335baa2c78
commit b992c06a21

@ -86,7 +86,7 @@
.expand-th:hover {
.toogle-lock-tool {
width: 37%;
display: flex;
}
}
@ -102,17 +102,15 @@
height: 100%;
.title-text {
width: 90%;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1 1;
cursor: pointer;
}
.toogle-lock-tool {
display: flex;
width: 0;
display: none;
overflow: hidden;
height: 100%;
justify-content: center;

@ -49,7 +49,7 @@ const calcFixedTotal: FunctionComponent<Props> = (props) => {
return (<>
{
_.map(columns, (item: any, index) => {
return <Table.Summary.Cell index={index + 1} key={index + 1}>
return <Table.Summary.Cell index={index + 1} key={index + 1} align="center">
{
loading ? <Spin spinning={loading} size="small"></Spin> :
<Text type="danger">{sumRow[item.dataIndex] || "-"}</Text>

@ -40,6 +40,7 @@ const TaxDeclareTable: FC = (props) => {
render: (_: any, record: any) => (
<Space>
<Button type="link" onClick={() => handleEdit(record)}>{i18n["编辑"]}</Button>
{/*<Button type="link" onClick={() => handleDelete(record)}>{i18n["删除"]}</Button>*/}
</Space>
)
}
@ -49,6 +50,9 @@ const TaxDeclareTable: FC = (props) => {
const handleEdit = (record: any) => {
window.parent.postMessage({ type: "turn", payload: { id: "EDIT", params: { ...record } } }, "*");
};
const handleDelete = (record: any) => {
window.parent.postMessage({ type: "turn", payload: { id: "DELETE", params: { ...record } } }, "*");
};
const onChange = (current: number, pageSize: number) => {
setPageInfo((prevState) => {
const { pageSize: size } = prevState;

Loading…
Cancel
Save