File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838
3939<details >
4040
41- <summary >⚙️ 针对常规 Webpack 类小程序(以 MPX 为例)</summary >
41+ <summary >⚙️ 常规 Webpack 类小程序(以 MPX 为例)</summary >
4242
4343### 常规 Webpack 类小程序(以 MPX 为例)
4444
@@ -148,7 +148,7 @@ export default {
148148
149149<details>
150150
151- <summary>👽 针对 Taro 小程序</summary>
151+ <summary>👽 Taro 小程序</summary>
152152
153153### Taro 小程序
154154
@@ -240,7 +240,7 @@ import 'windi.css';
240240
241241<details >
242242
243- <summary >🔗 针对 uni-app 小程序</summary >
243+ <summary >🔗 uni-app 小程序</summary >
244244
245245### uni-app 小程序
246246
@@ -345,7 +345,7 @@ import 'windi.css'
345345
346346<details >
347347
348- <summary >🔩 针对常规 Vite 类小程序(以 uni-app 为例)</summary >
348+ <summary >🔩 常规 Vite 类小程序(以 uni-app 为例)</summary >
349349
350350### 常规 Vite 类小程序(以 uni-app 为例)
351351
@@ -440,7 +440,7 @@ import 'virtual:windi.css'
440440
441441<details >
442442
443- <summary >🛠 针对原生开发或自定义构建的小程序 </summary >
443+ <summary >🛠 原生开发或自定义构建的小程序 </summary >
444444
445445### 原生开发或自定义构建工具的小程序
446446
@@ -504,6 +504,7 @@ const handledStyle = handleStyle(rawContent, options)
504504
505505## 陷阱
506506- 在小程序中为了使组件样式可以被 Tailwind/Windi 的 CSS 产物作用到,我们需要在每一个组件的 JSON 配置文件中设置其[ 样式的作用域] ( https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#%E7%BB%84%E4%BB%B6%E6%A0%B7%E5%BC%8F%E9%9A%94%E7%A6%BB ) ` styleIsolation ` ,否则即使 Tailwind/Windi CSS 工作正常也无法用来开发组件 UI。
507+ > Taro 小程序不受该限制影响
507508 ``` json
508509 {
509510 "component" : true ,
You can’t perform that action at this time.
0 commit comments