UNPKG

@aplus-frontend/ui

Version:

31 lines (30 loc) 499 B
const s = { asc: "ascend", desc: "descend" }, v = (o) => ({ sortChangeEvent: ({ field: e, order: n, column: t }) => { o(void 0, void 0, { column: t, field: e, order: n ? s[n] : null }); }, filterChangeEvent: ({ filterList: e }) => { const n = {}; for (const t of e) n[t.field] = t.values; o?.(void 0, n); }, paginationChangeEvent: (e, n) => { o({ current: e, pageSize: n }); } }); export { v as useInnerParams };