@coze-arch/cli 0.0.13-alpha.281fed → 0.0.14

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.
@@ -152,17 +152,25 @@ export default function TabLayout() {
152
152
  '--color-border',
153
153
  ]) as string[];
154
154
 
155
+ let tabBarStyle = {
156
+ backgroundColor: background,
157
+ borderTopWidth: 1,
158
+ borderTopColor: border,
159
+ };
160
+
161
+ // 用于修复 Web 上高度异常的问题(这个 if 逻辑必须添加)
162
+ if (Platform.OS === 'web') {
163
+ tabBarStyle = {
164
+ ...tabBarStyle,
165
+ height: 'auto',
166
+ }
167
+ }
168
+
155
169
  return (
156
170
  <Tabs
157
171
  screenOptions={{
158
172
  headerShown: false,
159
- tabBarStyle: {
160
- backgroundColor: background,
161
- borderTopWidth: 1,
162
- borderTopColor: border,
163
- // 通过固定宽度 55 来修正 Web 上的表现
164
- height: Platform.OS === 'web' ? 55 : 50 + insets.bottom,
165
- },
173
+ tabBarStyle,
166
174
  tabBarActiveTintColor: accent,
167
175
  tabBarInactiveTintColor: muted,
168
176
  }}
@@ -152,17 +152,25 @@ export default function TabLayout() {
152
152
  '--color-border',
153
153
  ]) as string[];
154
154
 
155
+ let tabBarStyle = {
156
+ backgroundColor: background,
157
+ borderTopWidth: 1,
158
+ borderTopColor: border,
159
+ };
160
+
161
+ // 用于修复 Web 上高度异常的问题(这个 if 逻辑必须添加)
162
+ if (Platform.OS === 'web') {
163
+ tabBarStyle = {
164
+ ...tabBarStyle,
165
+ height: 'auto',
166
+ }
167
+ }
168
+
155
169
  return (
156
170
  <Tabs
157
171
  screenOptions={{
158
172
  headerShown: false,
159
- tabBarStyle: {
160
- backgroundColor: background,
161
- borderTopWidth: 1,
162
- borderTopColor: border,
163
- // 通过固定宽度 55 来修正 Web 上的表现
164
- height: Platform.OS === 'web' ? 55 : 50 + insets.bottom,
165
- },
173
+ tabBarStyle,
166
174
  tabBarActiveTintColor: accent,
167
175
  tabBarInactiveTintColor: muted,
168
176
  }}
@@ -47,6 +47,10 @@
47
47
  - 默认按 TypeScript `strict` 心智写代码;优先复用当前作用域已声明的变量、函数、类型和导入,禁止引用未声明标识符或拼错变量名。
48
48
  - 禁止隐式 `any` 和 `as any`;函数参数、返回值、解构项、事件对象、`catch` 错误在使用前应有明确类型或先完成类型收窄,并清理未使用的变量和导入。
49
49
 
50
+ ### next.config 配置规范
51
+
52
+ - 配置的路径不要写死绝对路径,必须使用 path.resolve(__dirname, ...)、import.meta.dirname 或 process.cwd() 动态拼接。
53
+
50
54
  ### Hydration 问题防范
51
55
 
52
56
  1. 严禁在 JSX 渲染逻辑中直接使用 typeof window、Date.now()、Math.random() 等动态数据。**必须使用 'use client' 并配合 useEffect + useState 确保动态内容仅在客户端挂载后渲染**;同时严禁非法 HTML 嵌套(如 <p> 嵌套 <div>)。
package/lib/cli.js CHANGED
@@ -2107,7 +2107,7 @@ const EventBuilder = {
2107
2107
  };
2108
2108
 
2109
2109
  var name = "@coze-arch/cli";
2110
- var version = "0.0.13-alpha.281fed";
2110
+ var version = "0.0.14";
2111
2111
  var description = "coze coding devtools cli";
2112
2112
  var license = "MIT";
2113
2113
  var author = "fanwenjie.fe@bytedance.com";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-arch/cli",
3
- "version": "0.0.13-alpha.281fed",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "description": "coze coding devtools cli",
6
6
  "license": "MIT",