gp-designer 1.0.33 → 1.0.35
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 +13 -3
- package/dist/gp-designer.es.js +974 -1020
- package/dist/gp-designer.umd.js +7 -7
- package/dist/{topic → spa/topic/css}/004.css +6 -29
- package/dist/{topic → spa/topic/html}/001.html +3 -3
- package/dist/{topic → spa/topic/html}/002.html +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/{GpCropperModal/index.vue.d.ts → GpCropper.vue.d.ts} +6 -6
- package/dist/types/components/{GpSvgIcon/IconModal.vue.d.ts → GpIcon.vue.d.ts} +7 -1
- package/dist/types/components/GpImageUpload.vue.d.ts +1 -1
- package/dist/types/components/Model.d.ts +1 -0
- package/package.json +1 -1
- package/dist/topic/001.css +0 -6531
- package/dist/types/components/GpSvgIcon/CustomIcon.vue.d.ts +0 -8
- /package/dist/{topic → spa/topic/css}/iconfont.css +0 -0
- /package/dist/{topic → spa/topic/html}/003.html +0 -0
- /package/dist/{topic → spa/topic/html}/004.html +0 -0
- /package/dist/{topic → spa/topic/html}/huanjing-x3.html +0 -0
- /package/dist/{topic → spa/topic/html}/shizi-x1-9.html +0 -0
- /package/dist/{topic → spa/topic/html}/youshi-x3.html +0 -0
- /package/dist/{topic → spa/topic/html}/youshi-x6.html +0 -0
- /package/dist/{topic/template → spa/topic}/img/about_us_banners.png +0 -0
- /package/dist/{topic/images/004 → spa/topic/img}/banner.png +0 -0
- /package/dist/{topic/images/004 → spa/topic/img}/tip-trimark.png +0 -0
- /package/dist/{topic → spa/topic}//344/270/223/351/242/230/346/265/213/350/257/225/346/250/241/346/235/277.txt" +0 -0
package/README.md
CHANGED
@@ -4,15 +4,25 @@
|
|
4
4
|
|
5
5
|
## 原则
|
6
6
|
|
7
|
-
|
7
|
+
为了保持统一的规则和规范,对 HTML 内容模板要求如下规则:
|
8
8
|
|
9
|
-
|
9
|
+
> 前台需要引用此 css/js/img 用于前台渲染,所有模板都是独立的,与任何框架都没有任何关系。
|
10
|
+
|
11
|
+
> 不得使用此模板外的 css 样式、脚本等任何文件,禁止使用通用命名,不得与其他 css 样式一致或冲突,因此每个模板编号都是唯一的,每个模板的样式/脚本仅适用于当前模板,例如:禁止使用 `common, course` 等通用样式命名,建议使用作用域 `.guanyux2 .xxx{}, .guanyux3 .xxx {}`。
|
12
|
+
|
13
|
+
> 模板中的静态文件引入,必须使用绝对路径(/spa/topic/xxx),因为此模板在不同的页面、不同的站点会引用。
|
14
|
+
|
15
|
+
- 模板目录 `/public/topic/{模板}`
|
10
16
|
- 所有页面布局使用 `flex` 布局,所有页面原则上没有固定宽高(特殊除外,例如:下标、边框等)
|
11
17
|
- 图片节点必须用用独立的 `div` 或 `span` 等元素包装。
|
12
18
|
- 图标、按钮等节点,建议用盒子模型包装。
|
13
19
|
- 块节点,必须使用盒子模型包装,且块节点至少设计 2 个以上。
|
14
20
|
- 在父级盒子上,尽量少用 `relative` 布局,因为可能会和设计器冲突。
|
15
|
-
-
|
21
|
+
- HTML 模板命名规则,可以使用拼音或英文,推荐命名:`{业务编码}-{布局方式}-{版本/序号}.html`,例如:关于我们-横排2列布局(`guanyu-x2.html`)
|
22
|
+
- 当模板较多时,推荐规则:每个模板都有自己独立的文件夹。
|
23
|
+
- 当模板较少时,可以使用统一的 css 等。
|
24
|
+
- 关于字体问题,如果统一名称为 `iconfont`,则需要确保引入多套 `iconfont` 时,确保命名没有冲突,否则就需要重新命名 `iconfont`
|
25
|
+
|
16
26
|
|
17
27
|
---
|
18
28
|
|