vft 0.0.46 → 0.0.48
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.css +1 -1
- package/es/component.js +30 -27
- package/es/components/avatar/avatar.vue.d.ts +4 -4
- package/es/components/avatar/index.d.ts +4 -4
- package/es/components/avatar/index.js +4 -3
- package/es/components/back-top/back-top.vue.d.ts +21 -0
- package/es/components/back-top/back-top.vue2.js +23 -21
- package/es/components/back-top/index.d.ts +8 -1
- package/es/components/back-top/index.js +4 -3
- package/es/components/back-top/use-back-top.d.ts +1 -1
- package/es/components/back-top/use-back-top.js +23 -21
- package/es/components/clamp/index.js +4 -3
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +15 -15
- package/es/components/clamp-toggle/index.js +4 -3
- package/es/components/config-provider/hooks/use-global-config.js +1 -1
- package/es/components/config-provider/index.js +11 -10
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/descriptions/description.vue2.js +1 -1
- package/es/components/descriptions/index.js +6 -5
- package/es/components/divider/divider.vue.d.ts +2 -2
- package/es/components/divider/index.d.ts +2 -2
- package/es/components/divider/index.js +4 -3
- package/es/components/empty/index.js +6 -5
- package/es/components/exception/exception.vue2.js +13 -11
- package/es/components/exception/index.js +4 -3
- package/es/components/footer-layout/index.js +4 -3
- package/es/components/form/constants.d.ts +4 -0
- package/es/components/form/constants.js +5 -0
- package/es/components/form/form-item.vue.d.ts +133 -0
- package/es/components/form/form-item.vue.js +4 -0
- package/es/components/form/form-item.vue2.js +244 -0
- package/es/components/form/form-label-wrap.d.ts +11 -0
- package/es/components/form/form-label-wrap.js +70 -0
- package/es/components/form/form.vue.d.ts +168 -0
- package/es/components/form/form.vue.js +4 -0
- package/es/components/form/form.vue2.js +151 -0
- package/es/components/form/hooks/index.d.ts +2 -0
- package/es/components/form/hooks/index.js +10 -0
- package/es/components/form/hooks/use-form-common-props.d.ts +6 -0
- package/es/components/form/hooks/use-form-common-props.js +28 -0
- package/es/components/form/hooks/use-form-item.d.ts +18 -0
- package/es/components/form/hooks/use-form-item.js +48 -0
- package/es/components/form/index.d.ts +338 -0
- package/es/components/form/index.js +28 -0
- package/es/components/form/style/css.d.ts +0 -0
- package/es/components/form/style/css.js +2 -0
- package/es/components/form/style/index.d.ts +0 -0
- package/es/components/form/style/index.js +2 -0
- package/es/components/form/types.d.ts +43 -0
- package/es/components/form/types.js +9 -0
- package/es/components/form/utils.d.ts +9 -0
- package/es/components/form/utils.js +42 -0
- package/es/components/form-item/style/css.d.ts +0 -0
- package/es/components/form-item/style/css.js +2 -0
- package/es/components/form-item/style/index.d.ts +0 -0
- package/es/components/form-item/style/index.js +2 -0
- package/es/components/full-screen/index.js +4 -3
- package/es/components/header-layout/index.js +4 -3
- package/es/components/icon/icon.vue2.js +24 -24
- package/es/components/icon/index.js +5 -4
- package/es/components/icon-text/icon-text.vue2.js +20 -21
- package/es/components/icon-text/index.js +4 -3
- package/es/components/iframe-layout/index.js +4 -3
- package/es/components/image/index.js +4 -3
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +119 -103
- package/es/components/input/index.d.ts +4 -4
- package/es/components/input/index.js +4 -3
- package/es/components/input/input.vue.d.ts +4 -4
- package/es/components/input/input.vue2.js +28 -25
- package/es/components/link/index.js +4 -3
- package/es/components/logo/index.js +4 -3
- package/es/components/md-code-demo/index.js +4 -3
- package/es/components/md-code-tabs/index.js +4 -3
- package/es/components/md-comment/index.js +4 -3
- package/es/components/md-container/index.js +4 -3
- package/es/components/md-container/md-container.vue2.js +69 -66
- package/es/components/md-tabs/index.js +4 -3
- package/es/components/md-vue-playground/index.js +4 -3
- package/es/components/menu/index.js +9 -8
- package/es/components/menu/menu-item.vue2.js +4 -3
- package/es/components/menu/menu.vue2.js +1 -1
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/message/index.js +8 -7
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +42 -40
- package/es/components/multiple-tabs/tab-content.vue2.js +3 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +20 -20
- package/es/components/overlay/index.js +4 -3
- package/es/components/page-wrapper/index.js +4 -3
- package/es/components/pagination/index.d.ts +2 -2
- package/es/components/pagination/index.js +9 -8
- package/es/components/pagination/pagination.d.ts +2 -2
- package/es/components/popover/index.d.ts +4 -4
- package/es/components/popover/index.js +4 -3
- package/es/components/popper/composables/use-content.d.ts +2 -2
- package/es/components/popper/index.d.ts +2 -2
- package/es/components/popper/index.js +10 -9
- package/es/components/popper/popper.vue.d.ts +2 -2
- package/es/components/qrcode/index.js +4 -3
- package/es/components/result/index.js +4 -3
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/router-view-content/index.js +4 -3
- package/es/components/search/index.d.ts +3 -3
- package/es/components/search/index.js +4 -3
- package/es/components/search/search.vue.d.ts +3 -3
- package/es/components/search/search.vue2.js +3 -2
- package/es/components/side-menu/index.js +4 -3
- package/es/components/side-menu/side-menu.vue2.js +52 -54
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/index.js +9 -8
- package/es/components/tabs/tab-nav.vue2.js +4 -3
- package/es/components/tabs/tab-pane.vue2.js +1 -1
- package/es/components/tabs/tabs.vue.d.ts +2 -2
- package/es/components/tag/index.js +4 -3
- package/es/components/tag/tag.vue2.js +8 -7
- package/es/components/tooltip/index.d.ts +8 -8
- package/es/components/tooltip/index.js +4 -3
- package/es/components/tooltip/tooltip.vue.d.ts +2 -2
- package/es/components/tooltip/trigger.vue2.js +1 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +30 -25
- package/es/hooks/use-id/index.js +3 -2
- package/es/hooks/use-ordered-children/index.js +5 -4
- package/es/hooks/use-popper/index.d.ts +2 -2
- package/es/hooks/use-prop/index.d.ts +2 -0
- package/es/hooks/use-prop/index.js +11 -0
- package/es/hooks/use-size/index.d.ts +7 -0
- package/es/hooks/use-size/index.js +9 -0
- package/es/index.js +203 -177
- package/es/package.json.js +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +27 -22
- package/es/utils/ns-cover.d.ts +12 -0
- package/es/utils/ns-cover.js +17 -5
- package/es/utils/objects.d.ts +4 -0
- package/es/utils/objects.js +12 -0
- package/lib/component.cjs +1 -1
- package/lib/components/avatar/avatar.vue.d.ts +4 -4
- package/lib/components/avatar/index.cjs +1 -1
- package/lib/components/avatar/index.d.ts +4 -4
- package/lib/components/back-top/back-top.vue.d.ts +21 -0
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/back-top/index.cjs +1 -1
- package/lib/components/back-top/index.d.ts +8 -1
- package/lib/components/back-top/use-back-top.cjs +1 -1
- package/lib/components/back-top/use-back-top.d.ts +1 -1
- package/lib/components/clamp/index.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/index.cjs +1 -1
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/index.cjs +1 -1
- package/lib/components/divider/divider.vue.d.ts +2 -2
- package/lib/components/divider/index.cjs +1 -1
- package/lib/components/divider/index.d.ts +2 -2
- package/lib/components/empty/index.cjs +1 -1
- package/lib/components/exception/exception.vue2.cjs +1 -1
- package/lib/components/exception/index.cjs +1 -1
- package/lib/components/footer-layout/index.cjs +1 -1
- package/lib/components/form/constants.cjs +1 -0
- package/lib/components/form/constants.d.ts +4 -0
- package/lib/components/form/form-item.vue.cjs +1 -0
- package/lib/components/form/form-item.vue.d.ts +133 -0
- package/lib/components/form/form-item.vue2.cjs +1 -0
- package/lib/components/form/form-label-wrap.cjs +1 -0
- package/lib/components/form/form-label-wrap.d.ts +11 -0
- package/lib/components/form/form.vue.cjs +1 -0
- package/lib/components/form/form.vue.d.ts +168 -0
- package/lib/components/form/form.vue2.cjs +1 -0
- package/lib/components/form/hooks/index.cjs +1 -0
- package/lib/components/form/hooks/index.d.ts +2 -0
- package/lib/components/form/hooks/use-form-common-props.cjs +1 -0
- package/lib/components/form/hooks/use-form-common-props.d.ts +6 -0
- package/lib/components/form/hooks/use-form-item.cjs +1 -0
- package/lib/components/form/hooks/use-form-item.d.ts +18 -0
- package/lib/components/form/index.cjs +1 -0
- package/lib/components/form/index.d.ts +338 -0
- package/lib/components/form/style/css.cjs +1 -0
- package/lib/components/form/style/css.d.ts +0 -0
- package/lib/components/form/style/index.cjs +1 -0
- package/lib/components/form/style/index.d.ts +0 -0
- package/lib/components/form/types.cjs +1 -0
- package/lib/components/form/types.d.ts +43 -0
- package/lib/components/form/utils.cjs +1 -0
- package/lib/components/form/utils.d.ts +9 -0
- package/lib/components/form-item/style/css.cjs +1 -0
- package/lib/components/form-item/style/css.d.ts +0 -0
- package/lib/components/form-item/style/index.cjs +1 -0
- package/lib/components/form-item/style/index.d.ts +0 -0
- package/lib/components/full-screen/index.cjs +1 -1
- package/lib/components/header-layout/index.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.cjs +1 -1
- package/lib/components/iframe-layout/index.cjs +1 -1
- package/lib/components/image/index.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/input/index.cjs +1 -1
- package/lib/components/input/index.d.ts +4 -4
- package/lib/components/input/input.vue.d.ts +4 -4
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/index.cjs +1 -1
- package/lib/components/logo/index.cjs +1 -1
- package/lib/components/md-code-demo/index.cjs +1 -1
- package/lib/components/md-code-tabs/index.cjs +1 -1
- package/lib/components/md-comment/index.cjs +1 -1
- package/lib/components/md-container/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-tabs/index.cjs +1 -1
- package/lib/components/md-vue-playground/index.cjs +1 -1
- package/lib/components/menu/index.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/message/index.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/overlay/index.cjs +1 -1
- package/lib/components/page-wrapper/index.cjs +1 -1
- package/lib/components/pagination/index.cjs +1 -1
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/pagination.d.ts +2 -2
- package/lib/components/popover/index.cjs +1 -1
- package/lib/components/popover/index.d.ts +4 -4
- package/lib/components/popper/composables/use-content.d.ts +2 -2
- package/lib/components/popper/index.cjs +1 -1
- package/lib/components/popper/index.d.ts +2 -2
- package/lib/components/popper/popper.vue.d.ts +2 -2
- package/lib/components/qrcode/index.cjs +1 -1
- package/lib/components/result/index.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/index.cjs +1 -1
- package/lib/components/search/index.cjs +1 -1
- package/lib/components/search/index.d.ts +3 -3
- package/lib/components/search/search.vue.d.ts +3 -3
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/index.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/tabs/index.cjs +1 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +2 -2
- package/lib/components/tag/index.cjs +1 -1
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/tooltip/index.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +8 -8
- package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/use-id/index.cjs +1 -1
- package/lib/hooks/use-ordered-children/index.cjs +1 -1
- package/lib/hooks/use-popper/index.d.ts +2 -2
- package/lib/hooks/use-prop/index.cjs +1 -0
- package/lib/hooks/use-prop/index.d.ts +2 -0
- package/lib/hooks/use-size/index.cjs +1 -0
- package/lib/hooks/use-size/index.d.ts +7 -0
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/ns-cover.cjs +1 -1
- package/lib/utils/ns-cover.d.ts +12 -0
- package/lib/utils/objects.cjs +1 -0
- package/lib/utils/objects.d.ts +4 -0
- package/package.json +4 -5
- package/theme-style/dark/css-vars.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +16 -9
- package/theme-style/src/dark/css-vars.scss +1 -1
- package/theme-style/src/dark/var.scss +13 -12
- package/theme-style/src/form-item.scss +0 -0
- package/theme-style/src/form.scss +241 -0
- package/theme-style/src/header-layout.scss +0 -4
- package/theme-style/src/index.scss +2 -0
- package/theme-style/src/md-container.scss +1 -3
- package/theme-style/src/menu.scss +3 -1
- package/theme-style/src/side-menu.scss +1 -3
- package/theme-style/vft-form-item.css +0 -0
- package/theme-style/vft-form.css +1 -0
- package/theme-style/vft-full-screen.css +1 -1
- package/theme-style/vft-header-layout.css +1 -1
- package/theme-style/vft-loading.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/es/components/back-top/types.d.ts +0 -13
- package/es/components/back-top/types.js +0 -1
- package/lib/components/back-top/types.cjs +0 -1
- package/lib/components/back-top/types.d.ts +0 -13
|
@@ -41,11 +41,11 @@ export declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, pop
|
|
|
41
41
|
popperEscapeOffsets: import("@popperjs/core").SideObject;
|
|
42
42
|
} | undefined;
|
|
43
43
|
offset?: {
|
|
44
|
-
|
|
44
|
+
bottom?: import("@popperjs/core").Offsets | undefined;
|
|
45
45
|
left?: import("@popperjs/core").Offsets | undefined;
|
|
46
46
|
right?: import("@popperjs/core").Offsets | undefined;
|
|
47
|
-
bottom?: import("@popperjs/core").Offsets | undefined;
|
|
48
47
|
top?: import("@popperjs/core").Offsets | undefined;
|
|
48
|
+
auto?: import("@popperjs/core").Offsets | undefined;
|
|
49
49
|
"auto-start"?: import("@popperjs/core").Offsets | undefined;
|
|
50
50
|
"auto-end"?: import("@popperjs/core").Offsets | undefined;
|
|
51
51
|
"top-start"?: import("@popperjs/core").Offsets | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getCurrentInstance as p, computed as n } from "vue";
|
|
2
|
+
const c = (e) => {
|
|
3
|
+
const r = p();
|
|
4
|
+
return n(() => {
|
|
5
|
+
var o, t;
|
|
6
|
+
return (t = (o = r == null ? void 0 : r.proxy) == null ? void 0 : o.$props) == null ? void 0 : t[e];
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
c as useProp
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentSize } from 'vft/es/constants';
|
|
2
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
3
|
+
export interface SizeContext {
|
|
4
|
+
size: Ref<ComponentSize>;
|
|
5
|
+
}
|
|
6
|
+
export declare const SIZE_INJECTION_KEY: InjectionKey<SizeContext>;
|
|
7
|
+
export declare const useGlobalSize: () => import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
package/es/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import e from "./defaults.js";
|
|
2
2
|
import { VftDivider as m } from "./components/divider/index.js";
|
|
3
|
-
import { VftIcon as
|
|
3
|
+
import { VftIcon as s, VftIcon as x } from "./components/icon/index.js";
|
|
4
4
|
import { VftAvatar as i } from "./components/avatar/index.js";
|
|
5
5
|
import { VftEmpty as V } from "./components/empty/index.js";
|
|
6
|
-
import { VftResult as
|
|
7
|
-
import { VftTabPane as
|
|
8
|
-
import { VftPopper as
|
|
6
|
+
import { VftResult as d } from "./components/result/index.js";
|
|
7
|
+
import { VftTabPane as I, VftTabs as C } from "./components/tabs/index.js";
|
|
8
|
+
import { VftPopper as c } from "./components/popper/index.js";
|
|
9
9
|
import { VftCollapseTransition as M } from "./components/collapse-transition/index.js";
|
|
10
|
-
import { VftTooltip as
|
|
11
|
-
import { VftPopover as
|
|
12
|
-
import { VftMenu as
|
|
13
|
-
import { createContextMenu as
|
|
10
|
+
import { VftTooltip as y } from "./components/tooltip/index.js";
|
|
11
|
+
import { VftPopover as b } from "./components/popover/index.js";
|
|
12
|
+
import { VftMenu as v, VftMenuItem as F, VftMenuItemGroup as S, VftSubMenu as L } from "./components/menu/index.js";
|
|
13
|
+
import { createContextMenu as K, destroyContextMenu as h } from "./components/context-menu/createContextMenu.js";
|
|
14
14
|
import { useContextMenu as R } from "./components/context-menu/useContextMenu.js";
|
|
15
|
-
import { VftMultipleTabs as
|
|
16
|
-
import { VftHeaderLayout as
|
|
17
|
-
import { VftFooterLayout as
|
|
15
|
+
import { VftMultipleTabs as z } from "./components/multiple-tabs/index.js";
|
|
16
|
+
import { VftHeaderLayout as G } from "./components/header-layout/index.js";
|
|
17
|
+
import { VftFooterLayout as Y } from "./components/footer-layout/index.js";
|
|
18
18
|
import { VftIframeLayout as H } from "./components/iframe-layout/index.js";
|
|
19
|
-
import { VftRouterViewContent as
|
|
20
|
-
import { VftLogo as
|
|
19
|
+
import { VftRouterViewContent as Z } from "./components/router-view-content/index.js";
|
|
20
|
+
import { VftLogo as B } from "./components/logo/index.js";
|
|
21
21
|
import { VftBackTop as Q } from "./components/back-top/index.js";
|
|
22
22
|
import { VftConfigProvider as X } from "./components/config-provider/index.js";
|
|
23
23
|
import { VftDescriptions as ee, VftDescriptionsItem as oe } from "./components/descriptions/index.js";
|
|
@@ -27,200 +27,226 @@ import { VftImage as ae } from "./components/image/index.js";
|
|
|
27
27
|
import { VftInput as xe } from "./components/input/index.js";
|
|
28
28
|
import { VftLink as ie } from "./components/link/index.js";
|
|
29
29
|
import { VftPagination as Ve } from "./components/pagination/index.js";
|
|
30
|
-
import { VftTag as
|
|
31
|
-
import { VftSideMenu as
|
|
32
|
-
import { VftQrcode as
|
|
30
|
+
import { VftTag as de } from "./components/tag/index.js";
|
|
31
|
+
import { VftSideMenu as Ie } from "./components/side-menu/index.js";
|
|
32
|
+
import { VftQrcode as Te } from "./components/qrcode/index.js";
|
|
33
33
|
import { VftOverlay as Ee } from "./components/overlay/index.js";
|
|
34
34
|
import { VftClamp as Pe } from "./components/clamp/index.js";
|
|
35
|
-
import { VftClampToggle as
|
|
35
|
+
import { VftClampToggle as De } from "./components/clamp-toggle/index.js";
|
|
36
36
|
import { VftPageWrapper as Ne } from "./components/page-wrapper/index.js";
|
|
37
|
-
import { VftException as
|
|
38
|
-
import { VftSearch as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
37
|
+
import { VftException as Fe } from "./components/exception/index.js";
|
|
38
|
+
import { VftSearch as Le } from "./components/search/index.js";
|
|
39
|
+
import { VftForm as Ke, VftFormItem as he } from "./components/form/index.js";
|
|
40
|
+
import { VftMdContainer as Re } from "./components/md-container/index.js";
|
|
41
|
+
import { VftMdComment as ze } from "./components/md-comment/index.js";
|
|
42
|
+
import { VftMdTabs as Ge } from "./components/md-tabs/index.js";
|
|
43
|
+
import { VftMdVuePlayground as Ye } from "./components/md-vue-playground/index.js";
|
|
44
|
+
import { VftMdCodeDemo as He } from "./components/md-code-demo/index.js";
|
|
45
|
+
import { VftMdCodeTabs as Ze } from "./components/md-code-tabs/index.js";
|
|
46
|
+
import { VftMessage as Be, VftMessage as Ue } from "./components/message/index.js";
|
|
47
|
+
import { VftLoading as qe } from "./components/loading/index.js";
|
|
48
|
+
import { EVENT_CODE as $e } from "./constants/aria.js";
|
|
49
|
+
import { WEEK_DAYS as oo, datePickTypes as ro } from "./constants/date.js";
|
|
50
|
+
import { CHANGE_EVENT as fo, INPUT_EVENT as po, UPDATE_MODEL_EVENT as mo } from "./constants/event.js";
|
|
51
|
+
import { INSTALLED_KEY as so } from "./constants/key.js";
|
|
52
|
+
import { componentSizeMap as no, componentSizes as io } from "./constants/size.js";
|
|
53
|
+
import { _bem as Vo, defaultNamespace as uo, namespaceContextKey as go, useGetDerivedNamespace as Io, useNamespace as Co } from "./hooks/use-namespace/index.js";
|
|
53
54
|
import { useCursor as co } from "./hooks/use-cursor/index.js";
|
|
54
|
-
import { usePopper as
|
|
55
|
-
import { defaultInitialZIndex as
|
|
56
|
-
import { FORWARD_REF_INJECTION_KEY as vo, useForwardRef as
|
|
57
|
-
import { ID_INJECTION_KEY as
|
|
58
|
-
import { usePopperContainer as
|
|
59
|
-
import { useDelayedToggle as
|
|
60
|
-
import { useTimeout as
|
|
61
|
-
import { useOrderedChildren as
|
|
62
|
-
import { createModelToggleComposable as
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import { default as
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
55
|
+
import { usePopper as Mo } from "./hooks/use-popper/index.js";
|
|
56
|
+
import { defaultInitialZIndex as yo, useZIndex as Do, zIndexContextKey as bo } from "./hooks/use-z-index/index.js";
|
|
57
|
+
import { FORWARD_REF_INJECTION_KEY as vo, useForwardRef as Fo, useForwardRefDirective as So } from "./hooks/use-forward-ref/index.js";
|
|
58
|
+
import { ID_INJECTION_KEY as _o, useId as Ko, useIdInjection as ho } from "./hooks/use-id/index.js";
|
|
59
|
+
import { usePopperContainer as Ro, usePopperContainerId as Oo } from "./hooks/use-popper-container/index.js";
|
|
60
|
+
import { useDelayedToggle as Ao } from "./hooks/use-delayed-toggle/index.js";
|
|
61
|
+
import { useTimeout as ko } from "./hooks/use-timeout/index.js";
|
|
62
|
+
import { useOrderedChildren as Wo } from "./hooks/use-ordered-children/index.js";
|
|
63
|
+
import { createModelToggleComposable as Jo, useModelToggle as Zo, useModelToggleEmits as jo } from "./hooks/use-model-toggle/index.js";
|
|
64
|
+
import { useProp as Uo } from "./hooks/use-prop/index.js";
|
|
65
|
+
import { SIZE_INJECTION_KEY as qo, useGlobalSize as Xo } from "./hooks/use-size/index.js";
|
|
66
|
+
import { withInstall as er, withInstallDirective as or, withInstallFunction as rr, withNoopInstall as tr } from "./utils/vue/install.js";
|
|
67
|
+
import { PatchFlags as pr, ensureOnlyChild as mr, flattedChildren as ar, getFirstValidNode as sr, getNormalizedProps as xr, isComment as nr, isFragment as ir, isTemplate as lr, isText as Vr, isValidElementNode as ur, renderBlock as dr, renderIf as gr } from "./utils/vue/vnode.js";
|
|
68
|
+
import { getSizeType as Cr } from "./utils/helper.js";
|
|
69
|
+
import { debugWarn as cr, throwError as Er } from "./utils/error.js";
|
|
70
|
+
import { composeEventHandlers as Pr, whenMouse as yr } from "./utils/event.js";
|
|
71
|
+
import { mutable as br } from "./utils/typescript.js";
|
|
72
|
+
import { cssVarValue as vr, generateCssVars as Fr, primaryColor as Sr, setRootCssVar as Lr } from "./utils/ns-cover.js";
|
|
73
|
+
import { getProp as Kr } from "./utils/objects.js";
|
|
74
|
+
import { makeInstaller as wr } from "./make-installer.js";
|
|
75
|
+
import { CompResolver as Or } from "./comp-resolver.js";
|
|
76
|
+
import { default as Ar } from "dayjs";
|
|
77
|
+
import { EmptyEnum as kr } from "./components/empty/constants.js";
|
|
78
|
+
import { TabsRootContextKey as Wr } from "./components/tabs/types.js";
|
|
79
|
+
import { default as Jr } from "./components/popper/arrow.vue2.js";
|
|
80
|
+
import { default as jr } from "./components/popper/trigger.vue2.js";
|
|
81
|
+
import { default as Ur } from "./components/popper/content.vue2.js";
|
|
82
|
+
import { useTabDropdown as qr } from "./components/multiple-tabs/use/use-tab-dropdown.js";
|
|
83
|
+
import { initAffixTabs as $r, useTabsDrag as et } from "./components/multiple-tabs/use/use-multiple-tabs.js";
|
|
84
|
+
import { configProviderContextKey as rt, messageConfig as tt } from "./components/config-provider/constants.js";
|
|
85
|
+
import { provideGlobalConfig as pt, useGlobalComponentSettings as mt, useGlobalConfig as at } from "./components/config-provider/hooks/use-global-config.js";
|
|
86
|
+
import { paginationEmits as xt } from "./components/pagination/pagination.js";
|
|
87
|
+
import { elPaginationKey as it, usePagination as lt } from "./components/pagination/usePagination.js";
|
|
88
|
+
import { formItemValidateStates as ut } from "./components/form/types.js";
|
|
89
|
+
import { formContextKey as gt, formItemContextKey as It } from "./components/form/constants.js";
|
|
90
|
+
import { useDisabled as Tt, useFormDisabled as ct, useFormSize as Et, useSize as Mt } from "./components/form/hooks/use-form-common-props.js";
|
|
91
|
+
import { useFormItem as yt, useFormItemInputId as Dt } from "./components/form/hooks/use-form-item.js";
|
|
92
|
+
import { messageDefaults as Nt, messageTypes as vt } from "./components/message/types.js";
|
|
93
|
+
import { vLoading as St, createLoadingDirective as Lt, vLoading as _t } from "./components/loading/directive.js";
|
|
94
|
+
import { Loading as ht } from "./components/loading/service.js";
|
|
87
95
|
const r = e.install, t = e.version;
|
|
88
96
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
fo as CHANGE_EVENT,
|
|
98
|
+
Or as CompResolver,
|
|
99
|
+
$e as EVENT_CODE,
|
|
100
|
+
kr as EmptyEnum,
|
|
93
101
|
vo as FORWARD_REF_INJECTION_KEY,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
_o as ID_INJECTION_KEY,
|
|
103
|
+
po as INPUT_EVENT,
|
|
104
|
+
so as INSTALLED_KEY,
|
|
105
|
+
s as Icon,
|
|
106
|
+
Be as Message,
|
|
107
|
+
pr as PatchFlags,
|
|
108
|
+
qo as SIZE_INJECTION_KEY,
|
|
109
|
+
Wr as TabsRootContextKey,
|
|
110
|
+
mo as UPDATE_MODEL_EVENT,
|
|
102
111
|
i as VftAvatar,
|
|
103
112
|
Q as VftBackTop,
|
|
104
113
|
Pe as VftClamp,
|
|
105
|
-
|
|
114
|
+
De as VftClampToggle,
|
|
106
115
|
M as VftCollapseTransition,
|
|
107
116
|
X as VftConfigProvider,
|
|
108
117
|
ee as VftDescriptions,
|
|
109
118
|
oe as VftDescriptionsItem,
|
|
110
119
|
m as VftDivider,
|
|
111
120
|
V as VftEmpty,
|
|
112
|
-
|
|
113
|
-
|
|
121
|
+
Fe as VftException,
|
|
122
|
+
Y as VftFooterLayout,
|
|
123
|
+
Ke as VftForm,
|
|
124
|
+
he as VftFormItem,
|
|
114
125
|
te as VftFullScreen,
|
|
115
|
-
|
|
126
|
+
G as VftHeaderLayout,
|
|
116
127
|
x as VftIcon,
|
|
117
128
|
pe as VftIconText,
|
|
118
129
|
H as VftIframeLayout,
|
|
119
130
|
ae as VftImage,
|
|
120
131
|
xe as VftInput,
|
|
121
132
|
ie as VftLink,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
qe as VftLoading,
|
|
134
|
+
St as VftLoadingDirective,
|
|
135
|
+
ht as VftLoadingService,
|
|
136
|
+
B as VftLogo,
|
|
137
|
+
He as VftMdCodeDemo,
|
|
138
|
+
Ze as VftMdCodeTabs,
|
|
139
|
+
ze as VftMdComment,
|
|
140
|
+
Re as VftMdContainer,
|
|
141
|
+
Ge as VftMdTabs,
|
|
142
|
+
Ye as VftMdVuePlayground,
|
|
143
|
+
v as VftMenu,
|
|
144
|
+
F as VftMenuItem,
|
|
145
|
+
S as VftMenuItemGroup,
|
|
146
|
+
Ue as VftMessage,
|
|
147
|
+
z as VftMultipleTabs,
|
|
137
148
|
Ee as VftOverlay,
|
|
138
149
|
Ne as VftPageWrapper,
|
|
139
150
|
Ve as VftPagination,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
151
|
+
b as VftPopover,
|
|
152
|
+
c as VftPopper,
|
|
153
|
+
Jr as VftPopperArrow,
|
|
154
|
+
Ur as VftPopperContent,
|
|
155
|
+
jr as VftPopperTrigger,
|
|
156
|
+
Te as VftQrcode,
|
|
157
|
+
d as VftResult,
|
|
158
|
+
Z as VftRouterViewContent,
|
|
159
|
+
Le as VftSearch,
|
|
160
|
+
Ie as VftSideMenu,
|
|
161
|
+
L as VftSubMenu,
|
|
162
|
+
I as VftTabPane,
|
|
163
|
+
C as VftTabs,
|
|
164
|
+
de as VftTag,
|
|
165
|
+
y as VftTooltip,
|
|
166
|
+
oo as WEEK_DAYS,
|
|
167
|
+
Vo as _bem,
|
|
168
|
+
no as componentSizeMap,
|
|
169
|
+
io as componentSizes,
|
|
170
|
+
Pr as composeEventHandlers,
|
|
171
|
+
rt as configProviderContextKey,
|
|
172
|
+
K as createContextMenu,
|
|
173
|
+
Lt as createLoadingDirective,
|
|
174
|
+
Jo as createModelToggleComposable,
|
|
175
|
+
vr as cssVarValue,
|
|
176
|
+
ro as datePickTypes,
|
|
177
|
+
Ar as dayjs,
|
|
178
|
+
cr as debugWarn,
|
|
168
179
|
e as default,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
yo as defaultInitialZIndex,
|
|
181
|
+
uo as defaultNamespace,
|
|
182
|
+
h as destroyContextMenu,
|
|
183
|
+
it as elPaginationKey,
|
|
184
|
+
mr as ensureOnlyChild,
|
|
185
|
+
ar as flattedChildren,
|
|
186
|
+
gt as formContextKey,
|
|
187
|
+
It as formItemContextKey,
|
|
188
|
+
ut as formItemValidateStates,
|
|
189
|
+
Fr as generateCssVars,
|
|
190
|
+
sr as getFirstValidNode,
|
|
191
|
+
xr as getNormalizedProps,
|
|
192
|
+
Kr as getProp,
|
|
193
|
+
Cr as getSizeType,
|
|
194
|
+
$r as initAffixTabs,
|
|
179
195
|
r as install,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
nr as isComment,
|
|
197
|
+
ir as isFragment,
|
|
198
|
+
lr as isTemplate,
|
|
199
|
+
Vr as isText,
|
|
200
|
+
ur as isValidElementNode,
|
|
201
|
+
wr as makeInstaller,
|
|
202
|
+
tt as messageConfig,
|
|
203
|
+
Nt as messageDefaults,
|
|
204
|
+
vt as messageTypes,
|
|
205
|
+
br as mutable,
|
|
206
|
+
go as namespaceContextKey,
|
|
207
|
+
xt as paginationEmits,
|
|
208
|
+
Sr as primaryColor,
|
|
209
|
+
pt as provideGlobalConfig,
|
|
210
|
+
dr as renderBlock,
|
|
211
|
+
gr as renderIf,
|
|
212
|
+
Lr as setRootCssVar,
|
|
213
|
+
Er as throwError,
|
|
196
214
|
R as useContextMenu,
|
|
197
215
|
co as useCursor,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
216
|
+
Ao as useDelayedToggle,
|
|
217
|
+
Tt as useDisabled,
|
|
218
|
+
ct as useFormDisabled,
|
|
219
|
+
yt as useFormItem,
|
|
220
|
+
Dt as useFormItemInputId,
|
|
221
|
+
Et as useFormSize,
|
|
222
|
+
Fo as useForwardRef,
|
|
223
|
+
So as useForwardRefDirective,
|
|
224
|
+
Io as useGetDerivedNamespace,
|
|
225
|
+
mt as useGlobalComponentSettings,
|
|
226
|
+
at as useGlobalConfig,
|
|
227
|
+
Xo as useGlobalSize,
|
|
228
|
+
Ko as useId,
|
|
205
229
|
ho as useIdInjection,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
230
|
+
Zo as useModelToggle,
|
|
231
|
+
jo as useModelToggleEmits,
|
|
232
|
+
Co as useNamespace,
|
|
233
|
+
Wo as useOrderedChildren,
|
|
234
|
+
lt as usePagination,
|
|
235
|
+
Mo as usePopper,
|
|
236
|
+
Ro as usePopperContainer,
|
|
237
|
+
Oo as usePopperContainerId,
|
|
238
|
+
Uo as useProp,
|
|
239
|
+
Mt as useSize,
|
|
240
|
+
qr as useTabDropdown,
|
|
241
|
+
et as useTabsDrag,
|
|
242
|
+
ko as useTimeout,
|
|
243
|
+
Do as useZIndex,
|
|
244
|
+
_t as vLoading,
|
|
219
245
|
t as version,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
246
|
+
yr as whenMouse,
|
|
247
|
+
er as withInstall,
|
|
248
|
+
or as withInstallDirective,
|
|
249
|
+
rr as withInstallFunction,
|
|
250
|
+
tr as withNoopInstall,
|
|
251
|
+
bo as zIndexContextKey
|
|
226
252
|
};
|
package/es/package.json.js
CHANGED
package/es/utils/index.d.ts
CHANGED
package/es/utils/index.js
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
import { withInstall as t, withInstallDirective as o, withInstallFunction as
|
|
2
|
-
import { PatchFlags as
|
|
3
|
-
import { getSizeType as
|
|
4
|
-
import { debugWarn as
|
|
5
|
-
import { composeEventHandlers as
|
|
6
|
-
import { mutable as
|
|
7
|
-
import { cssVarValue as
|
|
1
|
+
import { withInstall as t, withInstallDirective as o, withInstallFunction as s, withNoopInstall as l } from "./vue/install.js";
|
|
2
|
+
import { PatchFlags as i, ensureOnlyChild as n, flattedChildren as m, getFirstValidNode as p, getNormalizedProps as d, isComment as f, isFragment as h, isTemplate as x, isText as g, isValidElementNode as c, renderBlock as u, renderIf as w } from "./vue/vnode.js";
|
|
3
|
+
import { getSizeType as V } from "./helper.js";
|
|
4
|
+
import { debugWarn as F, throwError as N } from "./error.js";
|
|
5
|
+
import { composeEventHandlers as E, whenMouse as P } from "./event.js";
|
|
6
|
+
import { mutable as b } from "./typescript.js";
|
|
7
|
+
import { cssVarValue as z, generateCssVars as k, primaryColor as B, setRootCssVar as D } from "./ns-cover.js";
|
|
8
|
+
import { getProp as M } from "./objects.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
i as PatchFlags,
|
|
11
|
+
E as composeEventHandlers,
|
|
12
|
+
z as cssVarValue,
|
|
13
|
+
F as debugWarn,
|
|
14
|
+
n as ensureOnlyChild,
|
|
14
15
|
m as flattedChildren,
|
|
15
|
-
|
|
16
|
-
p as
|
|
17
|
-
|
|
16
|
+
k as generateCssVars,
|
|
17
|
+
p as getFirstValidNode,
|
|
18
|
+
d as getNormalizedProps,
|
|
19
|
+
M as getProp,
|
|
20
|
+
V as getSizeType,
|
|
18
21
|
f as isComment,
|
|
19
22
|
h as isFragment,
|
|
20
23
|
x as isTemplate,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
g as isText,
|
|
25
|
+
c as isValidElementNode,
|
|
26
|
+
b as mutable,
|
|
27
|
+
B as primaryColor,
|
|
24
28
|
u as renderBlock,
|
|
25
29
|
w as renderIf,
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
D as setRootCssVar,
|
|
31
|
+
N as throwError,
|
|
32
|
+
P as whenMouse,
|
|
28
33
|
t as withInstall,
|
|
29
34
|
o as withInstallDirective,
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
s as withInstallFunction,
|
|
36
|
+
l as withNoopInstall
|
|
32
37
|
};
|
package/es/utils/ns-cover.d.ts
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
1
|
export declare const cssVarValue: (prop: any, target?: HTMLElement) => import("vue").Ref<string>;
|
|
2
|
+
export declare const primaryColor: () => import("vue").Ref<string>;
|
|
3
|
+
export declare function generateCssVars(vars: Record<string, Numberish | undefined>, name: any): Record<string, Numberish | undefined>;
|
|
4
|
+
/**
|
|
5
|
+
* @description set html vars
|
|
6
|
+
* @author wfd
|
|
7
|
+
* @date 2023/1/30 09:35
|
|
8
|
+
* @example
|
|
9
|
+
* @param styleName
|
|
10
|
+
* @param value
|
|
11
|
+
* @param name
|
|
12
|
+
*/
|
|
13
|
+
export declare function setRootCssVar(styleName: any, value?: any, name?: any): void;
|
package/es/utils/ns-cover.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import { useGlobalConfig as
|
|
2
|
-
import { cssVarValue as
|
|
3
|
-
import { unref as
|
|
4
|
-
const
|
|
1
|
+
import { useGlobalConfig as a } from "../components/config-provider/hooks/use-global-config.js";
|
|
2
|
+
import { cssVarValue as c, generateCssVars as u, isObject as m, setStyle as l } from "@vft/utils";
|
|
3
|
+
import { unref as t } from "vue";
|
|
4
|
+
const o = a("namespace"), i = (e, r = document.documentElement) => c(e, r, t(o), !0), d = () => i("primary-color");
|
|
5
|
+
function V(e, r) {
|
|
6
|
+
return u(e, r, t(o));
|
|
7
|
+
}
|
|
8
|
+
function g(e, r, n) {
|
|
9
|
+
let s;
|
|
10
|
+
m(e) ? s = e : s = {
|
|
11
|
+
[e]: r
|
|
12
|
+
}, l(V(s, n), "", document.documentElement, !1);
|
|
13
|
+
}
|
|
5
14
|
export {
|
|
6
|
-
|
|
15
|
+
i as cssVarValue,
|
|
16
|
+
V as generateCssVars,
|
|
17
|
+
d as primaryColor,
|
|
18
|
+
g as setRootCssVar
|
|
7
19
|
};
|