Files
obsidian-notes/FGui/FGui规范及常用模板.md
2022-11-14 14:57:00 +08:00

52 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 理解概念
包=对应系统 组件=里边可复用的一些模板
# 规范
## 命名规范
1、组件 + ”_“ + 命名
例如:
![[Pasted image 20221114121704.png]]
一些比较复杂的组件就用Com作前缀,Com=Component
## 流程规范
1、目录结构
一般来说每个系统一个包,左上角点击新建包,什么系统就命名什么就好
![[Pasted image 20221114122742.png]]
但是像较多地方都用到同一个资源比如说通用按钮那么这个按钮就要放在Common这个公用的包里面
如图中的背包的一个图标:
![[Pasted image 20221114123133.png]]
大图还是放Image这个包下
![[Pasted image 20221114141112.png]]
2、资源放置
对应的组件和图片放在同一个包里就好
![[Pasted image 20221114123441.png
3、上传资源
整个文件夹提交SVN
![[Pasted image 20221114141243.png]]
# 一些常用模板
## 页签:三个单选按钮 + 一个控制器完成
![[Pasted image 20221114142309.png]]
![[Pasted image 20221114142738.png]]
找到刚刚做好的控制器,每个按钮链接一个状态
![[Pasted image 20221114142906.png]]![[Pasted image 20221114143146.png]]
随意点击按钮可以切换效果
![[Pasted image 20221114143202.png]]
## 列表:
![[Pasted image 20221114144948.png]]
拖进素材
![[Pasted image 20221114145009.png]]
编辑数据,一般只是预览,发布时自动清空的选项要勾上
![[Pasted image 20221114145058.png]]![[Pasted image 20221114145138.png]]![[Pasted image 20221114145205.png]]
预览上下滑动
![[Pasted image 20221114145254.png]]