❗ 重命名 docs 为 example
This commit is contained in:
37
example/docs/zh-CN/hooks/useMove.md
Normal file
37
example/docs/zh-CN/hooks/useMove.md
Normal file
@@ -0,0 +1,37 @@
|
||||
::: title 基础使用
|
||||
:::
|
||||
|
||||
::: block 使 用 useFullScreen 快 速 完 成 fullScreen 操 作
|
||||
:::
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<button id="button">拖动</button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref, watch, onMounted } from 'vue'
|
||||
import useMove from '/@src/hooks/useMove'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
onMounted(() => {
|
||||
const el = document.getElementById('button')
|
||||
useMove(el)
|
||||
})
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
::: title 使用备注
|
||||
:::
|
||||
|
||||
::: table
|
||||
|
||||
| 备注 | 描述 | 类型 |
|
||||
| ---- | -------------- | ----------- |
|
||||
| el | 需要拖拽的元素 | HtmlElement |
|
||||
|
||||
:::
|
||||
Reference in New Issue
Block a user