MCPcopy Index your code
hub / github.com/zxlie/FeHelper / _getSortLabel

Function _getSortLabel

apps/json-format/content-script.js:1012–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

_syncSortMenuStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected