gp-designer 1.0.59 → 1.0.61
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 +1 -1
- package/dist/gp-designer.es.js +3978 -3944
- package/dist/gp-designer.umd.js +11 -10
- package/dist/style.css +2 -2
- package/dist/types/components/ElementRenderer.vue.d.ts +1 -1
- package/dist/types/components/GpMessage.vue.d.ts +1 -1
- package/dist/types/components/Model.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
> 模板中的静态文件引入,必须使用绝对路径(/spa/topic/xxx),因为此模板在不同的页面、不同的站点会引用。
|
|
14
14
|
|
|
15
15
|
- 模板目录 `/public/topic/{模板}`
|
|
16
|
+
- 禁止标签,静态模板不允许使用的布局标签:`br`
|
|
16
17
|
- 所有页面布局使用 `flex` 布局,所有页面原则上没有固定宽高(特殊除外,例如:下标、边框等)
|
|
17
18
|
- 图片节点必须用用独立的 `div` 或 `span` 等元素包装。
|
|
18
19
|
- 图标、按钮等节点,建议用盒子模型包装。
|
|
19
|
-
- 块节点,必须使用盒子模型包装,且块节点至少设计 2 个以上。
|
|
20
20
|
- 在父级盒子上,尽量少用 `relative` 布局,因为可能会和设计器冲突。
|
|
21
21
|
- HTML 模板命名规则,可以使用拼音或英文,推荐命名:`{业务编码}-{布局方式}-{版本/序号}.html`,例如:关于我们-横排 2 列布局(`guanyu-x2.html`)
|
|
22
22
|
- 当模板较多时,推荐规则:每个模板都有自己独立的文件夹。
|