gp-designer 1.0.29 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # GP 网页设计器
2
2
 
3
+ 网页节点设计器,用于限制节点的类型和用户的输入。
4
+
5
+ ## 原则
6
+
7
+ 为了保持统一的规则和规范,对网页的来源要求如下规则:
8
+
9
+ - 测试模板目录 `/public/topic/xxx`,仅用作测试
10
+ - 所有页面布局使用 `flex` 布局,所有页面原则上没有固定宽高(特殊除外,例如:下标、边框等)
11
+ - 图片节点必须用用独立的 `div` 或 `span` 等元素包装。
12
+ - 图标、按钮等节点,建议用盒子模型包装。
13
+ - 块节点,必须使用盒子模型包装,且块节点至少设计 2 个以上。
14
+ - 在父级盒子上,尽量少用 `relative` 布局,因为可能会和设计器冲突。
15
+ - 命名规则:建议使用 `{}-{}`
16
+
3
17
  ---
4
18
 
5
19
  ## 使用