@vft/directives 0.0.23 → 0.0.25

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.
@@ -22,7 +22,9 @@ const C = {
22
22
  },
23
23
  updated(e, t) {
24
24
  s.has(e) || s.set(e, []);
25
- const n = s.get(e), o = n.findIndex((r) => r.bindingFn === t.oldValue), a = {
25
+ const n = s.get(e), o = n.findIndex(
26
+ (r) => r.bindingFn === t.oldValue
27
+ ), a = {
26
28
  documentHandler: i(e, t),
27
29
  bindingFn: t.value
28
30
  };
package/package.json CHANGED
@@ -1,32 +1,30 @@
1
1
  {
2
2
  "name": "@vft/directives",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "module": "./dist/es/index.js",
6
- "types": "./dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "require": "./dist/cjs/index.cjs",
10
- "import": "./dist/es/index.js"
11
- }
12
- },
13
6
  "files": [
14
7
  "dist"
15
8
  ],
16
9
  "devDependencies": {
17
- "@vft/use": "0.0.30",
18
- "@vft/utils": "0.0.42"
10
+ "@vft/use": "0.0.32",
11
+ "@vft/utils": "0.0.49"
19
12
  },
20
13
  "peerDependencies": {
21
- "vue": ">=3.2.0"
14
+ "vue": "^2.7.0 || ^3.2.25"
22
15
  },
23
16
  "scripts": {
24
- "stub-unbuild": "unbuild --stub && pnpm -F @vft/scripts stub-helper",
25
- "dev": "tsup --config ../../common/cjs-utils/src/tsup.config.ts && tsx ../../scripts/build/src/ts-dev-migrate.ts",
26
17
  "clean": "pnpm /^clean:/",
27
18
  "clean:dist": "rimraf dist",
28
19
  "clean:node_modules": "rimraf node_modules",
29
- "build": "vite build",
30
- "pub": "pnpm clean:dist && pnpm build && tsx ../../scripts/build/src/publish.ts --pkg common/directives"
20
+ "build": "pnpm clean:dist && vite build",
21
+ "pub": "pnpm build && tsx ../../scripts/build/src/publish.ts --pkg common/directives"
22
+ },
23
+ "types": "./dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "require": "./dist/cjs/index.cjs",
27
+ "import": "./dist/es/index.js"
28
+ }
31
29
  }
32
30
  }
package/src/index.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { App } from 'vue';
2
+ import ClickOutside from './click-out-side';
3
+ import ScrollFix from './scroll-fix';
4
+
5
+ export const registerScrollFix = (app: App) => {
6
+ app.directive('scrollFix', ScrollFix);
7
+ };
8
+
9
+ export const registerClickOut = (app: App) => {
10
+ app.directive('ClickOutside', ClickOutside);
11
+ };
12
+
13
+ export * from './permission';
14
+ export * from './repeat-click';
15
+ export { ClickOutside, ScrollFix };