king
2021-12-22 5223edbcccfed84a33a706e5637ee65a61f377aa
src/templates/menuconfig/editthdmenu/preview/index.jsx
@@ -1,6 +1,7 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Button } from 'antd'
import { CloseOutlined } from '@ant-design/icons'
import './index.scss'
class Preview extends Component {
@@ -53,7 +54,7 @@
      <div>
        {this.state.url && this.props.template &&
          <div className={'preview-box ' + (this.state.show ? 'active' : '')} onClick={this.close}>
            <Button shape="circle" icon="close"></Button>
            <Button shape="circle"><CloseOutlined /></Button>
            <Button type="primary" onClick={() => {this.props.confirm(this.props.template, type)}}>使用模板</Button>
            {this.state.url && <img src={this.state.url} alt=""/>}
          </div>