ソースを参照

fix(yongren-talent-management): 修复真机上横向筛选布局问题

- 移除 enableFlex 属性,使用 overflow-x-auto 替代
- 将子元素从 View 改为 Text 以保持与订单列表页一致
- 修复残疾类型筛选在真机环境宽度占满一行的问题

🤖 Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 1 週間 前
コミット
d1811a9da5

+ 8 - 8
mini-ui-packages/yongren-talent-management-ui/src/pages/TalentManagement/TalentManagement.tsx

@@ -229,9 +229,9 @@ const TalentManagement: React.FC<TalentManagementProps> = () => {
                 onInput={handleSearchChange}
               />
             </View>
-            <ScrollView className="flex space-x-2 pb-2" scrollX enableFlex>
+            <View className="flex space-x-2 overflow-x-auto pb-2">
               {statusTags.map((status) => (
-                <View
+                <Text
                   key={status}
                   className={`text-xs px-3 py-1 rounded-full whitespace-nowrap ${
                     activeStatus === status
@@ -241,12 +241,12 @@ const TalentManagement: React.FC<TalentManagementProps> = () => {
                   onClick={() => handleStatusClick(status)}
                 >
                   {status}
-                </View>
+                </Text>
               ))}
-            </ScrollView>
-            <ScrollView className="flex space-x-2 mt-2" scrollX enableFlex>
+            </View>
+            <View className="flex space-x-2 overflow-x-auto mt-2">
               {disabilityTypeTags.map((type) => (
-                <View
+                <Text
                   key={type}
                   className={`text-xs px-3 py-1 rounded-full whitespace-nowrap ${
                     activeDisabilityType === type
@@ -256,9 +256,9 @@ const TalentManagement: React.FC<TalentManagementProps> = () => {
                   onClick={() => handleDisabilityTypeClick(type)}
                 >
                   {type}
-                </View>
+                </Text>
               ))}
-            </ScrollView>
+            </View>
           </View>
 
           {/* 人才列表区域 - 对照原型第451-560行 */}