@aplus-frontend/ui
Version:
31 lines (30 loc) • 645 B
JavaScript
import { genComponentStyleHook as e } from "../../utils/cssinjs/index.mjs";
const n = (o) => {
const { componentCls: t } = o;
return {
[t]: {
position: "relative",
overflow: "hidden",
[`${t}__content`]: {
display: "inline-block"
},
[`${t}__bar-wrapper`]: {
position: "absolute",
"&--horizontal": {
left: 0,
bottom: 0,
width: "100%"
},
"&--vertical": {
top: 0,
right: 0,
height: "100%"
}
}
}
};
}, i = e("ScrollView", (o) => [n(o)]);
export {
i as default,
n as genScrollViewStyle
};