@vft/directives 0.0.6 → 0.0.8
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/cjs/index.cjs +1 -1
- package/dist/cjs/scroll-fix.cjs +1 -1
- package/dist/es/index.js +6 -6
- package/dist/es/scroll-fix.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/scroll-fix.d.ts +2 -2
- package/package.json +16 -16
package/dist/cjs/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./click-out-side.cjs"),r=require("./scroll-fix.cjs"),t=require("./permission.cjs"),s=e=>{e.directive("scrollFix",r.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./click-out-side.cjs"),r=require("./scroll-fix.cjs"),t=require("./permission.cjs"),s=e=>{e.directive("scrollFix",r.default)},c=e=>{e.directive("ClickOutside",i.default)};exports.setupPermissionDirective=t.setupPermissionDirective;exports.registerClickOut=c;exports.registerScrollFix=s;
|
package/dist/cjs/scroll-fix.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.
|
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/es/index.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import r from "./click-out-side.js";
|
2
|
+
import e from "./scroll-fix.js";
|
3
3
|
import { setupPermissionDirective as p } from "./permission.js";
|
4
4
|
const c = (i) => {
|
5
|
-
i.directive("scrollFix",
|
5
|
+
i.directive("scrollFix", e);
|
6
6
|
}, s = (i) => {
|
7
|
-
i.directive("ClickOutside",
|
7
|
+
i.directive("ClickOutside", r);
|
8
8
|
};
|
9
9
|
export {
|
10
|
-
|
11
|
-
|
10
|
+
s as registerClickOut,
|
11
|
+
c as registerScrollFix,
|
12
12
|
p as setupPermissionDirective
|
13
13
|
};
|
package/dist/es/scroll-fix.js
CHANGED
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { App } from 'vue';
|
2
|
-
export declare const
|
3
|
-
export declare const
|
2
|
+
export declare const registerScrollFix: (app: App) => void;
|
3
|
+
export declare const registerClickOut: (app: App) => void;
|
4
4
|
export * from './permission';
|
package/dist/scroll-fix.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vft/directives",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.8",
|
4
4
|
"main": "./dist/cjs/index.cjs",
|
5
5
|
"module": "./dist/es/index.js",
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -10,25 +10,25 @@
|
|
10
10
|
"import": "./dist/es/index.js"
|
11
11
|
}
|
12
12
|
},
|
13
|
+
"files": [
|
14
|
+
"dist"
|
15
|
+
],
|
16
|
+
"devDependencies": {
|
17
|
+
"@vft/use": "0.0.14",
|
18
|
+
"@vft/utils": "0.0.20"
|
19
|
+
},
|
20
|
+
"peerDependencies": {
|
21
|
+
"vue": ">=3.2.0",
|
22
|
+
"@vft/use": "0.0.14",
|
23
|
+
"@vft/utils": "0.0.20"
|
24
|
+
},
|
13
25
|
"scripts": {
|
14
|
-
"stub-unbuild": "unbuild --stub && pnpm -F @vft/
|
15
|
-
"
|
16
|
-
"dev": "pnpm run stub",
|
26
|
+
"stub-unbuild": "unbuild --stub && pnpm -F @vft/scripts stub-helper",
|
27
|
+
"dev": "tsup --config ../../common/cjs-utils/src/tsup.config.ts",
|
17
28
|
"clean": "pnpm /^clean:/",
|
18
29
|
"clean:dist": "rimraf dist",
|
19
30
|
"clean:node_modules": "rimraf node_modules",
|
20
31
|
"build": "vite build",
|
21
32
|
"pub": "pnpm clean:dist && pnpm build && tsx ../../scripts/build/src/publish.ts --pkg common/directives"
|
22
|
-
},
|
23
|
-
"files": [
|
24
|
-
"dist"
|
25
|
-
],
|
26
|
-
"peerDependencies": {
|
27
|
-
"@vft/use": "workspace:*",
|
28
|
-
"@vft/utils": "workspace:*",
|
29
|
-
"vue": ">=3.2.0"
|
30
|
-
},
|
31
|
-
"dependencies": {
|
32
|
-
"vft": "^0.0.26"
|
33
33
|
}
|
34
|
-
}
|
34
|
+
}
|