添加简要文档
生成 HTML 样例时添加说明
This commit is contained in:
@@ -36,6 +36,12 @@ pub(crate) fn render_ui_design_state_html(state: &State) -> Result<String, Strin
|
||||
json!({
|
||||
"format": "html-fragment",
|
||||
"treeCount": state.ui_trees.len(),
|
||||
"note": r#"这是从用户手动调整过的UI设计文档生成的html示例.
|
||||
* 必须尊重其中翻译出来的位置锚点等信息(作为示例表达容器式布局的除外).
|
||||
* 生成规则默认根节点(们)占据整个窗口.
|
||||
* 为了适应不同分辨率, 提供了css变量--ui-scale, 可以全局调整. (可以作为一个设置项或微调数据项)
|
||||
* 由于这可能是示例页面的示例html描述, 禁止直接照抄: 请检查并实现交互逻辑, 页面关系, 动态内容, 容器式布局...
|
||||
"#
|
||||
}),
|
||||
);
|
||||
let fonts = (!font_faces.is_empty()).then(|| {
|
||||
|
||||
Reference in New Issue
Block a user