mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
feat: 修复数据看板无法滚动问题
This commit is contained in:
@@ -85,8 +85,8 @@ const cfu = {
|
||||
}
|
||||
},
|
||||
"xAxisTop10Article":function(val, index, opts){
|
||||
if(val.length>4){
|
||||
return val.slice(0,4) +'...'
|
||||
if(val.length>6){
|
||||
return val.slice(0,6) +'...'
|
||||
}
|
||||
return val
|
||||
},
|
||||
@@ -96,6 +96,12 @@ const cfu = {
|
||||
}
|
||||
return val
|
||||
},
|
||||
"xAxisCategory":function(val, index, opts){
|
||||
if(val.length>6){
|
||||
return val.slice(0,6) +'...'
|
||||
}
|
||||
return val
|
||||
},
|
||||
},
|
||||
//这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在opts参数,会将demotype与opts中option合并后渲染图表。
|
||||
"demotype":{
|
||||
|
||||
Reference in New Issue
Block a user