Skip to content

第二轮 Review #5

@zxc0328

Description

@zxc0328

复用

  • 每个页面都有一个背景图,一个 Logo,这些都应该抽成一个 Layout 组件。组件里面的 Children 在调用的时候传入,就可以了。
  • input 和 button 这种应该封装为通用的 React 组件,因为样式都是一样的。input 组件的 API 就是 value 和 onChange。button 的 API 就是 onClick。button里面的内容用 Children 组合。

细节

  • Logo 那边不要用木犀通行证,就改成纯文本,木犀内网门户
  • 下次自动登录和左边的checkbox没有垂直对齐
  • 按钮和 input 里面的字体大小应该是 14px
  • 表单验证错误提示字体的大小太大了,建议为 12px,并且文字上下多要有padding
  • 找回密码页面里面的按钮应该有圆角
  • 所有的 input 都应该有圆角,参考设计稿
  • 表单验证错误提示应该用红色,颜色可以参考线上的通行证

兼容性

一些老的浏览器不支持 fetch API。需要引入 whatwg-fetch 之类的 polyfill

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions