File tree Expand file tree Collapse file tree
.agents/skills/mpx2rn/references Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,6 +333,7 @@ RN 仅原生支持部分 CSS 简写属性,Mpx 分别在**编译时**和**运
333333
334334** 使用限制:**
335335- ❌ ** ` border-style ` 多值语法** :` border-style ` 不支持 2-4 值语法(如 ` border-style: solid dashed ` ),因为 RN 环境中不支持分别设置各方向的 ` borderStyle ` ,仅支持统一设置单值(如 ` border-style: solid ` )。
336+ - ❌ ** 单边 ` border-*-style ` 长属性** :` border-top-style ` / ` border-right-style ` / ` border-bottom-style ` / ` border-left-style ` 直接书写会被编译期拦截报错;如需使用,请改用 ` border-style ` 或在单边 ` border-* ` 简写中给出 style 槽位(会展开为 ` border-style ` )。
336337- ❌ ** ` border-width ` 枚举值** :` border-width ` 不支持 ` thin ` / ` medium ` / ` thick ` ,仅支持数值单位和 ` hairlineWidth ` 。
337338- ⚠️ ** ` border ` 简写中含 ` none ` ** :根据 CSS 规范 ` border-style: none ` 等价于无边框;Mpx 会先按普通简写保留宽度、颜色与 ` borderStyle: 'none' ` ,最终在运行时统一清除边框。
338339- ⚠️ ** 简写属性与展开属性的覆盖顺序** :在 ` class ` 类样式中,简写属性与展开属性的覆盖顺序按照样式定义的顺序决定,后定义的覆盖先定义的,与 CSS 规范一致;但在 ` style ` 内联样式中,Mpx 在运行时合并样式后无法保留属性的定义顺序信息,因此采用** 展开属性优先** 的策略,即简写属性无法覆盖已有的展开属性。例如在 ` style ` 中同时存在 ` margin: 10px ` 和 ` margin-top: 20px ` 时,无论书写顺序如何,` margin-top ` 始终为 ` 20px ` 。
Original file line number Diff line number Diff line change @@ -881,6 +881,10 @@ const sidebar: ExtendedSidebar = {
881881 text : 'Mpx2.9 版本正式发布,支持原子类、SSR 和包体积优化' ,
882882 link : '/articles/2.9-release' ,
883883 } ,
884+ {
885+ text : 'Mpx 2.11.0 版本正式发布,Mpx2RN 样式一致性与运行时性能系统升级' ,
886+ link : '/articles/2.11-release' ,
887+ } ,
884888 {
885889 text : '小程序跨端组件库 Mpx-cube-ui 开源啦' ,
886890 link : '/articles/mpx-cube-ui' ,
Original file line number Diff line number Diff line change @@ -13,5 +13,7 @@ sidebarDepth: 0
1313* [ Mpx中基于 Typescript Template Literal Types 实现链式key的类型推导] ( ts-derivation.md )
1414* [ Mpx2.7 版本正式发布,大幅提升编译构建速度] ( 2.7-release.md )
1515* [ Mpx2.8 版本正式发布,使用组合式 API 开发小程序] ( 2.8-release.md )
16+ * [ Mpx2.9 版本正式发布,支持原子类、SSR 和包体积优化] ( 2.9-release.md )
17+ * [ Mpx 2.11.0 版本正式发布,Mpx2RN 样式一致性与运行时性能系统升级] ( 2.11-release.md )
1618* [ Mpx-cli 插件化改造] ( mpx-cli-next.md )
1719* [ Mpx 小程序单元测试能力建设与实践] ( unit-test.md )
You can’t perform that action at this time.
0 commit comments