forked from alibaba-fusion/next
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.jsx
More file actions
33 lines (26 loc) · 994 Bytes
/
index.jsx
File metadata and controls
33 lines (26 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import ConfigProvider from '../config-provider';
import Progress from './view/progress';
export default ConfigProvider.config(Progress, {
transform: /* istanbul ignore next */ (props, deprecated) => {
if ('type' in props) {
deprecated('type', 'progressive', 'Progress');
const { type, ...others } = props;
props = { progressive: type === 'progressive', ...others };
}
if ('showInfo' in props) {
deprecated('showInfo', 'textRender', 'Progress');
const { showInfo, ...others } = props;
if (showInfo) {
props = others;
} else {
props = { textRender: () => false, ...others };
}
}
if ('suffix' in props) {
deprecated('suffix', 'textRender', 'Progress');
const { suffix, ...others } = props;
props = { textRender: () => suffix, ...others };
}
return props;
},
});