Skip to content

Conversation

yvonneyx
Copy link
Contributor

@yvonneyx yvonneyx commented Apr 26, 2024

  • node

  • edge

  • combo

  • 自动生成节点、边、组合文档,每一板块包含基础样式配置、与元素样式配置

截图示例:

image image image image image image image

@Aarebecca
Copy link
Contributor

元素实例方法不需要透出,仅透出配置项就好了

@hustcc
Copy link
Member

hustcc commented Apr 26, 2024

感觉后面 G2 也可以采用这一套了~

@yvonneyx
Copy link
Contributor Author

yvonneyx commented Apr 28, 2024

  1. 像 labelBackground{RectStyleProps} 这类标题,改为 Prefix<RectStyleProps, ‘label’> 的格式
  • 考虑将内部 PrefixObject 重命名为 Prefix
  • 泛型顺序改为: prefix, type

“继承自” 用 ::: ::: 装饰快包一下,额外添加一行,关于 Prefix<RectStyleProps, ‘label’> 的描述说明文档的跳转

  1. context 添加 @internal 标记,不导出
  2. collapsed{Xxx} 属性改为 BaseStyleProps
  3. 标记函数重载

@yvonneyx yvonneyx merged commit 7cc8278 into v5 Apr 29, 2024
@yvonneyx yvonneyx deleted the docs/elements-api branch April 29, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants