想直接跳到实现部分?请查看以下示例:
以下 API 描述了如何使用自定义样式功能。
getSegments: () => ReadonlyArray<{left: number; width: number}>
需要渲染的区段。每个 segment 具有以下属性: