Skip to content

Formatters 设计 #35

@z-ZYS-s

Description

@z-ZYS-s

需求:

  • 传统框架的 Formatters 功能比较全,前端的一般比较简陋
  • 目前 v0.4.0 的 formatters 只有3个:PlaceholderFormatter, DateFormatter, NumberFormatter
  • 其中 DateFormatter 还不是很通用,需要调研一下市面上的 Date 库。徐玲说 date-fns 比 moment 要好,对比一下还有没有别的库
  • NumberFormatter 也不是很通用。要了解一下传统框架这块是怎么实现的。还有个规范:http://www.unicode.org/reports/tr35/tr35-25.html#Numbering_Systems
  • 再思考一下别的 Formatter 的可行性。比如可以看看别的组件库,或者看看 freemarker 等其他模板语言经常有拿些字符串转换我们可以添加:https://www.cnblogs.com/JealousGirl/p/6914122.html

参考不限:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions