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
|
@@ -20,7 +20,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
20
20
|
required: false;
|
|
21
21
|
};
|
|
22
22
|
resize: {
|
|
23
|
-
type: import("vue").PropType<"none" | "
|
|
23
|
+
type: import("vue").PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
|
|
24
24
|
required: false;
|
|
25
25
|
};
|
|
26
26
|
autosize: {
|
|
@@ -152,7 +152,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
152
152
|
required: false;
|
|
153
153
|
};
|
|
154
154
|
resize: {
|
|
155
|
-
type: import("vue").PropType<"none" | "
|
|
155
|
+
type: import("vue").PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
|
|
156
156
|
required: false;
|
|
157
157
|
};
|
|
158
158
|
autosize: {
|
|
@@ -237,16 +237,16 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
237
237
|
}>> & {
|
|
238
238
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
239
239
|
onChange?: ((value: string) => any) | undefined;
|
|
240
|
-
onClear?: (() => any) | undefined;
|
|
241
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
242
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
243
240
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
244
241
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
245
242
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
243
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
244
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
246
245
|
onInput?: ((value: string) => any) | undefined;
|
|
247
|
-
|
|
246
|
+
onClear?: (() => any) | undefined;
|
|
247
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
248
248
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
249
249
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
250
|
-
|
|
250
|
+
onSuffixclick?: ((value: any) => any) | undefined;
|
|
251
251
|
}, {}>> & Record<string, any>;
|
|
252
252
|
export default VftInput;
|
|
@@ -23,7 +23,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
23
23
|
required: false;
|
|
24
24
|
};
|
|
25
25
|
resize: {
|
|
26
|
-
type: __PropType<"none" | "
|
|
26
|
+
type: __PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
|
|
27
27
|
required: false;
|
|
28
28
|
};
|
|
29
29
|
autosize: {
|
|
@@ -165,7 +165,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
165
165
|
required: false;
|
|
166
166
|
};
|
|
167
167
|
resize: {
|
|
168
|
-
type: __PropType<"none" | "
|
|
168
|
+
type: __PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
|
|
169
169
|
required: false;
|
|
170
170
|
};
|
|
171
171
|
autosize: {
|
|
@@ -250,16 +250,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
250
250
|
}>> & {
|
|
251
251
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
252
252
|
onChange?: ((value: string) => any) | undefined;
|
|
253
|
-
onClear?: (() => any) | undefined;
|
|
254
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
255
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
256
253
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
257
254
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
258
255
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
256
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
257
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
259
258
|
onInput?: ((value: string) => any) | undefined;
|
|
260
|
-
|
|
259
|
+
onClear?: (() => any) | undefined;
|
|
260
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
261
261
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
262
262
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
263
|
-
|
|
263
|
+
onSuffixclick?: ((value: any) => any) | undefined;
|
|
264
264
|
}, {}>;
|
|
265
265
|
export default _sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
type: {
|
|
3
|
-
type: import("vue").PropType<"default" | "
|
|
3
|
+
type: import("vue").PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
|
|
4
4
|
required: false;
|
|
5
5
|
};
|
|
6
6
|
underline: {
|
|
@@ -12,7 +12,7 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
12
12
|
required: false;
|
|
13
13
|
};
|
|
14
14
|
route: {
|
|
15
|
-
type: import("vue").PropType<import("
|
|
15
|
+
type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType | undefined>;
|
|
16
16
|
required: false;
|
|
17
17
|
};
|
|
18
18
|
isReplace: {
|
|
@@ -25,7 +25,7 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
25
25
|
};
|
|
26
26
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
type: {
|
|
28
|
-
type: import("vue").PropType<"default" | "
|
|
28
|
+
type: import("vue").PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
|
|
29
29
|
required: false;
|
|
30
30
|
};
|
|
31
31
|
underline: {
|
|
@@ -37,7 +37,7 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
37
37
|
required: false;
|
|
38
38
|
};
|
|
39
39
|
route: {
|
|
40
|
-
type: import("vue").PropType<import("
|
|
40
|
+
type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType | undefined>;
|
|
41
41
|
required: false;
|
|
42
42
|
};
|
|
43
43
|
isReplace: {
|
|
@@ -4,7 +4,7 @@ import { type IconProps } from 'vft/es/components/icon';
|
|
|
4
4
|
import { type WinOpenType } from '@vft/router';
|
|
5
5
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
6
6
|
type: {
|
|
7
|
-
type: __PropType<"default" | "
|
|
7
|
+
type: __PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
|
|
8
8
|
required: false;
|
|
9
9
|
};
|
|
10
10
|
underline: {
|
|
@@ -16,7 +16,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
16
16
|
required: false;
|
|
17
17
|
};
|
|
18
18
|
route: {
|
|
19
|
-
type: __PropType<
|
|
19
|
+
type: __PropType<RouteLocationRaw | WinOpenType | undefined>;
|
|
20
20
|
required: false;
|
|
21
21
|
};
|
|
22
22
|
isReplace: {
|
|
@@ -29,7 +29,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
type: {
|
|
32
|
-
type: __PropType<"default" | "
|
|
32
|
+
type: __PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
|
|
33
33
|
required: false;
|
|
34
34
|
};
|
|
35
35
|
underline: {
|
|
@@ -41,7 +41,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
41
41
|
required: false;
|
|
42
42
|
};
|
|
43
43
|
route: {
|
|
44
|
-
type: __PropType<
|
|
44
|
+
type: __PropType<RouteLocationRaw | WinOpenType | undefined>;
|
|
45
45
|
required: false;
|
|
46
46
|
};
|
|
47
47
|
isReplace: {
|
|
@@ -4,7 +4,7 @@ import type { App } from 'vue';
|
|
|
4
4
|
export declare const VftLoading: {
|
|
5
5
|
install(app: App): void;
|
|
6
6
|
directive: import("vue").Directive<import("./directive").VftLoading, import("./directive").LoadingBinding>;
|
|
7
|
-
service: (options?: Partial<Omit<import("./types").LoadingOptionsResolved, "
|
|
7
|
+
service: (options?: Partial<Omit<import("./types").LoadingOptionsResolved, "parent" | "target"> & {
|
|
8
8
|
target: string | HTMLElement;
|
|
9
9
|
body: boolean;
|
|
10
10
|
}>) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as T, getCurrentInstance as
|
|
1
|
+
import { defineComponent as T, getCurrentInstance as A, ref as v, onMounted as P, nextTick as B, unref as t, openBlock as s, createElementBlock as c, normalizeClass as a, createBlock as y, createCommentVNode as x, createElementVNode as e, toDisplayString as C, createVNode as l, Fragment as H, renderList as I, withCtx as L, createTextVNode as M, renderSlot as R } from "vue";
|
|
2
2
|
import "../divider/index.js";
|
|
3
|
-
import { VftIcon as
|
|
3
|
+
import { VftIcon as k } from "../icon/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
5
5
|
import "../empty/index.js";
|
|
6
6
|
import "../result/index.js";
|
|
@@ -10,12 +10,13 @@ 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
|
|
13
|
+
import { jumpElement as $, getRandomElementForArr as q, formatToDateTime as F, getDayTimestamp as j } from "@vft/utils";
|
|
14
|
+
import "../context-menu/context-menu.vue2.js";
|
|
15
15
|
import "../multiple-tabs/multiple-tabs.vue2.js";
|
|
16
|
-
import { useRouterHelper as
|
|
16
|
+
import { useRouterHelper as J } from "@vft/router";
|
|
17
17
|
import "@vft/store";
|
|
18
|
-
import {
|
|
18
|
+
import { usePhotoSwipe as O, useEventListener as Y } from "@vft/use";
|
|
19
|
+
import { useRoute as G } from "vue-router";
|
|
19
20
|
import "../header-layout/index.js";
|
|
20
21
|
import "../footer-layout/index.js";
|
|
21
22
|
import "../iframe-layout/index.js";
|
|
@@ -25,12 +26,12 @@ import "../back-top/index.js";
|
|
|
25
26
|
import "../config-provider/index.js";
|
|
26
27
|
import "../descriptions/index.js";
|
|
27
28
|
import "../full-screen/index.js";
|
|
28
|
-
import { VftIconText as
|
|
29
|
+
import { VftIconText as K } from "../icon-text/index.js";
|
|
29
30
|
import "../image/index.js";
|
|
30
31
|
import "../input/index.js";
|
|
31
32
|
import "../link/index.js";
|
|
32
33
|
import "../pagination/index.js";
|
|
33
|
-
import { VftTag as
|
|
34
|
+
import { VftTag as Q } from "../tag/index.js";
|
|
34
35
|
import "../side-menu/index.js";
|
|
35
36
|
import "../qrcode/index.js";
|
|
36
37
|
import "../overlay/index.js";
|
|
@@ -57,120 +58,125 @@ import "../verify-code/index.js";
|
|
|
57
58
|
import "../table/index.js";
|
|
58
59
|
import "../image-viewer/index.js";
|
|
59
60
|
import "./index.js";
|
|
60
|
-
import { VftMdComment as
|
|
61
|
+
import { VftMdComment as U } from "../md-comment/index.js";
|
|
61
62
|
import "../md-tabs/index.js";
|
|
62
63
|
import "../md-vue-playground/index.js";
|
|
63
64
|
import "../md-code-demo/index.js";
|
|
64
65
|
import "../md-code-tabs/index.js";
|
|
65
66
|
import "../message/index.js";
|
|
66
|
-
import { useNamespace as
|
|
67
|
+
import { useNamespace as W } from "../../hooks/use-namespace/index.js";
|
|
67
68
|
import "@popperjs/core";
|
|
68
69
|
import "lodash";
|
|
69
70
|
import "../../hooks/use-z-index/index.js";
|
|
70
71
|
import "@vueuse/core";
|
|
71
|
-
import { primaryColor as
|
|
72
|
+
import { primaryColor as X } from "../../utils/ns-cover.js";
|
|
72
73
|
import "@vue/reactivity";
|
|
73
74
|
import "@vue/shared";
|
|
74
|
-
import
|
|
75
|
-
import { useCopyCode as
|
|
76
|
-
import { useActiveHeaderLinks as
|
|
77
|
-
import { COMP_TYPE as
|
|
78
|
-
const
|
|
75
|
+
import Z from "./toc.js";
|
|
76
|
+
import { useCopyCode as tt } from "./use/useCopyCode.js";
|
|
77
|
+
import { useActiveHeaderLinks as ot } from "./use/useActiveHeaderLinks.js";
|
|
78
|
+
import { COMP_TYPE as et } from "./utils.js";
|
|
79
|
+
const it = { class: "info-container" }, rt = {
|
|
79
80
|
key: 0,
|
|
80
81
|
class: "flex align-center"
|
|
81
|
-
},
|
|
82
|
+
}, mt = { class: "infos" }, pt = {
|
|
82
83
|
class: "reading",
|
|
83
84
|
title: "阅读量"
|
|
84
|
-
},
|
|
85
|
+
}, st = ["data-path"], m = (
|
|
85
86
|
/* hoist-static*/
|
|
86
|
-
|
|
87
|
-
),
|
|
88
|
-
name:
|
|
87
|
+
W("md-container")
|
|
88
|
+
), nt = T({
|
|
89
|
+
name: m.b()
|
|
89
90
|
}), Io = /* @__PURE__ */ T({
|
|
90
|
-
...
|
|
91
|
-
setup(
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
|
|
91
|
+
...nt,
|
|
92
|
+
setup(at, { expose: V }) {
|
|
93
|
+
const w = A(), { initPhotoSwipe: D } = O(`.${m.e("content")} img`);
|
|
94
|
+
D(), ot({}), tt();
|
|
95
|
+
const n = v(), p = G();
|
|
96
|
+
P(() => {
|
|
96
97
|
B(() => {
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
n.value = w.exposed.infos, setTimeout(() => {
|
|
99
|
+
$(p.hash.replace("#", ""));
|
|
99
100
|
});
|
|
101
|
+
const i = document.querySelectorAll(".item.expand"), r = document.querySelectorAll("div.language-vue");
|
|
102
|
+
for (let o = 0; o < i.length; o++)
|
|
103
|
+
Y(i[o], "click", () => {
|
|
104
|
+
r[o].offsetHeight === 0 ? (r[o].style.height = "auto", r[o].style.visibility = "visible") : (r[o].style.height = 0 + "px", r[o].style.visibility = "hidden");
|
|
105
|
+
});
|
|
100
106
|
});
|
|
101
|
-
}),
|
|
102
|
-
infos: t(
|
|
107
|
+
}), V({
|
|
108
|
+
infos: t(n)
|
|
103
109
|
});
|
|
104
|
-
const
|
|
105
|
-
function
|
|
106
|
-
|
|
110
|
+
const b = location.pathname, { go: E } = J();
|
|
111
|
+
function S(i) {
|
|
112
|
+
E("/?tag=" + i);
|
|
107
113
|
}
|
|
108
|
-
const
|
|
109
|
-
return (
|
|
110
|
-
var
|
|
111
|
-
return
|
|
112
|
-
class:
|
|
114
|
+
const z = v(X());
|
|
115
|
+
return (i, r) => {
|
|
116
|
+
var o, d, u, f, h, g;
|
|
117
|
+
return s(), c("div", {
|
|
118
|
+
class: a(t(m).b())
|
|
113
119
|
}, [
|
|
114
|
-
(
|
|
120
|
+
(o = n.value) != null && o.sideData ? (s(), y(t(Z), {
|
|
115
121
|
key: 0,
|
|
116
|
-
items:
|
|
122
|
+
items: n.value.sideData
|
|
117
123
|
}, null, 8, ["items"])) : x("", !0),
|
|
118
|
-
|
|
119
|
-
class:
|
|
124
|
+
e("div", {
|
|
125
|
+
class: a(t(m).e("header"))
|
|
120
126
|
}, [
|
|
121
|
-
|
|
122
|
-
class:
|
|
123
|
-
}, C((
|
|
124
|
-
|
|
125
|
-
(
|
|
126
|
-
|
|
127
|
+
e("h1", {
|
|
128
|
+
class: a(t(m).e("title"))
|
|
129
|
+
}, C((d = t(p).meta) == null ? void 0 : d.title), 3),
|
|
130
|
+
e("div", it, [
|
|
131
|
+
(f = (u = t(p).meta) == null ? void 0 : u.category) != null && f.length ? (s(), c("div", rt, [
|
|
132
|
+
l(t(k), {
|
|
127
133
|
size: 14,
|
|
128
|
-
color:
|
|
134
|
+
color: z.value,
|
|
129
135
|
icon: "ico-bx:category",
|
|
130
136
|
class: "mr-8px"
|
|
131
137
|
}, null, 8, ["color"]),
|
|
132
|
-
(
|
|
138
|
+
(s(!0), c(H, null, I((h = t(p).meta) == null ? void 0 : h.category, (_, N) => (s(), y(t(Q), {
|
|
133
139
|
size: "small",
|
|
134
140
|
class: "mr-5px cursor-pointer",
|
|
135
|
-
type: t(
|
|
136
|
-
key:
|
|
137
|
-
onClick: (
|
|
141
|
+
type: t(q)(t(et), 1)[0],
|
|
142
|
+
key: N,
|
|
143
|
+
onClick: (lt) => S(_)
|
|
138
144
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
|
|
145
|
+
default: L(() => [
|
|
146
|
+
M(C(_), 1)
|
|
141
147
|
]),
|
|
142
148
|
_: 2
|
|
143
149
|
}, 1032, ["type", "onClick"]))), 128))
|
|
144
150
|
])) : x("", !0),
|
|
145
|
-
|
|
146
|
-
|
|
151
|
+
e("div", mt, [
|
|
152
|
+
l(t(K), {
|
|
147
153
|
title: "发布时间",
|
|
148
154
|
icon: "ico-uiw:date",
|
|
149
155
|
size: 12,
|
|
150
156
|
class: "mr-10px",
|
|
151
157
|
distance: 5,
|
|
152
|
-
text: t(
|
|
158
|
+
text: t(F)(new Date((g = t(p).meta) == null ? void 0 : g.date).getTime() - t(j)())
|
|
153
159
|
}, null, 8, ["text"]),
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
e("div", pt, [
|
|
161
|
+
l(t(k), {
|
|
156
162
|
icon: "ico-flat-color-icons:reading",
|
|
157
163
|
size: 14,
|
|
158
164
|
class: "mr-5px"
|
|
159
165
|
}),
|
|
160
|
-
|
|
166
|
+
e("div", {
|
|
161
167
|
class: "waline-pageview-count lh-1",
|
|
162
|
-
"data-path": t(
|
|
163
|
-
}, "0", 8,
|
|
168
|
+
"data-path": t(b)
|
|
169
|
+
}, "0", 8, st)
|
|
164
170
|
])
|
|
165
171
|
])
|
|
166
172
|
])
|
|
167
173
|
], 2),
|
|
168
|
-
|
|
169
|
-
class:
|
|
174
|
+
e("div", {
|
|
175
|
+
class: a(t(m).e("content"))
|
|
170
176
|
}, [
|
|
171
|
-
|
|
177
|
+
R(i.$slots, "default")
|
|
172
178
|
], 2),
|
|
173
|
-
|
|
179
|
+
l(t(U))
|
|
174
180
|
], 2);
|
|
175
181
|
};
|
|
176
182
|
}
|
|
@@ -8,9 +8,9 @@ function u() {
|
|
|
8
8
|
const n = t.parentElement, s = t.nextElementSibling;
|
|
9
9
|
if (!n || !s)
|
|
10
10
|
return;
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
|
|
11
|
+
const i = /language-(shellscript|shell|bash|sh|zsh)/.test(n.classList.toString());
|
|
12
|
+
let l = s.textContent;
|
|
13
|
+
i && (l = l.replace(/^ *(\$|>) /gm, "")), r(l).then(() => {
|
|
14
14
|
t.classList.add("copied"), clearTimeout(o.get(t));
|
|
15
15
|
const c = setTimeout(() => {
|
|
16
16
|
t.classList.remove("copied"), t.blur(), o.delete(t);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
mode: {
|
|
3
|
-
type: import("vue").PropType<"
|
|
3
|
+
type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
|
|
4
4
|
required: false;
|
|
5
5
|
};
|
|
6
6
|
defaultActive: {
|
|
@@ -20,7 +20,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
20
20
|
required: false;
|
|
21
21
|
};
|
|
22
22
|
menuTrigger: {
|
|
23
|
-
type: import("vue").PropType<"
|
|
23
|
+
type: import("vue").PropType<"click" | "hover" | undefined>;
|
|
24
24
|
required: false;
|
|
25
25
|
};
|
|
26
26
|
collapse: {
|
|
@@ -53,7 +53,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
53
53
|
handleResize: () => void;
|
|
54
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "select")[], "close" | "open" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
55
|
mode: {
|
|
56
|
-
type: import("vue").PropType<"
|
|
56
|
+
type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
|
|
57
57
|
required: false;
|
|
58
58
|
};
|
|
59
59
|
defaultActive: {
|
|
@@ -73,7 +73,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
73
73
|
required: false;
|
|
74
74
|
};
|
|
75
75
|
menuTrigger: {
|
|
76
|
-
type: import("vue").PropType<"
|
|
76
|
+
type: import("vue").PropType<"click" | "hover" | undefined>;
|
|
77
77
|
required: false;
|
|
78
78
|
};
|
|
79
79
|
collapse: {
|
|
@@ -21,10 +21,11 @@ import "../collapse-transition/index.js";
|
|
|
21
21
|
import { VftTooltip as R } from "../tooltip/index.js";
|
|
22
22
|
import "../popover/index.js";
|
|
23
23
|
import "./index.js";
|
|
24
|
-
import "
|
|
24
|
+
import "../context-menu/context-menu.vue2.js";
|
|
25
25
|
import "../multiple-tabs/multiple-tabs.vue2.js";
|
|
26
26
|
import "@vft/router";
|
|
27
27
|
import "@vft/store";
|
|
28
|
+
import "@vft/use";
|
|
28
29
|
import "vue-router";
|
|
29
30
|
import "../header-layout/index.js";
|
|
30
31
|
import "../footer-layout/index.js";
|
|
@@ -78,7 +79,7 @@ const W = ["title"], k = (
|
|
|
78
79
|
v("menu-item")
|
|
79
80
|
), X = S({
|
|
80
81
|
name: k.b()
|
|
81
|
-
}),
|
|
82
|
+
}), xe = /* @__PURE__ */ S({
|
|
82
83
|
...X,
|
|
83
84
|
props: {
|
|
84
85
|
index: null,
|
|
@@ -163,5 +164,5 @@ const W = ["title"], k = (
|
|
|
163
164
|
}
|
|
164
165
|
});
|
|
165
166
|
export {
|
|
166
|
-
|
|
167
|
+
xe as default
|
|
167
168
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
3
|
mode: {
|
|
4
|
-
type: __PropType<"
|
|
4
|
+
type: __PropType<"vertical" | "horizontal" | undefined>;
|
|
5
5
|
required: false;
|
|
6
6
|
};
|
|
7
7
|
defaultActive: {
|
|
@@ -21,7 +21,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
21
21
|
required: false;
|
|
22
22
|
};
|
|
23
23
|
menuTrigger: {
|
|
24
|
-
type: __PropType<"
|
|
24
|
+
type: __PropType<"click" | "hover" | undefined>;
|
|
25
25
|
required: false;
|
|
26
26
|
};
|
|
27
27
|
collapse: {
|
|
@@ -54,7 +54,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
54
54
|
handleResize: () => void;
|
|
55
55
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "select")[], "close" | "open" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
56
|
mode: {
|
|
57
|
-
type: __PropType<"
|
|
57
|
+
type: __PropType<"vertical" | "horizontal" | undefined>;
|
|
58
58
|
required: false;
|
|
59
59
|
};
|
|
60
60
|
defaultActive: {
|
|
@@ -74,7 +74,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
74
74
|
required: false;
|
|
75
75
|
};
|
|
76
76
|
menuTrigger: {
|
|
77
|
-
type: __PropType<"
|
|
77
|
+
type: __PropType<"click" | "hover" | undefined>;
|
|
78
78
|
required: false;
|
|
79
79
|
};
|
|
80
80
|
collapse: {
|
|
@@ -11,10 +11,11 @@ import { VftTooltip as pe } from "../tooltip/index.js";
|
|
|
11
11
|
import "../popover/index.js";
|
|
12
12
|
import "./index.js";
|
|
13
13
|
import { singleAttrToObj as se, renderTNode as me } from "@vft/utils";
|
|
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";
|
|
@@ -79,7 +80,7 @@ const S = (
|
|
|
79
80
|
I("sub-menu")
|
|
80
81
|
), ve = Z({
|
|
81
82
|
name: S.b()
|
|
82
|
-
}),
|
|
83
|
+
}), Ro = /* @__PURE__ */ Z({
|
|
83
84
|
...ve,
|
|
84
85
|
props: {
|
|
85
86
|
index: null,
|
|
@@ -280,5 +281,5 @@ const S = (
|
|
|
280
281
|
}
|
|
281
282
|
});
|
|
282
283
|
export {
|
|
283
|
-
|
|
284
|
+
Ro as default
|
|
284
285
|
};
|