-
Notifications
You must be signed in to change notification settings - Fork 35
解析文档 生成内部组件的d.ts文件 #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
weiquanju
wants to merge
20
commits into
dcloudio:master
Choose a base branch
from
weiquanju:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
上个月看到PR冲突了。今天把冲突全部解决了一遍再次提交,请求尽快合并。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
执行命令
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包获得组件的参数和事件提示