cosey 0.1.1 → 0.1.3
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/components/audio-card/audio-card.vue.js +1 -1
- package/components/close/close.vue.js +1 -1
- package/components/components.d.ts +98 -44
- package/components/config-provider/config-provider.js +1 -3
- package/components/config-provider/config-provider.vue.d.ts +2 -7
- package/components/config-provider/index.d.ts +1 -1
- package/components/context-menu/content.vue.js +1 -1
- package/components/context-menu/context-menu.vue.js +2 -2
- package/components/copy/copy.vue.js +1 -1
- package/components/cssinjs/parser.js +8 -25
- package/components/dnd-sort/dnd-sort-item.vue.js +2 -3
- package/components/dnd-sort/dnd-sort.vue.js +1 -2
- package/components/dnd-sort/index.d.ts +1 -1
- package/components/editor/components/button-group.vue.d.ts +2 -7
- package/components/editor/components/button.vue.d.ts +2 -7
- package/components/editor/components/color-picker/color-picker.vue.d.ts +2 -43
- package/components/editor/components/color-picker/color-picker.vue.js +14 -11
- package/components/editor/components/picker/picker.vue.d.ts +2 -15
- package/components/editor/components/resize/resize.js +4 -4
- package/components/editor/components/resize/resize.style.js +9 -32
- package/components/editor/components/resize/resize.vue.js +21 -14
- package/components/editor/components/select-button.vue.d.ts +2 -9
- package/components/editor/components/select-button.vue.js +1 -1
- package/components/editor/components/split-button.vue.d.ts +2 -19
- package/components/editor/components/split-button.vue.js +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.vue.js +9 -9
- package/components/editor/components/toolbar/formats/align.vue.js +4 -4
- package/components/editor/components/toolbar/formats/blockquote.vue.js +1 -1
- package/components/editor/components/toolbar/formats/bold.vue.js +1 -1
- package/components/editor/components/toolbar/formats/clean.vue.js +1 -1
- package/components/editor/components/toolbar/formats/code-block.vue.js +1 -1
- package/components/editor/components/toolbar/formats/code.vue.js +1 -1
- package/components/editor/components/toolbar/formats/formula.vue.js +4 -3
- package/components/editor/components/toolbar/formats/image.vue.js +1 -1
- package/components/editor/components/toolbar/formats/indent.vue.js +2 -2
- package/components/editor/components/toolbar/formats/italic.vue.js +1 -1
- package/components/editor/components/toolbar/formats/link.vue.js +15 -13
- package/components/editor/components/toolbar/formats/list.vue.js +3 -3
- package/components/editor/components/toolbar/formats/script.vue.js +2 -2
- package/components/editor/components/toolbar/formats/size-delta.vue.js +2 -2
- package/components/editor/components/toolbar/formats/strike.vue.js +1 -1
- package/components/editor/components/toolbar/formats/table.vue.js +1 -1
- package/components/editor/components/toolbar/formats/underline.vue.js +1 -1
- package/components/editor/components/toolbar/formats/video.vue.js +1 -1
- package/components/editor/components/toolbar/toolbar.d.ts +1 -2
- package/components/editor/components/toolbar/toolbar.js +17 -21
- package/components/editor/components/toolbar/toolbarContext.js +1 -3
- package/components/editor/formats/image.d.ts +13 -0
- package/components/editor/formats/image.js +46 -0
- package/components/editor/formats/indent.d.ts +2 -0
- package/components/editor/formats/indent.js +12 -7
- package/components/editor/formats/link.js +1 -5
- package/components/editor/formats/list.d.ts +0 -4
- package/components/editor/formats/list.js +10 -5
- package/components/editor/formats/video.js +6 -9
- package/components/editor/modules/custom-list.js +1 -6
- package/components/editor/modules/image-uploader/formats/image-loading.style.js +3 -3
- package/components/editor/modules/image-uploader/image-uploader.js +1 -3
- package/components/editor/quill.js +7 -4
- package/components/editor/quillContext.js +1 -3
- package/components/editor/style/index.js +1 -5
- package/components/field/components/checkbox-group/panel.vue.d.ts +2 -20
- package/components/field/components/checkbox-group/panel.vue.js +2 -2
- package/components/field/components/tree-select/tree-select.d.ts +1 -2
- package/components/field/components/tree-select/tree-select.js +69 -0
- package/components/file-card/file-card.vue.js +1 -1
- package/components/form/form-item.vue.js +1 -1
- package/components/form/useFormItemWidth.js +1 -1
- package/components/form/useFormTemplate.js +2 -10
- package/components/form-dialog/form-dialog.vue.d.ts +0 -1
- package/components/form-dialog/form-dialog.vue.js +1 -1
- package/components/form-dialog/index.d.ts +0 -3
- package/components/form-group/form-group.vue.js +1 -1
- package/components/form-list/form-list.js +1 -6
- package/components/form-list/form-list.vue.js +2 -2
- package/components/form-query/form-query.vue.js +5 -5
- package/components/horizontal-tree/horizontal-tree.vue.js +16 -12
- package/components/iconify-icon/iconify-icon.d.ts +3 -0
- package/components/iconify-icon/iconify-icon.js +9 -0
- package/components/iconify-icon/iconify-icon.vue.js +2 -5
- package/components/iconify-icon/index.js +1 -0
- package/components/index.js +3 -2
- package/components/media-card-group/media-card-group.vue.js +4 -3
- package/components/scroll-view/scroll-view.vue.js +1 -2
- package/components/snug-menu/snug-menu.vue.js +1 -2
- package/components/style/animation.d.ts +5 -0
- package/components/style/animation.js +33 -0
- package/components/style/index.d.ts +1 -1
- package/components/style/index.js +2 -2
- package/components/style/mixins.d.ts +2 -0
- package/components/style/mixins.js +10 -1
- package/components/table/index.d.ts +0 -8
- package/components/table/style/index.js +2 -2
- package/components/table/table-column/renderer.js +22 -18
- package/components/table/table-column-editor/item.vue.js +4 -7
- package/components/table/table-column-editor/table-column-editor.vue.d.ts +2 -246
- package/components/table/table-column-editor/table-column-editor.vue.js +9 -9
- package/components/table/table-export/table-export.vue.js +2 -2
- package/components/table/table-query/table-query.d.ts +0 -4
- package/components/table/table-query/table-query.js +0 -4
- package/components/table/table-query/table-query.vue.d.ts +0 -9
- package/components/table/table-query/table-query.vue.js +14 -12
- package/components/table/table.js +1 -3
- package/components/table/table.vue.js +22 -24
- package/components/table/useTable.js +1 -4
- package/components/table/utils.js +1 -3
- package/components/table-action/item.vue.js +5 -5
- package/components/table-action/table-action.vue.js +4 -3
- package/components/theme/StyleContext.js +1 -3
- package/components/theme/createCacheToken.js +1 -4
- package/components/theme/getGlobalStyleHook.js +2 -5
- package/components/theme/getSimpleStyleHook.js +1 -4
- package/components/theme/getStyleHook.js +1 -4
- package/components/theme/interface/index.d.ts +1 -1
- package/components/theme/themes/shared/genColorMapToken.js +1 -4
- package/components/theme/useStyleRegister.js +1 -3
- package/components/theme/util/alias.js +4 -16
- package/components/theme/util/getAlphaColor.js +1 -6
- package/components/theme/util/normalizeStyle.js +1 -1
- package/components/theme/util/statistic.js +4 -1
- package/components/theme/util/useToken.js +1 -4
- package/components/toggle/toggle.vue.js +1 -1
- package/components/transition/transition.vue.js +1 -2
- package/components/upload/upload-item.vue.js +8 -8
- package/components/upload/upload.vue.js +1 -1
- package/components/video-card/video-card.vue.js +1 -1
- package/config/index.d.ts +1 -0
- package/config/index.js +2 -7
- package/config/layout.d.ts +36 -0
- package/config/layout.js +37 -1
- package/config/nprogress.style.d.ts +2 -0
- package/config/nprogress.style.js +51 -0
- package/config/root-config-provider.vue.d.ts +2 -20
- package/config/root-config-provider.vue.js +2 -0
- package/hooks/useColorScheme.js +5 -9
- package/hooks/useEcharts.js +2 -4
- package/hooks/useFetch.d.ts +1 -1
- package/hooks/useFetch.js +1 -7
- package/hooks/useFullPage.js +7 -9
- package/hooks/useLocale.js +1 -3
- package/hooks/useLockscreenObserver.js +1 -1
- package/hooks/usePersist.js +1 -3
- package/hooks/useTreeCheck.js +13 -26
- package/hooks/useUpsert.d.ts +3 -3
- package/index.d.ts +1 -0
- package/index.js +5 -4
- package/layout/index.js +2 -2
- package/layout/layout-aside/layout-aside.vue.js +2 -1
- package/layout/layout-base/layout-base.vue.js +1 -1
- package/layout/layout-change-password/layout-change-password.vue.js +8 -8
- package/layout/layout-change-password/style/index.js +1 -1
- package/layout/layout-color-scheme/layout-color-scheme.vue.js +8 -14
- package/layout/layout-color-scheme/style/index.d.ts +0 -3
- package/layout/layout-color-scheme/style/index.js +26 -44
- package/layout/layout-content/layout-content.vue.d.ts +2 -13
- package/layout/layout-forbidden/layout-forbidden.vue.js +2 -2
- package/layout/layout-header/layout-header.vue.d.ts +2 -14
- package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +2 -2
- package/layout/layout-login/layout-login.vue.js +5 -5
- package/layout/layout-login/style/index.js +1 -1
- package/layout/layout-mask/style/index.js +1 -1
- package/layout/layout-not-found/layout-not-found.vue.js +2 -2
- package/layout/layout-search/layout-search.vue.js +37 -34
- package/layout/layout-sidebar/layout-sidebar.vue.d.ts +2 -15
- package/layout/layout-sidebar/style/index.js +1 -1
- package/layout/layout-switch-effect/layout-switch-effect.vue.d.ts +2 -7
- package/layout/layout-tabbar/layout-tabbar.vue.js +2 -2
- package/layout/layout-tabbar/reload.vue.js +1 -1
- package/layout/layout-tabbar/style/index.js +2 -2
- package/layout/layout-toggle/layout-toggle.vue.js +1 -1
- package/layout/layout-top-snug-menu/layout-top-snug-menu.vue.js +4 -3
- package/layout/layout-topbar/layout-topbar.vue.d.ts +2 -1217
- package/layout/layout-user-menu/index.d.ts +1 -0
- package/layout/layout-user-menu/index.js +1 -0
- package/layout/{layout-user/layout-user.vue.js → layout-user-menu/layout-user-menu.vue.js} +18 -13
- package/layout/{layout-user → layout-user-menu}/style/index.js +9 -5
- package/layout/layout.d.ts +1 -1
- package/layout/layout.js +1 -1
- package/layout/merged/index.d.ts +1 -1
- package/layout/merged/index.js +1 -1
- package/layout/merged/{layout-user.js → layout-user-menu.js} +1 -1
- package/layout/utils.js +1 -4
- package/package.json +16 -6
- package/request/useRequest.js +1 -1
- package/router/guard/auth.js +2 -5
- package/router/guard/index.js +0 -2
- package/router/guard/progress.js +11 -1
- package/router/index.d.ts +22 -0
- package/store/layout.d.ts +2 -8
- package/store/layout.js +19 -31
- package/store/user.d.ts +1 -1
- package/store/user.js +1 -1
- package/utils/array.js +3 -0
- package/utils/excel/index.js +1 -3
- package/utils/excel/utils.js +1 -5
- package/utils/file.js +1 -3
- package/utils/object.js +1 -3
- package/utils/tree.js +2 -11
- package/utils/vue.js +1 -1
- package/components/global.d.js +0 -1
- package/components/style/motion/index.d.ts +0 -1
- package/components/style/motion/index.js +0 -1
- package/components/style/motion/loading.d.ts +0 -3
- package/components/style/motion/loading.js +0 -23
- package/layout/layout-user/index.d.ts +0 -1
- package/layout/layout-user/index.js +0 -1
- package/router/guard/popup.d.ts +0 -2
- package/router/guard/popup.js +0 -6
- package/types/vue-router.d.js +0 -1
- package/types/vue.d.js +0 -1
- /package/layout/{layout-user/layout-user.vue.d.ts → layout-user-menu/layout-user-menu.vue.d.ts} +0 -0
- /package/layout/{layout-user → layout-user-menu}/style/index.d.ts +0 -0
- /package/layout/merged/{layout-user.d.ts → layout-user-menu.d.ts} +0 -0
|
@@ -1,57 +1,39 @@
|
|
|
1
1
|
import { getGlobalStyleHook } from '../../../components/theme/getGlobalStyleHook.js';
|
|
2
2
|
import { getSimpleStyleHook } from '../../../components/theme/getSimpleStyleHook.js';
|
|
3
|
-
import
|
|
3
|
+
import { rotation45 } from '../../../components/style/animation.js';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const useGlobalStyle = getGlobalStyleHook("LayoutColorSchemeGlobal", () => {
|
|
6
|
+
return {
|
|
7
|
+
"::view-transition-old(root), ::view-transition-new(root)": {
|
|
8
|
+
animation: "none",
|
|
9
|
+
mixBlendMode: "normal"
|
|
10
|
+
},
|
|
11
|
+
"::view-transition-old(root)": {
|
|
12
|
+
zIndex: 1
|
|
13
|
+
},
|
|
14
|
+
"::view-transition-new(root)": {
|
|
15
|
+
zIndex: 2147483646
|
|
16
|
+
},
|
|
17
|
+
".dark::view-transition-old(root)": {
|
|
18
|
+
zIndex: 2147483646
|
|
19
|
+
},
|
|
20
|
+
".dark::view-transition-new(root)": {
|
|
21
|
+
zIndex: 1
|
|
22
|
+
}
|
|
23
|
+
};
|
|
12
24
|
});
|
|
13
|
-
const useGlobalStyle = getGlobalStyleHook(
|
|
14
|
-
"LayoutColorSchemeGlobal",
|
|
15
|
-
() => {
|
|
16
|
-
return {
|
|
17
|
-
"::view-transition-old(root), ::view-transition-new(root)": {
|
|
18
|
-
animation: "none",
|
|
19
|
-
mixBlendMode: "normal"
|
|
20
|
-
},
|
|
21
|
-
"::view-transition-old(root)": {
|
|
22
|
-
zIndex: 1
|
|
23
|
-
},
|
|
24
|
-
"::view-transition-new(root)": {
|
|
25
|
-
zIndex: 2147483646
|
|
26
|
-
},
|
|
27
|
-
".dark::view-transition-old(root)": {
|
|
28
|
-
zIndex: 2147483646
|
|
29
|
-
},
|
|
30
|
-
".dark::view-transition-new(root)": {
|
|
31
|
-
zIndex: 1
|
|
32
|
-
},
|
|
33
|
-
"::view-transition-new(layout-color-scheme-icon-sunny)": {
|
|
34
|
-
animationDuration: "0.8s",
|
|
35
|
-
animationFillMode: "both",
|
|
36
|
-
animationName: sunnyIn
|
|
37
|
-
},
|
|
38
|
-
"::view-transition-old(layout-color-scheme-icon-sunny)": {
|
|
39
|
-
animationDuration: "0.4s",
|
|
40
|
-
animationFillMode: "both",
|
|
41
|
-
animationName: sunnyOut
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
25
|
var stdin_default = getSimpleStyleHook("LayoutColorScheme", (token) => {
|
|
47
26
|
const { componentCls } = token;
|
|
48
27
|
return {
|
|
49
28
|
[componentCls]: {
|
|
50
|
-
[`${componentCls}-icon
|
|
51
|
-
|
|
29
|
+
[`${componentCls}-icon`]: {
|
|
30
|
+
"&.is-light": {
|
|
31
|
+
animationName: rotation45,
|
|
32
|
+
animationDuration: "1s"
|
|
33
|
+
}
|
|
52
34
|
}
|
|
53
35
|
}
|
|
54
36
|
};
|
|
55
37
|
});
|
|
56
38
|
|
|
57
|
-
export { stdin_default as default,
|
|
39
|
+
export { stdin_default as default, useGlobalStyle };
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
2
|
-
declare const hashId: import("vue").Ref<string, string>;
|
|
3
|
-
declare const contentStyle: import("vue").ComputedRef<{
|
|
4
|
-
marginLeft: string;
|
|
5
|
-
}>;
|
|
6
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
1
|
declare var __VLS_1: {};
|
|
8
|
-
type __VLS_Slots =
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
9
3
|
default?: (props: typeof __VLS_1) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const __VLS_self: import("vue").DefineComponent<{}, {
|
|
12
|
-
prefixCls: typeof prefixCls;
|
|
13
|
-
hashId: typeof hashId;
|
|
14
|
-
contentStyle: typeof contentStyle;
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
};
|
|
16
5
|
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
6
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
7
|
export default _default;
|
|
@@ -24,8 +24,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
24
24
|
type: "primary"
|
|
25
25
|
}, {
|
|
26
26
|
default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode("\u8FD4\u56DE\u4E3B\u9875")])),
|
|
27
|
-
_: 1
|
|
28
|
-
|
|
27
|
+
_: 1,
|
|
28
|
+
__: [0]
|
|
29
29
|
})]),
|
|
30
30
|
_: 1
|
|
31
31
|
/* STABLE */
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
2
|
-
declare const hashId: import("vue").Ref<string, string>;
|
|
3
|
-
declare const headerStyle: import("vue").ComputedRef<{
|
|
4
|
-
left: string | number;
|
|
5
|
-
paddingRight: string | number;
|
|
6
|
-
}>;
|
|
7
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
1
|
declare var __VLS_1: {};
|
|
9
|
-
type __VLS_Slots =
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
10
3
|
default?: (props: typeof __VLS_1) => any;
|
|
11
|
-
}
|
|
12
|
-
declare const __VLS_self: import("vue").DefineComponent<{}, {
|
|
13
|
-
prefixCls: typeof prefixCls;
|
|
14
|
-
hashId: typeof hashId;
|
|
15
|
-
headerStyle: typeof headerStyle;
|
|
16
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
};
|
|
17
5
|
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
6
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
7
|
export default _default;
|
|
@@ -24,8 +24,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
24
24
|
type: "primary"
|
|
25
25
|
}, {
|
|
26
26
|
default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode("\u8FD4\u56DE\u4E3B\u9875")])),
|
|
27
|
-
_: 1
|
|
28
|
-
|
|
27
|
+
_: 1,
|
|
28
|
+
__: [0]
|
|
29
29
|
})]),
|
|
30
30
|
_: 1
|
|
31
31
|
/* STABLE */
|
|
@@ -43,7 +43,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
43
43
|
ref_key: "formRef",
|
|
44
44
|
ref: formRef,
|
|
45
45
|
model: formState,
|
|
46
|
-
onKeyup: withKeys(withModifiers(onSubmit, ["prevent"]), ["enter"
|
|
46
|
+
onKeyup: withKeys(withModifiers(onSubmit, ["prevent"]), ["enter"])
|
|
47
47
|
}, {
|
|
48
48
|
default: withCtx(() => [createVNode(_component_el_form_item, {
|
|
49
49
|
prop: "username",
|
|
@@ -59,7 +59,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
59
59
|
placeholder: "\u7528\u6237\u540D"
|
|
60
60
|
}, {
|
|
61
61
|
prefix: withCtx(() => [createVNode(_component_co_icon, {
|
|
62
|
-
name: "
|
|
62
|
+
name: "co:user",
|
|
63
63
|
class: normalizeClass(`${unref(prefixCls)}-icon`)
|
|
64
64
|
}, null, 8, ["class"])]),
|
|
65
65
|
_: 1
|
|
@@ -83,7 +83,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
83
83
|
placeholder: "\u5BC6\u7801"
|
|
84
84
|
}, {
|
|
85
85
|
prefix: withCtx(() => [createVNode(_component_co_icon, {
|
|
86
|
-
name: "
|
|
86
|
+
name: "co:password",
|
|
87
87
|
class: normalizeClass(`${unref(prefixCls)}-icon`)
|
|
88
88
|
}, null, 8, ["class"])]),
|
|
89
89
|
_: 1
|
|
@@ -99,8 +99,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
99
99
|
onClick: onSubmit
|
|
100
100
|
}, {
|
|
101
101
|
default: withCtx(() => _cache[2] || (_cache[2] = [createTextVNode(" \u767B\u5F55 ")])),
|
|
102
|
-
_: 1
|
|
103
|
-
|
|
102
|
+
_: 1,
|
|
103
|
+
__: [2]
|
|
104
104
|
}, 8, ["class", "loading"])]),
|
|
105
105
|
_: 1
|
|
106
106
|
/* STABLE */
|
|
@@ -5,7 +5,7 @@ var stdin_default = getSimpleStyleHook("LayoutLogin", (token) => {
|
|
|
5
5
|
return {
|
|
6
6
|
[componentCls]: {
|
|
7
7
|
[`${componentCls}-title`]: {
|
|
8
|
-
marginBlockEnd: token.
|
|
8
|
+
marginBlockEnd: token.marginXL,
|
|
9
9
|
textAlign: "center",
|
|
10
10
|
fontSize: token.fontSizeXL,
|
|
11
11
|
lineHeight: token.lineHeightHeading2,
|
|
@@ -24,8 +24,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
24
24
|
type: "primary"
|
|
25
25
|
}, {
|
|
26
26
|
default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode("\u8FD4\u56DE\u4E3B\u9875")])),
|
|
27
|
-
_: 1
|
|
28
|
-
|
|
27
|
+
_: 1,
|
|
28
|
+
__: [0]
|
|
29
29
|
})]),
|
|
30
30
|
_: 1
|
|
31
31
|
/* STABLE */
|
|
@@ -96,32 +96,36 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
96
96
|
switch (event.key) {
|
|
97
97
|
case "ArrowDown":
|
|
98
98
|
case "ArrowUp":
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
index
|
|
105
|
-
|
|
106
|
-
index
|
|
99
|
+
{
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
const delta = event.key === "ArrowDown" ? 1 : -1;
|
|
102
|
+
let index = activeIndex.value + delta;
|
|
103
|
+
const length = searchResult.value.length;
|
|
104
|
+
if (index < 0) {
|
|
105
|
+
index = length - 1;
|
|
106
|
+
} else if (index >= length) {
|
|
107
|
+
index = 0;
|
|
108
|
+
}
|
|
109
|
+
activeIndex.value = index;
|
|
110
|
+
const el = itemRef.value[index];
|
|
111
|
+
if (el) {
|
|
112
|
+
el.scrollIntoView({
|
|
113
|
+
behavior: "instant",
|
|
114
|
+
block: "nearest"
|
|
115
|
+
});
|
|
116
|
+
timeout.start();
|
|
117
|
+
}
|
|
118
|
+
return;
|
|
107
119
|
}
|
|
108
|
-
activeIndex.value = index;
|
|
109
|
-
const el = itemRef.value[index];
|
|
110
|
-
if (el) {
|
|
111
|
-
el.scrollIntoView({
|
|
112
|
-
behavior: "instant",
|
|
113
|
-
block: "nearest"
|
|
114
|
-
});
|
|
115
|
-
timeout.start();
|
|
116
|
-
}
|
|
117
|
-
return;
|
|
118
120
|
case "Enter":
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
{
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
const item = searchResult.value[activeIndex.value];
|
|
124
|
+
if (item) {
|
|
125
|
+
onSelect(item);
|
|
126
|
+
}
|
|
127
|
+
return;
|
|
123
128
|
}
|
|
124
|
-
return;
|
|
125
129
|
}
|
|
126
130
|
};
|
|
127
131
|
const onMouseEnter = index => {
|
|
@@ -147,12 +151,12 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
147
151
|
default: withCtx(() => [unref(layoutStore).isMobile ? (openBlock(), createBlock(unref(_Icon), {
|
|
148
152
|
key: 0,
|
|
149
153
|
size: "xl",
|
|
150
|
-
name: "
|
|
154
|
+
name: "co:search"
|
|
151
155
|
})) : (openBlock(), createElementBlock("div", {
|
|
152
156
|
key: 1,
|
|
153
157
|
class: normalizeClass(`${unref(prefixCls)}-button-wrapper`)
|
|
154
158
|
}, [createVNode(unref(_Icon), {
|
|
155
|
-
name: "
|
|
159
|
+
name: "co:search",
|
|
156
160
|
size: "lg"
|
|
157
161
|
}), createElementVNode("span", {
|
|
158
162
|
class: normalizeClass(`${unref(prefixCls)}-button-text`)
|
|
@@ -185,7 +189,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
185
189
|
onKeydown
|
|
186
190
|
}, {
|
|
187
191
|
prefix: withCtx(() => [createVNode(unref(_Icon), {
|
|
188
|
-
name: "
|
|
192
|
+
name: "co:search",
|
|
189
193
|
size: "xl",
|
|
190
194
|
class: normalizeClass(`${unref(prefixCls)}-input-icon`)
|
|
191
195
|
}, null, 8, ["class"])]),
|
|
@@ -195,20 +199,19 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
195
199
|
footer: withCtx(() => [createElementVNode("div", {
|
|
196
200
|
class: normalizeClass(`${unref(prefixCls)}-footer`)
|
|
197
201
|
}, [createElementVNode("div", null, [createVNode(unref(_Icon), {
|
|
198
|
-
name: "
|
|
202
|
+
name: "co:return"
|
|
199
203
|
}), createElementVNode("span", {
|
|
200
204
|
class: normalizeClass(`${unref(prefixCls)}-footer-text`)
|
|
201
205
|
}, "\u9009\u62E9", 2
|
|
202
206
|
/* CLASS */)]), createElementVNode("div", null, [createVNode(unref(_Icon), {
|
|
203
|
-
name: "
|
|
207
|
+
name: "co:arrow-up"
|
|
204
208
|
}), createVNode(unref(_Icon), {
|
|
205
|
-
name: "
|
|
209
|
+
name: "co:arrow-down"
|
|
206
210
|
}), createElementVNode("span", {
|
|
207
211
|
class: normalizeClass(`${unref(prefixCls)}-footer-text`)
|
|
208
212
|
}, "\u5207\u6362", 2
|
|
209
|
-
/* CLASS */)]), createElementVNode("div", null, [
|
|
210
|
-
|
|
211
|
-
}), createElementVNode("span", {
|
|
213
|
+
/* CLASS */)]), createElementVNode("div", null, [_cache[4] || (_cache[4] = createElementVNode("small", null, "Esc", -1
|
|
214
|
+
/* HOISTED */)), createElementVNode("span", {
|
|
212
215
|
class: normalizeClass(`${unref(prefixCls)}-footer-text`)
|
|
213
216
|
}, "\u5173\u95ED", 2
|
|
214
217
|
/* CLASS */)])], 2
|
|
@@ -220,7 +223,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
220
223
|
default: withCtx(() => [searchResult.value.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
221
224
|
key: 0,
|
|
222
225
|
class: normalizeClass(`${unref(prefixCls)}-empty`)
|
|
223
|
-
}, "
|
|
226
|
+
}, "\u6682\u65E0\u641C\u7D22\u7ED3\u679C", 2
|
|
224
227
|
/* CLASS */)) : (openBlock(true), createElementBlock(Fragment, {
|
|
225
228
|
key: 1
|
|
226
229
|
}, renderList(searchResult.value, (item, index) => {
|
|
@@ -235,7 +238,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
235
238
|
onClick: $event => onSelect(item)
|
|
236
239
|
}, [createElementVNode("div", null, toDisplayString(item.label), 1
|
|
237
240
|
/* TEXT */), withDirectives(createVNode(unref(_Icon), {
|
|
238
|
-
name: "
|
|
241
|
+
name: "co:return",
|
|
239
242
|
size: "xl",
|
|
240
243
|
class: normalizeClass(`${unref(prefixCls)}-enter`)
|
|
241
244
|
}, null, 8, ["class"]), [[vShow, activeIndex.value === index]])], 42, _hoisted_1);
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
2
|
-
declare const hashId: import("vue").Ref<string, string>;
|
|
3
|
-
declare const sidebarStyle: import("vue").ComputedRef<{
|
|
4
|
-
marginTop: string;
|
|
5
|
-
height: string;
|
|
6
|
-
transform: string | undefined;
|
|
7
|
-
}>;
|
|
8
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
1
|
declare var __VLS_1: {};
|
|
10
|
-
type __VLS_Slots =
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
11
3
|
default?: (props: typeof __VLS_1) => any;
|
|
12
|
-
}
|
|
13
|
-
declare const __VLS_self: import("vue").DefineComponent<{}, {
|
|
14
|
-
prefixCls: typeof prefixCls;
|
|
15
|
-
hashId: typeof hashId;
|
|
16
|
-
sidebarStyle: typeof sidebarStyle;
|
|
17
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
};
|
|
18
5
|
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
6
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
7
|
export default _default;
|
|
@@ -7,7 +7,7 @@ var stdin_default = getSimpleStyleHook("LayoutSidebar", (token) => {
|
|
|
7
7
|
position: "fixed",
|
|
8
8
|
top: 0,
|
|
9
9
|
left: 0,
|
|
10
|
-
zIndex:
|
|
10
|
+
zIndex: 1020,
|
|
11
11
|
display: "flex",
|
|
12
12
|
backgroundColor: token.colorBgContainer,
|
|
13
13
|
transition: `transform ${token.motionDurationSlow}, with ${token.motionDurationSlow}`
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
2
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
3
1
|
declare var __VLS_5: {};
|
|
4
|
-
type __VLS_Slots =
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
5
3
|
default?: (props: typeof __VLS_5) => any;
|
|
6
|
-
}
|
|
7
|
-
declare const __VLS_self: import("vue").DefineComponent<{}, {
|
|
8
|
-
prefixCls: typeof prefixCls;
|
|
9
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
};
|
|
10
5
|
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
6
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
7
|
export default _default;
|
|
@@ -123,12 +123,12 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
123
123
|
/* CLASS */)]),
|
|
124
124
|
default: withCtx(() => [createVNode(unref(_ContextMenuItem), {
|
|
125
125
|
title: "\u91CD\u65B0\u52A0\u8F7D",
|
|
126
|
-
icon: "
|
|
126
|
+
icon: "co:rotate-360",
|
|
127
127
|
disabled: item.name !== unref(layoutStore).activeTab,
|
|
128
128
|
onClick: _cache[0] || (_cache[0] = $event => unref(layoutStore).reload())
|
|
129
129
|
}, null, 8, ["disabled"]), createVNode(unref(_ContextMenuItem), {
|
|
130
130
|
title: "\u5173\u95ED",
|
|
131
|
-
icon: "
|
|
131
|
+
icon: "co:close-large",
|
|
132
132
|
disabled: !item.meta.closable,
|
|
133
133
|
divided: "",
|
|
134
134
|
onClick: $event => closeTab(item.name)
|
|
@@ -33,7 +33,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
33
33
|
onClick: _cache[0] || (_cache[0] = $event => unref(layoutStore).reload())
|
|
34
34
|
}, {
|
|
35
35
|
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
36
|
-
name: "
|
|
36
|
+
name: "co:rotate-360",
|
|
37
37
|
size: "xl",
|
|
38
38
|
class: normalizeClass([`${unref(prefixCls)}-reload-icon`, {
|
|
39
39
|
"is-spinning": spinning.value
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { loadingRotate } from '../../../components/style/motion/loading.js';
|
|
2
1
|
import { getSimpleStyleHook } from '../../../components/theme/getSimpleStyleHook.js';
|
|
2
|
+
import { contrarotation } from '../../../components/style/animation.js';
|
|
3
3
|
|
|
4
4
|
var stdin_default = getSimpleStyleHook("LayoutTabbar", (token) => {
|
|
5
5
|
const { componentCls } = token;
|
|
@@ -54,7 +54,7 @@ var stdin_default = getSimpleStyleHook("LayoutTabbar", (token) => {
|
|
|
54
54
|
},
|
|
55
55
|
[`${componentCls}-reload-icon`]: {
|
|
56
56
|
"&.is-spinning": {
|
|
57
|
-
animationName:
|
|
57
|
+
animationName: contrarotation,
|
|
58
58
|
animationDuration: "0.6s",
|
|
59
59
|
animationTimingFunction: "linear",
|
|
60
60
|
animationIterationCount: "infinite"
|
|
@@ -19,7 +19,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
19
19
|
onClick: withModifiers(toggle, ["stop"])
|
|
20
20
|
}, {
|
|
21
21
|
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
22
|
-
name: unref(layoutStore).sidebarVisible ? "
|
|
22
|
+
name: unref(layoutStore).sidebarVisible ? "co:side-panel-close" : "co:side-panel-open",
|
|
23
23
|
size: "xl"
|
|
24
24
|
}, null, 8, ["name"])]),
|
|
25
25
|
_: 1
|
|
@@ -29,16 +29,17 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
29
29
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => unref(layoutStore).topActive = $event),
|
|
30
30
|
mode: "horizontal"
|
|
31
31
|
}, {
|
|
32
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutStore).topMenus, item => {
|
|
32
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutStore).topMenus, (item, i) => {
|
|
33
33
|
return openBlock(), createBlock(unref(_SnugMenuItem), {
|
|
34
|
+
key: i,
|
|
34
35
|
name: item.name,
|
|
35
36
|
index: item.name,
|
|
36
37
|
icon: item.icon,
|
|
37
38
|
title: item.title,
|
|
38
39
|
onClick: $event => onClick(item)
|
|
39
40
|
}, null, 8, ["name", "index", "icon", "title", "onClick"]);
|
|
40
|
-
}),
|
|
41
|
-
/*
|
|
41
|
+
}), 128
|
|
42
|
+
/* KEYED_FRAGMENT */))]),
|
|
42
43
|
_: 1
|
|
43
44
|
/* STABLE */
|
|
44
45
|
}, 8, ["modelValue"]);
|