Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
有三个建议希望作者能参考参考🌹
第一个是,建议加入合适的路径别名配置
(这需要将.vscode加入版本管理,确保插件能预览,还有需要在build.rs中加入别名的编译配置)
第二是,减少不太必要的重新导出,我觉得模板里的重新导出有点过于复杂了,毕竟slint不像vite一样,vite不需要把index.js或index.ts写出来,而slint必须写出index.slint。过渡的重新导出并不见得更简洁明了()
第三是,vscode中的slint插件支持slint代码的格式化,建议将代码进行格式化,统一缩进。