| 1010 | }; |
| 1011 | |
| 1012 | let _getSortLabel = sortType => { |
| 1013 | const labels = { |
| 1014 | 0: '默认', |
| 1015 | 1: '升序', |
| 1016 | '-1': '降序' |
| 1017 | }; |
| 1018 | return labels[String(parseInt(sortType, 10) || 0)] || '默认'; |
| 1019 | }; |
| 1020 | |
| 1021 | let _syncSortMenuState = () => { |
| 1022 | let label = _getSortLabel(formatOptions.sortType); |
no outgoing calls
no test coverage detected