import React, { PureComponent } from 'react'; import { Tabs } from 'antd'; import style from "styled-components"; const store = require("store"); const { TabPane } = Tabs; export default class Comparison extends PureComponent { constructor(props, context) { super(props, context); this.state = { // currentURL: "http://localhost:3000/#/course/manage", }; } componentDidMount = () => { } render() { // const { currentURL } = this.state; return ( {store.get("comparison") !== undefined ? (
) : '' }
{store.get("canComparison") !== undefined ? (
) : '' }
); } } const Container = style.div` padding:10px 24px 24px; width:100%; height:100%; .ant-tabs{ height: 100%; // overflow: auto; } .ant-tabs-content{ height: 100%; } .frame_content{ height: 100%; iframe{ width: 100%; height: 100%; padding-bottom: 50px; min-height: 100%; overflow: auto; } } `;