update tooltip

chromesetting
tangjiang 5 years ago
parent b6a3e8e7ee
commit af54d55cbf

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-12-12 10:34:03 * @Date: 2019-12-12 10:34:03
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-12-13 16:04:31 * @LastEditTime: 2019-12-13 16:28:33
*/ */
import './index.scss'; import './index.scss';
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
@ -36,7 +36,11 @@ function LeftPane (props) {
const oList = dataSets.map((item, i) => { const oList = dataSets.map((item, i) => {
return ( return (
<li className="jupyter_item" key={`key_${i}`}> <li className="jupyter_item" key={`key_${i}`}>
<Tooltip placement="right" title={item.file_path}> <Tooltip
placement="right"
title={item.file_path}
mouseLeaveDelay={0.3}
>
<Icon type="file-text" className="jupyter_icon"/> <Icon type="file-text" className="jupyter_icon"/>
<span className="jupyter_name">{item.title}</span> <span className="jupyter_name">{item.title}</span>
</Tooltip> </Tooltip>

Loading…
Cancel
Save