{"id":30171837,"url":"https://github.com/vant-ui/vant-nuxt","last_synced_at":"2025-08-11T22:04:19.881Z","repository":{"id":65831178,"uuid":"600603273","full_name":"vant-ui/vant-nuxt","owner":"vant-ui","description":"Vant module for Nuxt","archived":false,"fork":false,"pushed_at":"2025-05-29T05:50:49.000Z","size":348,"stargazers_count":93,"open_issues_count":1,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-02T15:12:22.228Z","etag":null,"topics":["nuxt","vant","vant-ui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/vant-ui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null}},"created_at":"2023-02-12T01:48:11.000Z","updated_at":"2025-07-03T01:44:42.000Z","dependencies_parsed_at":"2023-11-09T01:46:27.756Z","dependency_job_id":"282da236-9676-4788-a1e6-aff07ed30f94","html_url":"https://github.com/vant-ui/vant-nuxt","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"ba3ce07d43e1c69648ab44a7a55d97d87a27402c"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vant-ui/vant-nuxt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vant-ui%2Fvant-nuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vant-ui%2Fvant-nuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vant-ui%2Fvant-nuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vant-ui%2Fvant-nuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vant-ui","download_url":"https://codeload.github.com/vant-ui/vant-nuxt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vant-ui%2Fvant-nuxt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269669890,"owners_count":24456761,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["nuxt","vant","vant-ui"],"created_at":"2025-08-11T22:03:52.099Z","updated_at":"2025-08-11T22:04:19.866Z","avatar_url":"https://github.com/vant-ui.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"logo\" src=\"https://fastly.jsdelivr.net/npm/@vant/assets/logo.png\" width=\"120\" height=\"120\" style=\"margin-bottom: 10px;\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eVant Nuxt\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003eVant module for Nuxt\u003c/b\u003e\u003c/p\u003e\n\n## Features\n\n- Automatically import components and styles on demand.\n- Automatically import of showDialog, showToast and other methods.\n\n## Install\n\n```shell\nnpx nuxi@latest module add vant\n# or\nnpm i vant @vant/nuxt -D\n```\n\n```ts\nexport default defineNuxtConfig({\n  modules: ['@vant/nuxt'],\n  vant: {\n    /** Options */\n  },\n});\n```\n\n## Usage\n\n```vue\n\u003ctemplate\u003e\n  \u003cvan-button type=\"primary\" @click=\"showToast('toast')\"\u003ebutton\u003c/van-button\u003e\n  \u003cVanButton type=\"success\" @click=\"showNotify('notify')\"\u003ebutton\u003c/VanButton\u003e\n  \u003cLazyVanButton type=\"default\"\u003elazy button\u003c/LazyVanButton\u003e\n\u003c/template\u003e\n```\n\nReference [Nuxt documentation](https://nuxt.com/docs/guide/directory-structure/components) and [playground](./playground/app.vue) use.\n\n## Options\n\n### lazyload\n\n- Type: `boolean` | `object`\n- Default: `false`\n\nHow to load directives and components from lazyload.\n\neg. `{ lazyComponent: true }`\n\n### importStyle\n\n- Type: `boolean`\n- Default: `true`\n\nWhether to automatically import styles.\n\n### defaultLocale\n\n- Type: `string`\n\nReplace default locale, you can find locale list [here](https://github.com/youzan/vant/tree/main/packages/vant/src/locale/lang).\n\n### excludeExports\n\n- Type: `array`\n- Default: `['Lazyload', 'Locale']`\n\nExclude exports from Vant that are not component content.\n\n### components\n\n- Type: `array`\n\nIf there are components that are not imported automatically from Vant, you need to add the component here.\n\n### imports\n\n- Type: `array`\n\nIf you wish to add automatically import content from Vant, you can add it here.\n\n### include\n\n- Type: `array`\n- Default: `[ /\\.vue$/, /\\.vue\\?vue/, /\\.vue\\?v=/, /\\.((c|m)?j|t)sx?$/]`\n\nInclude files that need to automatically import styles.\n\n### exclude\n\n- Type: `array`\n- Default: `[/[\\\\/]node_modules[\\\\/]/, /[\\\\/]\\.git[\\\\/]/, /[\\\\/]\\.nuxt[\\\\/]/]`\n\nExclude files that do not require the automatic import of styles.\n\n## Development\n\n- Run `pnpm i` to install the dependencies.\n- Run `pnpm dev:prepare` to generate type stubs.\n- Run `pnpm dev` to start playground in development mode.\n- Run `pnpm dev:build` to build playground.\n- Run `pnpm dev:start` to locally preview playground.\n- Run `pnpm build` to build this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvant-ui%2Fvant-nuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvant-ui%2Fvant-nuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvant-ui%2Fvant-nuxt/lists"}