amis2/packages/amis-ui/scss/components/_chart.scss

23 lines
377 B
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Chart {
2019-12-06 09:58:08 +08:00
position: relative;
2019-12-06 09:58:08 +08:00
&-placeholder {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
&-content {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
2023-09-06 16:00:44 +08:00
> .visibility-sensor {
height: 100%; // 修复图表高度为 0 时visibility-sensor 无法触发的问题
}
}