Skip to content

Commit

Permalink
fix: fix deploy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ileostar committed Feb 21, 2024
1 parent 234076e commit 8c0328d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 70 deletions.
45 changes: 7 additions & 38 deletions docs/en/directives/v-hover.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,14 @@
# v-hover

## 功能介绍
## Function Introduction

经过元素触发回调
🚧 正在施工中 🚧

## 示例
## Example

<script setup lang="ts">
const handler = () => {
window.alert('hover')
}
</script>
<div
v-hover="handler"
:style="{
width: '200px',
height: '200px',
border: '1px solid #ccc'
}"
>
Hover
</div>
🚧 正在施工中 🚧

## 使用
## Usage

🚧 正在施工中 🚧

```typescript {2-4}
<script setup lang="ts">
const handler = () => {
window.alert('hover')
}
</script>
<template>
<div
v-hover="handler"
:style="{
width: '200px',
height: '200px',
border: '1px solid #ccc'
}"
>
Hover
</div>
</template>
```
28 changes: 6 additions & 22 deletions docs/en/directives/v-onOnce.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
# v-onOnce

## 功能介绍
## Function Introduction

只触发一次回调
🚧 正在施工中 🚧

## 示例
## Example

<script setup lang="ts">
const handler = () => {
window.alert('Hello!')
}
</script>
🚧 正在施工中 🚧

<button v-ononce:click="handler">只触发一次</button>
## Usage


## 使用

```typescript {8}
<script setup lang="ts">
const handler = () => {
window.alert('Hello!')
}
</script>
<template>
<button v-ononce:click="handler">只触发一次</button>
</template>
```
🚧 正在施工中 🚧
8 changes: 1 addition & 7 deletions docs/zh/directives/v-throttle.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@

## 示例

<script setup lang="ts">
const req = () => {
alert('发送请求')
}
</script>

<input type="text" v-throttle/>
🚧 正在施工中 🚧

## 使用

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
|[v-clickOutside]| 点击元素外部触发时事件 |

:::tip
更多指令待开发🚧,请查看[参与开源](../directives.md)
更多指令待开发🚧,请查看参与开源
:::

<style scoped>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@ileostar/v3-directives",
"version": "0.0.5",
"type": "module",
"packageManager": "[email protected]",
"description": "Custom Vue3 directives",
"author": "ileostar <[email protected]> (https://github.com/ileostar)",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"src/**/*.tsx",
"src/**/*.vue",
"src/directive/v-tooltip/test/*.spec.ts"
, "docs/.vitepress/src/utils/index.ts" ],
],
"exclude": ["node_modules","./src/directive/v-tooltip"]
}

0 comments on commit 8c0328d

Please sign in to comment.