/**
 * PisellSingleSelect 组件导出
 */

import { getText } from "../../locales";
import PisellSingleSelect from "./PisellSingleSelect";

/** RecordBoard 列 type 联动排序：内置 First → Last / Last → First */
PisellSingleSelect.SortOptions = {
  getSortItems: function getSortItems(fieldKey) {
    return [{
      key: "".concat(fieldKey, ":asc"),
      label: getText('sort-first-last')
    }, {
      key: "".concat(fieldKey, ":desc"),
      label: getText('sort-last-first')
    }];
  }
};
export { PisellSingleSelect };

// 公共类型从 types 中重新导出，方便使用