-
-
Notifications
You must be signed in to change notification settings - Fork 98
add use with taroify #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add use with taroify #684
Conversation
|
✅ Deploy Preview for ice-tw canceled.
|
审阅者指南此拉取请求通过添加项目启动和错误解决说明,澄清 Taro 3.x 与 4.x 的 Tailwind 用法,并引入新的“与 Taroify 一起使用”指南(包含 babel-plugin-import 的配置步骤和导入顺序调整),增强了网站文档。 Taroify 集成中 Babel 插件配置的类图classDiagram
class BabelConfig {
+plugins: Array
}
class ImportPlugin {
+libraryName: string
+libraryDirectory: string
+style: boolean
+customName: function
}
BabelConfig --> ImportPlugin : uses
ImportPlugin <|-- TaroifyCoreImport
ImportPlugin <|-- TaroifyIconsImport
class TaroifyCoreImport {
+libraryName = "@taroify/core"
+libraryDirectory = ""
+style = false
}
class TaroifyIconsImport {
+libraryName = "@taroify/icons"
+libraryDirectory = ""
+camel2DashComponentName = false
+style = false
+customName: function
}
文件级变更
提示和命令与 Sourcery 互动
自定义您的体验访问您的仪表盘以:
获取帮助Original review guide in EnglishReviewer's GuideThis PR enhances the website documentation by adding project startup and error-resolution instructions, clarifies Tailwind usage for Taro 3.x vs 4.x, and introduces a new “use with Taroify” guide with configuration steps for babel-plugin-import and import order adjustments. Class diagram for Babel plugin configuration for Taroify integrationclassDiagram
class BabelConfig {
+plugins: Array
}
class ImportPlugin {
+libraryName: string
+libraryDirectory: string
+style: boolean
+customName: function
}
BabelConfig --> ImportPlugin : uses
ImportPlugin <|-- TaroifyCoreImport
ImportPlugin <|-- TaroifyIconsImport
class TaroifyCoreImport {
+libraryName = "@taroify/core"
+libraryDirectory = ""
+style = false
}
class TaroifyIconsImport {
+libraryName = "@taroify/icons"
+libraryDirectory = ""
+camel2DashComponentName = false
+style = false
+customName: function
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你好 - 我已经审查了你的修改,它们看起来很棒!
Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Original comment in English
Hey there - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #684 +/- ##
==========================================
+ Coverage 90.26% 90.38% +0.11%
==========================================
Files 71 75 +4
Lines 5630 5700 +70
Branches 653 671 +18
==========================================
+ Hits 5082 5152 +70
Misses 548 548 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| ### Taro | ||
| ### Taro 3.x | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其实用不着分 Taro3.x 和 Taro4.x,因为这个警告报错只和 Sass 的版本有关,我的想法是在代码块里面,把这几个写法都写上。
| ```scss | ||
| // src/app.scss | ||
|
|
||
| @use 'tailwindcss/base' as *; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as * 应该不用加
|
@zzy-33 https://sass-lang.com/documentation/at-rules/import/ 所以是 sass 版本问题 |
|
|
||
| 修改根目录下的样式引入顺序,优先引入[Taroify](https://taroify.github.io/taroify.com/) 的样式,再引入Tailwindcss的样式 | ||
|
|
||
| ```tsc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tsc 是 ts 编译器,你要的是 ts 或者 tsx 吧?
|



Sourcery 总结
更新网站文档,新增项目设置说明,改进 Taro v3 和 v4 集成指南,并在导航中添加了新的“与 taroify 一起使用”指南。
文档变更:
Original summary in English
Summary by Sourcery
Update website documentation with project setup instructions, improved Taro integration guidance for v3 and v4, and a new ‘use with taroify’ guide added to navigation
Documentation: