From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/menu/components/share/usercomponent/index.jsx | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/menu/components/share/usercomponent/index.jsx b/src/menu/components/share/usercomponent/index.jsx index e10fa99..c8d4d93 100644 --- a/src/menu/components/share/usercomponent/index.jsx +++ b/src/menu/components/share/usercomponent/index.jsx @@ -1,7 +1,8 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' -import { Icon, Modal, notification } from 'antd' +import { Modal, notification } from 'antd' +import { UserOutlined } from '@ant-design/icons' import html2canvas from 'html2canvas' import Api from '@/api' @@ -145,7 +146,8 @@ document.getElementsByClassName('menu-view')[0].classList.add('saving') this.setState({loading: true}) setTimeout(() => { - let template = this.getUserComponent() + // let template = this.getUserComponent() + let template = fromJS(config).toJS() html2canvas(document.getElementById(config.uuid)).then(canvas => { let param = { Base64Img: canvas.toDataURL('image/png') // 鑾峰彇鐢熸垚鐨勫浘鐗� @@ -210,7 +212,7 @@ return ( <div className="user-component-wrap"> - <Icon type="user" title="鐢熸垚鑷畾涔夌粍浠�" onClick={this.trigger} /> + <UserOutlined title="鐢熸垚鑷畾涔夌粍浠�" onClick={this.trigger} /> <Modal title="鑷畾涔夌粍浠�" visible={visible} -- Gitblit v1.8.0