salary-management-front/pc4mobx/hrmSalary/pages/equationEditor/index.js

31 lines
750 B
JavaScript
Raw Normal View History

2023-04-13 10:00:24 +08:00
import React, { Component } from "react";
2023-04-28 10:51:06 +08:00
import { Button, Modal } from "antd";
2023-04-13 10:00:24 +08:00
import ExcelEditor from "../../components/excelEditor";
class Index extends Component {
2023-04-28 10:51:06 +08:00
constructor(props) {
super(props);
this.state = {
title: "DialogTitle",
visible: false,
lvisible: false
};
}
2023-04-13 10:00:24 +08:00
render() {
return (
2023-04-28 10:51:06 +08:00
<div>
2023-04-28 16:11:56 +08:00
<ExcelEditor onChange={()=>{}}/>
2023-04-28 10:51:06 +08:00
<Button type="primary" onClick={() => this.setState({ visible: true })}>显示对话框</Button>
<Modal title="第一个 Modal" visible={this.state.visible}
2023-04-28 16:11:56 +08:00
onCancel={() => this.setState({ visible: false })}
2023-04-28 10:51:06 +08:00
>
2023-04-28 16:11:56 +08:00
<ExcelEditor onChange={()=>{}}/>
2023-04-28 10:51:06 +08:00
</Modal>
</div>
2023-04-13 10:00:24 +08:00
);
}
}
export default Index;