Skip to content

fix: 修复 uni-app x UVUE Tailwind v4 主题变量与圆角#1003

Merged
sonofmagic merged 22 commits into
mainfrom
codex/issue-1002-uni-app-x-uvue
Jul 22, 2026
Merged

fix: 修复 uni-app x UVUE Tailwind v4 主题变量与圆角#1003
sonofmagic merged 22 commits into
mainfrom
codex/issue-1002-uni-app-x-uvue

Conversation

@sonofmagic

Copy link
Copy Markdown
Owner

修复内容

  • 在移除 UVUE 不支持的系统根选择器前收集并内联 Tailwind v4 主题变量,恢复 text-xs、text-sm、text-base、text-xl 与 text-white。
  • 删除 tw-root、混合根载体和 @Property,所有 CSS chunk 与增量生成结果统一经过 UVUE 兼容处理。
  • 将 calc(infinity * 1px) 降级为 9999px,并化简 UVUE 不支持的静态 calc 表达式。
  • 在 iOS 预处理器前归一化 scoped SCSS 中 @apply 生成的无限圆角。
  • 扩展 uni-app x demo、HBuilderX 产物断言和 Android/iOS 视觉像素验收,并添加中文 changeset。

验证

  • @weapp-tailwindcss/postcss:58 files,618 passed,3 skipped。
  • weapp-tailwindcss:295 files,2982 passed,29 skipped;最终相关定向 96 passed。
  • E2E 合约与完整多平台静态构建矩阵:115 passed,18 skipped;最终相关合约 58 passed。
  • HBuilderX 5.15 微信小程序 compile-only 与产物断言通过。
  • HBuilderX 5.15 Android、iOS HMR 自动化通过;默认隔离和 style-isolation-v2 视觉验收通过。
  • @weapp-tailwindcss/postcss、weapp-tailwindcss、weapp-style-injector 构建通过。
  • Changesets CLI status 解析通过。

平台限制

Harmony compile-only 已尝试,但当前 macOS HBuilderX 5.15 返回“项目不支持运行到鸿蒙”,且 hdc list targets 为 [Empty],因此本 PR 不宣称 Harmony 真机或模拟器 E2E 已通过。

Closes #1002

@changeset-bot

changeset-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c806218

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@weapp-tailwindcss/postcss Patch
weapp-tailwindcss Patch
@weapp-tailwindcss/build-all Patch
@weapp-tailwindcss/experimental Patch
@weapp-tailwindcss/website Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sonofmagic
sonofmagic force-pushed the codex/issue-1002-uni-app-x-uvue branch from 5653bd7 to bd2c654 Compare July 21, 2026 14:42
@sonofmagic
sonofmagic merged commit dc48b8f into main Jul 22, 2026
71 checks passed
@sonofmagic sonofmagic mentioned this pull request Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: uni-app x 最新版下字体/颜色类失效,tw-root 与 rounded-full 导致 UVUE 编译错误

1 participant