From 6423d81cfa459aec7dbc05504588f3a2fcfe3dbd Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 17 九月 2022 16:55:23 +0800
Subject: [PATCH] 2022-09-17

---
 src/tabviews/custom/components/group/normal-group/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/custom/components/group/normal-group/index.jsx b/src/tabviews/custom/components/group/normal-group/index.jsx
index 699fd28..9c86c8a 100644
--- a/src/tabviews/custom/components/group/normal-group/index.jsx
+++ b/src/tabviews/custom/components/group/normal-group/index.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Col, Empty, notification, Button, Row } from 'antd'
+import { Col, notification, Button, Row } from 'antd'
 
 import Api from '@/api'
 import asyncComponent from '@/utils/asyncComponent'
@@ -137,8 +137,6 @@
   getComponents = () => {
     const { config } = this.props
     const { mainSearch, data } = this.state
-
-    if (!config || !config.components || config.components.length === 0) return (<Empty description={false} />)
 
     return config.components.map(item => {
       if (item.type === 'bar' || item.type === 'line') {
@@ -343,6 +341,8 @@
     const { config } = this.props
     const { printing } = this.state
 
+    if (!config.components || config.components.length === 0) return (<div style={config.style}></div>)
+    
     return (
       <div className={'normal-group-wrap ' + (config.setting.layout || '')} id={config.uuid} style={config.style}>
         {config.setting && config.setting.print === 'true' ? <Button className="print-button" icon="printer" loading={printing} onClick={this.print}></Button> : null}

--
Gitblit v1.8.0