|
@@ -4,7 +4,8 @@ import ReactGridLayout from 'react-grid-layout'
|
|
|
import { Modal } from 'antd'
|
|
import { Modal } from 'antd'
|
|
|
import { connect } from 'dva'
|
|
import { connect } from 'dva'
|
|
|
import EmptyContent from '../common/emptyContent/index'
|
|
import EmptyContent from '../common/emptyContent/index'
|
|
|
-import { hashcode } from '../../utils/baseUtils'
|
|
|
|
|
|
|
+import { hashcode } from '../../utils/baseUtils';
|
|
|
|
|
+import RotateTarget from './rotateTarget.js';
|
|
|
import ViewLayoutItem from './viewLayoutItem';
|
|
import ViewLayoutItem from './viewLayoutItem';
|
|
|
|
|
|
|
|
class ViewLayout extends React.Component {
|
|
class ViewLayout extends React.Component {
|
|
@@ -149,7 +150,8 @@ class ViewLayout extends React.Component {
|
|
|
keyboard={true}
|
|
keyboard={true}
|
|
|
maskClosable={true}
|
|
maskClosable={true}
|
|
|
>
|
|
>
|
|
|
- {!!previewItem && this.createElement(dashboardDesigner.items.find(item => item.code === previewItem.code), true, false, {width: document.body.offsetWidth-36*2, height:document.body.offsetHeight - 40}, esMobile)}
|
|
|
|
|
|
|
+ {esMobile && <RotateTarget />}
|
|
|
|
|
+ {!!previewItem && this.createElement(dashboardDesigner.items.find(item => item.code === previewItem.code), true, false, {width: document.body.offsetWidth-36*2, height:document.body.offsetHeight - 40}, esMobile)}
|
|
|
</Modal>}
|
|
</Modal>}
|
|
|
</div>);
|
|
</div>);
|
|
|
}
|
|
}
|