Commit 4ae33323 by 放生的三文鱼

修改资产浏览bug

parent 91cfe3ef
...@@ -78,7 +78,7 @@ const init = (ctx) => function (container, data, onClick) { ...@@ -78,7 +78,7 @@ const init = (ctx) => function (container, data, onClick) {
var option = { var option = {
title: { title: {
text: ((data||[]).length>0) ? `${data[0]?.text||''} (${data[0]?.dataAssetAndSubDirCount})` : '', text: ((data||[]).length>0) ? `${data[0]?.text||''}` : '',
left: 'center', left: 'center',
bottom: 10, bottom: 10,
textStyle: { textStyle: {
...@@ -101,7 +101,7 @@ const init = (ctx) => function (container, data, onClick) { ...@@ -101,7 +101,7 @@ const init = (ctx) => function (container, data, onClick) {
}, },
series: [ series: [
{ {
name: ((data||[]).length>0) ? `${data[0]?.text||''} (${data[0]?.dataAssetAndSubDirCount})` : '', name: ((data||[]).length>0) ? `${data[0]?.text||''}` : '',
type: 'treemap', type: 'treemap',
height: '85%', height: '85%',
visibleMin: 1, visibleMin: 1,
......
...@@ -589,10 +589,7 @@ const AssetTree = (props) => { ...@@ -589,10 +589,7 @@ const AssetTree = (props) => {
<span <span
className={(item.level===1)?'title-color': 'text-color'} className={(item.level===1)?'title-color': 'text-color'}
> >
{item.text} {item.text} <span>{item?.dataAssetAndSubDirCount?`(${item?.dataAssetAndSubDirCount})` :''}</span>
{
viewSelectedKeyRef.current === 'dir' && <span>{` (${item.dataAssetAndSubDirCount})`}</span>
}
</span> </span>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment