{"_id":"@boogiepop-other/adapt","name":"@boogiepop-other/adapt","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@boogiepop-other/adapt","version":"0.1.0","description":"大屏自适应运行时：全项目 / 路由级开关，支持参数排除","type":"module","sideEffects":["**/*.css"],"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css","./vw-root.css":"./dist/vw-root.css"},"peerDependencies":{"vue":"^3.5.0","vue-router":"^4.0.0"},"peerDependenciesMeta":{"vue-router":{"optional":true}},"dependencies":{"@boogiepop-other/helper":"0.1.0"},"devDependencies":{"@vitejs/plugin-vue":"^5.2.1","typescript":"^5.7.3","vite":"^6.0.7","vue":"^3.5.13","vue-tsc":"^3.3.11","vue-router":"^4.5.0"},"publishConfig":{"access":"public"},"scripts":{"build":"pnpm run build:bundle && pnpm run build:types && pnpm run build:assets","build:bundle":"vite build","build:types":"vue-tsc -p tsconfig.json --declaration --emitDeclarationOnly --outDir dist","build:assets":"node ../../scripts/copy-package-asset.mjs src/styles/vw-root.css dist/vw-root.css","typecheck":"vue-tsc -p tsconfig.json --noEmit"},"_id":"@boogiepop-other/adapt@0.1.0","_integrity":"sha512-JUSHhWsRSlxoElADhkYzyzE2Y7OV9eCfkYqZS6jcGzpagJQpko77sFuy3Eq7tohFqelNHuLlGAHQIuz2j1Flpw==","_resolved":"C:\\Users\\shell\\AppData\\Local\\Temp\\da8308f75359d5862d05a48963f1aea7\\boogiepop-other-adapt-0.1.0.tgz","_from":"file:boogiepop-other-adapt-0.1.0.tgz","_nodeVersion":"26.4.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-JUSHhWsRSlxoElADhkYzyzE2Y7OV9eCfkYqZS6jcGzpagJQpko77sFuy3Eq7tohFqelNHuLlGAHQIuz2j1Flpw==","shasum":"5fd1c068d4757e4bd6e984ee2d99b80719ca1c3b","tarball":"https://registry.npmjs.org/@boogiepop-other/adapt/-/adapt-0.1.0.tgz","fileCount":24,"unpackedSize":36346,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCsCv3yJV1nKHmx2dC44EclQXy5M+S1YrY9xk17LJAYLgIgc+OMoozIkuSygLRiWLLcRNEDrFvy+xyHx/16nCLBCxM="}]},"_npmUser":{"name":"boogiepop-other","email":"shelllvg0826@gmail.com"},"directories":{},"maintainers":[{"name":"boogiepop-other","email":"shelllvg0826@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapt_0.1.0_1787623582318_0.08056693991949881"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-25T02:06:22.101Z","0.1.0":"2026-08-25T02:06:22.466Z","modified":"2026-08-25T02:06:22.748Z"},"maintainers":[{"name":"boogiepop-other","email":"shelllvg0826@gmail.com"}],"description":"大屏自适应运行时：全项目 / 路由级开关，支持参数排除","readme":"# @boogiepop-other/adapt\n\r\n## 选定方案\r\n\r\n| 层级 | 方案 | 实现 |\r\n|------|------|------|\r\n| 大屏页 | **A · vw/vh** | `@boogiepop-other/adapt`（运行时标记）+ `@boogiepop-other/postcss-adapt`（编译期 px→vw） |\n| 组件 | **D · 弹性布局** | `@boogiepop-other/screen-ui`：Flex/Grid/`clamp`/`minmax`，**不用 scale** |\n\r\n## 模式\r\n\r\n- `mode: 'vw'`：开启大屏自适应（默认）\r\n- `mode: 'none'` / `enabled: false` / 路由排除 / `?adapt=0`：关闭\r\n\r\n已移除 `scale` / `stretch`。\r\n\r\n## 接入\r\n\r\n```ts\r\nimport { createAdaptPlugin, setupAdaptRouterSync } from '@boogiepop-other/adapt'\nimport '@boogiepop-other/adapt/vw-root.css'\nimport '@boogiepop-other/adapt/style.css' // 使用 VciAdaptView 时需要\n\r\nconst adapt = createAdaptPlugin({ mode: 'vw', width: 1920, height: 1080, excludePaths: ['/login'] })\r\napp.use(adapt)\r\nsetupAdaptRouterSync(router, adapt.context)\r\n```\r\n\r\nVite：\r\n\r\n```ts\r\nimport postcssAdapt from '@boogiepop-other/postcss-adapt'\ncss: {\r\n  postcss: {\r\n    plugins: [postcssAdapt({ include: /ScreenView|screen-page/i })]\r\n  }\r\n}\r\n```\r\n","readmeFilename":"README.md","_rev":"1-3a34e95f3bb80ef9b68ca8bc6587e74f"}