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

有个问题 请教一下 custom.js 和 min/custom.js 是什么关系 如果说要修改组件的话改的是哪个文件?min 是如何生成的呢 #236

Open
Kimser opened this issue Mar 21, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Kimser
Copy link

Kimser commented Mar 21, 2024

是什么版本出现了此问题?

2.13

在线站点地址

No response

发生了什么?

我想修改 custom 下的组件的话改的是哪个文件?min 是如何生成的呢

相关日志输出

No response

附加信息

No response

@Kimser Kimser added the bug Something isn't working label Mar 21, 2024
@jiewenhuang
Copy link
Owner

min.js是对应js的压缩版本,引用的也是这个版本,至于怎么生成,随你喜欢

@Kimser
Copy link
Author

Kimser commented Mar 21, 2024

啊 理解了 如果要对您的主题进行二次开发 有相关的说明文档之类的可以借鉴一下吗 ?
还有个问题就是如果说custom的组件是通过接口请求过来遍历渲染的如何才能实现服务端渲染呢 ?
问标有点多 麻烦您了
@jiewenhuang

@jiewenhuang
Copy link
Owner

代码即文档,会html js css三件套,直接上手即可。我不太清楚你说的服务器渲染是什么,如果你想直接输出到前端的就是修改后的Dom,那应该去修改编辑器。这个与主题无关了

@Kimser
Copy link
Author

Kimser commented Mar 21, 2024

image 这段是留言板的源码 我改成了假数据循环渲染然后鼠标右键查看网站源代码出来是的 js 代码而不是渲染后的 html 这个我没搞懂 能解惑吗 大佬 @jiewenhuang image image

@jiewenhuang
Copy link
Owner

基础知识可以自行搜索排查,配合halo主题开发文档食用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants