import { StyleProviderFunction } from '@rax-ui/styles'; const StyleProvider: StyleProviderFunction = () => { return { backdrop: { position: 'absolute', left: 0, top: 0, bottom: 0, right: 0, touchAction: 'none', zIndex: -1, backgroundColor: 'rgba(0, 0, 0, 0.5)', WebkitTapHighlightColor: 'transparent', }, modal: { position: 'fixed', zIndex: 1300, left: 0, right: 0, bottom: 0, top: 0, }, 'modal--view': { position: 'absolute', zIndex: 1, }, 'modal--hidden': { right: 800, // PS: weex 环境 visibility 报错, opacity 报错 left: 'auto', }, }; }; export default StyleProvider;