MCPcopy Index your code
hub / github.com/eonova/v3-directives

github.com/eonova/v3-directives @v1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.0 ↗ · + Follow
104 symbols 169 edges 37 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

☠v3-directives

screenshot

☠Vue3 directives 自定义指令库: 📖 在线文档

Static Badge Static Badge

🕹Usage

  1. Install package (安装依赖)
pnpm add @eonova/v3-directives
# or
npm install @eonova/v3-directives --save
  1. Registration Directive (注册指令)
import VueDirectives from '@eonova/v3-directives'
const app = createApp(App)
app.use(router).mount('#app')
app.use(VueDirectives)

🧩Directives

Directive Description
v-backtop Add a return to top function for an element
v-clickOutside Event when clicking outside the element triggers
v-copy Copy the passed value to the clipboard
v-debounce Anti-shaking function
v-doubleClick Trigger an event on double-click
v-draggable Makes elements draggable
v-ellipsis Omit excess text
v-emoji Prohibit emoji input
v-empty Used to display empty status
v-flicker Element flicker
v-focus Input box autofocus
v-highlight Text highlighting
v-hover Triggers a callback after the element
v-input Input formatting
v-lazyImg Lazy image loading
v-loading Add loading animation
v-longpress Trigger event when long pressing an element
v-money Format numbers into money format
v-onOnce Only one callback is triggered
v-permission Rapid realization of authentication
v-resize Response to resize the element
v-ripple Add ripple dynamic effects to the clicked element
v-slideIn Add entry animation
v-throttle Throttling function
v-waterMarker Add custom watermark

💖Contributors

Contributions are welcome, PR is welcome, More references Participate in Open source

Extension points exported contracts — how you extend this code

GlobalDirectives (Interface)
(no doc)
src/global.d.ts
DirectiveCollection (Interface)
(no doc)
src/index.ts
BackTopElement (Interface)
(no doc)
src/directive/v-backtop/index.ts
ScrollableElement (Interface)
(no doc)
src/directive/v-backtop/index.ts

Core symbols most depended-on inside this repo

isBoolean
called by 3
src/utils/isBoolean.ts
addEventListener
called by 2
src/directive/v-doubleClick/index.ts
observerHandler
called by 2
src/directive/v-lazyImg/index.ts
addEventListener
called by 2
src/directive/v-throttle/index.ts
addEventListener
called by 2
src/directive/v-longpress/index.ts
addEventListener
called by 2
src/directive/v-clickOutside/index.ts
createYElement
called by 2
src/directive/v-resize/index.ts
createXElement
called by 2
src/directive/v-resize/index.ts

Shape

Function 100
Interface 4

Languages

TypeScript100%

Modules by API surface

src/directive/v-resize/index.ts6 symbols
src/directive/v-longpress/index.ts6 symbols
src/directive/v-empty/index.ts6 symbols
src/directive/v-backtop/index.ts6 symbols
src/directive/v-throttle/index.ts5 symbols
src/directive/v-onOnce/index.ts5 symbols
src/directive/v-lazyImg/index.ts5 symbols
src/directive/v-doubleClick/index.ts5 symbols
src/directive/v-debounce/index.ts5 symbols
src/directive/v-clickOutside/index.ts5 symbols
src/directive/v-slideIn/index.ts4 symbols
src/directive/v-ripple/index.ts4 symbols

For agents

$ claude mcp add v3-directives \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact