@vft/directives 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -8
- package/dist/index.js +1 -0
- package/package.json +8 -8
- package/dist/cjs/click-out-side.cjs +0 -1
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/permission.cjs +0 -1
- package/dist/cjs/repeat-click/index.cjs +0 -1
- package/dist/cjs/scroll-fix.cjs +0 -1
- package/dist/click-out-side.d.ts +0 -3
- package/dist/es/click-out-side.js +0 -44
- package/dist/es/index.js +0 -19
- package/dist/es/permission.js +0 -16
- package/dist/es/repeat-click/index.js +0 -26
- package/dist/es/scroll-fix.js +0 -19
- package/dist/permission.d.ts +0 -2
- package/dist/repeat-click/index.d.ts +0 -9
- package/dist/scroll-fix.d.ts +0 -9
package/dist/index.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=s(require(`@vft/utils`)),l=s(require(`@vft/use`)),u=s(require(`vue`)),d=new Map;if(c.isClient){let e;document.addEventListener(`mousedown`,t=>e=t),document.addEventListener(`mouseup`,t=>{if(e){for(let n of d.values())for(let{documentHandler:r}of n)r(t,e);e=void 0}})}function f(e,t){let n=[];return(0,c.isArray)(t.arg)?n=t.arg:(0,c.isElement)(t.arg)&&n.push(t.arg),function(r,i){let a=t.instance.popperRef,o=r.target,s=i?.target,c=!t||!t.instance,l=!o||!s,u=e.contains(o)||e.contains(s),d=e===o,f=n.length&&n.some(e=>e?.contains(o))||n.length&&n.includes(s),p=a&&(a.contains(o)||a.contains(s));c||l||u||d||f||p||t.value(r,i)}}const p={beforeMount(e,t){d.has(e)||d.set(e,[]),d.get(e).push({documentHandler:f(e,t),bindingFn:t.value})},updated(e,t){d.has(e)||d.set(e,[]);let n=d.get(e),r=n.findIndex(e=>e.bindingFn===t.oldValue),i={documentHandler:f(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){d.delete(e)}};var m=p;const h={mounted(e){let t={};e.addEventListener(`touchstart`,e=>{t=e.touches[0]}),e.addEventListener(`touchmove`,e=>{e.stopPropagation();let n=e.currentTarget,r=e.touches[0];(n.scrollHeight<=n.offsetHeight||!n.scrollTop&&r.screenY>t.screenY||n.scrollTop===n.scrollHeight-n.offsetHeight&&r.screenY<t.screenY)&&e.cancelable&&e.preventDefault(),t=r},!1)}};var g=h;function _(e,t,n){let{hasPermission:r}=(0,l.usePermission)(n||(0,u.ref)([])),i=t.value;i&&(r(i)||e.parentNode?.removeChild(e))}function v(e,t){e.directive(`auth`,{mounted:(e,n)=>{_(e,n,t)}})}const y=100,b=600,x={beforeMount(e,t){let n=t.value,{interval:r=100,delay:i=600}=(0,c.isFunction)(n)?{}:n,a,o,s=()=>(0,c.isFunction)(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),a&&(clearInterval(a),a=void 0)};e.addEventListener(`mousedown`,e=>{e.button===0&&(l(),s(),document.addEventListener(`mouseup`,()=>l(),{once:!0}),o=setTimeout(()=>{a=setInterval(()=>{s()},r)},i))})}},S=e=>{e.directive(`scrollFix`,g)},C=e=>{e.directive(`ClickOutside`,m)};exports.ClickOutside=m,exports.REPEAT_DELAY=600,exports.REPEAT_INTERVAL=100,exports.ScrollFix=g,exports.registerClickOut=C,exports.registerScrollFix=S,exports.setupPermissionDirective=v,exports.vRepeatClick=x;
|
package/dist/index.d.cts
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
import { App, Directive, ObjectDirective, Ref } from "vue";
|
2
|
+
|
3
|
+
//#region src/click-out-side.d.ts
|
4
|
+
declare const ClickOutside: ObjectDirective;
|
5
|
+
//#endregion
|
6
|
+
//#region src/scroll-fix.d.ts
|
7
|
+
/**
|
8
|
+
* @description 禁止 ios 橡皮筋效果
|
9
|
+
* @author wfd
|
10
|
+
* @date 2022/8/24 15:40
|
11
|
+
* @example v-scroll-fix
|
12
|
+
*/
|
13
|
+
declare const ScrollFix: Directive;
|
14
|
+
//#endregion
|
15
|
+
//#region src/permission.d.ts
|
16
|
+
declare function setupPermissionDirective(app: App, roleList: Ref<string[]>): void;
|
17
|
+
//#endregion
|
18
|
+
//#region src/repeat-click/index.d.ts
|
19
|
+
declare const REPEAT_INTERVAL = 100;
|
20
|
+
declare const REPEAT_DELAY = 600;
|
21
|
+
interface RepeatClickOptions {
|
22
|
+
interval?: number;
|
23
|
+
delay?: number;
|
24
|
+
handler: (...args: unknown[]) => unknown;
|
25
|
+
}
|
26
|
+
declare const vRepeatClick: ObjectDirective<HTMLElement, RepeatClickOptions | RepeatClickOptions['handler']>;
|
27
|
+
//#endregion
|
28
|
+
//#region src/index.d.ts
|
29
|
+
declare const registerScrollFix: (app: App) => void;
|
30
|
+
declare const registerClickOut: (app: App) => void;
|
31
|
+
//#endregion
|
32
|
+
export { ClickOutside, REPEAT_DELAY, REPEAT_INTERVAL, RepeatClickOptions, ScrollFix, registerClickOut, registerScrollFix, setupPermissionDirective, vRepeatClick };
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,32 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
import { App, Directive, ObjectDirective, Ref } from "vue";
|
2
|
+
|
3
|
+
//#region src/click-out-side.d.ts
|
4
|
+
declare const ClickOutside: ObjectDirective;
|
5
|
+
//#endregion
|
6
|
+
//#region src/scroll-fix.d.ts
|
7
|
+
/**
|
8
|
+
* @description 禁止 ios 橡皮筋效果
|
9
|
+
* @author wfd
|
10
|
+
* @date 2022/8/24 15:40
|
11
|
+
* @example v-scroll-fix
|
12
|
+
*/
|
13
|
+
declare const ScrollFix: Directive;
|
14
|
+
//#endregion
|
15
|
+
//#region src/permission.d.ts
|
16
|
+
declare function setupPermissionDirective(app: App, roleList: Ref<string[]>): void;
|
17
|
+
//#endregion
|
18
|
+
//#region src/repeat-click/index.d.ts
|
19
|
+
declare const REPEAT_INTERVAL = 100;
|
20
|
+
declare const REPEAT_DELAY = 600;
|
21
|
+
interface RepeatClickOptions {
|
22
|
+
interval?: number;
|
23
|
+
delay?: number;
|
24
|
+
handler: (...args: unknown[]) => unknown;
|
25
|
+
}
|
26
|
+
declare const vRepeatClick: ObjectDirective<HTMLElement, RepeatClickOptions | RepeatClickOptions['handler']>;
|
27
|
+
//#endregion
|
28
|
+
//#region src/index.d.ts
|
29
|
+
declare const registerScrollFix: (app: App) => void;
|
30
|
+
declare const registerClickOut: (app: App) => void;
|
31
|
+
//#endregion
|
32
|
+
export { ClickOutside, REPEAT_DELAY, REPEAT_INTERVAL, RepeatClickOptions, ScrollFix, registerClickOut, registerScrollFix, setupPermissionDirective, vRepeatClick };
|
package/dist/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
import{isArray as e,isClient as t,isElement as n,isFunction as r}from"@vft/utils";import{usePermission as i}from"@vft/use";import{ref as a}from"vue";const o=new Map;if(t){let e;document.addEventListener(`mousedown`,t=>e=t),document.addEventListener(`mouseup`,t=>{if(e){for(let n of o.values())for(let{documentHandler:r}of n)r(t,e);e=void 0}})}function s(t,r){let i=[];return e(r.arg)?i=r.arg:n(r.arg)&&i.push(r.arg),function(e,n){let a=r.instance.popperRef,o=e.target,s=n?.target,c=!r||!r.instance,l=!o||!s,u=t.contains(o)||t.contains(s),d=t===o,f=i.length&&i.some(e=>e?.contains(o))||i.length&&i.includes(s),p=a&&(a.contains(o)||a.contains(s));c||l||u||d||f||p||r.value(e,n)}}const c={beforeMount(e,t){o.has(e)||o.set(e,[]),o.get(e).push({documentHandler:s(e,t),bindingFn:t.value})},updated(e,t){o.has(e)||o.set(e,[]);let n=o.get(e),r=n.findIndex(e=>e.bindingFn===t.oldValue),i={documentHandler:s(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){o.delete(e)}};var l=c;const u={mounted(e){let t={};e.addEventListener(`touchstart`,e=>{t=e.touches[0]}),e.addEventListener(`touchmove`,e=>{e.stopPropagation();let n=e.currentTarget,r=e.touches[0];(n.scrollHeight<=n.offsetHeight||!n.scrollTop&&r.screenY>t.screenY||n.scrollTop===n.scrollHeight-n.offsetHeight&&r.screenY<t.screenY)&&e.cancelable&&e.preventDefault(),t=r},!1)}};var d=u;function f(e,t,n){let{hasPermission:r}=i(n||a([])),o=t.value;o&&(r(o)||e.parentNode?.removeChild(e))}function p(e,t){e.directive(`auth`,{mounted:(e,n)=>{f(e,n,t)}})}const m=100,h=600,g={beforeMount(e,t){let n=t.value,{interval:i=100,delay:a=600}=r(n)?{}:n,o,s,c=()=>r(n)?n():n.handler(),l=()=>{s&&(clearTimeout(s),s=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener(`mousedown`,e=>{e.button===0&&(l(),c(),document.addEventListener(`mouseup`,()=>l(),{once:!0}),s=setTimeout(()=>{o=setInterval(()=>{c()},i)},a))})}},_=e=>{e.directive(`scrollFix`,d)},v=e=>{e.directive(`ClickOutside`,l)};export{l as ClickOutside,h as REPEAT_DELAY,m as REPEAT_INTERVAL,d as ScrollFix,v as registerClickOut,_ as registerScrollFix,p as setupPermissionDirective,g as vRepeatClick};
|
package/package.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vft/directives",
|
3
|
-
"version": "0.0.
|
4
|
-
"main": "./dist/
|
5
|
-
"module": "./dist/
|
3
|
+
"version": "0.0.31",
|
4
|
+
"main": "./dist/index.cjs",
|
5
|
+
"module": "./dist/index.js",
|
6
6
|
"type": "module",
|
7
7
|
"files": [
|
8
8
|
"dist"
|
9
9
|
],
|
10
10
|
"devDependencies": {
|
11
|
-
"@vft/use": "0.0.
|
12
|
-
"@vft/utils": "0.0.
|
11
|
+
"@vft/use": "0.0.55",
|
12
|
+
"@vft/utils": "0.0.115"
|
13
13
|
},
|
14
14
|
"peerDependencies": {
|
15
15
|
"vue": "3.5.13"
|
@@ -18,14 +18,14 @@
|
|
18
18
|
"clean": "pnpm /^clean:/",
|
19
19
|
"clean:dist": "rimraf dist",
|
20
20
|
"clean:node_modules": "rimraf node_modules",
|
21
|
-
"build": "
|
21
|
+
"build": "tsdown -c ../../scripts/build/src/utils/tsdown.config.ts",
|
22
22
|
"pub": "pnpm build && tsx ../../scripts/build/src/publish.ts --pkg common/directives"
|
23
23
|
},
|
24
24
|
"types": "./dist/index.d.ts",
|
25
25
|
"exports": {
|
26
26
|
".": {
|
27
|
-
"require": "./dist/
|
28
|
-
"import": "./dist/
|
27
|
+
"require": "./dist/index.cjs",
|
28
|
+
"import": "./dist/index.js"
|
29
29
|
}
|
30
30
|
}
|
31
31
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("@vft/utils"),s=new Map;if(d.isClient){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of s.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function i(e,t){let n=[];return d.isArray(t.arg)?n=t.arg:d.isElement(t.arg)&&n.push(t.arg),function(o,a){const c=t.instance.popperRef,r=o.target,u=a?.target,l=!t||!t.instance,f=!r||!u,p=e.contains(r)||e.contains(u),m=e===r,g=n.length&&n.some(v=>v?.contains(r))||n.length&&n.includes(u),h=c&&(c.contains(r)||c.contains(u));l||f||p||m||g||h||t.value(o,a)}}const E={beforeMount(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:i(e,t),bindingFn:t.value})},updated(e,t){s.has(e)||s.set(e,[]);const n=s.get(e),o=n.findIndex(c=>c.bindingFn===t.oldValue),a={documentHandler:i(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){s.delete(e)}};exports.default=E;
|
package/dist/cjs/index.cjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./click-out-side.cjs"),r=require("./scroll-fix.cjs"),c=require("./permission.cjs"),i=require("./repeat-click/index.cjs"),l=e=>{e.directive("scrollFix",r.default)},s=e=>{e.directive("ClickOutside",t.default)};exports.ClickOutside=t.default;exports.ScrollFix=r.default;exports.setupPermissionDirective=c.setupPermissionDirective;exports.REPEAT_DELAY=i.REPEAT_DELAY;exports.REPEAT_INTERVAL=i.REPEAT_INTERVAL;exports.vRepeatClick=i.vRepeatClick;exports.registerClickOut=s;exports.registerScrollFix=l;
|
package/dist/cjs/permission.cjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@vft/use"),n=require("vue");function o(e,i,t){const{hasPermission:r}=u.usePermission(t||n.ref([])),s=i.value;s&&(r(s)||e.parentNode?.removeChild(e))}function c(e,i){e.directive("auth",{mounted:(t,r)=>{o(t,r,i)}})}exports.setupPermissionDirective=c;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vft/utils"),r=100,a=600,v={beforeMount(c,s){const e=s.value,{interval:u=r,delay:d=a}=l.isFunction(e)?{}:e;let t,n;const o=()=>l.isFunction(e)?e():e.handler(),i=()=>{n&&(clearTimeout(n),n=void 0),t&&(clearInterval(t),t=void 0)};c.addEventListener("mousedown",E=>{E.button===0&&(i(),o(),document.addEventListener("mouseup",()=>i(),{once:!0}),n=setTimeout(()=>{t=setInterval(()=>{o()},u)},d))})}};exports.REPEAT_DELAY=a;exports.REPEAT_INTERVAL=r;exports.vRepeatClick=v;
|
package/dist/cjs/scroll-fix.cjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c={mounted(l){let o={};l.addEventListener("touchstart",e=>{o=e.touches[0]}),l.addEventListener("touchmove",e=>{e.stopPropagation();const t=e.currentTarget,s=e.touches[0];(t.scrollHeight<=t.offsetHeight||!t.scrollTop&&s.screenY>o.screenY||t.scrollTop===t.scrollHeight-t.offsetHeight&&s.screenY<o.screenY)&&e.cancelable&&e.preventDefault(),o=s},!1)}};exports.default=c;
|
package/dist/click-out-side.d.ts
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
import { isClient as v, isArray as x, isElement as E } from "@vft/utils";
|
2
|
-
const s = /* @__PURE__ */ new Map();
|
3
|
-
if (v) {
|
4
|
-
let e;
|
5
|
-
document.addEventListener("mousedown", (t) => e = t), document.addEventListener("mouseup", (t) => {
|
6
|
-
if (e) {
|
7
|
-
for (const n of s.values())
|
8
|
-
for (const { documentHandler: o } of n)
|
9
|
-
o(t, e);
|
10
|
-
e = void 0;
|
11
|
-
}
|
12
|
-
});
|
13
|
-
}
|
14
|
-
function u(e, t) {
|
15
|
-
let n = [];
|
16
|
-
return x(t.arg) ? n = t.arg : E(t.arg) && n.push(t.arg), function(o, a) {
|
17
|
-
const c = t.instance.popperRef, r = o.target, d = a?.target, i = !t || !t.instance, l = !r || !d, f = e.contains(r) || e.contains(d), p = e === r, m = n.length && n.some((g) => g?.contains(r)) || n.length && n.includes(d), h = c && (c.contains(r) || c.contains(d));
|
18
|
-
i || l || f || p || m || h || t.value(o, a);
|
19
|
-
};
|
20
|
-
}
|
21
|
-
const C = {
|
22
|
-
beforeMount(e, t) {
|
23
|
-
s.has(e) || s.set(e, []), s.get(e).push({
|
24
|
-
documentHandler: u(e, t),
|
25
|
-
bindingFn: t.value
|
26
|
-
});
|
27
|
-
},
|
28
|
-
updated(e, t) {
|
29
|
-
s.has(e) || s.set(e, []);
|
30
|
-
const n = s.get(e), o = n.findIndex(
|
31
|
-
(c) => c.bindingFn === t.oldValue
|
32
|
-
), a = {
|
33
|
-
documentHandler: u(e, t),
|
34
|
-
bindingFn: t.value
|
35
|
-
};
|
36
|
-
o >= 0 ? n.splice(o, 1, a) : n.push(a);
|
37
|
-
},
|
38
|
-
unmounted(e) {
|
39
|
-
s.delete(e);
|
40
|
-
}
|
41
|
-
};
|
42
|
-
export {
|
43
|
-
C as default
|
44
|
-
};
|
package/dist/es/index.js
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import r from "./click-out-side.js";
|
2
|
-
import e from "./scroll-fix.js";
|
3
|
-
import { setupPermissionDirective as p } from "./permission.js";
|
4
|
-
import { REPEAT_DELAY as E, REPEAT_INTERVAL as d, vRepeatClick as f } from "./repeat-click/index.js";
|
5
|
-
const c = (i) => {
|
6
|
-
i.directive("scrollFix", e);
|
7
|
-
}, l = (i) => {
|
8
|
-
i.directive("ClickOutside", r);
|
9
|
-
};
|
10
|
-
export {
|
11
|
-
r as ClickOutside,
|
12
|
-
E as REPEAT_DELAY,
|
13
|
-
d as REPEAT_INTERVAL,
|
14
|
-
e as ScrollFix,
|
15
|
-
l as registerClickOut,
|
16
|
-
c as registerScrollFix,
|
17
|
-
p as setupPermissionDirective,
|
18
|
-
f as vRepeatClick
|
19
|
-
};
|
package/dist/es/permission.js
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
import { usePermission as n } from "@vft/use";
|
2
|
-
import { ref as s } from "vue";
|
3
|
-
function u(e, i, o) {
|
4
|
-
const { hasPermission: r } = n(o || s([])), t = i.value;
|
5
|
-
t && (r(t) || e.parentNode?.removeChild(e));
|
6
|
-
}
|
7
|
-
function c(e, i) {
|
8
|
-
e.directive("auth", {
|
9
|
-
mounted: (o, r) => {
|
10
|
-
u(o, r, i);
|
11
|
-
}
|
12
|
-
});
|
13
|
-
}
|
14
|
-
export {
|
15
|
-
c as setupPermissionDirective
|
16
|
-
};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { isFunction as a } from "@vft/utils";
|
2
|
-
const u = 100, v = 600, m = {
|
3
|
-
beforeMount(l, i) {
|
4
|
-
const e = i.value, { interval: c = u, delay: d = v } = a(
|
5
|
-
e
|
6
|
-
) ? {} : e;
|
7
|
-
let t, n;
|
8
|
-
const o = () => a(e) ? e() : e.handler(), r = () => {
|
9
|
-
n && (clearTimeout(n), n = void 0), t && (clearInterval(t), t = void 0);
|
10
|
-
};
|
11
|
-
l.addEventListener("mousedown", (s) => {
|
12
|
-
s.button === 0 && (r(), o(), document.addEventListener("mouseup", () => r(), {
|
13
|
-
once: !0
|
14
|
-
}), n = setTimeout(() => {
|
15
|
-
t = setInterval(() => {
|
16
|
-
o();
|
17
|
-
}, c);
|
18
|
-
}, d));
|
19
|
-
});
|
20
|
-
}
|
21
|
-
};
|
22
|
-
export {
|
23
|
-
v as REPEAT_DELAY,
|
24
|
-
u as REPEAT_INTERVAL,
|
25
|
-
m as vRepeatClick
|
26
|
-
};
|
package/dist/es/scroll-fix.js
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
const l = {
|
2
|
-
mounted(c) {
|
3
|
-
let o = {};
|
4
|
-
c.addEventListener("touchstart", (e) => {
|
5
|
-
o = e.touches[0];
|
6
|
-
}), c.addEventListener(
|
7
|
-
"touchmove",
|
8
|
-
(e) => {
|
9
|
-
e.stopPropagation();
|
10
|
-
const t = e.currentTarget, s = e.touches[0];
|
11
|
-
(t.scrollHeight <= t.offsetHeight || !t.scrollTop && s.screenY > o.screenY || t.scrollTop === t.scrollHeight - t.offsetHeight && s.screenY < o.screenY) && e.cancelable && e.preventDefault(), o = s;
|
12
|
-
},
|
13
|
-
!1
|
14
|
-
);
|
15
|
-
}
|
16
|
-
};
|
17
|
-
export {
|
18
|
-
l as default
|
19
|
-
};
|
package/dist/permission.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { ObjectDirective } from 'vue';
|
2
|
-
export declare const REPEAT_INTERVAL = 100;
|
3
|
-
export declare const REPEAT_DELAY = 600;
|
4
|
-
export interface RepeatClickOptions {
|
5
|
-
interval?: number;
|
6
|
-
delay?: number;
|
7
|
-
handler: (...args: unknown[]) => unknown;
|
8
|
-
}
|
9
|
-
export declare const vRepeatClick: ObjectDirective<HTMLElement, RepeatClickOptions | RepeatClickOptions['handler']>;
|