vft 0.0.419 → 0.0.421

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,7 +1,7 @@
1
1
  import { keysOf as f } from "@vft/utils";
2
2
  import "@vueuse/core";
3
3
  import { debugWarn as v } from "../../../utils/error.js";
4
- import { ref as g, getCurrentInstance as l, computed as i, unref as p, provide as C, inject as x } from "vue";
4
+ import { getCurrentInstance as l, computed as i, unref as p, provide as g, ref as C, inject as x } from "vue";
5
5
  import "lodash-es";
6
6
  import "../../form/index.js";
7
7
  import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
@@ -9,7 +9,7 @@ import "../../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from "../../../hooks/use-z-index/index.js";
11
11
  import { configProviderContextKey as m } from "../constants.js";
12
- const a = g();
12
+ const a = C();
13
13
  function d(o, e = void 0) {
14
14
  const n = l() ? x(m, a) : a;
15
15
  return o ? i(() => n?.value?.[o] ?? e) : n;
@@ -27,7 +27,7 @@ function B(o) {
27
27
  };
28
28
  }
29
29
  const S = (o, e, n = !1) => {
30
- const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? C : void 0);
30
+ const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? g : void 0);
31
31
  if (!u) {
32
32
  v(
33
33
  "provideGlobalConfig",
@@ -1,3 +1,4 @@
1
+ import { type DialogProps } from 'vft/es/components/dialog';
1
2
  import type { DrawerProps } from './types';
2
3
  declare function __VLS_template(): {
3
4
  header?(_: {
@@ -9,7 +10,7 @@ declare function __VLS_template(): {
9
10
  default?(_: {}): any;
10
11
  footer?(_: {}): any;
11
12
  };
12
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps>>, {
13
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps & DialogProps>>, {
13
14
  close: () => void;
14
15
  afterEnter: () => void;
15
16
  afterLeave: () => void;
@@ -21,7 +22,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
21
22
  closed: () => void;
22
23
  openAutoFocus: () => void;
23
24
  closeAutoFocus: () => void;
24
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps>>> & Readonly<{
25
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps & DialogProps>>> & Readonly<{
25
26
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
27
  onClose?: (() => any) | undefined;
27
28
  onOpen?: (() => any) | undefined;
@@ -1,5 +1,4 @@
1
- import type { DialogProps } from 'vft/es/components/dialog';
2
- export interface DrawerProps extends DialogProps {
1
+ export interface DrawerProps {
3
2
  /** 抽屉的弹出方向 */
4
3
  direction?: 'ltr' | 'rtl' | 'ttb' | 'btt';
5
4
  /** 抽屉的尺寸 */
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.419",
3
+ "version": "0.0.421",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.419";
1
+ const o = "0.0.421";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1,3 +1,4 @@
1
+ import { type DialogProps } from 'vft/es/components/dialog';
1
2
  import type { DrawerProps } from './types';
2
3
  declare function __VLS_template(): {
3
4
  header?(_: {
@@ -9,7 +10,7 @@ declare function __VLS_template(): {
9
10
  default?(_: {}): any;
10
11
  footer?(_: {}): any;
11
12
  };
12
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps>>, {
13
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps & DialogProps>>, {
13
14
  close: () => void;
14
15
  afterEnter: () => void;
15
16
  afterLeave: () => void;
@@ -21,7 +22,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
21
22
  closed: () => void;
22
23
  openAutoFocus: () => void;
23
24
  closeAutoFocus: () => void;
24
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps>>> & Readonly<{
25
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps & DialogProps>>> & Readonly<{
25
26
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
27
  onClose?: (() => any) | undefined;
27
28
  onOpen?: (() => any) | undefined;
@@ -1,5 +1,4 @@
1
- import type { DialogProps } from 'vft/es/components/dialog';
2
- export interface DrawerProps extends DialogProps {
1
+ export interface DrawerProps {
3
2
  /** 抽屉的弹出方向 */
4
3
  direction?: 'ltr' | 'rtl' | 'ttb' | 'btt';
5
4
  /** 抽屉的尺寸 */
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.419";exports.version=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.421";exports.version=e;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.419",
3
+ "version": "0.0.421",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vft",
3
- "version": "0.0.419",
3
+ "version": "0.0.421",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -55,12 +55,12 @@
55
55
  "resize-detector": "0.3.0",
56
56
  "sortablejs": "1.15.0",
57
57
  "photoswipe": "5.4.4",
58
- "@vft/constants": "0.0.72",
59
- "@vft/use": "0.0.83",
60
58
  "@vft/router": "0.0.67",
61
- "@vft/directives": "0.0.36",
59
+ "@vft/constants": "0.0.72",
62
60
  "@vft/utils": "0.0.140",
63
- "@vft/store": "0.0.54"
61
+ "@vft/store": "0.0.54",
62
+ "@vft/use": "0.0.83",
63
+ "@vft/directives": "0.0.36"
64
64
  },
65
65
  "vetur": {
66
66
  "tags": "tags.json",