Skip to content

Commit

Permalink
docs: update Located doc
Browse files Browse the repository at this point in the history
  • Loading branch information
s3xysteak committed Oct 12, 2024
1 parent 0ce535f commit 093f7a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions src/core/components/Located/index-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

更详细的类型声明与源码参见 [useLocated](/zh/composables/useLocated.md)

| 名称 | 类型 | 默认值 |
| ------------------- | ---------------------------------------- | ----------------- |
| (v-model)modelValue | boolean | true |
| coordinate | Nullable<Cartesian3 \| MaybeCoordinates> | **required** |
| placement | UseLocatedOptions['placement'] | 'bottomRight' |
| as | string \| Component | 'div' |
| 名称 | 类型 | 默认值 |
| ------------------- | -------------------------------------------------- | ----------------- |
| (v-model)modelValue | boolean | true |
| coordinate | Nullable<Cartesian3 \| MaybeCoordinates> | **required** |
| placement? | Nullable<UseLocatedPlacement> | 'bottomRight' |
| as? | string \| Component | 'div' |
| offset? | { left: Nullable<number>, top: Nullable<number> } | {} |

## 使用

Expand Down
13 changes: 7 additions & 6 deletions src/core/components/Located/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ Locate a DOM element on a coordinate.

For more detailed type declarations and source code, refer to [useLocated](/composables/useLocated.md)

| Name | Type | Default |
| ------------------- | ---------------------------------------- | ----------------- |
| (v-model)modelValue | boolean | true |
| coordinate | Nullable<Cartesian3 \| MaybeCoordinates> | **required** |
| placement | UseLocatedOptions['placement'] | 'bottomRight' |
| as | string \| Component | 'div' |
| Name | Type | Default |
| -------------------- | ------------------------------------------------- | ----------------- |
| (v-model)modelValue | boolean | true |
| coordinate | Nullable<Cartesian3 \| MaybeCoordinates> | **required** |
| placement? | Nullable<UseLocatedPlacement> | 'bottomRight' |
| as? | string \| Component | 'div' |
| offset? | { left: Nullable<number>, top: Nullable<number> } | {} |

## Usage

Expand Down

0 comments on commit 093f7a3

Please sign in to comment.