{"_id":"@captcha-pro/taro-vue2","_rev":"3-1cd9dc7db0b8405d2c458ad860d5a6f2","name":"@captcha-pro/taro-vue2","dist-tags":{"latest":"2.2.0"},"versions":{"2.0.0":{"name":"@captcha-pro/taro-vue2","version":"2.0.0","keywords":["captcha","taro","vue2","slider-captcha","click-captcha"],"author":{"name":"saqqdy","email":"https://github.com/saqqdy"},"license":"MIT","_id":"@captcha-pro/taro-vue2@2.0.0","maintainers":[{"name":"saqqdy","email":"saqqdy@qq.com"}],"dist":{"shasum":"573fb895f9e7ef8f6b9796d4bcf0b180bda1faaf","tarball":"https://registry.npmjs.org/@captcha-pro/taro-vue2/-/taro-vue2-2.0.0.tgz","fileCount":8,"integrity":"sha512-8xiN8lQ9k9XDHCFIqKPyFq+mB7olF2VpO7WdFL3jCWbGa+du/lTPti6i3fV/qtWN5CA6rLbqY24t1d3/gYZV6A==","signatures":[{"sig":"MEUCIQCvESVgajahIeKMRditLFYHJPNy7/LHDLruX6nNj7kkiAIgJLjJSGljrbi4sFfTVeHBMj7gQsSVR9QLCTmPK8k9fAU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97244},"main":"dist/index.cjs","_from":"file:captcha-pro-taro-vue2-2.0.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./dist/style.css":"./dist/style.css"},"scripts":{"test":"echo 'no tests'","build":"vite build -c build/vite.config.ts","clean":"rm-all dist","watch":"vite build -c build/vite.config.ts -w"},"_npmUser":{"name":"saqqdy","email":"saqqdy@qq.com"},"_resolved":"/tmp/129ad6d9413491d29daaad1917614e52/captcha-pro-taro-vue2-2.0.0.tgz","_integrity":"sha512-8xiN8lQ9k9XDHCFIqKPyFq+mB7olF2VpO7WdFL3jCWbGa+du/lTPti6i3fV/qtWN5CA6rLbqY24t1d3/gYZV6A==","_npmVersion":"10.8.2","description":"Taro + Vue 2 captcha components for captcha-pro (backend-only mode)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@captcha-pro/mp-shared":"2.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","vite":"^5.4.19","rm-all":"^1.1.1","typescript":"^5.9.3","@types/node":"^24.13.3","@tarojs/taro":"^3.6.40","@vue/compiler-sfc":"2.7.16","@tarojs/components":"^3.6.40","@vitejs/plugin-vue2":"^2.3.4"},"peerDependencies":{"vue":"^2.7.0","@tarojs/taro":"^3.0.0 || ^4.0.0","@tarojs/components":"^3.0.0 || ^4.0.0"},"peerDependenciesMeta":{"@tarojs/taro":{"optional":true},"@tarojs/components":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/taro-vue2_2.0.0_1786288869479_0.1357849580073085","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@captcha-pro/taro-vue2","version":"2.1.0","keywords":["captcha","taro","vue2","slider-captcha","click-captcha"],"author":{"name":"saqqdy","email":"https://github.com/saqqdy"},"license":"MIT","_id":"@captcha-pro/taro-vue2@2.1.0","maintainers":[{"name":"saqqdy","email":"saqqdy@qq.com"}],"dist":{"shasum":"4bd83a3bb8972b6640b3229e4164972c4c44ae81","tarball":"https://registry.npmjs.org/@captcha-pro/taro-vue2/-/taro-vue2-2.1.0.tgz","fileCount":8,"integrity":"sha512-YnsXxmr3K7YoGb2zVnP9XDRu40wtSC+MuN3ObfK93gf87yIiC85jyqxTcr/AK40HcvV2yGTHrE6us3Rv5WYTnA==","signatures":[{"sig":"MEUCIDWiFHi2R8Zq2Z1ZLtNAxICnYAdIQtMaZHvKvthPVwwxAiEAz/fNUymWYYQn/YefYmQyTgHlHvrqaG4SQwvkdq4PH9Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97244},"main":"dist/index.cjs","_from":"file:captcha-pro-taro-vue2-2.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"},"./dist/style.css":"./dist/style.css"},"scripts":{"test":"echo 'no tests'","build":"vite build -c build/vite.config.ts","clean":"rm-all dist","watch":"vite build -c build/vite.config.ts -w"},"_npmUser":{"name":"saqqdy","email":"saqqdy@qq.com"},"_resolved":"/tmp/62b16d9c1d493f83eb3273364d09d3f1/captcha-pro-taro-vue2-2.1.0.tgz","_integrity":"sha512-YnsXxmr3K7YoGb2zVnP9XDRu40wtSC+MuN3ObfK93gf87yIiC85jyqxTcr/AK40HcvV2yGTHrE6us3Rv5WYTnA==","_npmVersion":"10.8.2","description":"Taro + Vue 2 captcha components for captcha-pro (backend-only mode)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@captcha-pro/mp-shared":"2.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","vite":"^5.4.19","rm-all":"^1.1.1","typescript":"^5.9.3","@types/node":"^24.13.3","@tarojs/taro":"^3.6.40","@vue/compiler-sfc":"2.7.16","@tarojs/components":"^3.6.40","@vitejs/plugin-vue2":"^2.3.4"},"peerDependencies":{"vue":"^2.7.0","@tarojs/taro":"^3.0.0 || ^4.0.0","@tarojs/components":"^3.0.0 || ^4.0.0"},"peerDependenciesMeta":{"@tarojs/taro":{"optional":true},"@tarojs/components":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/taro-vue2_2.1.0_1786844028419_0.7336654499243751","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@captcha-pro/taro-vue2","description":"Taro + Vue 2 captcha components for captcha-pro (backend-only mode)","version":"2.2.0","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.js","default":"./dist/index.js"},"./dist/style.css":"./dist/style.css"},"dependencies":{"@captcha-pro/mp-shared":"2.2.0"},"devDependencies":{"@tarojs/components":"^3.6.40","@tarojs/taro":"^3.6.40","@types/node":"^24.13.3","@vitejs/plugin-vue2":"^2.3.4","@vue/compiler-sfc":"2.7.16","rm-all":"^1.1.1","typescript":"^5.9.3","vite":"^5.4.19","vue":"^2.7.16"},"peerDependencies":{"@tarojs/components":"^3.0.0 || ^4.0.0","@tarojs/taro":"^3.0.0 || ^4.0.0","vue":"^2.7.0"},"peerDependenciesMeta":{"@tarojs/components":{"optional":true},"@tarojs/taro":{"optional":true}},"keywords":["captcha","taro","vue2","slider-captcha","click-captcha"],"license":"MIT","author":{"name":"saqqdy","email":"https://github.com/saqqdy"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"scripts":{"build":"vite build -c build/vite.config.ts","watch":"vite build -c build/vite.config.ts -w","clean":"rm-all dist","test":"echo 'no tests'"},"_id":"@captcha-pro/taro-vue2@2.2.0","_integrity":"sha512-wt9hmOtV8MG4/qaSCP6kZtuWmqyl4ct+HUmoheuWG/8jHnEYVwRwjuWKJm4yUSz1hVHOgIgwoCSt5tJGwr87wQ==","_resolved":"/tmp/19aebd659d92c9ca393c117675bade17/captcha-pro-taro-vue2-2.2.0.tgz","_from":"file:captcha-pro-taro-vue2-2.2.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-wt9hmOtV8MG4/qaSCP6kZtuWmqyl4ct+HUmoheuWG/8jHnEYVwRwjuWKJm4yUSz1hVHOgIgwoCSt5tJGwr87wQ==","shasum":"62b4c9d22b6c800641306c79c17f81b98a98f1d9","tarball":"https://registry.npmjs.org/@captcha-pro/taro-vue2/-/taro-vue2-2.2.0.tgz","fileCount":8,"unpackedSize":101491,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAeNCc7u6NMKqi/15wSh5QRPh74R36Ub1WwU+Lc8YadbAiEApsl4O5h3JHkNka7lMyKUguZazGbwR2APlADoPx2dlRQ="}]},"_npmUser":{"name":"saqqdy","email":"saqqdy@qq.com"},"directories":{},"maintainers":[{"name":"saqqdy","email":"saqqdy@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/taro-vue2_2.2.0_1786972757318_0.02481990630089892"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-09T15:21:09.193Z","modified":"2026-08-17T13:19:17.718Z","2.0.0":"2026-08-09T15:21:09.623Z","2.1.0":"2026-08-16T01:33:48.568Z","2.2.0":"2026-08-17T13:19:17.448Z"},"author":{"name":"saqqdy","email":"https://github.com/saqqdy"},"license":"MIT","keywords":["captcha","taro","vue2","slider-captcha","click-captcha"],"description":"Taro + Vue 2 captcha components for captcha-pro (backend-only mode)","maintainers":[{"name":"saqqdy","email":"saqqdy@qq.com"}],"readme":"# @captcha-pro/taro-vue2\n\nTaro + Vue 2 captcha components for captcha-pro (backend-only mode).\n\n**[简体中文](./README_CN.md)**\n\n## Installation\n\n```bash\npnpm add @captcha-pro/taro-vue2\n```\n\n## Usage\n\n### Global Registration\n\n```javascript\nimport Vue from 'vue'\nimport CaptchaPro from '@captcha-pro/taro-vue2'\nimport '@captcha-pro/taro-vue2/dist/style.css'\n\nVue.use(CaptchaPro)\n```\n\n### Component Usage\n\n```vue\n<template>\n  <div>\n    <!-- Slider Captcha -->\n    <SliderCaptcha\n      :width=\"300\"\n      :height=\"170\"\n      :precision=\"5\"\n      @success=\"onSuccess\"\n      @fail=\"onFail\"\n    />\n\n    <!-- Click Captcha -->\n    <ClickCaptcha\n      :width=\"300\"\n      :height=\"170\"\n      :count=\"3\"\n      @success=\"onSuccess\"\n    />\n\n    <!-- Popup Captcha -->\n    <PopupCaptcha\n      trigger=\"#submit-btn\"\n      type=\"slider\"\n      @success=\"onSuccess\"\n    >\n      <button id=\"submit-btn\">Submit</button>\n    </PopupCaptcha>\n  </div>\n</template>\n\n<script>\nexport default {\n  methods: {\n    onSuccess() {\n      console.log('Verification passed!')\n    },\n    onFail() {\n      console.log('Verification failed!')\n    }\n  }\n}\n</script>\n```\n\n## Props\n\n### SliderCaptcha\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| width | Number | 300 | Container width |\n| height | Number | 170 | Container height |\n| precision | Number | 5 | Verification precision (px) |\n| showRefresh | Boolean | true | Show refresh button |\n| locale | String | 'zh-CN' | Language |\n\n### ClickCaptcha\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| width | Number | 300 | Container width |\n| height | Number | 170 | Container height |\n| count | Number | 3 | Click points count |\n| showRefresh | Boolean | true | Show refresh button |\n\n### PopupCaptcha\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| type | String | 'slider' | 'slider' or 'click' |\n| trigger | String | - | Trigger element selector |\n| autoClose | Boolean | true | Auto close on success |\n\n## Events\n\n| Event | Description |\n|-------|-------------|\n| success | Verification passed |\n| fail | Verification failed |\n| refresh | Captcha refreshed |\n| ready | Component ready |\n\n## License\n\nMIT","readmeFilename":"README.md"}