From 2cea3999915f3155626aa4445103e0541763ff37 Mon Sep 17 00:00:00 2001 From: chouchouji <1305974212@qq.com> Date: Thu, 26 Dec 2024 15:30:43 +0800 Subject: [PATCH] docs: add github link for postcss-px-to-viewport --- packages/varlet-ui/docs/browserAdaptation.en-US.md | 2 +- packages/varlet-ui/docs/browserAdaptation.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/varlet-ui/docs/browserAdaptation.en-US.md b/packages/varlet-ui/docs/browserAdaptation.en-US.md index 6f8caa55755..6e041f69b1e 100644 --- a/packages/varlet-ui/docs/browserAdaptation.en-US.md +++ b/packages/varlet-ui/docs/browserAdaptation.en-US.md @@ -11,7 +11,7 @@ scheme `varlet-touch-emulator` is used for mobile terminal adaptation. #### CSS Unit Adaptation The component library design is based on the `375px` width design draft. -It is recommended to use PostCSS plugin to convert `px` units into `vw` units to achieve mobile terminal adaptation. +It is recommended to use [postcss-px-to-viewport](https://github.com/evrone/postcss-px-to-viewport) to convert `px` units into `vw` units to achieve mobile terminal adaptation. Create `postcss.config.js` under the `Webpack/Vite` project root path And do the following configuration `375px -> 100vw`. ```shell diff --git a/packages/varlet-ui/docs/browserAdaptation.zh-CN.md b/packages/varlet-ui/docs/browserAdaptation.zh-CN.md index 9dac5b4fe92..b3098d17f8a 100644 --- a/packages/varlet-ui/docs/browserAdaptation.zh-CN.md +++ b/packages/varlet-ui/docs/browserAdaptation.zh-CN.md @@ -3,7 +3,7 @@ ### 介绍 组件库提供移动端和桌面端适配方案, -移动端使用 `postcss-px-to-viewport` 方案进行适配, +移动端使用 [postcss-px-to-viewport](https://github.com/evrone/postcss-px-to-viewport) 方案进行适配, 桌面端使用 `@varlet/touch-emulator` 方案进行适配。 ### 移动端适配