示例

想直接看实现?可以参考以下示例

Below API describes how to use the custom-steps features.

API

getSegments

tsx
getSegments: () => ReadonlyArray<{left: number; width: number}>
getSegments: () => ReadonlyArray<{left: number; width: number}>

Segments to be rendered. Each segment has the following props

  • left: number - Percentage value of where segment should start on ranger
  • width: number - Percentage value of segment width
我们的合作伙伴
Code Rabbit
订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。

订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。