From bd1dfc9e6c9b9f8076ca2783ce598e0936b4c664 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 22 十二月 2021 14:36:03 +0800 Subject: [PATCH] 2021-12-22 --- src/tabviews/zshare/cardcomponent/index.jsx | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/cardcomponent/index.jsx b/src/tabviews/zshare/cardcomponent/index.jsx index a689085..0480ba8 100644 --- a/src/tabviews/zshare/cardcomponent/index.jsx +++ b/src/tabviews/zshare/cardcomponent/index.jsx @@ -1,10 +1,12 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' -import { Icon, Card, Spin, Empty } from 'antd' +import { Card, Spin, Empty } from 'antd' import asyncComponent from '@/utils/asyncComponent' import asyncExcelComponent from './asyncButtonComponent' +import MKEmitter from '@/utils/events.js' +import MkIcon from '@/components/mk-icon' import '@/assets/css/table.scss' import './index.scss' @@ -272,7 +274,7 @@ if (mark.position === 'front') { position = 'front' } - icon = <Icon className={'font ' + className} type={mark.icon} /> + icon = <MkIcon className={'font ' + className} type={mark.icon} /> className = '' } @@ -513,7 +515,6 @@ tableId: PropTypes.string, loading: PropTypes.bool, data: PropTypes.array, - handleTableId: PropTypes.func } state = { @@ -735,7 +736,7 @@ this.setState({selectKey: data.key}) - this.props.handleTableId(this.props.tableId, _id, data) + MKEmitter.emit('changeTableLine', this.props.ContainerId, this.props.tableId, _id, data) } render() { -- Gitblit v1.8.0