0

有一个属性'styles'需要一个

"IStyleFunctionOrObject<IProgressIndicatorStyleProps, IProgressIndicatorStyles>"

但我不知道如何设置它。任何人?

4

1 回答 1

1

styles道具可以是functionobject

您可以自定义的内容:

root: IStyle;
itemName: IStyle;
itemDescription: IStyle;
itemProgress: IStyle;
progressTrack: IStyle;
progressBar: IStyle;

background-color进度条修改:

<ProgressIndicator
  ...
  styles={{
    progressBar: {
      backgroundColor: '#f00',
    }
  }}
/> 

代码笔示例。

于 2021-05-12T14:17:15.770 回答