jsx style用法

56 阅读1分钟
style={{
          background: `${backgroundImage ? `url(${backgroundImage}) center top / 100% 60.5333vw no-repeat` : '#fff'}`,
          ...(backgroundImage ? { backgroundColor: '#fff' } : {}),
        }}