@veltra/directives 1.15.1 → 1.15.2

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.
@@ -1,5 +1,3 @@
1
1
  import { ObjectDirective } from "vue";
2
- //#region src/click-outside/index.d.ts
3
2
  export declare const vClickOutside: ObjectDirective<HTMLElement>;
4
- //#endregion
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { createIncrease } from "@veltra/utils";
2
- //#region src/click-outside/index.ts
2
+ // src/click-outside/index.ts
3
3
  const uid = createIncrease(1e3);
4
4
  const targets = /* @__PURE__ */ new Map();
5
5
  let eventAdded = false;
@@ -66,7 +66,6 @@ const vClickOutside = {
66
66
  syncDocumentEvents();
67
67
  }
68
68
  };
69
- //#endregion
70
69
  export { vClickOutside };
71
70
 
72
71
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,3 @@
1
1
  import { ObjectDirective } from "vue";
2
- //#region src/focus/index.d.ts
3
2
  export declare const vFocus: ObjectDirective<HTMLElement>;
4
- //#endregion
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- //#region src/focus/index.ts
1
+ // src/focus/index.ts
2
2
  const vFocus = { mounted: (el) => {
3
3
  if (el.tagName === "INPUT") el.focus();
4
4
  else {
@@ -7,7 +7,6 @@ const vFocus = { mounted: (el) => {
7
7
  else console.warn("v-focus 指令需要一个 input 元素");
8
8
  }
9
9
  } };
10
- //#endregion
11
10
  export { vFocus };
12
11
 
13
12
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,5 @@
1
1
  import { Ripple } from "./ripple.js";
2
2
  import { ObjectDirective } from "vue";
3
- //#region src/ripple/index.d.ts
4
3
  export declare const vRipple: ObjectDirective<HTMLElement>;
5
- //#endregion
6
4
  export { Ripple };
7
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Ripple } from "./ripple.js";
2
- //#region src/ripple/index.ts
2
+ // src/ripple/index.ts
3
3
  const rippleMap = /* @__PURE__ */ new WeakMap();
4
4
  function handleMousedown(e) {
5
5
  if (e.button !== 0) return;
@@ -60,7 +60,6 @@ const vRipple = {
60
60
  } else if (registered) unregisterEvents(el);
61
61
  }
62
62
  };
63
- //#endregion
64
63
  export { Ripple, vRipple };
65
64
 
66
65
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,4 @@
1
1
  import { BEM } from "@veltra/utils";
2
- //#region src/ripple/ripple.d.ts
3
2
  /** 波纹位置接口 */
4
3
  interface RipplePosition {
5
4
  /** X 坐标 */
@@ -140,6 +139,5 @@ export declare class Ripple {
140
139
  */
141
140
  resetContainerRect(): void;
142
141
  }
143
- //#endregion
144
142
  export {};
145
143
  //# sourceMappingURL=ripple.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { bem, nextFrame, setStyles } from "@veltra/utils";
2
- //#region src/ripple/ripple.ts
2
+ // src/ripple/ripple.ts
3
3
  /** 数据集 key,用于标记 Ripple 修改过的样式 */
4
4
  const PositionKey = "uRipplePosition";
5
5
  const CountKey = "uRippleActiveCount";
@@ -255,7 +255,6 @@ var Ripple = class Ripple {
255
255
  this.containerRect = void 0;
256
256
  }
257
257
  };
258
- //#endregion
259
258
  export { Ripple };
260
259
 
261
260
  //# sourceMappingURL=ripple.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltra/directives",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "homepage": "https://github.com/cabinet-fe/ultra-ui#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/cabinet-fe/ultra-ui/issues"