@dongmingzhixiu/vuexir-compiler 0.4.8 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -921,7 +921,13 @@ function emitNodeInner(node, ctx) {
921
921
  // 布尔 state → String(describing:)(Text(Bool) 无构造匹配,typecheck 失败)
922
922
  ? pad(`Text(String(describing: ${bindKey}))`)
923
923
  : pad(`Text(${bindKey})`)
924
- : pad(`Text("${swiftStringEscape(content)}")`);
924
+ : pad((() => {
925
+ if (/^_vrn/.test(String(content).trim())) {
926
+ ctx.warnings.push(`${ctx.path}: 文本内容「${content}」像是内部状态名 → 已置空(R134)`);
927
+ return 'Text("")';
928
+ }
929
+ return `Text("${swiftStringEscape(content)}")`;
930
+ })());
925
931
  line += `.font(${fontExpr(fs, props.fontWeight, 'normal')})`;
926
932
  // M2 :style 动态 → 运行时从 state 读取(fontSize 数值 / color hex 字符串)
927
933
  if (props.fontSizeDynamic !== undefined) {
@@ -51,7 +51,9 @@ function mapDeclInner(prop, value, warnings) {
51
51
  switch (prop) {
52
52
  case 'display':
53
53
  // display:flex → 容器语义;display:block/none 不映射(flex 为默认容器)
54
- return v === 'flex' ? [['flexDirection', 'column']] : null;
54
+ // R135:CSS 的 display:flex 默认 main axis 是 row(此前默认 column →
55
+ // 横向工具栏/星期行被渲染成纵向堆叠,日历标题栏就是这么坏掉的)
56
+ return v === 'flex' ? [['flexDirection', 'row']] : null;
55
57
  case 'flex-direction':
56
58
  return [['flexDirection', v]];
57
59
  case 'flex': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongmingzhixiu/vuexir-compiler",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "Vue SFC → IR → 原生源码(SwiftUI / Compose)编译器核心:纯函数、零 IO",
5
5
  "type": "module",
6
6
  "license": "MIT",