Skip to content
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

feat: add toc doc #27

Merged
merged 1 commit into from
Jun 19, 2020
Merged

feat: add toc doc #27

merged 1 commit into from
Jun 19, 2020

Conversation

liyouzhi666
Copy link
Contributor

No description provided.

@liyouzhi666
Copy link
Contributor Author

`,
styles: [
/* CSS */ `
.demo-container {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式化出来缩进是顶到头的?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS 的目前识别不了,手动改下吧

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

</Story>
</Preview>

## 说明场景:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

标题不加冒号。使用场景吧

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我改下


### auiTocContainer

| 属性和方法 | 描述 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

表格格式和其他组件保持一致

| 属性和方法 | 描述 |
| ------------------------------------------------ | ------------------------------------------- |
| `@Output() activedChange: EventEmitter<string>;` | 当 actived 变化时使用该方法获取。 |
| `scrollTo(content: string): void;` | 使用该方法使 container 滚动到指定 content。 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不是给用户用的吧,这种不写出来,包括下边的hostbinding

Copy link
Contributor Author

@liyouzhi666 liyouzhi666 Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scrollTo也是提供的方法,滚动到指定的 content,是使用时才需要设置的,应该需要写在文档上吧

@liyouzhi666 liyouzhi666 merged commit 932cb38 into master Jun 19, 2020
@JounQin JounQin deleted the doc/add-toc-doc branch August 4, 2020 09:50
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