UNPKG

@enum-plus/plugin-antd

Version:

A plugin for enum-plus that provides functionality to bind enums to Ant Design

23 lines (21 loc) 606 B
// eslint-disable-next-line @typescript-eslint/no-empty-interface var toFilterPlugin = function toFilterPlugin(options, Enum) { Enum.extends({ toFilter: function toFilter() { return Array.from(this.items.map(function (_ref) { var value = _ref.value, label = _ref.label; return { text: label, value: value }; })); } }); }; export default toFilterPlugin; /** * - **EN:** Data structure of column filter items of ant-design Table * - **CN:** ant-design 表格列筛选项的数据结构 */ //# sourceMappingURL=toFilter.js.map