提交 ec2b27c6 authored 作者: 钟是志's avatar 钟是志

3504 【严重bug】弹框渲染问题。

上级 9f305f1a
......@@ -5,13 +5,18 @@ import styles from './style.less'
const Modal = getModal();
export default class FormModal extends React.Component {
render() {
const showFullScreen = () => {
let dom = document.getElementById('smartFormModal');
dom.requestFullscreen();
console.log(dom);
};
constructor(props) {
super(props);
}
showFullScreen = () => {
let dom = document.getElementById('smartFormModal');
dom.requestFullscreen();
console.log(dom);
}
render() {
console.log(this.props.title);
return (
<Modal
bodyStyle={{
......@@ -28,7 +33,7 @@ export default class FormModal extends React.Component {
footer={null}
onCancel={this.props.handleCancel}>
{this.props.showFullScreen && (
<Button type={'primary'} onClick={showFullScreen}>
<Button type={'primary'} onClick={this.showFullScreen}>
全屏查看
</Button>
)}
......
......@@ -181,6 +181,7 @@ export default class TableCom extends Component {
const { dispatch } = this.props;
const x = this.props.DataColumn.isShowModal;
console.log(x);
x[fk] = true;
this.setState(
{
......
......@@ -42,7 +42,6 @@ if (!globalThis.CONFIG) {
const queryConfig = (key) => {
const dynamicConfig = typeof globalThis !== 'undefined' ? globalThis.CONFIG : window.CONFIG;
console.log(dynamicConfig, key);
if (typeof key === 'undefined') return dynamicConfig;
return dynamicConfig[key];
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论