vft 0.0.53 → 0.0.56
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 -0
- package/dist/index.css +1 -1
- package/es/component.js +68 -122
- package/es/components/avatar/avatar.vue.d.ts +2 -2
- package/es/components/avatar/index.d.ts +2 -2
- package/es/components/back-top/back-top.vue2.js +4 -3
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +1 -1
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/color-picker/color-picker.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +1 -1
- package/es/components/context-menu/context-menu.vue2.js +46 -41
- package/es/components/descriptions/description.vue.d.ts +2 -2
- package/es/components/descriptions/index.d.ts +2 -2
- package/es/components/dialog/dialog.vue.d.ts +1 -1
- package/es/components/dialog/index.d.ts +1 -1
- package/es/components/divider/divider.vue.d.ts +2 -2
- package/es/components/divider/index.d.ts +2 -2
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
- package/es/components/dropdown/dropdown-item.vue.d.ts +6 -6
- package/es/components/dropdown/dropdown.vue.d.ts +22 -22
- package/es/components/dropdown/index.d.ts +34 -34
- package/es/components/focus-trap/focus-trap.vue.d.ts +4 -4
- package/es/components/form/form-item.vue.d.ts +3 -3
- package/es/components/form/hooks/use-form-item.d.ts +2 -2
- package/es/components/form/index.d.ts +6 -6
- package/es/components/icon-text/icon-text.vue2.js +31 -24
- package/es/components/image/image.vue.d.ts +2 -2
- package/es/components/image/index.d.ts +2 -2
- package/es/components/input/index.d.ts +7 -7
- package/es/components/input/input.vue.d.ts +7 -7
- package/es/components/link/index.d.ts +4 -4
- package/es/components/link/link.vue.d.ts +4 -4
- package/es/components/loading/index.d.ts +1 -1
- package/es/components/md-code-demo/index.d.ts +1 -1
- package/es/components/md-code-demo/md-code-demo.d.ts +1 -1
- package/es/components/md-container/md-container.vue2.js +74 -68
- package/es/components/md-container/use/useCopyCode.js +3 -3
- package/es/components/menu/index.d.ts +4 -4
- package/es/components/menu/menu-item.vue2.js +4 -3
- package/es/components/menu/menu.vue.d.ts +4 -4
- package/es/components/menu/sub-menu.vue2.js +4 -3
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +34 -36
- package/es/components/multiple-tabs/tab-content.vue2.js +18 -84
- package/es/components/popper/composables/use-focus-trap.d.ts +1 -1
- package/es/components/popper/content.vue.d.ts +3 -3
- package/es/components/popper/index.d.ts +2 -2
- package/es/components/popper/popper.vue.d.ts +2 -2
- package/es/components/qrcode/index.d.ts +3 -3
- package/es/components/qrcode/qrcode.vue.d.ts +3 -3
- package/es/components/result/result.vue2.js +4 -3
- package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
- package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +2 -2
- package/es/components/search/search.vue.d.ts +2 -2
- package/es/components/search/search.vue2.js +4 -3
- package/es/components/select-v2/defaults.d.ts +1 -1
- package/es/components/select-v2/index.d.ts +52 -52
- package/es/components/select-v2/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/select.vue.d.ts +26 -26
- package/es/components/select-v2/useSelect.d.ts +12 -12
- package/es/components/side-menu/index.d.ts +2 -2
- package/es/components/side-menu/side-menu.vue.d.ts +2 -2
- package/es/components/side-menu/side-menu.vue2.js +3 -2
- package/es/components/table/table.vue.d.ts +3 -3
- package/es/components/tabs/index.d.ts +8 -8
- package/es/components/tabs/tab-nav.vue.d.ts +6 -7
- package/es/components/tabs/tab-nav.vue2.js +42 -38
- package/es/components/tabs/tabs.vue.d.ts +9 -9
- package/es/components/tabs/tabs.vue2.js +43 -48
- package/es/components/tag/index.d.ts +2 -2
- package/es/components/tag/tag.vue.d.ts +2 -2
- package/es/components/tooltip/index.d.ts +5 -5
- package/es/components/tooltip/tooltip.vue.d.ts +5 -5
- package/es/components/virtual-list/builders/build-grid.d.ts +1 -1
- package/es/components/virtual-list/builders/build-list.d.ts +4 -4
- package/es/components/virtual-list/components/dynamic-size-grid.d.ts +1 -1
- package/es/components/virtual-list/components/dynamic-size-list.d.ts +4 -4
- package/es/components/virtual-list/components/fixed-size-grid.d.ts +1 -1
- package/es/components/virtual-list/components/fixed-size-list.d.ts +4 -4
- package/es/components/virtual-list/components/scrollbar.d.ts +3 -3
- package/es/components/virtual-list/props.d.ts +2 -2
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.d.ts +6 -6
- package/global.d.ts +28 -3
- package/lib/component.cjs +1 -1
- package/lib/components/avatar/avatar.vue.d.ts +2 -2
- package/lib/components/avatar/index.d.ts +2 -2
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/descriptions/description.vue.d.ts +2 -2
- package/lib/components/descriptions/index.d.ts +2 -2
- package/lib/components/dialog/dialog.vue.d.ts +1 -1
- package/lib/components/dialog/index.d.ts +1 -1
- package/lib/components/divider/divider.vue.d.ts +2 -2
- package/lib/components/divider/index.d.ts +2 -2
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
- package/lib/components/dropdown/dropdown-item.vue.d.ts +6 -6
- package/lib/components/dropdown/dropdown.vue.d.ts +22 -22
- package/lib/components/dropdown/index.d.ts +34 -34
- package/lib/components/focus-trap/focus-trap.vue.d.ts +4 -4
- package/lib/components/form/form-item.vue.d.ts +3 -3
- package/lib/components/form/hooks/use-form-item.d.ts +2 -2
- package/lib/components/form/index.d.ts +6 -6
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/image/image.vue.d.ts +2 -2
- package/lib/components/image/index.d.ts +2 -2
- package/lib/components/input/index.d.ts +7 -7
- package/lib/components/input/input.vue.d.ts +7 -7
- package/lib/components/link/index.d.ts +4 -4
- package/lib/components/link/link.vue.d.ts +4 -4
- package/lib/components/loading/index.d.ts +1 -1
- package/lib/components/md-code-demo/index.d.ts +1 -1
- package/lib/components/md-code-demo/md-code-demo.d.ts +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/use/useCopyCode.cjs +1 -1
- package/lib/components/menu/index.d.ts +4 -4
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue.d.ts +4 -4
- package/lib/components/menu/sub-menu.vue2.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/popper/composables/use-focus-trap.d.ts +1 -1
- package/lib/components/popper/content.vue.d.ts +3 -3
- package/lib/components/popper/index.d.ts +2 -2
- package/lib/components/popper/popper.vue.d.ts +2 -2
- package/lib/components/qrcode/index.d.ts +3 -3
- package/lib/components/qrcode/qrcode.vue.d.ts +3 -3
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
- package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +2 -2
- package/lib/components/search/search.vue.d.ts +2 -2
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select-v2/defaults.d.ts +1 -1
- package/lib/components/select-v2/index.d.ts +52 -52
- package/lib/components/select-v2/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/select.vue.d.ts +26 -26
- package/lib/components/select-v2/useSelect.d.ts +12 -12
- package/lib/components/side-menu/index.d.ts +2 -2
- 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/table/table.vue.d.ts +3 -3
- package/lib/components/tabs/index.d.ts +8 -8
- package/lib/components/tabs/tab-nav.vue.d.ts +6 -7
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +9 -9
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tag/index.d.ts +2 -2
- package/lib/components/tag/tag.vue.d.ts +2 -2
- package/lib/components/tooltip/index.d.ts +5 -5
- package/lib/components/tooltip/tooltip.vue.d.ts +5 -5
- package/lib/components/virtual-list/builders/build-grid.d.ts +1 -1
- package/lib/components/virtual-list/builders/build-list.d.ts +4 -4
- package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/components/dynamic-size-list.d.ts +4 -4
- package/lib/components/virtual-list/components/fixed-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/components/fixed-size-list.d.ts +4 -4
- package/lib/components/virtual-list/components/scrollbar.d.ts +3 -3
- package/lib/components/virtual-list/props.d.ts +2 -2
- package/lib/package.json.cjs +1 -1
- package/lib/utils/vue/vnode.d.ts +6 -6
- package/package.json +6 -1
- package/tags.json +1 -0
- package/theme-style/dark/css-vars.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/button.scss +1 -2
- package/theme-style/src/common/var.scss +19 -20
- package/theme-style/src/context-menu.scss +12 -0
- package/theme-style/src/dark/css-vars.scss +26 -0
- package/theme-style/src/dark/var.scss +61 -17
- package/theme-style/src/icon-text.scss +2 -0
- package/theme-style/src/logo.scss +1 -1
- package/theme-style/src/md/table.scss +5 -0
- package/theme-style/src/md-container.scss +42 -2
- package/theme-style/src/menu.scss +3 -3
- package/theme-style/src/side-menu.scss +2 -2
- package/theme-style/src/tabs.scss +70 -70
- package/theme-style/vft-button.css +1 -1
- package/theme-style/vft-context-menu.css +1 -0
- package/theme-style/vft-footer-layout.css +1 -1
- package/theme-style/vft-header-layout.css +1 -1
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-logo.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-multiple-tabs.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -0
package/es/component.js
CHANGED
|
@@ -1,126 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import { VftIframeLayout as D } from "./components/iframe-layout/index.js";
|
|
26
|
-
import { VftFooterLayout as S } from "./components/footer-layout/index.js";
|
|
27
|
-
import { VftHeaderLayout as k } from "./components/header-layout/index.js";
|
|
28
|
-
import { VftPagination as w } from "./components/pagination/index.js";
|
|
29
|
-
import { VftTabs as x, VftTabPane as h } from "./components/tabs/index.js";
|
|
30
|
-
import { VftForm as v, VftFormItem as B } from "./components/form/index.js";
|
|
31
|
-
import { VftDescriptions as L, VftDescriptionsItem as R } from "./components/descriptions/index.js";
|
|
32
|
-
import { VftMultipleTabs as F } from "./components/multiple-tabs/index.js";
|
|
33
|
-
import { VftCollapseTransition as G } from "./components/collapse-transition/index.js";
|
|
34
|
-
import { VftMenu as E, VftMenuItem as A, VftMenuItemGroup as H, VftSubMenu as O } from "./components/menu/index.js";
|
|
35
|
-
import { VftException as Q } from "./components/exception/index.js";
|
|
36
|
-
import { VftSearch as W } from "./components/search/index.js";
|
|
37
|
-
import { VftButton as j, VftButtonGroup as q } from "./components/button/index.js";
|
|
38
|
-
import { VftCheckboxGroup as z, VftCheckbox as J, VftCheckboxButton as K } from "./components/checkbox/index.js";
|
|
39
|
-
import { VftRadioButton as N, VftRadio as U, VftRadioGroup as X } from "./components/radio/index.js";
|
|
40
|
-
import { VftSwitch as Y } from "./components/switch/index.js";
|
|
41
|
-
import { VftColorPicker as Z } from "./components/color-picker/index.js";
|
|
42
|
-
import { VftScrollbar as _ } from "./components/scrollbar/index.js";
|
|
43
|
-
import { VftDropdownItem as $, VftDropdownMenu as oo, VftDropdown as to } from "./components/dropdown/index.js";
|
|
44
|
-
import { VftSelectV2 as ro } from "./components/select-v2/index.js";
|
|
45
|
-
import { VftVerifyCode as fo } from "./components/verify-code/index.js";
|
|
46
|
-
import { VftTable as mo } from "./components/table/index.js";
|
|
47
|
-
import { VftImageViewer as io } from "./components/image-viewer/index.js";
|
|
48
|
-
import { VftMdComment as po } from "./components/md-comment/index.js";
|
|
49
|
-
import { VftMdTabs as Vo } from "./components/md-tabs/index.js";
|
|
50
|
-
import { VftMdVuePlayground as eo } from "./components/md-vue-playground/index.js";
|
|
51
|
-
import { VftMdCodeDemo as ao } from "./components/md-code-demo/index.js";
|
|
52
|
-
import { VftMdCodeTabs as no } from "./components/md-code-tabs/index.js";
|
|
53
|
-
import { VftMdContainer as uo } from "./components/md-container/index.js";
|
|
54
|
-
const dt = [
|
|
55
|
-
// md
|
|
56
|
-
uo,
|
|
57
|
-
no,
|
|
58
|
-
ao,
|
|
59
|
-
eo,
|
|
60
|
-
Vo,
|
|
61
|
-
po,
|
|
62
|
-
// md
|
|
63
|
-
io,
|
|
64
|
-
mo,
|
|
65
|
-
fo,
|
|
66
|
-
ro,
|
|
67
|
-
$,
|
|
68
|
-
oo,
|
|
69
|
-
to,
|
|
70
|
-
_,
|
|
71
|
-
Z,
|
|
72
|
-
Y,
|
|
73
|
-
N,
|
|
74
|
-
U,
|
|
75
|
-
X,
|
|
76
|
-
z,
|
|
77
|
-
J,
|
|
78
|
-
K,
|
|
79
|
-
j,
|
|
80
|
-
q,
|
|
81
|
-
v,
|
|
82
|
-
B,
|
|
83
|
-
W,
|
|
84
|
-
g,
|
|
85
|
-
I,
|
|
86
|
-
P,
|
|
87
|
-
M,
|
|
88
|
-
T,
|
|
89
|
-
s,
|
|
90
|
-
b,
|
|
91
|
-
w,
|
|
92
|
-
C,
|
|
93
|
-
c,
|
|
94
|
-
d,
|
|
95
|
-
u,
|
|
96
|
-
l,
|
|
97
|
-
L,
|
|
98
|
-
R,
|
|
1
|
+
import { VftButton as t, VftButtonGroup as o } from "./components/button/index.js";
|
|
2
|
+
const f = [
|
|
3
|
+
// VftMdContainer,
|
|
4
|
+
// VftMdCodeTabs,
|
|
5
|
+
// VftMdCodeDemo,
|
|
6
|
+
// VftMdVuePlayground,
|
|
7
|
+
// VftMdTabs,
|
|
8
|
+
// VftMdComment,
|
|
9
|
+
// VftImageViewer,
|
|
10
|
+
// VftTable,
|
|
11
|
+
// VftVerifyCode,
|
|
12
|
+
// VftSelectV2,
|
|
13
|
+
// VftDropdownItem,
|
|
14
|
+
// VftDropdownMenu,
|
|
15
|
+
// VftDropdown,
|
|
16
|
+
// VftScrollbar,
|
|
17
|
+
// VftColorPicker,
|
|
18
|
+
// VftSwitch,
|
|
19
|
+
// VftRadioButton,
|
|
20
|
+
// VftRadio,
|
|
21
|
+
// VftRadioGroup,
|
|
22
|
+
// VftCheckboxGroup,
|
|
23
|
+
// VftCheckbox,
|
|
24
|
+
// VftCheckboxButton,
|
|
99
25
|
t,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
26
|
+
o
|
|
27
|
+
// VftForm,
|
|
28
|
+
// VftFormItem,
|
|
29
|
+
// VftSearch,
|
|
30
|
+
// VftPageWrapper,
|
|
31
|
+
// VftClamp,
|
|
32
|
+
// VftClampToggle,
|
|
33
|
+
// VftQrcode,
|
|
34
|
+
// VftOverlay,
|
|
35
|
+
// VftTag,
|
|
36
|
+
// VftSideMenu,
|
|
37
|
+
// VftPagination,
|
|
38
|
+
// VftLink,
|
|
39
|
+
// VftInput,
|
|
40
|
+
// VftImage,
|
|
41
|
+
// VftIconText,
|
|
42
|
+
// VftFullScreen,
|
|
43
|
+
// VftDescriptions,
|
|
44
|
+
// VftDescriptionsItem,
|
|
45
|
+
// VftConfigProvider,
|
|
46
|
+
// VftBackTop,
|
|
47
|
+
// VftRouterViewContent,
|
|
48
|
+
// VftIframeLayout,
|
|
49
|
+
// VftFooterLayout,
|
|
50
|
+
// VftHeaderLayout,
|
|
51
|
+
// VftLogo,
|
|
52
|
+
// VftMultipleTabs,
|
|
53
|
+
// VftMenu,
|
|
54
|
+
// VftMenuItem,
|
|
55
|
+
// VftMenuItemGroup,
|
|
56
|
+
// VftSubMenu,
|
|
57
|
+
// VftCollapseTransition,
|
|
58
|
+
// VftDivider,
|
|
59
|
+
// VftIcon,
|
|
60
|
+
// VftAvatar,
|
|
61
|
+
// VftEmpty,
|
|
62
|
+
// VftResult,
|
|
63
|
+
// VftTabs,
|
|
64
|
+
// VftTabPane,
|
|
65
|
+
// VftTooltip,
|
|
66
|
+
// VftPopover,
|
|
67
|
+
// VftPopper,
|
|
68
|
+
// VftException
|
|
123
69
|
];
|
|
124
70
|
export {
|
|
125
|
-
|
|
71
|
+
f as default
|
|
126
72
|
};
|
|
@@ -22,7 +22,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
22
22
|
required: false;
|
|
23
23
|
};
|
|
24
24
|
fit: {
|
|
25
|
-
type: __PropType<"contain" | "fill" | "
|
|
25
|
+
type: __PropType<"contain" | "fill" | "cover" | "none" | "scale-down" | undefined>;
|
|
26
26
|
required: false;
|
|
27
27
|
};
|
|
28
28
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "error"[], "error", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -47,7 +47,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
47
47
|
required: false;
|
|
48
48
|
};
|
|
49
49
|
fit: {
|
|
50
|
-
type: __PropType<"contain" | "fill" | "
|
|
50
|
+
type: __PropType<"contain" | "fill" | "cover" | "none" | "scale-down" | undefined>;
|
|
51
51
|
required: false;
|
|
52
52
|
};
|
|
53
53
|
}>> & {
|
|
@@ -20,7 +20,7 @@ export declare const VftAvatar: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
20
20
|
required: false;
|
|
21
21
|
};
|
|
22
22
|
fit: {
|
|
23
|
-
type: import("vue").PropType<"contain" | "fill" | "
|
|
23
|
+
type: import("vue").PropType<"contain" | "fill" | "cover" | "none" | "scale-down" | undefined>;
|
|
24
24
|
required: false;
|
|
25
25
|
};
|
|
26
26
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "error"[], "error", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -45,7 +45,7 @@ export declare const VftAvatar: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
45
45
|
required: false;
|
|
46
46
|
};
|
|
47
47
|
fit: {
|
|
48
|
-
type: import("vue").PropType<"contain" | "fill" | "
|
|
48
|
+
type: import("vue").PropType<"contain" | "fill" | "cover" | "none" | "scale-down" | undefined>;
|
|
49
49
|
required: false;
|
|
50
50
|
};
|
|
51
51
|
}>> & {
|
|
@@ -11,10 +11,11 @@ import "../collapse-transition/index.js";
|
|
|
11
11
|
import "../tooltip/index.js";
|
|
12
12
|
import "../popover/index.js";
|
|
13
13
|
import "../menu/index.js";
|
|
14
|
-
import "
|
|
14
|
+
import "../context-menu/context-menu.vue2.js";
|
|
15
15
|
import "../multiple-tabs/multiple-tabs.vue2.js";
|
|
16
16
|
import "@vft/router";
|
|
17
17
|
import "@vft/store";
|
|
18
|
+
import "@vft/use";
|
|
18
19
|
import "vue-router";
|
|
19
20
|
import "../header-layout/index.js";
|
|
20
21
|
import "../footer-layout/index.js";
|
|
@@ -77,7 +78,7 @@ const r = (
|
|
|
77
78
|
_("back-top")
|
|
78
79
|
), N = c({
|
|
79
80
|
name: r.b()
|
|
80
|
-
}),
|
|
81
|
+
}), Zt = /* @__PURE__ */ c({
|
|
81
82
|
...N,
|
|
82
83
|
props: {
|
|
83
84
|
visibilityHeight: { default: 200 },
|
|
@@ -120,5 +121,5 @@ const r = (
|
|
|
120
121
|
}
|
|
121
122
|
});
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
Zt as default
|
|
124
125
|
};
|
|
@@ -102,7 +102,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
102
102
|
/** @description button size */
|
|
103
103
|
size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
104
104
|
/** @description button type */
|
|
105
|
-
type: import("vue").ComputedRef<"" | "default" | "
|
|
105
|
+
type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
106
106
|
/** @description button disabled */
|
|
107
107
|
disabled: import("vue").ComputedRef<boolean>;
|
|
108
108
|
/** @description whether adding space */
|
|
@@ -75,7 +75,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
75
75
|
}, {
|
|
76
76
|
ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
77
77
|
size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
78
|
-
type: import("vue").ComputedRef<"" | "default" | "
|
|
78
|
+
type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
79
79
|
disabled: import("vue").ComputedRef<boolean>;
|
|
80
80
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
81
81
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -3,7 +3,7 @@ import type { ButtonProps } from './button.vue';
|
|
|
3
3
|
export declare const useButton: (props: ButtonProps, emit: SetupContext['emit']) => {
|
|
4
4
|
_disabled: import("vue").ComputedRef<boolean>;
|
|
5
5
|
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6
|
-
_type: import("vue").ComputedRef<"" | "default" | "
|
|
6
|
+
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
7
7
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
8
8
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
9
9
|
handleClick: (evt: MouseEvent) => void;
|
|
@@ -118,7 +118,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
118
118
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
119
119
|
onActiveChange?: ((...args: any[]) => any) | undefined;
|
|
120
120
|
}, {
|
|
121
|
-
validateEvent: boolean | undefined;
|
|
122
121
|
tabindex: string | number | undefined;
|
|
122
|
+
validateEvent: boolean | undefined;
|
|
123
123
|
}>;
|
|
124
124
|
export default _sfc_main;
|
|
@@ -99,8 +99,8 @@ export declare const VftColorPicker: import("vft/es/utils").SFCWithInstall<impor
|
|
|
99
99
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
onActiveChange?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
}, {
|
|
102
|
-
validateEvent: boolean | undefined;
|
|
103
102
|
tabindex: string | number | undefined;
|
|
103
|
+
validateEvent: boolean | undefined;
|
|
104
104
|
}>> & Record<string, any>;
|
|
105
105
|
export default VftColorPicker;
|
|
106
106
|
export * from './color-picker.vue';
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as f, ref as u, computed as k, openBlock as l, createBlock as d, Transition as b, withCtx as C, withDirectives as g, createElementVNode as a, normalizeStyle as z, unref as p, withModifiers as M, normalizeClass as $, createElementBlock as B, Fragment as E, renderList as S, vShow as A } from "vue";
|
|
2
|
+
import { useNamespace as F } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
import "@vue/reactivity";
|
|
10
|
+
import "@vue/shared";
|
|
11
|
+
import { useTimeoutFn as H, useClickAway as I, useEventListener as c } from "@vft/use";
|
|
3
12
|
import "../divider/index.js";
|
|
4
13
|
import "../icon/index.js";
|
|
5
14
|
import "../avatar/index.js";
|
|
@@ -10,8 +19,7 @@ import "../popper/index.js";
|
|
|
10
19
|
import "../collapse-transition/index.js";
|
|
11
20
|
import "../tooltip/index.js";
|
|
12
21
|
import "../popover/index.js";
|
|
13
|
-
import { VftMenuItem as
|
|
14
|
-
import "@vft/utils";
|
|
22
|
+
import { VftMenuItem as L } from "../menu/index.js";
|
|
15
23
|
import "../multiple-tabs/multiple-tabs.vue2.js";
|
|
16
24
|
import "@vft/router";
|
|
17
25
|
import "@vft/store";
|
|
@@ -63,16 +71,13 @@ import "../md-vue-playground/index.js";
|
|
|
63
71
|
import "../md-code-demo/index.js";
|
|
64
72
|
import "../md-code-tabs/index.js";
|
|
65
73
|
import "../message/index.js";
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
import "@vue/shared";
|
|
74
|
-
const H = { class: "vft-sub-menu" }, Zt = /* @__PURE__ */ w({
|
|
75
|
-
__name: "context-menu",
|
|
74
|
+
const N = { class: "vft-sub-menu" }, x = (
|
|
75
|
+
/* hoist-static*/
|
|
76
|
+
F("context-menu")
|
|
77
|
+
), R = f({
|
|
78
|
+
name: x.b()
|
|
79
|
+
}), io = /* @__PURE__ */ f({
|
|
80
|
+
...R,
|
|
76
81
|
props: {
|
|
77
82
|
axis: null,
|
|
78
83
|
styles: null,
|
|
@@ -81,63 +86,63 @@ const H = { class: "vft-sub-menu" }, Zt = /* @__PURE__ */ w({
|
|
|
81
86
|
},
|
|
82
87
|
setup(r) {
|
|
83
88
|
let s = u();
|
|
84
|
-
const
|
|
85
|
-
const { x: t, y:
|
|
89
|
+
const v = k(() => {
|
|
90
|
+
const { x: t, y: o } = r.axis || { x: 0, y: 0 }, i = (r.items || []).length * 40, m = r.width || 0, n = document.body, w = n.clientWidth < t + m ? t - m : t, y = n.clientHeight < o + i ? o - i : o;
|
|
86
91
|
return {
|
|
87
92
|
zIndex: 3e3,
|
|
88
93
|
...r.styles,
|
|
89
94
|
position: "fixed",
|
|
90
95
|
width: `${r.width}px`,
|
|
91
|
-
left: `${
|
|
92
|
-
top: `${
|
|
96
|
+
left: `${w + 1}px`,
|
|
97
|
+
top: `${y + 1}px`
|
|
93
98
|
};
|
|
94
99
|
});
|
|
95
100
|
let e = u(!1);
|
|
96
|
-
|
|
101
|
+
H(() => {
|
|
97
102
|
e.value = !0;
|
|
98
|
-
}, 0),
|
|
103
|
+
}, 0), I(s, () => {
|
|
99
104
|
e.value = !1;
|
|
100
105
|
}, {
|
|
101
106
|
listenerOptions: {
|
|
102
107
|
capture: !0
|
|
103
108
|
}
|
|
104
|
-
}),
|
|
109
|
+
}), c(window, "scroll", () => {
|
|
105
110
|
e.value = !1;
|
|
106
111
|
}, {
|
|
107
112
|
capture: !0
|
|
108
|
-
}),
|
|
113
|
+
}), c(window, "drag", () => {
|
|
109
114
|
e.value = !1;
|
|
110
115
|
}, {
|
|
111
116
|
capture: !0
|
|
112
117
|
});
|
|
113
|
-
function
|
|
114
|
-
var
|
|
115
|
-
t != null && t.disabled || ((
|
|
118
|
+
function h(t) {
|
|
119
|
+
var o;
|
|
120
|
+
t != null && t.disabled || ((o = t.handler) == null || o.call(t), e.value = !1);
|
|
116
121
|
}
|
|
117
|
-
return (t,
|
|
122
|
+
return (t, o) => (l(), d(b, { name: "vft-zoom-in-top" }, {
|
|
118
123
|
default: C(() => [
|
|
119
|
-
|
|
124
|
+
g(a("div", {
|
|
120
125
|
ref_key: "contextMenuRef",
|
|
121
126
|
ref: s,
|
|
122
|
-
style:
|
|
123
|
-
onClick:
|
|
127
|
+
style: z(p(v)),
|
|
128
|
+
onClick: o[0] || (o[0] = M(() => {
|
|
124
129
|
}, ["stop"])),
|
|
125
|
-
class: "vft-menu"
|
|
130
|
+
class: $([p(x).b(), "vft-menu"])
|
|
126
131
|
}, [
|
|
127
|
-
|
|
128
|
-
(
|
|
129
|
-
onClick: (
|
|
130
|
-
index: m +
|
|
131
|
-
title:
|
|
132
|
-
divider:
|
|
133
|
-
disabled:
|
|
134
|
-
icon:
|
|
132
|
+
a("div", N, [
|
|
133
|
+
(l(!0), B(E, null, S(r.items, (i, m) => (l(), d(p(L), {
|
|
134
|
+
onClick: (n) => h(i),
|
|
135
|
+
index: m + i.text,
|
|
136
|
+
title: i.text,
|
|
137
|
+
divider: i.divider,
|
|
138
|
+
disabled: i.disabled,
|
|
139
|
+
icon: i.iconCfg,
|
|
135
140
|
isAloneUse: "",
|
|
136
141
|
key: m
|
|
137
142
|
}, null, 8, ["onClick", "index", "title", "divider", "disabled", "icon"]))), 128))
|
|
138
143
|
])
|
|
139
|
-
],
|
|
140
|
-
[
|
|
144
|
+
], 6), [
|
|
145
|
+
[A, p(e)]
|
|
141
146
|
])
|
|
142
147
|
]),
|
|
143
148
|
_: 1
|
|
@@ -145,5 +150,5 @@ const H = { class: "vft-sub-menu" }, Zt = /* @__PURE__ */ w({
|
|
|
145
150
|
}
|
|
146
151
|
});
|
|
147
152
|
export {
|
|
148
|
-
|
|
153
|
+
io as default
|
|
149
154
|
};
|
|
@@ -9,7 +9,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
9
9
|
required: false;
|
|
10
10
|
};
|
|
11
11
|
direction: {
|
|
12
|
-
type: __PropType<"
|
|
12
|
+
type: __PropType<"vertical" | "horizontal" | undefined>;
|
|
13
13
|
required: false;
|
|
14
14
|
};
|
|
15
15
|
size: {
|
|
@@ -34,7 +34,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
34
34
|
required: false;
|
|
35
35
|
};
|
|
36
36
|
direction: {
|
|
37
|
-
type: __PropType<"
|
|
37
|
+
type: __PropType<"vertical" | "horizontal" | undefined>;
|
|
38
38
|
required: false;
|
|
39
39
|
};
|
|
40
40
|
size: {
|
|
@@ -8,7 +8,7 @@ export declare const VftDescriptions: import("vft/es/utils").SFCWithInstall<impo
|
|
|
8
8
|
required: false;
|
|
9
9
|
};
|
|
10
10
|
direction: {
|
|
11
|
-
type: import("vue").PropType<"
|
|
11
|
+
type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
|
|
12
12
|
required: false;
|
|
13
13
|
};
|
|
14
14
|
size: {
|
|
@@ -33,7 +33,7 @@ export declare const VftDescriptions: import("vft/es/utils").SFCWithInstall<impo
|
|
|
33
33
|
required: false;
|
|
34
34
|
};
|
|
35
35
|
direction: {
|
|
36
|
-
type: import("vue").PropType<"
|
|
36
|
+
type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
|
|
37
37
|
required: false;
|
|
38
38
|
};
|
|
39
39
|
size: {
|
|
@@ -156,8 +156,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
156
156
|
onClose?: (() => any) | undefined;
|
|
157
157
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
158
158
|
onOpen?: (() => any) | undefined;
|
|
159
|
-
onOpened?: (() => any) | undefined;
|
|
160
159
|
onClosed?: (() => any) | undefined;
|
|
160
|
+
onOpened?: (() => any) | undefined;
|
|
161
161
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
162
162
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
163
163
|
}, {}>;
|
|
@@ -138,8 +138,8 @@ export declare const WflyDialog: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
138
138
|
onClose?: (() => any) | undefined;
|
|
139
139
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
140
140
|
onOpen?: (() => any) | undefined;
|
|
141
|
-
onOpened?: (() => any) | undefined;
|
|
142
141
|
onClosed?: (() => any) | undefined;
|
|
142
|
+
onOpened?: (() => any) | undefined;
|
|
143
143
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
144
144
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
145
145
|
}, {}>> & Record<string, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
3
|
direction: {
|
|
4
|
-
type: __PropType<"
|
|
4
|
+
type: __PropType<"vertical" | "horizontal" | undefined>;
|
|
5
5
|
required: false;
|
|
6
6
|
};
|
|
7
7
|
contentPosition: {
|
|
@@ -26,7 +26,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
26
26
|
};
|
|
27
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
28
|
direction: {
|
|
29
|
-
type: __PropType<"
|
|
29
|
+
type: __PropType<"vertical" | "horizontal" | undefined>;
|
|
30
30
|
required: false;
|
|
31
31
|
};
|
|
32
32
|
contentPosition: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VftDivider: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
direction: {
|
|
3
|
-
type: import("vue").PropType<"
|
|
3
|
+
type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
|
|
4
4
|
required: false;
|
|
5
5
|
};
|
|
6
6
|
contentPosition: {
|
|
@@ -25,7 +25,7 @@ export declare const VftDivider: import("vft/es/utils").SFCWithInstall<import("v
|
|
|
25
25
|
};
|
|
26
26
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
direction: {
|
|
28
|
-
type: import("vue").PropType<"
|
|
28
|
+
type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
|
|
29
29
|
required: false;
|
|
30
30
|
};
|
|
31
31
|
contentPosition: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
2
|
command: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
disabled: BooleanConstructor;
|
|
@@ -35,9 +35,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
35
35
|
handleFocus: (e: Event) => void;
|
|
36
36
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
37
37
|
handleMousedown: (e: Event) => void;
|
|
38
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
38
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "pointerleave" | "pointermove" | "clickimpl")[], "click" | "pointerleave" | "pointermove" | "clickimpl", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
39
|
command: {
|
|
40
|
-
type: (
|
|
40
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
41
41
|
default: () => {};
|
|
42
42
|
};
|
|
43
43
|
disabled: BooleanConstructor;
|
|
@@ -46,8 +46,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
46
46
|
icon: StringConstructor;
|
|
47
47
|
}>> & {
|
|
48
48
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
onPointermove?: ((...args: any[]) => any) | undefined;
|
|
50
49
|
onPointerleave?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onPointermove?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
onClickimpl?: ((...args: any[]) => any) | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
disabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
2
|
command: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
disabled: BooleanConstructor;
|
|
@@ -16,15 +16,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
command: string | number | Record<string, any>;
|
|
18
18
|
divided: boolean;
|
|
19
|
-
textValue: string | undefined;
|
|
20
19
|
icon: string | undefined;
|
|
20
|
+
textValue: string | undefined;
|
|
21
21
|
onClick: ((...args: any[]) => any) | undefined;
|
|
22
|
-
onPointermove: ((...args: any[]) => any) | undefined;
|
|
23
22
|
onPointerleave: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onPointermove: ((...args: any[]) => any) | undefined;
|
|
24
24
|
}>;
|
|
25
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "pointerleave" | "pointermove")[], "click" | "pointerleave" | "pointermove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
command: {
|
|
27
|
-
type: (
|
|
27
|
+
type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
|
|
28
28
|
default: () => {};
|
|
29
29
|
};
|
|
30
30
|
disabled: BooleanConstructor;
|
|
@@ -33,8 +33,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
33
33
|
icon: StringConstructor;
|
|
34
34
|
}>> & {
|
|
35
35
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
onPointermove?: ((...args: any[]) => any) | undefined;
|
|
37
36
|
onPointerleave?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onPointermove?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
disabled: boolean;
|
|
40
40
|
command: string | number | Record<string, any>;
|