vft 0.0.154 → 0.0.156
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/app-components/button/button-custom.d.ts +1 -1
- package/es/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/es/app-components/hooks/use-id.d.ts +2 -1
- package/es/component.js +135 -133
- package/es/components/affix/affix.d.ts +2 -2
- package/es/components/affix/affix.vue.d.ts +1 -1
- package/es/components/affix/index.d.ts +3 -3
- package/es/components/autocomplete/autocomplete.vue.d.ts +18 -18
- package/es/components/autocomplete/index.d.ts +54 -54
- package/es/components/backtop/backtop.vue2.js +3 -2
- package/es/components/button/button-custom.d.ts +1 -1
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +3 -3
- package/es/components/button/use-button.d.ts +3 -3
- package/es/components/button/use-button.js +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +19 -19
- package/es/components/carousel/use-carousel.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +48 -48
- package/es/components/clamp/clamp.vue.d.ts +4 -15
- package/es/components/clamp/clamp.vue2.js +28 -25
- package/es/components/clamp/index.d.ts +10 -3
- package/es/components/clamp/types.d.ts +14 -0
- package/es/components/clamp/types.js +1 -0
- package/es/components/clamp-tooltip/clamp-tooltip.vue.d.ts +12 -0
- package/es/components/clamp-tooltip/clamp-tooltip.vue.js +4 -0
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +47 -0
- package/es/components/clamp-tooltip/index.d.ts +61 -0
- package/es/components/clamp-tooltip/index.js +12 -0
- package/es/components/clamp-tooltip/style/css.d.ts +0 -0
- package/es/components/clamp-tooltip/style/css.js +2 -0
- package/es/components/clamp-tooltip/style/index.d.ts +0 -0
- package/es/components/clamp-tooltip/style/index.js +2 -0
- package/es/components/clamp-tooltip/types.d.ts +6 -0
- package/es/components/clamp-tooltip/types.js +1 -0
- package/es/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/es/components/container/main.vue2.js +6 -5
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/es/components/date-picker/date-picker.d.ts +4 -20
- package/es/components/date-picker/index.d.ts +8 -40
- package/es/components/date-picker/props/date-picker.d.ts +1 -9
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/date-picker/utils.d.ts +1 -1
- package/es/components/dialog/dialog.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +6 -6
- package/es/components/drawer/drawer.vue.d.ts +2 -2
- package/es/components/drawer/index.d.ts +6 -6
- package/es/components/dropdown/dropdown.vue.d.ts +3 -3
- package/es/components/dropdown/index.d.ts +45 -45
- package/es/components/footer-layout/footer-layout.vue2.js +3 -2
- package/es/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/es/components/full-screen/full-screen.vue2.js +13 -10
- package/es/components/full-screen/index.d.ts +18 -0
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/icon/icon.vue2.js +21 -20
- package/es/components/icon-text/icon-text.vue.d.ts +5 -0
- package/es/components/icon-text/icon-text.vue2.js +36 -27
- package/es/components/icon-text/index.d.ts +18 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +335 -333
- package/es/components/loading/index.d.ts +17 -9
- package/es/components/loading/loading.d.ts +17 -9
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +24 -23
- package/es/components/modal/index.d.ts +11 -11
- package/es/components/modal/modal-footer-action.vue2.js +3 -2
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +4 -3
- package/es/components/popconfirm/index.d.ts +11 -11
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popover/index.d.ts +8 -8
- package/es/components/popper/composables/use-content-dom.d.ts +3 -1
- package/es/components/popper/composables/use-content.d.ts +70 -6
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/popper/popper.vue.d.ts +2 -1
- package/es/components/popper/utils.d.ts +45 -2
- package/es/components/progress/index.d.ts +4 -4
- package/es/components/radio/index.d.ts +24 -24
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/router-view-content/index.d.ts +12 -0
- package/es/components/router-view-content/router-view-content.vue.d.ts +2 -0
- package/es/components/router-view-content/router-view-content.vue2.js +48 -33
- package/es/components/select/defaults.d.ts +4 -3
- package/es/components/select/index.d.ts +60 -60
- package/es/components/select/select.vue.d.ts +30 -30
- package/es/components/select/useSelect.d.ts +19 -19
- package/es/components/side-menu/index.d.ts +8 -4
- package/es/components/side-menu/side-menu.vue.d.ts +2 -2
- package/es/components/side-menu/side-menu.vue2.js +6 -3
- package/es/components/slider/composables/use-slide.d.ts +6 -6
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/slider/slider.d.ts +3 -3
- package/es/components/space/index.d.ts +5 -2
- package/es/components/space/space.d.ts +5 -2
- package/es/components/super-form/component-map.js +13 -12
- package/es/components/super-form/index.d.ts +3 -3
- package/es/components/super-form/super-form-action.vue2.js +3 -2
- package/es/components/super-form/super-form-item.vue2.js +3 -2
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/super-form/super-form.vue2.js +3 -2
- package/es/components/table/field.js +19 -18
- package/es/components/table/index.d.ts +32 -32
- package/es/components/table/use/use-columns.d.ts +801 -3
- package/es/components/tabs/index.d.ts +6 -0
- package/es/components/tabs/tab-nav.vue.d.ts +2 -0
- package/es/components/tabs/tab-nav.vue2.js +95 -87
- package/es/components/tabs/tabs.vue.d.ts +2 -0
- package/es/components/tabs/tabs.vue2.js +42 -36
- package/es/components/time-picker/common/picker.vue.d.ts +6 -21
- package/es/components/time-picker/common/props.d.ts +2 -9
- package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +8 -40
- package/es/components/time-picker/time-picker.d.ts +4 -20
- package/es/components/time-picker/utils.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/tooltip/index.d.ts +16 -16
- package/es/components/tooltip/utils.d.ts +1 -1
- package/es/components/tree/index.d.ts +16 -16
- package/es/components/upload/index.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/components/upload/use-handlers.d.ts +21 -1
- package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/es/hooks/use-id/index.d.ts +2 -1
- package/es/hooks/use-model-toggle/index.d.ts +2 -2
- package/es/hooks/use-popper/index.d.ts +70 -7
- package/es/hooks/use-same-target/index.d.ts +3 -3
- package/es/hooks/use-z-index/index.d.ts +1 -1
- package/es/index.js +456 -454
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/app-components/button/button-custom.d.ts +1 -1
- package/lib/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/lib/app-components/hooks/use-id.d.ts +2 -1
- package/lib/component.cjs +1 -1
- package/lib/components/affix/affix.d.ts +2 -2
- package/lib/components/affix/affix.vue.d.ts +1 -1
- package/lib/components/affix/index.d.ts +3 -3
- package/lib/components/autocomplete/autocomplete.vue.d.ts +18 -18
- package/lib/components/autocomplete/index.d.ts +54 -54
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button-custom.d.ts +1 -1
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/button/use-button.d.ts +3 -3
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +19 -19
- package/lib/components/carousel/use-carousel.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +48 -48
- package/lib/components/clamp/clamp.vue.d.ts +4 -15
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp/index.d.ts +10 -3
- package/lib/components/clamp/types.cjs +1 -0
- package/lib/components/clamp/types.d.ts +14 -0
- package/lib/components/clamp-tooltip/clamp-tooltip.vue.cjs +1 -0
- package/lib/components/clamp-tooltip/clamp-tooltip.vue.d.ts +12 -0
- package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -0
- package/lib/components/clamp-tooltip/index.cjs +1 -0
- package/lib/components/clamp-tooltip/index.d.ts +61 -0
- package/lib/components/clamp-tooltip/style/css.cjs +1 -0
- package/lib/components/clamp-tooltip/style/css.d.ts +0 -0
- package/lib/components/clamp-tooltip/style/index.cjs +1 -0
- package/lib/components/clamp-tooltip/style/index.d.ts +0 -0
- package/lib/components/clamp-tooltip/types.cjs +1 -0
- package/lib/components/clamp-tooltip/types.d.ts +6 -0
- package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/lib/components/container/main.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/lib/components/date-picker/date-picker.d.ts +4 -20
- package/lib/components/date-picker/index.d.ts +8 -40
- package/lib/components/date-picker/props/date-picker.d.ts +1 -9
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/date-picker/utils.d.ts +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +6 -6
- package/lib/components/drawer/drawer.vue.d.ts +2 -2
- package/lib/components/drawer/index.d.ts +6 -6
- package/lib/components/dropdown/dropdown.vue.d.ts +3 -3
- package/lib/components/dropdown/index.d.ts +45 -45
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/full-screen/index.d.ts +18 -0
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue.d.ts +5 -0
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.d.ts +18 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/loading/index.d.ts +17 -9
- package/lib/components/loading/loading.d.ts +17 -9
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/modal/index.d.ts +11 -11
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +11 -11
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popover/index.d.ts +8 -8
- package/lib/components/popper/composables/use-content-dom.d.ts +3 -1
- package/lib/components/popper/composables/use-content.d.ts +70 -6
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/popper/popper.vue.d.ts +2 -1
- package/lib/components/popper/utils.d.ts +45 -2
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/radio/index.d.ts +24 -24
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/index.d.ts +12 -0
- package/lib/components/router-view-content/router-view-content.vue.d.ts +2 -0
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/select/defaults.d.ts +4 -3
- package/lib/components/select/index.d.ts +60 -60
- package/lib/components/select/select.vue.d.ts +30 -30
- package/lib/components/select/useSelect.d.ts +19 -19
- package/lib/components/side-menu/index.d.ts +8 -4
- package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/slider/composables/use-slide.d.ts +6 -6
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/slider/slider.d.ts +3 -3
- package/lib/components/space/index.d.ts +5 -2
- package/lib/components/space/space.d.ts +5 -2
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/index.d.ts +3 -3
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.d.ts +32 -32
- package/lib/components/table/use/use-columns.d.ts +801 -3
- package/lib/components/tabs/index.d.ts +6 -0
- package/lib/components/tabs/tab-nav.vue.d.ts +2 -0
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +2 -0
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +6 -21
- package/lib/components/time-picker/common/props.d.ts +2 -9
- package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +8 -40
- package/lib/components/time-picker/time-picker.d.ts +4 -20
- package/lib/components/time-picker/utils.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/tooltip/index.d.ts +16 -16
- package/lib/components/tooltip/utils.d.ts +1 -1
- package/lib/components/tree/index.d.ts +16 -16
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/components/upload/use-handlers.d.ts +21 -1
- package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/lib/hooks/use-id/index.d.ts +2 -1
- package/lib/hooks/use-model-toggle/index.d.ts +2 -2
- package/lib/hooks/use-popper/index.d.ts +70 -7
- package/lib/hooks/use-same-target/index.d.ts +3 -3
- package/lib/hooks/use-z-index/index.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +6 -6
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/clamp-tooltip.scss +0 -0
- package/theme-style/src/icon-text.scss +8 -0
- package/theme-style/src/switch.scss +56 -52
- package/theme-style/src/tabs.scss +11 -2
- package/theme-style/vft-clamp-tooltip.css +0 -0
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-switch.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -42,6 +42,9 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
42
42
|
fixExtraScrollWidth: {
|
|
43
43
|
type: globalThis.PropType<number>;
|
|
44
44
|
};
|
|
45
|
+
trigger: {
|
|
46
|
+
type: globalThis.PropType<"click" | "hover">;
|
|
47
|
+
};
|
|
45
48
|
}, {
|
|
46
49
|
currentName: globalThis.Ref<string | number>;
|
|
47
50
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -129,6 +132,9 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
129
132
|
fixExtraScrollWidth: {
|
|
130
133
|
type: globalThis.PropType<number>;
|
|
131
134
|
};
|
|
135
|
+
trigger: {
|
|
136
|
+
type: globalThis.PropType<"click" | "hover">;
|
|
137
|
+
};
|
|
132
138
|
}>> & {
|
|
133
139
|
"onUpdate:modelValue"?: ((name: string | number) => any) | undefined;
|
|
134
140
|
onTabClick?: ((pane: {
|
|
@@ -16,6 +16,8 @@ interface TabNavProps {
|
|
|
16
16
|
arrowRightIconCfg?: IconProps;
|
|
17
17
|
fixTabCount?: number;
|
|
18
18
|
fixExtraScrollWidth?: number;
|
|
19
|
+
/** tab 触发方式 */
|
|
20
|
+
trigger?: 'click' | 'hover';
|
|
19
21
|
}
|
|
20
22
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TabNavProps>, {
|
|
21
23
|
scrollToActiveTab: () => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useDocumentVisibility as
|
|
3
|
-
import { capitalize as
|
|
4
|
-
import { throwError as
|
|
1
|
+
import { defineComponent as V, getCurrentInstance as ot, inject as it, ref as b, computed as S, watch as z, onMounted as rt, onUpdated as nt, createVNode as s, mergeProps as at, useSlots as lt, nextTick as st } from "vue";
|
|
2
|
+
import { useDocumentVisibility as ct, useWindowFocus as ut, useResizeObserver as mt } from "@vueuse/core";
|
|
3
|
+
import { capitalize as y } from "@vft/utils";
|
|
4
|
+
import { throwError as ft } from "../../utils/error.js";
|
|
5
5
|
import "../../utils/ns-cover.js";
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../alert/index.js";
|
|
@@ -13,6 +13,7 @@ import "../check-tag/index.js";
|
|
|
13
13
|
import "../checkbox/index.js";
|
|
14
14
|
import "../clamp/index.js";
|
|
15
15
|
import "../clamp-toggle/index.js";
|
|
16
|
+
import "../clamp-tooltip/index.js";
|
|
16
17
|
import "../col/index.js";
|
|
17
18
|
import "../collapse-transition/index.js";
|
|
18
19
|
import "../color-picker/index.js";
|
|
@@ -33,7 +34,7 @@ import "../form/index.js";
|
|
|
33
34
|
import "../full-screen/index.js";
|
|
34
35
|
import "../header-layout/index.js";
|
|
35
36
|
import "../horizontal-menu/index.js";
|
|
36
|
-
import { VftIcon as
|
|
37
|
+
import { VftIcon as $ } from "../icon/index.js";
|
|
37
38
|
import "../icon-text/index.js";
|
|
38
39
|
import "../iframe-layout/index.js";
|
|
39
40
|
import "../image/index.js";
|
|
@@ -88,22 +89,22 @@ import "../md-comment/index.js";
|
|
|
88
89
|
import "../md-container/index.js";
|
|
89
90
|
import "../md-tabs/index.js";
|
|
90
91
|
import "../md-vue-playground/index.js";
|
|
91
|
-
import { useNamespace as
|
|
92
|
+
import { useNamespace as D } from "../../hooks/use-namespace/index.js";
|
|
92
93
|
import "@popperjs/core";
|
|
93
94
|
import "../../hooks/use-z-index/index.js";
|
|
94
95
|
import "../message/index.js";
|
|
95
96
|
import "../infinite-scroll/index.js";
|
|
96
97
|
import "../progress-i/index.js";
|
|
97
98
|
import { EVENT_CODE as k } from "@vft/constants";
|
|
98
|
-
import { TabsRootContextKey as
|
|
99
|
-
import
|
|
99
|
+
import { TabsRootContextKey as pt } from "./types.js";
|
|
100
|
+
import vt from "./tab-bar.vue2.js";
|
|
100
101
|
const q = (
|
|
101
102
|
/* hoist-static*/
|
|
102
|
-
|
|
103
|
-
),
|
|
103
|
+
D("tab-nav")
|
|
104
|
+
), dt = V({
|
|
104
105
|
name: q.b()
|
|
105
|
-
}),
|
|
106
|
-
...
|
|
106
|
+
}), so = /* @__PURE__ */ V({
|
|
107
|
+
...dt,
|
|
107
108
|
props: {
|
|
108
109
|
panes: {},
|
|
109
110
|
editable: {
|
|
@@ -128,6 +129,9 @@ const q = (
|
|
|
128
129
|
},
|
|
129
130
|
fixExtraScrollWidth: {
|
|
130
131
|
default: 0
|
|
132
|
+
},
|
|
133
|
+
trigger: {
|
|
134
|
+
default: "click"
|
|
131
135
|
}
|
|
132
136
|
},
|
|
133
137
|
emits: ["tabClick", "tabRemove", "tabAdd", "tabContextmenu"],
|
|
@@ -136,132 +140,136 @@ const q = (
|
|
|
136
140
|
emit: j
|
|
137
141
|
}) {
|
|
138
142
|
var W;
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
const
|
|
143
|
+
const C = j, U = ot(), g = it(pt);
|
|
144
|
+
g || ft(q.b(), "<vft-tabs><tab-nav /></vft-tabs>");
|
|
145
|
+
const r = D("tabs"), X = ct(), Y = ut(), I = b(), p = b(), x = b(), P = b(), c = b(!1), u = b(0), B = b(!1), T = b(!0), w = S(() => ["top", "bottom"].includes(g.props.tabPosition) ? "width" : "height"), G = S(() => ({
|
|
142
146
|
transform: `translate${w.value === "width" ? "X" : "Y"}(-${u.value}px)`
|
|
143
147
|
})), J = () => {
|
|
144
148
|
if (!p.value)
|
|
145
149
|
return;
|
|
146
|
-
const t = p.value[`offset${
|
|
147
|
-
|
|
150
|
+
const t = p.value[`offset${y(w.value)}`], o = u.value;
|
|
151
|
+
o && (u.value = o > t ? o - t : 0);
|
|
148
152
|
}, Q = () => {
|
|
149
153
|
if (!p.value || !x.value)
|
|
150
154
|
return;
|
|
151
|
-
const t = x.value[`offset${
|
|
152
|
-
t -
|
|
153
|
-
},
|
|
154
|
-
const t = x.value,
|
|
155
|
-
if (!c.value || !
|
|
155
|
+
const t = x.value[`offset${y(w.value)}`], o = p.value[`offset${y(w.value)}`], e = u.value;
|
|
156
|
+
t - e <= o || (u.value = t - e > o * 2 ? e + o : t - o);
|
|
157
|
+
}, N = async () => {
|
|
158
|
+
const t = x.value, o = P.value;
|
|
159
|
+
if (!c.value || !I.value || !p.value || !t)
|
|
156
160
|
return;
|
|
157
|
-
await
|
|
158
|
-
const
|
|
159
|
-
if (!
|
|
161
|
+
await st();
|
|
162
|
+
const e = I.value.querySelector(".is-active");
|
|
163
|
+
if (!e)
|
|
160
164
|
return;
|
|
161
|
-
const
|
|
165
|
+
const h = p.value, d = ["top", "bottom"].includes(g.props.tabPosition), a = e.getBoundingClientRect(), n = h.getBoundingClientRect(), m = d ? t.offsetWidth - n.width : t.offsetHeight - n.height, l = u.value;
|
|
162
166
|
let v = l;
|
|
163
|
-
const
|
|
164
|
-
d ? (a.left -
|
|
165
|
-
},
|
|
167
|
+
const R = i.fixTabCount ? ((o == null ? void 0 : o.offsetWidth) || 0) + i.fixExtraScrollWidth : 0;
|
|
168
|
+
d ? (a.left - R < n.left && (v = l - (n.left - a.left + R)), a.right > n.right && (v = l + a.right - n.right)) : (a.top < n.top && (v = l - (n.top - a.top)), a.bottom > n.bottom && (v = l + (a.bottom - n.bottom))), v = Math.max(v, 0), u.value = Math.min(v, m);
|
|
169
|
+
}, A = () => {
|
|
166
170
|
if (!x.value || !p.value)
|
|
167
171
|
return;
|
|
168
|
-
const t = x.value[`offset${
|
|
169
|
-
|
|
172
|
+
const t = x.value[`offset${y(w.value)}`], o = p.value[`offset${y(w.value)}`], e = u.value;
|
|
173
|
+
o < t ? (c.value = c.value || {}, c.value.prev = e, c.value.next = e + o < t, t - e < o && (u.value = t - o)) : (c.value = !1, e > 0 && (u.value = 0));
|
|
170
174
|
}, Z = (t) => {
|
|
171
|
-
const
|
|
172
|
-
up:
|
|
173
|
-
down:
|
|
175
|
+
const o = t.code, {
|
|
176
|
+
up: e,
|
|
177
|
+
down: h,
|
|
174
178
|
left: d,
|
|
175
179
|
right: a
|
|
176
180
|
} = k;
|
|
177
|
-
if (![
|
|
181
|
+
if (![e, h, d, a].includes(o))
|
|
178
182
|
return;
|
|
179
|
-
const
|
|
183
|
+
const n = Array.from(t.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")), m = n.indexOf(t.target);
|
|
180
184
|
let l;
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
T.value && (
|
|
184
|
-
},
|
|
185
|
+
o === d || o === e ? m === 0 ? l = n.length - 1 : l = m - 1 : m < n.length - 1 ? l = m + 1 : l = 0, n[l].focus(), n[l].click(), E();
|
|
186
|
+
}, E = () => {
|
|
187
|
+
T.value && (B.value = !0);
|
|
188
|
+
}, O = () => B.value = !1;
|
|
185
189
|
z(X, (t) => {
|
|
186
190
|
t === "hidden" ? T.value = !1 : t === "visible" && setTimeout(() => T.value = !0, 50);
|
|
187
191
|
}), z(Y, (t) => {
|
|
188
192
|
t ? setTimeout(() => T.value = !0, 50) : T.value = !1;
|
|
189
|
-
}),
|
|
190
|
-
scrollToActiveTab:
|
|
191
|
-
removeFocus:
|
|
193
|
+
}), mt(I, A), rt(() => setTimeout(() => N(), 0)), nt(() => A()), H({
|
|
194
|
+
scrollToActiveTab: N,
|
|
195
|
+
removeFocus: O
|
|
192
196
|
}), z(() => i.panes, () => U.update(), {
|
|
193
197
|
flush: "post"
|
|
194
198
|
});
|
|
195
|
-
const _ =
|
|
196
|
-
var t,
|
|
199
|
+
const _ = S(() => {
|
|
200
|
+
var t, o;
|
|
197
201
|
return c.value ? [s("span", {
|
|
198
|
-
class: [
|
|
202
|
+
class: [r.e("nav-prev"), r.is("disabled", !c.value.prev)],
|
|
199
203
|
onClick: J
|
|
200
|
-
}, [(t = i.arrowLeftIconCfg) != null && t.icon ? s(
|
|
201
|
-
class: [
|
|
204
|
+
}, [(t = i.arrowLeftIconCfg) != null && t.icon ? s($, i.arrowLeftIconCfg, null) : null]), s("span", {
|
|
205
|
+
class: [r.e("nav-next"), r.is("disabled", !c.value.next)],
|
|
202
206
|
onClick: Q
|
|
203
|
-
}, [(
|
|
204
|
-
}), tt =
|
|
205
|
-
var
|
|
206
|
-
return (
|
|
207
|
-
var L, K,
|
|
208
|
-
const d =
|
|
209
|
-
|
|
207
|
+
}, [(o = i.arrowRightIconCfg) != null && o.icon ? s($, i.arrowRightIconCfg, null) : null])] : null;
|
|
208
|
+
}), tt = S(() => (t) => {
|
|
209
|
+
var o;
|
|
210
|
+
return (o = i.panes.slice(0, t)) == null ? void 0 : o.map((e, h) => {
|
|
211
|
+
var L, K, M;
|
|
212
|
+
const d = e.uid, a = e.props.disabled, n = e.props.name ?? e.index ?? `${h}`, m = !a && (e.isClosable || i.editable);
|
|
213
|
+
e.index = `${h}`;
|
|
210
214
|
const l = m ? s("span", {
|
|
211
215
|
class: "is-icon-close",
|
|
212
|
-
onClick: (f) =>
|
|
213
|
-
}, [(L = i.closeIconCfg) != null && L.icon ? s(
|
|
214
|
-
return s("div", {
|
|
216
|
+
onClick: (f) => C("tabRemove", e, f)
|
|
217
|
+
}, [(L = i.closeIconCfg) != null && L.icon ? s($, i.closeIconCfg, null) : null]) : null, v = ((M = (K = e.slots).label) == null ? void 0 : M.call(K)) || e.props.label, R = !a && e.active ? 0 : -1;
|
|
218
|
+
return s("div", at({
|
|
215
219
|
ref: `tab-${d}`,
|
|
216
|
-
class: [
|
|
217
|
-
id: `tab-${
|
|
220
|
+
class: [r.e("item"), r.is(g.props.tabPosition), r.is("active", e.active), r.is("disabled", a), r.is("closable", m), r.is("focus", B.value)],
|
|
221
|
+
id: `tab-${n}`,
|
|
218
222
|
key: `tab-${d}`,
|
|
219
|
-
"aria-controls": `pane-${
|
|
223
|
+
"aria-controls": `pane-${n}`,
|
|
220
224
|
role: "tab",
|
|
221
|
-
"aria-selected":
|
|
222
|
-
tabindex:
|
|
223
|
-
onFocus: () =>
|
|
224
|
-
onBlur: () =>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
"aria-selected": e.active,
|
|
226
|
+
tabindex: R,
|
|
227
|
+
onFocus: () => E(),
|
|
228
|
+
onBlur: () => O()
|
|
229
|
+
}, {
|
|
230
|
+
[i.trigger === "click" ? "onClick" : "onMouseenter"]: (f) => {
|
|
231
|
+
O(), C("tabClick", e, n, f);
|
|
232
|
+
}
|
|
233
|
+
}, {
|
|
228
234
|
onContextmenu: (f) => {
|
|
229
|
-
f.preventDefault(),
|
|
230
|
-
pane:
|
|
231
|
-
index:
|
|
235
|
+
f.preventDefault(), C("tabContextmenu", {
|
|
236
|
+
pane: e,
|
|
237
|
+
index: h,
|
|
232
238
|
event: f
|
|
233
239
|
});
|
|
234
240
|
},
|
|
235
241
|
onKeydown: (f) => {
|
|
236
|
-
m && (f.code === k.delete || f.code === k.backspace) &&
|
|
242
|
+
m && (f.code === k.delete || f.code === k.backspace) && C("tabRemove", e, f);
|
|
237
243
|
}
|
|
238
|
-
}, [v, l]);
|
|
244
|
+
}), [v, l]);
|
|
239
245
|
});
|
|
240
|
-
}),
|
|
241
|
-
class:
|
|
246
|
+
}), et = i.editable || i.addable ? s("span", {
|
|
247
|
+
class: r.e("new-tab"),
|
|
242
248
|
tabindex: "0",
|
|
243
|
-
onClick: () =>
|
|
249
|
+
onClick: () => C("tabAdd"),
|
|
244
250
|
onKeydown: (t) => {
|
|
245
|
-
t.code === k.enter &&
|
|
251
|
+
t.code === k.enter && C("tabAdd");
|
|
246
252
|
}
|
|
247
|
-
}, [(W = i.addIconCfg) != null && W.icon ? s(
|
|
248
|
-
|
|
249
|
-
|
|
253
|
+
}, [(W = i.addIconCfg) != null && W.icon ? s($, i.addIconCfg, null) : null]) : null;
|
|
254
|
+
lt();
|
|
255
|
+
const F = (t = !1) => s("div", {
|
|
256
|
+
class: [r.e("nav"), r.is(g.props.tabPosition), r.is("fixed-nav", t), r.is("stretch", i.stretch && ["top", "bottom"].includes(g.props.tabPosition))],
|
|
257
|
+
ref: t ? P.value : x.value,
|
|
250
258
|
style: t ? {} : G.value,
|
|
251
259
|
role: "tablist",
|
|
252
260
|
onKeydown: Z
|
|
253
|
-
}, [i.showBar ? s(
|
|
261
|
+
}, [i.showBar ? s(vt, {
|
|
254
262
|
tabs: [...i.panes]
|
|
255
263
|
}, null) : null, tt.value(t ? i.fixTabCount : void 0)]);
|
|
256
264
|
return () => s("div", {
|
|
257
|
-
ref:
|
|
258
|
-
class: [
|
|
265
|
+
ref: I.value,
|
|
266
|
+
class: [r.e("nav-wrap"), r.is("scrollable", !!c.value), r.is(g.props.tabPosition)]
|
|
259
267
|
}, [_.value, s("div", {
|
|
260
|
-
class: [
|
|
261
|
-
ref: p
|
|
262
|
-
}, [
|
|
268
|
+
class: [r.e("nav-scroll"), r.is("have-fixed-tab", !!i.fixTabCount)],
|
|
269
|
+
ref: p.value
|
|
270
|
+
}, [F(), i.fixTabCount ? F(!0) : null, et])]);
|
|
263
271
|
}
|
|
264
272
|
});
|
|
265
273
|
export {
|
|
266
|
-
|
|
274
|
+
so as default
|
|
267
275
|
};
|
|
@@ -22,6 +22,8 @@ export interface TabsProps {
|
|
|
22
22
|
arrowRightIconCfg?: IconProps;
|
|
23
23
|
fixTabCount?: number;
|
|
24
24
|
fixExtraScrollWidth?: number;
|
|
25
|
+
/** tab 触发方式 */
|
|
26
|
+
trigger?: 'click' | 'hover';
|
|
25
27
|
}
|
|
26
28
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TabsProps>, {
|
|
27
29
|
currentName: globalThis.Ref<string | number>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, getCurrentInstance as
|
|
1
|
+
import { defineComponent as I, getCurrentInstance as C, useSlots as S, ref as v, watch as h, nextTick as M, computed as c, createVNode as d, provide as W } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { isUndefined as x } from "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
@@ -10,11 +10,11 @@ import "../../hooks/use-z-index/index.js";
|
|
|
10
10
|
import { UPDATE_MODEL_EVENT as U } from "@vft/constants";
|
|
11
11
|
import $ from "./tab-nav.vue2.js";
|
|
12
12
|
import { TabsRootContextKey as F } from "./types.js";
|
|
13
|
-
const
|
|
13
|
+
const l = (
|
|
14
14
|
/* hoist-static*/
|
|
15
15
|
D("tabs")
|
|
16
16
|
), K = I({
|
|
17
|
-
name:
|
|
17
|
+
name: l.b()
|
|
18
18
|
}), oe = /* @__PURE__ */ I({
|
|
19
19
|
...K,
|
|
20
20
|
props: {
|
|
@@ -49,6 +49,9 @@ const d = (
|
|
|
49
49
|
},
|
|
50
50
|
fixExtraScrollWidth: {
|
|
51
51
|
default: 0
|
|
52
|
+
},
|
|
53
|
+
trigger: {
|
|
54
|
+
default: "click"
|
|
52
55
|
}
|
|
53
56
|
},
|
|
54
57
|
emits: ["update:modelValue", "tabClick", "tabContextMenu", "tabChange", "tabRemove", "tabAdd", "edit"],
|
|
@@ -56,49 +59,49 @@ const d = (
|
|
|
56
59
|
expose: w,
|
|
57
60
|
emit: T
|
|
58
61
|
}) {
|
|
59
|
-
const a = T, R =
|
|
60
|
-
var i,
|
|
62
|
+
const a = T, R = C(), o = S(), f = v(), r = v(t.modelValue ?? "0"), u = async (e, n = !1) => {
|
|
63
|
+
var i, s, g;
|
|
61
64
|
if (!(r.value === e || x(e)))
|
|
62
65
|
try {
|
|
63
|
-
await ((i = t.beforeLeave) == null ? void 0 : i.call(t, e, r.value)) !== !1 && (r.value = e,
|
|
66
|
+
await ((i = t.beforeLeave) == null ? void 0 : i.call(t, e, r.value)) !== !1 && (r.value = e, n && (a(U, e), a("tabChange", e)), (g = (s = f.value) == null ? void 0 : s.removeFocus) == null || g.call(s));
|
|
64
67
|
} catch {
|
|
65
68
|
}
|
|
66
|
-
}, y = (e,
|
|
67
|
-
e.props.disabled || (u(
|
|
68
|
-
}, L = (e,
|
|
69
|
-
e.props.disabled || x(e.props.name) || (
|
|
69
|
+
}, y = (e, n, i) => {
|
|
70
|
+
e.props.disabled || (u(n, !0), a("tabClick", e, i));
|
|
71
|
+
}, L = (e, n) => {
|
|
72
|
+
e.props.disabled || x(e.props.name) || (n.stopPropagation(), a("edit", e.props.name, "remove"), a("tabRemove", e.props.name));
|
|
70
73
|
};
|
|
71
|
-
|
|
74
|
+
h(() => t.modelValue, (e) => u(e)), h(r, async () => {
|
|
72
75
|
var e;
|
|
73
76
|
await M(), (e = f.value) == null || e.scrollToActiveTab();
|
|
74
77
|
});
|
|
75
|
-
const
|
|
78
|
+
const B = () => {
|
|
76
79
|
a("edit", void 0, "add"), a("tabAdd");
|
|
77
|
-
},
|
|
78
|
-
a("tabContextMenu", e,
|
|
80
|
+
}, P = (e, n, i) => {
|
|
81
|
+
a("tabContextMenu", e, n, i);
|
|
79
82
|
}, m = c(() => {
|
|
80
83
|
var e;
|
|
81
|
-
return
|
|
82
|
-
class:
|
|
83
|
-
}, [(e =
|
|
84
|
+
return d("div", {
|
|
85
|
+
class: l.e("content")
|
|
86
|
+
}, [(e = o.default) == null ? void 0 : e.call(o)]);
|
|
84
87
|
}), {
|
|
85
|
-
children:
|
|
86
|
-
addChild:
|
|
87
|
-
removeChild:
|
|
88
|
-
} = O(
|
|
88
|
+
children: E,
|
|
89
|
+
addChild: k,
|
|
90
|
+
removeChild: p
|
|
91
|
+
} = O(C(), "vft-tab-pane");
|
|
89
92
|
W(F, {
|
|
90
93
|
props: R.props,
|
|
91
94
|
currentName: r,
|
|
92
|
-
registerPane:
|
|
93
|
-
unregisterPane:
|
|
95
|
+
registerPane: k,
|
|
96
|
+
unregisterPane: p
|
|
94
97
|
}), w({
|
|
95
98
|
currentName: r
|
|
96
99
|
});
|
|
97
|
-
const
|
|
100
|
+
const A = c(() => ({
|
|
98
101
|
icon: "icon-plus",
|
|
99
102
|
size: 12,
|
|
100
103
|
...t.addIconCfg
|
|
101
|
-
})),
|
|
104
|
+
})), V = c(() => ({
|
|
102
105
|
icon: "icon-close",
|
|
103
106
|
size: 14,
|
|
104
107
|
...t.closeIconCfg
|
|
@@ -112,29 +115,32 @@ const d = (
|
|
|
112
115
|
...t.arrowRightIconCfg
|
|
113
116
|
})), b = c(() => {
|
|
114
117
|
var e;
|
|
115
|
-
return
|
|
116
|
-
class: [
|
|
117
|
-
}, [
|
|
118
|
+
return d("div", {
|
|
119
|
+
class: [l.e("header"), l.is(t.tabPosition)]
|
|
120
|
+
}, [d($, {
|
|
118
121
|
ref: f.value,
|
|
119
|
-
panes:
|
|
122
|
+
panes: E.value,
|
|
120
123
|
stretch: t.stretch,
|
|
121
124
|
showBar: t.showBar,
|
|
122
|
-
closeIconCfg:
|
|
123
|
-
addIconCfg:
|
|
125
|
+
closeIconCfg: V.value,
|
|
126
|
+
addIconCfg: A.value,
|
|
124
127
|
arrowRightIconCfg: z.value,
|
|
125
128
|
arrowLeftIconCfg: N.value,
|
|
126
129
|
editable: t.editable,
|
|
127
130
|
fixTabCount: t.fixTabCount,
|
|
128
131
|
fixExtraScrollWidth: t.fixExtraScrollWidth,
|
|
129
132
|
addable: t.addable,
|
|
133
|
+
trigger: t.trigger,
|
|
130
134
|
onTabClick: y,
|
|
131
135
|
onTabRemove: L,
|
|
132
|
-
onTabAdd:
|
|
133
|
-
onTabContextmenu:
|
|
134
|
-
}, null),
|
|
136
|
+
onTabAdd: B,
|
|
137
|
+
onTabContextmenu: P
|
|
138
|
+
}, null), o.navRight ? d("div", {
|
|
139
|
+
class: "nav-right"
|
|
140
|
+
}, [(e = o.navRight) == null ? void 0 : e.call(o)]) : null]);
|
|
135
141
|
});
|
|
136
|
-
return () =>
|
|
137
|
-
class: [
|
|
142
|
+
return () => d("div", {
|
|
143
|
+
class: [l.b(), l.m(t.tabPosition)]
|
|
138
144
|
}, [...t.tabPosition !== "bottom" ? [b.value, m.value] : [m.value, b.value]]);
|
|
139
145
|
}
|
|
140
146
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Options } from '@popperjs/core';
|
|
1
2
|
import type { Dayjs } from 'dayjs';
|
|
2
3
|
import type { DateModelType, DayOrDays, PickerOptions, SingleOrRange } from './props';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
@@ -61,15 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
61
62
|
readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
62
63
|
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
63
64
|
readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
64
|
-
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
65
|
-
(): Options;
|
|
66
|
-
new (): any;
|
|
67
|
-
readonly prototype: any;
|
|
68
|
-
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
69
|
-
(): Options;
|
|
70
|
-
new (): any;
|
|
71
|
-
readonly prototype: any;
|
|
72
|
-
})[], unknown, unknown, () => {}, boolean>;
|
|
65
|
+
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
|
73
66
|
readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
74
67
|
readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
75
68
|
readonly startPlaceholder: StringConstructor;
|
|
@@ -182,15 +175,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
182
175
|
readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
183
176
|
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
184
177
|
readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
185
|
-
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
186
|
-
(): Options;
|
|
187
|
-
new (): any;
|
|
188
|
-
readonly prototype: any;
|
|
189
|
-
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
190
|
-
(): Options;
|
|
191
|
-
new (): any;
|
|
192
|
-
readonly prototype: any;
|
|
193
|
-
})[], unknown, unknown, () => {}, boolean>;
|
|
178
|
+
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
|
194
179
|
readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
195
180
|
readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
196
181
|
readonly startPlaceholder: StringConstructor;
|
|
@@ -224,13 +209,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
224
209
|
readonly modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown>;
|
|
225
210
|
readonly readonly: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
226
211
|
readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
212
|
+
readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
227
213
|
readonly placeholder: string;
|
|
228
214
|
readonly clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
229
215
|
readonly prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
|
|
230
216
|
readonly clearIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
|
|
231
|
-
readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
232
217
|
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
233
|
-
readonly popperOptions:
|
|
218
|
+
readonly popperOptions: Partial<Options>;
|
|
234
219
|
readonly popperClass: string;
|
|
235
220
|
readonly editable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
236
221
|
readonly rangeSeparator: string;
|
|
@@ -249,7 +234,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
249
234
|
type: string;
|
|
250
235
|
defaultValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown> | undefined;
|
|
251
236
|
pick: (date?: any, visible?: boolean) => void;
|
|
252
|
-
"select-range": (start: number, end: number, pos?: "
|
|
237
|
+
"select-range": (start: number, end: number, pos?: "min" | "max" | undefined) => void;
|
|
253
238
|
"set-picker-option": <T extends keyof PickerOptions>(e: [T, PickerOptions[T]]) => void;
|
|
254
239
|
"calendar-change": (e: [Date, false | Date]) => void;
|
|
255
240
|
"panel-change": (value: [Dayjs, Dayjs], mode: "year" | "month", view: unknown) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Options } from '@popperjs/core';
|
|
1
2
|
import type { Dayjs } from 'dayjs';
|
|
2
3
|
import type { Component, ExtractPropTypes } from 'vue';
|
|
3
4
|
export type SingleOrRange<T> = T | [T, T];
|
|
@@ -70,15 +71,7 @@ export declare const timePickerDefaultProps: {
|
|
|
70
71
|
readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
71
72
|
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
72
73
|
readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
73
|
-
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
74
|
-
(): Options;
|
|
75
|
-
new (): any;
|
|
76
|
-
readonly prototype: any;
|
|
77
|
-
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
78
|
-
(): Options;
|
|
79
|
-
new (): any;
|
|
80
|
-
readonly prototype: any;
|
|
81
|
-
})[], unknown, unknown, () => {}, boolean>;
|
|
74
|
+
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
|
82
75
|
readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => ModelValueType))[], unknown, unknown, "", boolean>;
|
|
83
76
|
readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
84
77
|
readonly startPlaceholder: StringConstructor;
|
|
@@ -56,7 +56,7 @@ export declare const useOldValue: (props: {
|
|
|
56
56
|
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
57
57
|
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
58
58
|
format: (template?: string | undefined) => string;
|
|
59
|
-
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "
|
|
59
|
+
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "hours" | "minutes" | "seconds" | "hour" | "minute" | "second" | "day" | "millisecond" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
60
60
|
valueOf: () => number;
|
|
61
61
|
unix: () => number;
|
|
62
62
|
daysInMonth: () => number;
|
|
@@ -126,7 +126,7 @@ export declare const useOldValue: (props: {
|
|
|
126
126
|
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
127
127
|
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
128
128
|
format: (template?: string | undefined) => string;
|
|
129
|
-
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "
|
|
129
|
+
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "hours" | "minutes" | "seconds" | "hour" | "minute" | "second" | "day" | "millisecond" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
130
130
|
valueOf: () => number;
|
|
131
131
|
unix: () => number;
|
|
132
132
|
daysInMonth: () => number;
|