Skip to content

Conversation

weiquanju
Copy link

执行命令npm run generate-ts生成内部组件的d.ts文件

执行成功后,将看到下面文件信息

> ls docs/.vuepress/types/inner-components
animation-view.d.ts  checkbox.d.ts     icon.d.ts   live-player.d.ts   movable-view.d.ts  rich-text.d.ts    text.d.ts      web-view.d.ts
audio.d.ts           cover-image.d.ts  image.d.ts  live-pusher.d.ts   picker.d.ts        scroll-view.d.ts  textarea.d.ts
button.d.ts          cover-view.d.ts   index.d.ts  map.d.ts           picker-view.d.ts   slider.d.ts       types.d.ts
camera.d.ts          editor.d.ts       input.d.ts  match-media.d.ts   progress.d.ts      swiper.d.ts       video.d.ts
canvas.d.ts          form.d.ts         label.d.ts  movable-area.d.ts  radio.d.ts         switch.d.ts       view.d.ts

可以将产物发布为ts @type包,开发者通过引入@type包获得组件的参数和事件提示

@weiquanju
Copy link
Author

上个月看到PR冲突了。今天把冲突全部解决了一遍再次提交,请求尽快合并。

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.

1 participant