Directives
| API | Registered name | Behavior |
|---|---|---|
vCopy | v-copy | Copies bound text or numbers when clicked |
vDebounce | v-debounce | Debounces rapid consecutive clicks |
vDraggable | v-draggable | Drags the target within its parent's bounds |
vIconCopy | v-icon-copy | Inserts a copy icon beside the target |
vLongpress | v-longpress | Invokes a callback after a long press |
vThrottle | v-throttle | Throttles repeated click callbacks |
These directives require a browser DOM. Applications validate callback and clipboard content themselves.
In 2.0.22, copying uses browser capabilities only: it prefers the Clipboard API in a secure context and falls back to document.execCommand("copy") when unavailable. It no longer attempts uni-app's setClipboardData. Errors from internal utilities and Vue helpers use English; error types and triggering conditions remain unchanged.
