MCPcopy Create free account
hub / github.com/ElemeFE/element-react / stroke

Method stroke

src/progress/Progress.jsx:53–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 stroke(): string {
54 let ret;
55 switch (this.props.status) {
56 case 'success':
57 ret = '#13ce66';
58 break;
59 case 'exception':
60 ret = '#ff4949';
61 break;
62 default:
63 ret = '#20a0ff';
64 }
65 return ret;
66 }
67
68 iconClass(): string {
69 const { type, status } = this.props;

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected