Skip to content

Conversation

engvuchen
Copy link
Contributor

  1. 将 vue-docgen-api 的产物解析成对应的组件配置;
  2. 支持情况如下:
    image
  3. 即可在 wecomponents 文件夹内调用,也可以在外部引用组件库的项目调用

wecomponents 文件夹内调用

  1. 根目录下执行 npm run snppet;
  2. 方便更新文档用例

外部引用组件库的项目调用

  1. 需要先行安装 vue-docgen-api(3.15.3); rd(2.0.1)
  2. 在 package.json script中注册命令:"snippet": "node node_modules/@weadmin/wecomponents/build/snippet.js"
  3. snippet 相当于简易文档,更容易书写组件配置

效果截图:
image

@tencent-adm
Copy link
Member

tencent-adm commented Jun 14, 2021

CLA assistant check
All committers have signed the CLA.

@NaibinJi NaibinJi merged commit dd2d74a into Tencent:master Jun 15, 2021
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