| | |
| | | import React, {Component} from 'react' |
| | | import { Icon, Tabs } from 'antd' |
| | | import { Tabs } from 'antd' |
| | | import { PlusOutlined, CloseOutlined } from '@ant-design/icons' |
| | | |
| | | import Utils from '@/utils/utils.js' |
| | | import MKEmitter from '@/utils/events.js' |
| | |
| | | |
| | | return ( |
| | | <div className="workspace-wrap"> |
| | | <Icon className="add-view" type="plus" onClick={this.handleAdd} /> |
| | | <PlusOutlined className="add-view" onClick={this.handleAdd} /> |
| | | <Tabs type="card"> |
| | | {tabviews.map(view => { |
| | | return ( |
| | |
| | | <span className="interface"> |
| | | {view.interface || 'Untitled Request'} |
| | | </span> |
| | | <Icon type="close" onClick={() => this.handleTabview(view)}/> |
| | | <CloseOutlined onClick={() => this.handleTabview(view)}/> |
| | | </span> |
| | | } |
| | | key={view.uuid} |