amis-rpc-design/libs/amis/packages/amis-ui/scss/components/_chart.scss
2023-10-07 19:42:30 +08:00

23 lines
377 B
SCSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.#{$ns}Chart {
position: relative;
&-placeholder {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
&-content {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
> .visibility-sensor {
height: 100%; // 修复图表高度为 0 时visibility-sensor 无法触发的问题
}
}