Skip to content

Commit

Permalink
docs: fix builtin/components.md (#1774)
Browse files Browse the repository at this point in the history
Co-authored-by: _Kerman <[email protected]>
  • Loading branch information
kosuke222naito and KermanX authored Jul 22, 2024
1 parent fb4c9b2 commit 011a92a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/builtin/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Parameters:
- `x1` (`string | number`, required): start point x position
- `y1` (`string | number`, required): start point y position
- `x2` (`string | number`, required): end point x position
- `y2` (`string | number`, required): end point x position
- `y2` (`string | number`, required): end point y position
- `width` (`string | number`, default: `2`): line width
- `color` (`string`, default: `'currentColor'`): line color
- `two-way` (`boolean`, default: `false`): draw a two-way arrow
Expand All @@ -36,7 +36,7 @@ An `Arrow` component that can be dragged.

### Usage

See https://sli.dev/guide/draggable.html#draggable-arrow
<LinkCard link="features/draggable#draggable-arrow" />

Parameters not related to position are the same as [the `Arrow` component](#arrow).

Expand Down Expand Up @@ -283,13 +283,13 @@ Parameters:

## `VAfter`, `VClick` and `VClicks`

See https://sli.dev/guide/animations.html
<LinkCard link="guide/animations#click-animation" />

## `VSwitch`

Switch between multiple slots based on clicks.

See https://sli.dev/guide/animations.html#enter-leave
<LinkCard link="guide/animations#enter-leave" />

- If the `unmount` prop is set to `true`, the previous slot will be unmounted when switching to the next slot. Default is `false`.
- Use the `tag` and `childTag` props to change the default tag of the component and its children. Default is `div`.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ The following example synchronizes the highlighting of the two code blocks:
```
````

### Enter & Leave
### Enter & Leave {#enter-leave}

You can also specify the enter and leave index for the `v-click` directive by passing an array. The end index is exclusive.

Expand Down

0 comments on commit 011a92a

Please sign in to comment.