https://github.com/ileostar/v3-directives
☠Vue3 Custom directives. Vue3自定义指令库
https://github.com/ileostar/v3-directives
custom directive tools typescript v3-directives vue3
Last synced: over 1 year ago
JSON representation
☠Vue3 Custom directives. Vue3自定义指令库
- Host: GitHub
- URL: https://github.com/ileostar/v3-directives
- Owner: ileostar
- License: mit
- Created: 2024-02-06T10:19:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T00:15:14.000Z (over 1 year ago)
- Last Synced: 2024-10-12T00:33:10.418Z (over 1 year ago)
- Topics: custom, directive, tools, typescript, v3-directives, vue3
- Language: TypeScript
- Homepage: https://v3-directives.leostar.top
- Size: 1.81 MB
- Stars: 38
- Watchers: 1
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ☠v3-directives

☠Vue3 directives 自定义指令库: [📖 在线文档](https://v3-directives.leostar.top/)


## 🕹Usage
1. Install package (安装依赖)
```bash
pnpm add @ileostar/v3-directives
# or
npm install @ileostar/v3-directives --save
```
1. Registration Directive (注册指令)
```typescript
import VueDirectives from '@ileostar/v3-directives'
const app = createApp(App)
app.use(router).mount('#app')
app.use(VueDirectives)
```
## 🧩Directives
| Directive | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [v-backtop](https://v3-directives.leostar.top/zh/directives/v-backtop.html) | Add a return to top function for an element |
| [v-clickOutside](https://v3-directives.leostar.top/zh/directives/v-clickOutside.html) | Event when clicking outside the element triggers |
| [v-copy](https://v3-directives.leostar.top/zh/directives/v-copy.html) | Copy the passed value to the clipboard |
| [v-debounce](https://v3-directives.leostar.top/zh/directives/v-debounce.html) | Anti-shaking function |
| [v-doubleClick](https://v3-directives.leostar.top/zh/directives/v-doubleClick.html) | Trigger an event on double-click |
| [v-draggable](https://v3-directives.leostar.top/zh/directives/v-draggable.html) | Makes elements draggable |
| [v-ellipsis](https://v3-directives.leostar.top/zh/directives/v-ellipsis.html) | Omit excess text |
| [v-emoji](https://v3-directives.leostar.top/zh/directives/v-emoji.html) | Prohibit emoji input |
| [v-empty](https://v3-directives.leostar.top/zh/directives/v-empty.html) | Used to display empty status |
| [v-flicker](https://v3-directives.leostar.top/zh/directives/v-flicker.html) | Element flicker |
| [v-focus](https://v3-directives.leostar.top/zh/directives/v-focus.html) | Input box autofocus |
| [v-highlight](https://v3-directives.leostar.top/zh/directives/v-highlight.html) | Text highlighting |
| [v-hover](https://v3-directives.leostar.top/zh/directives/v-hover.html) | Triggers a callback after the element |
| [v-input](https://v3-directives.leostar.top/zh/directives/v-input.html) | Input formatting |
| [v-lazyImg](https://v3-directives.leostar.top/zh/directives/v-lazyImg.html) | Lazy image loading |
| [v-loading](https://v3-directives.leostar.top/zh/directives/v-loading.html) | Add loading animation |
| [v-longpress](https://v3-directives.leostar.top/zh/directives/v-longpress.html) | Trigger event when long pressing an element |
| [v-money](https://v3-directives.leostar.top/zh/directives/v-money.html) | Format numbers into money format |
| [v-onOnce](https://v3-directives.leostar.top/zh/directives/v-onOnce.html) | Only one callback is triggered |
| [v-permission](https://v3-directives.leostar.top/zh/directives/v-permission.html) | Rapid realization of authentication |
| [v-resize](https://v3-directives.leostar.top/zh/directives/v-resize.html) | Response to resize the element |
| [v-ripple](https://v3-directives.leostar.top/zh/directives/v-ripple.html) | Add ripple dynamic effects to the clicked element |
| [v-slideIn](https://v3-directives.leostar.top/zh/directives/v-slideIn.html) | Add entry animation |
| [v-throttle](https://v3-directives.leostar.top/zh/directives/v-throttle.html) | Throttling function |
| [v-waterMarker](https://v3-directives.leostar.top/zh/directives/v-waterMarker.html) | Add custom watermark |
## 💖Contributors
Contributions are welcome, PR is welcome, More references [Participate in Open source](https://v3-directives.leostar.top/en/about/contribution.html)