{"id":13691937,"url":"https://github.com/ano-ui/ano-ui","last_synced_at":"2025-05-02T16:30:48.976Z","repository":{"id":60751868,"uuid":"541584028","full_name":"ano-ui/ano-ui","owner":"ano-ui","description":"轻量级、漂亮、快速的 UnoCSS 组件库","archived":false,"fork":false,"pushed_at":"2023-12-17T10:05:11.000Z","size":1874,"stargazers_count":177,"open_issues_count":2,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T19:59:40.714Z","etag":null,"topics":["components","miniprogram","uniapp","unocss","vue","vue-components","vue3"],"latest_commit_sha":null,"homepage":"https://ano-ui.netlify.app/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ano-ui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-26T12:50:18.000Z","updated_at":"2025-04-24T03:11:37.000Z","dependencies_parsed_at":"2022-10-04T09:55:51.730Z","dependency_job_id":"cc6395ac-9095-432f-81f8-39f5513cfd87","html_url":"https://github.com/ano-ui/ano-ui","commit_stats":{"total_commits":119,"total_committers":1,"mean_commits":119.0,"dds":0.0,"last_synced_commit":"3cd1dff8aa40439b0ae69671b149923fc66bfbda"},"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ano-ui%2Fano-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ano-ui%2Fano-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ano-ui%2Fano-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ano-ui%2Fano-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ano-ui","download_url":"https://codeload.github.com/ano-ui/ano-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251930207,"owners_count":21666773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["components","miniprogram","uniapp","unocss","vue","vue-components","vue3"],"created_at":"2024-08-02T17:00:51.785Z","updated_at":"2025-05-02T16:30:48.539Z","avatar_url":"https://github.com/ano-ui.png","language":"Vue","funding_links":[],"categories":["Vue","UI 组件库"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/ano-ui/ano-ui/raw/main/public/logo.svg\" style=\"width:100px;\" /\u003e\n\u003ch1 align=\"center\"\u003eAno-UI\u003c/h1\u003e\n\u003cp align=\"center\"\u003e轻量级、漂亮、快速的 UnoCSS 组件库\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/package/ano-ui\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/ano-ui?color=c95f8b\u0026amp;label=\" alt=\"NPM version\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## 安装\n\n```bash\npnpm add ano-ui\npnpm add -D unocss @iconify-json/tabler unocss-applet\n```\n\n## 使用\n\n配置 UnoCSS：\n\n```ts\n// uno.config.ts\nimport { defineConfig, presetIcons } from 'unocss'\n\n// unocss-applet https://github.com/unocss-applet/unocss-applet\nimport { presetApplet, presetRemRpx, transformerApplet } from 'unocss-applet'\nimport { presetAno } from 'ano-ui'\n\nexport default defineConfig({\n  presets: [\n    presetApplet(),\n    presetRemRpx(),\n    presetIcons({\n      scale: 1.2,\n      extraProperties: {\n        'display': 'inline-block',\n        'vertical-align': 'middle',\n      },\n    }),\n    presetAno(),\n  ],\n  transformers: [\n    transformerApplet(),\n  ],\n})\n```\n\n像下面这样更新 `pages.json` 文件：\n\n```json\n{\n  \"easycom\": {\n    \"autoscan\": true,\n    \"custom\": {\n      \"^A(.*)\": \"ano-ui/components/A$1/A$1.vue\"\n    }\n  }\n}\n```\n\n或者使用 [@uni-helper/vite-plugin-uni-components](https://github.com/uni-helper/vite-plugin-uni-components) 自动导入组件。\n\n```ts\n// vite.config.ts\nimport { defineConfig } from 'vite'\n\nimport Components from '@uni-helper/vite-plugin-uni-components'\nimport { AnoResolver } from 'ano-ui'\n\n// https://vitejs.dev/config/\nexport default defineConfig({\n  // ...\n  plugins: [\n    // ...\n    Components({\n      include: [/\\.vue$/, /\\.vue\\?vue/],\n      dts: 'src/components.d.ts',\n      resolvers: [AnoResolver()],\n    }),\n  ],\n})\n```\n\nAnd then enjoy it.\n\n只需使用这样的按钮组件：\n\n```html\n\u003ctemplate\u003e\n  \u003cAButton\u003eButton\u003c/AButton\u003e\n\u003c/template\u003e\n```\n\n## 感谢\n\n### 工具\n\n- [UnoCSS](https://github.com/unocss/unocss)\n\n### UI 框架\n\n- [Anu](https://github.com/jd-solanki/anu)\n- [Element Plus](https://github.com/element-plus/element-plus)\n- [Onu UI](https://github.com/onu-ui/onu-ui)\n- [uView](https://github.com/umicro/uView2.0)\n- [Vant](https://github.com/youzan/vant)\n\n## License\n\n[MIT](https://github.com/ano-ui/ano-ui/blob/main/LICENSE) License \u0026copy; 2022-PRESENT [Neil Lee](https://github.com/zguolee) and all contributors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fano-ui%2Fano-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fano-ui%2Fano-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fano-ui%2Fano-ui/lists"}