add tooltip

chromesetting
tangjiang 5 years ago
parent 6894aa681c
commit 5c2e6c3bce

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

@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-12-12 09:07:07
* @LastEditors: tangjiang
* @LastEditTime: 2019-12-13 14:30:51
* @LastEditTime: 2019-12-13 16:00:45
*/
import axios from 'axios';
@ -15,7 +15,7 @@ export async function fetchJupyterInfo (identifier) {
}
// 获取数据集
export async function fetchJupyterTpiDataSet (identifier, params) {
const url = `/shixuns/${identifier}/jupyter_data_sets.json`;
const url = `/shixuns/${identifier}/get_data_sets.json`;
return axios.get(url, { params });
}
// 获取 tpi url

Loading…
Cancel
Save