灵活、类型完备(Full Typed)的多属性排序方法 · Vue/Nuxt 集成
Anysort 是一个 pnpm monorepo,提供框架无关的排序核心与 Vue/Nuxt 集成层。
A picture is worth a thousand words.
| 包 | 说明 |
|---|---|
@anysort/core |
框架无关的多属性排序库(Proxy 链式 + call-with-string + Full Typed) |
@anysort/vue |
useAnysort() composable —— 把排序包装为响应式管道 |
@anysort/nuxt |
Nuxt module —— auto-import + runtimeConfig 默认排序规则 |
| 目录 | 说明 |
|---|---|
playground/vue |
纯 Vite + Vue 3 演示(验证 @anysort/vue 脱离 Nuxt 可用) |
playground/nuxt |
Nuxt 4 演示 + module e2e fixture |
pnpm install pnpm build # 按拓扑序构建所有包(core → vue → nuxt) pnpm test # 运行所有包测试
开发单个 playground:
pnpm dev:vue # playground/vue pnpm dev:nuxt # playground/nuxt
本项目前身为单包 anysort-typed,已迁移至 @anysort scope 的 monorepo。core 包 API 与 anysort-typed 3.x 完全一致。
MIT

