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
|
@@ -2,9 +2,10 @@ import { withInstall as o } from "../../utils/vue/install.js";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import t from "./md-code-demo.js";
|
|
6
|
-
const
|
|
7
|
+
const f = o(t);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
f as VftMdCodeDemo,
|
|
10
|
+
f as default
|
|
10
11
|
};
|
|
@@ -2,9 +2,10 @@ import { withInstall as o } from "../../utils/vue/install.js";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import t from "./md-code-tabs.js";
|
|
6
|
-
const
|
|
7
|
+
const s = o(t);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
s as VftMdCodeTabs,
|
|
10
|
+
s as default
|
|
10
11
|
};
|
|
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.js";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import m from "./md-comment.vue2.js";
|
|
6
|
-
const
|
|
7
|
+
const n = t(m);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
n as VftMdComment,
|
|
10
|
+
n as default
|
|
10
11
|
};
|
|
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.js";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import o from "./md-container.vue2.js";
|
|
6
|
-
const
|
|
7
|
+
const n = t(o);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
n as VftMdContainer,
|
|
10
|
+
n as default
|
|
10
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, getCurrentInstance as S, ref as g, onMounted as b, nextTick as B, unref as t, openBlock as i, createElementBlock as a, normalizeClass as n, createBlock as v, createCommentVNode as x, createElementVNode as o, toDisplayString as C, createVNode as p, Fragment as I, renderList as M, withCtx as R, createTextVNode as $, renderSlot as A } from "vue";
|
|
2
2
|
import "../divider/index.js";
|
|
3
3
|
import { VftIcon as y } from "../icon/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
@@ -10,12 +10,12 @@ import "../collapse-transition/index.js";
|
|
|
10
10
|
import "../tooltip/index.js";
|
|
11
11
|
import "../popover/index.js";
|
|
12
12
|
import "../menu/index.js";
|
|
13
|
-
import { jumpElement as
|
|
14
|
-
import { usePhotoSwipe as
|
|
13
|
+
import { jumpElement as F, getRandomElementForArr as H, formatToDateTime as L, getDayTimestamp as j } from "@vft/utils";
|
|
14
|
+
import { usePhotoSwipe as J } from "@vft/use";
|
|
15
15
|
import "../multiple-tabs/multiple-tabs.vue2.js";
|
|
16
|
-
import { useRouterHelper as
|
|
16
|
+
import { useRouterHelper as O } from "@vft/router";
|
|
17
17
|
import "@vft/store";
|
|
18
|
-
import { useRoute as
|
|
18
|
+
import { useRoute as Y } from "vue-router";
|
|
19
19
|
import "../header-layout/index.js";
|
|
20
20
|
import "../footer-layout/index.js";
|
|
21
21
|
import "../iframe-layout/index.js";
|
|
@@ -25,12 +25,12 @@ import "../back-top/index.js";
|
|
|
25
25
|
import "../config-provider/index.js";
|
|
26
26
|
import "../descriptions/index.js";
|
|
27
27
|
import "../full-screen/index.js";
|
|
28
|
-
import { VftIconText as
|
|
28
|
+
import { VftIconText as q } from "../icon-text/index.js";
|
|
29
29
|
import "../image/index.js";
|
|
30
30
|
import "../input/index.js";
|
|
31
31
|
import "../link/index.js";
|
|
32
32
|
import "../pagination/index.js";
|
|
33
|
-
import { VftTag as
|
|
33
|
+
import { VftTag as G } from "../tag/index.js";
|
|
34
34
|
import "../side-menu/index.js";
|
|
35
35
|
import "../qrcode/index.js";
|
|
36
36
|
import "../overlay/index.js";
|
|
@@ -39,121 +39,124 @@ import "../clamp-toggle/index.js";
|
|
|
39
39
|
import "../page-wrapper/index.js";
|
|
40
40
|
import "../exception/index.js";
|
|
41
41
|
import "../search/index.js";
|
|
42
|
+
import "../form/index.js";
|
|
42
43
|
import "./index.js";
|
|
43
|
-
import { VftMdComment as
|
|
44
|
+
import { VftMdComment as K } from "../md-comment/index.js";
|
|
44
45
|
import "../md-tabs/index.js";
|
|
45
46
|
import "../md-vue-playground/index.js";
|
|
46
47
|
import "../md-code-demo/index.js";
|
|
47
48
|
import "../md-code-tabs/index.js";
|
|
48
49
|
import "../message/index.js";
|
|
49
|
-
import { useNamespace as
|
|
50
|
+
import { useNamespace as Q } from "../../hooks/use-namespace/index.js";
|
|
50
51
|
import "@popperjs/core";
|
|
51
52
|
import "lodash";
|
|
52
53
|
import "../../hooks/use-z-index/index.js";
|
|
53
54
|
import "@vueuse/core";
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
import { useCopyCode as
|
|
57
|
-
import { useActiveHeaderLinks as
|
|
58
|
-
import { COMP_TYPE as
|
|
59
|
-
const
|
|
55
|
+
import { primaryColor as U } from "../../utils/ns-cover.js";
|
|
56
|
+
import W from "./toc.js";
|
|
57
|
+
import { useCopyCode as X } from "./use/useCopyCode.js";
|
|
58
|
+
import { useActiveHeaderLinks as Z } from "./use/useActiveHeaderLinks.js";
|
|
59
|
+
import { COMP_TYPE as tt } from "./utils.js";
|
|
60
|
+
const ot = { class: "info-container" }, et = {
|
|
60
61
|
key: 0,
|
|
61
62
|
class: "flex align-center"
|
|
62
|
-
},
|
|
63
|
+
}, rt = { class: "infos" }, it = {
|
|
63
64
|
class: "reading",
|
|
64
65
|
title: "阅读量"
|
|
65
|
-
},
|
|
66
|
+
}, mt = ["data-path"], e = (
|
|
66
67
|
/* hoist-static*/
|
|
67
|
-
|
|
68
|
-
),
|
|
68
|
+
Q("md-container")
|
|
69
|
+
), nt = T({
|
|
69
70
|
name: e.b()
|
|
70
|
-
}),
|
|
71
|
-
...
|
|
72
|
-
setup(
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
const m =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
m.value =
|
|
79
|
-
|
|
71
|
+
}), ho = /* @__PURE__ */ T({
|
|
72
|
+
...nt,
|
|
73
|
+
setup(pt, { expose: k }) {
|
|
74
|
+
const V = S(), { initPhotoSwipe: w } = J(`.${e.e("content")} img`);
|
|
75
|
+
w(), Z({}), X();
|
|
76
|
+
const m = g(), r = Y();
|
|
77
|
+
b(() => {
|
|
78
|
+
B(() => {
|
|
79
|
+
m.value = V.exposed.infos, setTimeout(() => {
|
|
80
|
+
F(r.hash.replace("#", ""));
|
|
80
81
|
});
|
|
81
82
|
});
|
|
82
|
-
}),
|
|
83
|
+
}), k({
|
|
83
84
|
infos: t(m)
|
|
84
85
|
});
|
|
85
|
-
const
|
|
86
|
-
function E(
|
|
87
|
-
|
|
86
|
+
const D = location.pathname, { go: z } = O();
|
|
87
|
+
function E(s) {
|
|
88
|
+
z("/?tag=" + s);
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
const N = g(U());
|
|
91
|
+
return (s, st) => {
|
|
90
92
|
var c, l, d, u, f, _;
|
|
91
|
-
return i(),
|
|
92
|
-
class:
|
|
93
|
+
return i(), a("div", {
|
|
94
|
+
class: n(t(e).b())
|
|
93
95
|
}, [
|
|
94
|
-
(c = m.value) != null && c.sideData ? (i(),
|
|
96
|
+
(c = m.value) != null && c.sideData ? (i(), v(t(W), {
|
|
95
97
|
key: 0,
|
|
96
98
|
items: m.value.sideData
|
|
97
|
-
}, null, 8, ["items"])) :
|
|
99
|
+
}, null, 8, ["items"])) : x("", !0),
|
|
98
100
|
o("div", {
|
|
99
|
-
class:
|
|
101
|
+
class: n(t(e).e("header"))
|
|
100
102
|
}, [
|
|
101
103
|
o("h1", {
|
|
102
|
-
class:
|
|
103
|
-
},
|
|
104
|
-
o("div",
|
|
105
|
-
(u = (d = t(r).meta) == null ? void 0 : d.category) != null && u.length ? (i(),
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
class: n(t(e).e("title"))
|
|
105
|
+
}, C((l = t(r).meta) == null ? void 0 : l.title), 3),
|
|
106
|
+
o("div", ot, [
|
|
107
|
+
(u = (d = t(r).meta) == null ? void 0 : d.category) != null && u.length ? (i(), a("div", et, [
|
|
108
|
+
p(t(y), {
|
|
109
|
+
size: 14,
|
|
110
|
+
color: N.value,
|
|
108
111
|
icon: "ico-bx:category",
|
|
109
112
|
class: "mr-8px"
|
|
110
113
|
}, null, 8, ["color"]),
|
|
111
|
-
(i(!0),
|
|
114
|
+
(i(!0), a(I, null, M((f = t(r).meta) == null ? void 0 : f.category, (h, P) => (i(), v(t(G), {
|
|
112
115
|
size: "small",
|
|
113
116
|
class: "mr-5px cursor-pointer",
|
|
114
|
-
type: t(
|
|
115
|
-
key:
|
|
116
|
-
onClick: (
|
|
117
|
+
type: t(H)(t(tt), 1)[0],
|
|
118
|
+
key: P,
|
|
119
|
+
onClick: (at) => E(h)
|
|
117
120
|
}, {
|
|
118
|
-
default:
|
|
119
|
-
|
|
121
|
+
default: R(() => [
|
|
122
|
+
$(C(h), 1)
|
|
120
123
|
]),
|
|
121
124
|
_: 2
|
|
122
125
|
}, 1032, ["type", "onClick"]))), 128))
|
|
123
|
-
])) :
|
|
124
|
-
o("div",
|
|
125
|
-
|
|
126
|
+
])) : x("", !0),
|
|
127
|
+
o("div", rt, [
|
|
128
|
+
p(t(q), {
|
|
126
129
|
title: "发布时间",
|
|
127
130
|
icon: "ico-uiw:date",
|
|
128
|
-
size:
|
|
131
|
+
size: 12,
|
|
129
132
|
class: "mr-10px",
|
|
130
133
|
distance: 5,
|
|
131
|
-
text: t(
|
|
134
|
+
text: t(L)(new Date((_ = t(r).meta) == null ? void 0 : _.date).getTime() - t(j)())
|
|
132
135
|
}, null, 8, ["text"]),
|
|
133
|
-
o("div",
|
|
134
|
-
|
|
136
|
+
o("div", it, [
|
|
137
|
+
p(t(y), {
|
|
135
138
|
icon: "ico-flat-color-icons:reading",
|
|
136
139
|
size: 14,
|
|
137
140
|
class: "mr-5px"
|
|
138
141
|
}),
|
|
139
|
-
o("
|
|
140
|
-
class: "waline-pageview-count",
|
|
141
|
-
"data-path": t(
|
|
142
|
-
}, "0", 8,
|
|
142
|
+
o("div", {
|
|
143
|
+
class: "waline-pageview-count lh-1",
|
|
144
|
+
"data-path": t(D)
|
|
145
|
+
}, "0", 8, mt)
|
|
143
146
|
])
|
|
144
147
|
])
|
|
145
148
|
])
|
|
146
149
|
], 2),
|
|
147
150
|
o("div", {
|
|
148
|
-
class:
|
|
151
|
+
class: n(t(e).e("content"))
|
|
149
152
|
}, [
|
|
150
|
-
|
|
153
|
+
A(s.$slots, "default")
|
|
151
154
|
], 2),
|
|
152
|
-
|
|
155
|
+
p(t(K))
|
|
153
156
|
], 2);
|
|
154
157
|
};
|
|
155
158
|
}
|
|
156
159
|
});
|
|
157
160
|
export {
|
|
158
|
-
|
|
161
|
+
ho as default
|
|
159
162
|
};
|
|
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.js";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import o from "./md-tabs.js";
|
|
6
|
-
const
|
|
7
|
+
const f = t(o);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
f as VftMdTabs,
|
|
10
|
+
f as default
|
|
10
11
|
};
|
|
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.js";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import o from "./md-vue-playground.vue2.js";
|
|
6
|
-
const
|
|
7
|
+
const l = t(o);
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
l as VftMdVuePlayground,
|
|
10
|
+
l as default
|
|
10
11
|
};
|
|
@@ -2,19 +2,20 @@ import { withInstall as r, withNoopInstall as t } from "../../utils/vue/install.
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
-
import
|
|
5
|
+
import "lodash";
|
|
6
|
+
import i from "./menu.vue2.js";
|
|
6
7
|
import o from "./menu-item.vue2.js";
|
|
7
8
|
import m from "./menu-item-group.vue2.js";
|
|
8
9
|
import n from "./sub-menu.vue2.js";
|
|
9
|
-
const
|
|
10
|
+
const I = r(i, {
|
|
10
11
|
MenuItem: o,
|
|
11
12
|
MenuItemGroup: m,
|
|
12
13
|
SubMenu: n
|
|
13
|
-
}),
|
|
14
|
+
}), l = t(o), V = t(m), $ = t(n);
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
I as VftMenu,
|
|
17
|
+
l as VftMenuItem,
|
|
18
|
+
V as VftMenuItemGroup,
|
|
19
|
+
$ as VftSubMenu,
|
|
20
|
+
I as default
|
|
20
21
|
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as S, getCurrentInstance as M, inject as V, computed as
|
|
|
2
2
|
import { singleAttrToObj as H, renderTNode as J, VNode as K } from "@vft/utils";
|
|
3
3
|
import { throwError as P } from "../../utils/error.js";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import { useNamespace as v } from "../../hooks/use-namespace/index.js";
|
|
6
7
|
import "@popperjs/core";
|
|
7
|
-
import "lodash";
|
|
8
8
|
import "../../hooks/use-z-index/index.js";
|
|
9
9
|
import "@vueuse/core";
|
|
10
10
|
import L from "./use-menu.js";
|
|
@@ -47,6 +47,7 @@ import "../clamp-toggle/index.js";
|
|
|
47
47
|
import "../page-wrapper/index.js";
|
|
48
48
|
import "../exception/index.js";
|
|
49
49
|
import "../search/index.js";
|
|
50
|
+
import "../form/index.js";
|
|
50
51
|
import "../md-container/index.js";
|
|
51
52
|
import "../md-comment/index.js";
|
|
52
53
|
import "../md-tabs/index.js";
|
|
@@ -59,7 +60,7 @@ const W = ["title"], k = (
|
|
|
59
60
|
v("menu-item")
|
|
60
61
|
), X = S({
|
|
61
62
|
name: k.b()
|
|
62
|
-
}),
|
|
63
|
+
}), it = /* @__PURE__ */ S({
|
|
63
64
|
...X,
|
|
64
65
|
props: {
|
|
65
66
|
index: null,
|
|
@@ -144,5 +145,5 @@ const W = ["title"], k = (
|
|
|
144
145
|
}
|
|
145
146
|
});
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
it as default
|
|
148
149
|
};
|
|
@@ -3,9 +3,9 @@ import { useResizeObserver as _ } from "@vueuse/core";
|
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { flattedChildren as ee } from "../../utils/vue/vnode.js";
|
|
5
5
|
import "../../utils/ns-cover.js";
|
|
6
|
+
import "lodash";
|
|
6
7
|
import { useNamespace as N } from "../../hooks/use-namespace/index.js";
|
|
7
8
|
import "@popperjs/core";
|
|
8
|
-
import "lodash";
|
|
9
9
|
import "../../hooks/use-z-index/index.js";
|
|
10
10
|
import te from "./utils/menu-bar.js";
|
|
11
11
|
import le from "./menu-collapse-transition.vue.js";
|
|
@@ -39,6 +39,7 @@ import "../clamp-toggle/index.js";
|
|
|
39
39
|
import "../page-wrapper/index.js";
|
|
40
40
|
import "../exception/index.js";
|
|
41
41
|
import "../search/index.js";
|
|
42
|
+
import "../form/index.js";
|
|
42
43
|
import "../md-container/index.js";
|
|
43
44
|
import "../md-comment/index.js";
|
|
44
45
|
import "../md-tabs/index.js";
|
|
@@ -60,7 +61,7 @@ const S = (
|
|
|
60
61
|
I("sub-menu")
|
|
61
62
|
), ve = Z({
|
|
62
63
|
name: S.b()
|
|
63
|
-
}),
|
|
64
|
+
}), go = /* @__PURE__ */ Z({
|
|
64
65
|
...ve,
|
|
65
66
|
props: {
|
|
66
67
|
index: null,
|
|
@@ -261,5 +262,5 @@ const S = (
|
|
|
261
262
|
}
|
|
262
263
|
});
|
|
263
264
|
export {
|
|
264
|
-
|
|
265
|
+
go as default
|
|
265
266
|
};
|
|
@@ -2,13 +2,14 @@ import { withInstallFunction as s } from "../../utils/vue/install.js";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
5
6
|
import e from "./method.js";
|
|
6
|
-
import { messageDefaults as
|
|
7
|
-
const
|
|
7
|
+
import { messageDefaults as l, messageTypes as n } from "./types.js";
|
|
8
|
+
const i = s(e, "$message");
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
i as Message,
|
|
11
|
+
i as VftMessage,
|
|
12
|
+
i as default,
|
|
13
|
+
l as messageDefaults,
|
|
14
|
+
n as messageTypes
|
|
14
15
|
};
|
|
@@ -2,15 +2,15 @@ import { defineComponent as _, ref as b, computed as h, watchEffect as D, unref
|
|
|
2
2
|
import { useRouterHelper as $, getRouterKeyPath as c, listenerRouteChange as j } from "@vft/router";
|
|
3
3
|
import { useMultipleTabStore as q, useTabs as G } from "@vft/store";
|
|
4
4
|
import { useRefs as J } from "@vft/use";
|
|
5
|
-
import
|
|
5
|
+
import "@vft/utils";
|
|
6
|
+
import { generateCssVars as S } from "../../utils/ns-cover.js";
|
|
7
|
+
import "lodash";
|
|
6
8
|
import L from "hotkeys-js";
|
|
7
9
|
import { useRouter as O, onBeforeRouteLeave as Q } from "vue-router";
|
|
8
10
|
import { useNamespace as W } from "../../hooks/use-namespace/index.js";
|
|
9
11
|
import "@popperjs/core";
|
|
10
|
-
import "lodash";
|
|
11
12
|
import "../../hooks/use-z-index/index.js";
|
|
12
13
|
import "@vueuse/core";
|
|
13
|
-
import "../../utils/ns-cover.js";
|
|
14
14
|
import "../divider/index.js";
|
|
15
15
|
import "../icon/index.js";
|
|
16
16
|
import "../avatar/index.js";
|
|
@@ -22,7 +22,7 @@ import "../collapse-transition/index.js";
|
|
|
22
22
|
import "../tooltip/index.js";
|
|
23
23
|
import "../popover/index.js";
|
|
24
24
|
import "../menu/index.js";
|
|
25
|
-
import { initAffixTabs as Z, useTabsDrag as
|
|
25
|
+
import { initAffixTabs as Z, useTabsDrag as ee } from "./use/use-multiple-tabs.js";
|
|
26
26
|
import "../header-layout/index.js";
|
|
27
27
|
import "../footer-layout/index.js";
|
|
28
28
|
import "../iframe-layout/index.js";
|
|
@@ -46,6 +46,7 @@ import "../clamp-toggle/index.js";
|
|
|
46
46
|
import "../page-wrapper/index.js";
|
|
47
47
|
import "../exception/index.js";
|
|
48
48
|
import "../search/index.js";
|
|
49
|
+
import "../form/index.js";
|
|
49
50
|
import "../md-container/index.js";
|
|
50
51
|
import "../md-comment/index.js";
|
|
51
52
|
import "../md-tabs/index.js";
|
|
@@ -53,14 +54,14 @@ import "../md-vue-playground/index.js";
|
|
|
53
54
|
import "../md-code-demo/index.js";
|
|
54
55
|
import "../md-code-tabs/index.js";
|
|
55
56
|
import "../message/index.js";
|
|
56
|
-
import
|
|
57
|
+
import te from "./tab-content.vue2.js";
|
|
57
58
|
const P = (
|
|
58
59
|
/* hoist-static*/
|
|
59
60
|
W("multiple-tabs")
|
|
60
|
-
),
|
|
61
|
+
), oe = _({
|
|
61
62
|
name: P.b()
|
|
62
|
-
}),
|
|
63
|
-
...
|
|
63
|
+
}), at = /* @__PURE__ */ _({
|
|
64
|
+
...oe,
|
|
64
65
|
props: {
|
|
65
66
|
tabsStyle: null,
|
|
66
67
|
contextMenuStyle: null,
|
|
@@ -68,45 +69,45 @@ const P = (
|
|
|
68
69
|
},
|
|
69
70
|
setup(f) {
|
|
70
71
|
const n = Z();
|
|
71
|
-
f.canDrag &&
|
|
72
|
-
const
|
|
73
|
-
var
|
|
74
|
-
return !((
|
|
72
|
+
f.canDrag && ee(n);
|
|
73
|
+
const u = q(), i = b(""), m = b(0), d = b(), v = O(), { go: g } = $(), s = h(() => u.getTabList.filter((e) => {
|
|
74
|
+
var t;
|
|
75
|
+
return !((t = e.meta) != null && t.hideTab);
|
|
75
76
|
}));
|
|
76
77
|
D(() => {
|
|
77
|
-
var
|
|
78
|
+
var e;
|
|
78
79
|
if (i.value) {
|
|
79
|
-
const
|
|
80
|
-
|
|
80
|
+
const t = s.value.findIndex((o) => c(o) === i.value);
|
|
81
|
+
t === -1 ? m.value = ((e = s.value) == null ? void 0 : e.length) - 1 : m.value = t, m.value = m.value < (n == null ? void 0 : n.length) ? (n == null ? void 0 : n.length) - 1 : m.value;
|
|
81
82
|
}
|
|
82
83
|
}), Q(() => {
|
|
83
84
|
d.value = r(v.currentRoute);
|
|
84
|
-
}), j((
|
|
85
|
-
if (!
|
|
85
|
+
}), j((e) => {
|
|
86
|
+
if (!e)
|
|
86
87
|
return;
|
|
87
|
-
const { meta:
|
|
88
|
-
if (i.value !==
|
|
88
|
+
const { meta: t = {} } = e, { currentActivePath: o, hideTab: a } = t, l = a ? o : null, p = c(e);
|
|
89
|
+
if (i.value !== p && (i.value = p), l) {
|
|
89
90
|
let y = v.getRoutes().find((z) => z.path === o);
|
|
90
|
-
y &&
|
|
91
|
+
y && u.addTab(y, r(d), m.value, e);
|
|
91
92
|
} else
|
|
92
|
-
|
|
93
|
+
u.addTab(r(e), r(d), m.value);
|
|
93
94
|
});
|
|
94
|
-
function M(
|
|
95
|
+
function M(e) {
|
|
95
96
|
var a, l;
|
|
96
|
-
if (i.value ===
|
|
97
|
+
if (i.value === e.paneName)
|
|
97
98
|
return;
|
|
98
|
-
const
|
|
99
|
-
i.value =
|
|
100
|
-
const o = (l = (a =
|
|
101
|
-
g(o ||
|
|
99
|
+
const t = s.value[e.attrs.index];
|
|
100
|
+
i.value = e.paneName;
|
|
101
|
+
const o = (l = (a = t == null ? void 0 : t.meta) == null ? void 0 : a.hideActiveRoute) == null ? void 0 : l.fullPath;
|
|
102
|
+
g(o || t.fullPath || t.path);
|
|
102
103
|
}
|
|
103
|
-
function k(
|
|
104
|
-
|
|
104
|
+
function k(e) {
|
|
105
|
+
u.closeTabByKey(e, v);
|
|
105
106
|
}
|
|
106
107
|
const [B, I] = J();
|
|
107
|
-
function N(
|
|
108
|
-
const
|
|
109
|
-
B.value[
|
|
108
|
+
function N(e) {
|
|
109
|
+
const t = e.pane.attrs.index, o = e.event;
|
|
110
|
+
B.value[t].handleContext(o);
|
|
110
111
|
}
|
|
111
112
|
const w = h(() => ({ ...S({
|
|
112
113
|
padding: "4px 0 0",
|
|
@@ -118,8 +119,9 @@ const P = (
|
|
|
118
119
|
"close-icon-left": "8px",
|
|
119
120
|
"item-distance": "10px",
|
|
120
121
|
"item-max-width": "348px",
|
|
122
|
+
"scroll-padding": "0 20px",
|
|
121
123
|
"header-margin": "0 0 0 8px"
|
|
122
|
-
}, "tabs"
|
|
124
|
+
}, "tabs"), ...f.tabsStyle })), { closeCurrent: V } = G();
|
|
123
125
|
L("command+e, ctrl+e", function() {
|
|
124
126
|
return V(), !1;
|
|
125
127
|
});
|
|
@@ -128,16 +130,16 @@ const P = (
|
|
|
128
130
|
border: "1px solid #dcdfe6",
|
|
129
131
|
"sub-item-height": "40px",
|
|
130
132
|
"item-min-width": "150px"
|
|
131
|
-
}, "menu"
|
|
133
|
+
}, "menu"),
|
|
132
134
|
...f.contextMenuStyle
|
|
133
135
|
}));
|
|
134
|
-
return (
|
|
136
|
+
return (e, t) => (x(), T("div", {
|
|
135
137
|
class: E(r(P).b()),
|
|
136
138
|
style: H(r(w))
|
|
137
139
|
}, [
|
|
138
140
|
R(r(X), {
|
|
139
141
|
"model-value": i.value,
|
|
140
|
-
"onUpdate:modelValue":
|
|
142
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => i.value = o),
|
|
141
143
|
type: "card",
|
|
142
144
|
onTabClick: M,
|
|
143
145
|
onTabRemove: k,
|
|
@@ -154,11 +156,11 @@ const P = (
|
|
|
154
156
|
name: r(c)(o)
|
|
155
157
|
}, {
|
|
156
158
|
label: C(() => {
|
|
157
|
-
var
|
|
159
|
+
var p;
|
|
158
160
|
return [
|
|
159
|
-
R(
|
|
161
|
+
R(te, {
|
|
160
162
|
contextMenuStyle: r(A),
|
|
161
|
-
affixNum: (
|
|
163
|
+
affixNum: (p = r(n)) == null ? void 0 : p.length,
|
|
162
164
|
ref_for: !0,
|
|
163
165
|
ref: r(I)(a),
|
|
164
166
|
tabItem: o
|
|
@@ -175,5 +177,5 @@ const P = (
|
|
|
175
177
|
}
|
|
176
178
|
});
|
|
177
179
|
export {
|
|
178
|
-
|
|
180
|
+
at as default
|
|
179
181
|
};
|
|
@@ -39,6 +39,7 @@ import "../clamp-toggle/index.js";
|
|
|
39
39
|
import "../page-wrapper/index.js";
|
|
40
40
|
import "../exception/index.js";
|
|
41
41
|
import "../search/index.js";
|
|
42
|
+
import "../form/index.js";
|
|
42
43
|
import "../md-container/index.js";
|
|
43
44
|
import "../md-comment/index.js";
|
|
44
45
|
import "../md-tabs/index.js";
|
|
@@ -53,7 +54,7 @@ import "../../hooks/use-z-index/index.js";
|
|
|
53
54
|
import "@vueuse/core";
|
|
54
55
|
import "../../utils/ns-cover.js";
|
|
55
56
|
import { useContextMenu as d } from "../context-menu/useContextMenu.js";
|
|
56
|
-
const C = ["title", "onContextmenu"],
|
|
57
|
+
const C = ["title", "onContextmenu"], yt = /* @__PURE__ */ l({
|
|
57
58
|
__name: "tab-content",
|
|
58
59
|
props: {
|
|
59
60
|
tabItem: null,
|
|
@@ -79,5 +80,5 @@ const C = ["title", "onContextmenu"], It = /* @__PURE__ */ l({
|
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
82
|
export {
|
|
82
|
-
|
|
83
|
+
yt as default
|
|
83
84
|
};
|