import React, {Component} from 'react'
|
// import { fromJS } from 'immutable'
|
import { Modal, Button } from 'antd'
|
|
// import Utils from '@/utils/utils.js'
|
// import asyncComponent from '@/utils/asyncComponent'
|
import './index.scss'
|
|
// const PasteForm = asyncComponent(() => import('@/templates/zshare/pasteform'))
|
|
class PasteController extends Component {
|
state = {
|
visible: false
|
}
|
|
addSource = () => {
|
|
}
|
|
render() {
|
const { visible } = this.state
|
|
return (
|
<div style={{display: 'inline-block'}}>
|
<Button className="mk-border-purple" icon="picture" onClick={() => {this.setState({visible: true})}}>资源管理</Button>
|
<Modal
|
title="粘贴"
|
visible={visible}
|
width={600}
|
maskClosable={false}
|
onOk={this.pasteSubmit}
|
onCancel={() => {this.setState({visible: false})}}
|
footer={[
|
<Button key="back" type="link" icon="plus" onClick={this.addSource}>
|
添加
|
</Button>,
|
<Button key="colse" onClick={() => {this.setState({visible: false})}}>
|
关闭
|
</Button>
|
]}
|
destroyOnClose
|
>
|
<div>
|
|
</div>
|
</Modal>
|
</div>
|
)
|
}
|
}
|
|
export default PasteController
|