Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

fix: change teleport modal-button line #129

Merged
merged 1 commit into from
Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/guide/teleport.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Vue 鼓励我们通过将 UI 和相关行为封装到组件中来构建 UI。我
</body>
```

为此,我们可以使用 Vue 的内置 `<modal-button>` 组件:
让我们来看看 `modal-button` 组件:

组件将有一个 `button` 元素来触发模态的打开,以及一个具有类 `.modal` 的 `div` 元素,它将包含模态的内容和一个用于自关闭的按钮。
该组件将有一个 `button` 元素来触发模态的打开,以及一个具有类 `.modal` 的 `div` 元素,它将包含模态的内容和一个用于自关闭的按钮。

```js
const app = Vue.createApp({});
Expand Down