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

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

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