@antv/s2
Version:
effective spreadsheet render core lib
33 lines • 934 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ADVANCED_SORT_PRE_CLS = exports.getSortRuleOptions = exports.getSortMethod = void 0;
const common_1 = require("../../common");
const getSortMethod = () => [
{
name: (0, common_1.i18n)('升序'),
value: 'ASC',
},
{
name: (0, common_1.i18n)('降序'),
value: 'DESC',
},
];
exports.getSortMethod = getSortMethod;
const getSortRuleOptions = () => [
{
label: (0, common_1.i18n)('首字母'),
value: 'sortMethod',
},
{
label: (0, common_1.i18n)('手动排序'),
value: 'sortBy',
},
{
label: (0, common_1.i18n)('其他字段'),
value: 'sortByMeasure',
children: [],
},
];
exports.getSortRuleOptions = getSortRuleOptions;
exports.ADVANCED_SORT_PRE_CLS = `${common_1.S2_PREFIX_CLS}-advanced-sort`;
//# sourceMappingURL=sort.js.map