Skip to content
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

充分利用路径别名 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mcitem
Copy link

@mcitem mcitem commented Dec 12, 2024

有三个建议希望作者能参考参考🌹

第一个是,建议加入合适的路径别名配置
(这需要将.vscode加入版本管理,确保插件能预览,还有需要在build.rs中加入别名的编译配置)

第二是,减少不太必要的重新导出,我觉得模板里的重新导出有点过于复杂了,毕竟slint不像vite一样,vite不需要把index.js或index.ts写出来,而slint必须写出index.slint。过渡的重新导出并不见得更简洁明了()

第三是,vscode中的slint插件支持slint代码的格式化,建议将代码进行格式化,统一缩进。

@mcitem
Copy link
Author

mcitem commented Dec 12, 2024

如果报错,cargo check一下,再按ctrl+shift+p搜索并使用Slint: Restart Server后,再点预览按钮就正常了

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.

1 participant