You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# 开发规范
## 注意
如果开发中发现什么开发规则或者技巧,你可以更新在这个文档,供其他人看
## UI界面开发指南
- 界面采用vyes.js 框架, 该框架可以将一个html文件自动加载为一个组件
- 开始写界面前请阅读全局样式文件 /ui/assets/common.css 保证所有界面的样式一致
- 组件内部避免重复的样式定义 如body内无需重复定义字体
- 本项目使用vyes-ui 组件库,该组件库可以通过 curl -sS http://localhost:4002/v/README.md 查看文档 其组件代码都已经映射到了/v/目录下
- 前端路由文件 /ui/routes.js 该文件定义了所有的路由规则
## vyes-ui 文档查看方法
curl 指令可以不用沙盒运行
获取文档目录 该操作可以查看所有组件的目录结构
curl -sS http://localhost:4000/v/docs/README.md?toc=1
获取文档全文(较长,一般建议查询目录再查询章节内容)
curl -sS http://localhost:4000/v/docs/README.md
获取章节内容(可以根据第一步获取的目录编号查询内容) 一般使用这个查询章节内容, 查询内容时不能带toc参数
curl -sS http://localhost:4000/v/docs/README.md?from=1.2& to=1.2