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
|
@@ -85,7 +85,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
85
85
|
title: _ctx.title || _ctx.src,
|
|
86
86
|
onClick: openViewer
|
|
87
87
|
}), [createVNode(stdin_default$2, {
|
|
88
|
-
name: "
|
|
88
|
+
name: "co:volume-up"
|
|
89
89
|
}), createElementVNode("div", {
|
|
90
90
|
class: normalizeClass([`${unref(prefixCls)}-filename`])
|
|
91
91
|
}, toDisplayString(_ctx.name), 3
|
|
@@ -20,7 +20,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
20
20
|
return openBlock(), createElementBlock("span", {
|
|
21
21
|
class: normalizeClass([unref(hashId), unref(prefixCls)])
|
|
22
22
|
}, [createVNode(stdin_default$2, {
|
|
23
|
-
name: "
|
|
23
|
+
name: "co:close-large"
|
|
24
24
|
})], 2
|
|
25
25
|
/* CLASS */);
|
|
26
26
|
};
|
|
@@ -1,44 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
import { AudioCard } from './audio-card';
|
|
2
|
+
import { AudioViewer } from './audio-viewer';
|
|
3
|
+
import { Close } from './close';
|
|
4
|
+
import { Col } from './col';
|
|
5
|
+
import { ConfigProvider } from './config-provider';
|
|
6
|
+
import { Container } from './container';
|
|
7
|
+
import { ContextMenu, ContextMenuItem, ContextSubMenu } from './context-menu';
|
|
8
|
+
import { Copy } from './copy';
|
|
9
|
+
import { DndSort, DndSortItem } from './dnd-sort';
|
|
10
|
+
import { Editor } from './editor';
|
|
11
|
+
import { Field } from './field';
|
|
12
|
+
import { FileCard } from './file-card';
|
|
13
|
+
import { Form, FormItem } from './form';
|
|
14
|
+
import { FormDialog } from './form-dialog';
|
|
15
|
+
import { FormDrawer } from './form-drawer';
|
|
16
|
+
import { FormGroup } from './form-group';
|
|
17
|
+
import { FormList } from './form-list';
|
|
18
|
+
import { FormQuery } from './form-query';
|
|
19
|
+
import { Highlight } from './highlight';
|
|
20
|
+
import { HorizontalTree } from './horizontal-tree';
|
|
21
|
+
import { Icon } from './icon';
|
|
22
|
+
import { IconifyIcon } from './iconify-icon';
|
|
23
|
+
import { ImageCard } from './image-card';
|
|
24
|
+
import { LongText } from './long-text';
|
|
25
|
+
import { Mask } from './mask';
|
|
26
|
+
import { MediaCard } from './media-card';
|
|
27
|
+
import { MediaCardGroup } from './media-card-group';
|
|
28
|
+
import { MediaViewer } from './media-viewer';
|
|
29
|
+
import { NumberFormat } from './number-format';
|
|
30
|
+
import { OnlyChild } from './only-child';
|
|
31
|
+
import { OptionalWrapper } from './optional-wrapper';
|
|
32
|
+
import { Panel } from './panel';
|
|
33
|
+
import { Row } from './row';
|
|
34
|
+
import { ScrollView } from './scroll-view';
|
|
35
|
+
import { SnugMenu, SnugMenuItem } from './snug-menu';
|
|
36
|
+
import { SvgIcon } from './svg-icon';
|
|
37
|
+
import { Table } from './table';
|
|
38
|
+
import { TableAction } from './table-action';
|
|
39
|
+
import { Toggle } from './toggle';
|
|
40
|
+
import { Transition } from './transition';
|
|
41
|
+
import { TransitionGroup } from './transition-group';
|
|
42
|
+
import { Upload } from './upload';
|
|
43
|
+
import { VideoCard } from './video-card';
|
|
44
|
+
import { VideoViewer } from './video-viewer';
|
|
45
|
+
declare module 'vue' {
|
|
46
|
+
interface GlobalComponents {
|
|
47
|
+
CoAudioCard: typeof AudioCard;
|
|
48
|
+
CoAudioViewer: typeof AudioViewer;
|
|
49
|
+
CoClose: typeof Close;
|
|
50
|
+
CoCol: typeof Col;
|
|
51
|
+
CoConfigProvider: typeof ConfigProvider;
|
|
52
|
+
CoContainer: typeof Container;
|
|
53
|
+
CoContextMenu: typeof ContextMenu;
|
|
54
|
+
CoContextMenuItem: typeof ContextMenuItem;
|
|
55
|
+
CoContextSubMenu: typeof ContextSubMenu;
|
|
56
|
+
CoCopy: typeof Copy;
|
|
57
|
+
CoDndSort: typeof DndSort;
|
|
58
|
+
CoDndSortItem: typeof DndSortItem;
|
|
59
|
+
CoEditor: typeof Editor;
|
|
60
|
+
CoField: typeof Field;
|
|
61
|
+
CoFileCard: typeof FileCard;
|
|
62
|
+
CoForm: typeof Form;
|
|
63
|
+
CoFormDialog: typeof FormDialog;
|
|
64
|
+
CoFormDrawer: typeof FormDrawer;
|
|
65
|
+
CoFormGroup: typeof FormGroup;
|
|
66
|
+
CoFormItem: typeof FormItem;
|
|
67
|
+
CoFormList: typeof FormList;
|
|
68
|
+
CoFormQuery: typeof FormQuery;
|
|
69
|
+
CoHighlight: typeof Highlight;
|
|
70
|
+
CoHorizontalTree: typeof HorizontalTree;
|
|
71
|
+
CoIcon: typeof Icon;
|
|
72
|
+
CoIconifyIcon: typeof IconifyIcon;
|
|
73
|
+
CoImageCard: typeof ImageCard;
|
|
74
|
+
CoLongText: typeof LongText;
|
|
75
|
+
CoMask: typeof Mask;
|
|
76
|
+
CoMediaCard: typeof MediaCard;
|
|
77
|
+
CoMediaCardGroup: typeof MediaCardGroup;
|
|
78
|
+
CoMediaViewer: typeof MediaViewer;
|
|
79
|
+
CoNumberFormat: typeof NumberFormat;
|
|
80
|
+
CoOnlyChild: typeof OnlyChild;
|
|
81
|
+
CoOptionalWrapper: typeof OptionalWrapper;
|
|
82
|
+
CoPanel: typeof Panel;
|
|
83
|
+
CoRow: typeof Row;
|
|
84
|
+
CoScrollView: typeof ScrollView;
|
|
85
|
+
CoSnugMenu: typeof SnugMenu;
|
|
86
|
+
CoSnugMenuItem: typeof SnugMenuItem;
|
|
87
|
+
CoSvgIcon: typeof SvgIcon;
|
|
88
|
+
CoTable: typeof Table;
|
|
89
|
+
CoTableAction: typeof TableAction;
|
|
90
|
+
CoToggle: typeof Toggle;
|
|
91
|
+
CoTransition: typeof Transition;
|
|
92
|
+
CoTransitionGroup: typeof TransitionGroup;
|
|
93
|
+
CoUpload: typeof Upload;
|
|
94
|
+
CoVideoCard: typeof VideoCard;
|
|
95
|
+
CoVideoViewer: typeof VideoViewer;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export { AudioCard, AudioViewer, Close, Col, ConfigProvider, Container, ContextMenu, ContextMenuItem, ContextSubMenu, Copy, DndSort, DndSortItem, Editor, Field, FileCard, Form, FormItem, FormDialog, FormDrawer, FormGroup, FormList, FormQuery, Highlight, HorizontalTree, Icon, IconifyIcon, ImageCard, LongText, Mask, MediaCard, MediaCardGroup, MediaViewer, NumberFormat, OnlyChild, OptionalWrapper, Panel, Row, ScrollView, SnugMenu, SnugMenuItem, SvgIcon, Table, TableAction, Toggle, Transition, TransitionGroup, Upload, VideoCard, VideoViewer, };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { computed, inject, provide } from 'vue';
|
|
2
2
|
|
|
3
|
-
const configProviderKey = Symbol(
|
|
4
|
-
"configProvider"
|
|
5
|
-
);
|
|
3
|
+
const configProviderKey = Symbol("configProvider");
|
|
6
4
|
const defaultPrefixCls = "co";
|
|
7
5
|
const defaultConfigProvider = {
|
|
8
6
|
getPrefixCls: (suffixCls, customizePrefixCls) => {
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { type ConfigProviderProps } from './config-provider';
|
|
2
|
-
declare const hashId: import("vue").Ref<string, string>;
|
|
3
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
4
2
|
declare var __VLS_1: {};
|
|
5
|
-
type __VLS_Slots =
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
6
4
|
default?: (props: typeof __VLS_1) => any;
|
|
7
|
-
}
|
|
8
|
-
declare const __VLS_self: import("vue").DefineComponent<ConfigProviderProps, {
|
|
9
|
-
hashId: typeof hashId;
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
};
|
|
11
6
|
declare const __VLS_component: import("vue").DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
7
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
8
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _ConfigProvider: {
|
|
|
13
13
|
__isSuspense?: never;
|
|
14
14
|
} & import("vue").ComponentOptionsBase<Readonly<import("./config-provider").ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
15
15
|
$slots: {
|
|
16
|
-
default?: (
|
|
16
|
+
default?: (props: {}) => any;
|
|
17
17
|
};
|
|
18
18
|
}) & import("vue").Plugin;
|
|
19
19
|
export { _ConfigProvider as ConfigProvider };
|
|
@@ -56,7 +56,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
56
56
|
class: normalizeClass(`${unref(prefixCls)}-arrow`)
|
|
57
57
|
}, [_ctx.arrow ? (openBlock(), createBlock(stdin_default$1, {
|
|
58
58
|
key: 0,
|
|
59
|
-
name: "
|
|
59
|
+
name: "co:chevron-right",
|
|
60
60
|
class: normalizeClass(`${unref(prefixCls)}-arrow-icon`),
|
|
61
61
|
size: "lg"
|
|
62
62
|
}, null, 8, ["class"])) : createCommentVNode("v-if", true)], 2
|
|
@@ -27,7 +27,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
27
27
|
emit: __emit
|
|
28
28
|
}) {
|
|
29
29
|
const props = __props;
|
|
30
|
-
useSlots();
|
|
30
|
+
const slots = useSlots();
|
|
31
31
|
const emit = __emit;
|
|
32
32
|
const {
|
|
33
33
|
prefixCls
|
|
@@ -122,7 +122,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
122
122
|
close
|
|
123
123
|
});
|
|
124
124
|
return (_ctx, _cache) => {
|
|
125
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
125
|
+
return openBlock(), createElementBlock(Fragment, null, [slots.reference ? (openBlock(), createBlock(unref(_OnlyChild), {
|
|
126
126
|
key: 0,
|
|
127
127
|
onContextmenu: onContextMenu
|
|
128
128
|
}, {
|
|
@@ -48,7 +48,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
48
48
|
onClick: _cache[0] || (_cache[0] = $event => unref(copy)(_ctx.text || ""))
|
|
49
49
|
}, {
|
|
50
50
|
default: withCtx(() => [createVNode(unref(stdin_default$2), {
|
|
51
|
-
name: unref(copied) ? "
|
|
51
|
+
name: unref(copied) ? "co:checkmark" : "co:copy",
|
|
52
52
|
class: normalizeClass(`${unref(prefixCls)}-icon`)
|
|
53
53
|
}, null, 8, ["name", "class"])]),
|
|
54
54
|
_: 1
|
|
@@ -26,14 +26,7 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
|
|
|
26
26
|
root: true,
|
|
27
27
|
parentSelectors: []
|
|
28
28
|
}) => {
|
|
29
|
-
const {
|
|
30
|
-
hashId,
|
|
31
|
-
layer,
|
|
32
|
-
path,
|
|
33
|
-
hashPriority,
|
|
34
|
-
transformers = [],
|
|
35
|
-
linters = []
|
|
36
|
-
} = config;
|
|
29
|
+
const { hashId, layer, path, hashPriority, transformers = [], linters = [] } = config;
|
|
37
30
|
let styleStr = "";
|
|
38
31
|
let effectStyle = {};
|
|
39
32
|
function parseKeyframes(keyframes) {
|
|
@@ -67,10 +60,7 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
|
|
|
67
60
|
} else if (style._keyframe) {
|
|
68
61
|
parseKeyframes(style);
|
|
69
62
|
} else {
|
|
70
|
-
const mergedStyle = transformers.reduce(
|
|
71
|
-
(prev, trans) => trans?.visit?.(prev) || prev,
|
|
72
|
-
style
|
|
73
|
-
);
|
|
63
|
+
const mergedStyle = transformers.reduce((prev, trans) => trans?.visit?.(prev) || prev, style);
|
|
74
64
|
Object.keys(mergedStyle).forEach((key) => {
|
|
75
65
|
const value = mergedStyle[key];
|
|
76
66
|
if (typeof value === "object" && value && (key !== "animationName" || !value._keyframe) && !isCompoundCSSProperty(value)) {
|
|
@@ -87,15 +77,11 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
|
|
|
87
77
|
mergedKey = "";
|
|
88
78
|
nextRoot = true;
|
|
89
79
|
}
|
|
90
|
-
const [parsedStr, childEffectStyle] = parseStyle(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
injectHash: subInjectHash,
|
|
96
|
-
parentSelectors: [...parentSelectors, mergedKey]
|
|
97
|
-
}
|
|
98
|
-
);
|
|
80
|
+
const [parsedStr, childEffectStyle] = parseStyle(value, config, {
|
|
81
|
+
root: nextRoot,
|
|
82
|
+
injectHash: subInjectHash,
|
|
83
|
+
parentSelectors: [...parentSelectors, mergedKey]
|
|
84
|
+
});
|
|
99
85
|
effectStyle = {
|
|
100
86
|
...effectStyle,
|
|
101
87
|
...childEffectStyle
|
|
@@ -108,10 +94,7 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
|
|
|
108
94
|
(linter) => linter(cssKey, cssValue, { path, hashId, parentSelectors })
|
|
109
95
|
);
|
|
110
96
|
}
|
|
111
|
-
const styleName = cssKey.replace(
|
|
112
|
-
/[A-Z]/g,
|
|
113
|
-
(match) => `-${match.toLowerCase()}`
|
|
114
|
-
);
|
|
97
|
+
const styleName = cssKey.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
|
115
98
|
let formatValue = cssValue;
|
|
116
99
|
if (!unitless[cssKey] && typeof formatValue === "number" && formatValue !== 0) {
|
|
117
100
|
formatValue = `${formatValue}px`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, reactive, toRef, createElementBlock, openBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode } from 'vue';
|
|
2
2
|
import { useDndSortItem } from './useDndSortItem.js';
|
|
3
3
|
import stdin_default$2 from '../icon/icon.vue.js';
|
|
4
4
|
import stdin_default$1 from './style/index.js';
|
|
@@ -17,7 +17,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const props = __props;
|
|
20
|
-
useSlots();
|
|
21
20
|
const {
|
|
22
21
|
prefixCls
|
|
23
22
|
} = useComponentConfig("dnd-sort", props);
|
|
@@ -46,7 +45,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
46
45
|
}, unref(holderBinder), {
|
|
47
46
|
class: `${unref(prefixCls)}-item-holder`
|
|
48
47
|
}), [createVNode(stdin_default$2, {
|
|
49
|
-
name: "
|
|
48
|
+
name: "co:draggable",
|
|
50
49
|
size: "xl"
|
|
51
50
|
})], 16
|
|
52
51
|
/* FULL_PROPS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, toRef, createBlock, renderSlot, openBlock, resolveDynamicComponent, normalizeProps, mergeProps, withCtx } from 'vue';
|
|
2
2
|
import { useDndSort } from './useDndSort.js';
|
|
3
3
|
|
|
4
4
|
var stdin_default = /* @__PURE__ */defineComponent({
|
|
@@ -22,7 +22,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
22
22
|
emit: __emit
|
|
23
23
|
}) {
|
|
24
24
|
const props = __props;
|
|
25
|
-
useSlots();
|
|
26
25
|
const emit = __emit;
|
|
27
26
|
useDndSort({
|
|
28
27
|
onMove(fromIndex, toIndex) {
|
|
@@ -42,5 +42,5 @@ declare const _DndSortItem: {
|
|
|
42
42
|
} & import("vue").ComponentOptionsBase<Readonly<import("./dnd-sort-item").DndSortItemProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
43
43
|
$slots: import("./dnd-sort-item").DndSortItemSlots;
|
|
44
44
|
}) & import("vue").Plugin;
|
|
45
|
-
export { _DndSortItem as DndSortItem, _DndSort as DndSort, useDndSortItem, useDndSort
|
|
45
|
+
export { _DndSortItem as DndSortItem, _DndSort as DndSort, useDndSortItem, useDndSort };
|
|
46
46
|
export default _DndSort;
|
|
@@ -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_1: {};
|
|
4
|
-
type __VLS_Slots =
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
5
3
|
default?: (props: typeof __VLS_1) => 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;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
active?: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
5
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
6
4
|
declare var __VLS_1: {};
|
|
7
|
-
type __VLS_Slots =
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
8
6
|
default?: (props: typeof __VLS_1) => any;
|
|
9
|
-
}
|
|
10
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
11
|
-
prefixCls: typeof prefixCls;
|
|
12
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
};
|
|
13
8
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
14
9
|
el: Readonly<import("vue").ShallowRef<HTMLButtonElement | null>>;
|
|
15
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,51 +1,10 @@
|
|
|
1
|
-
import Picker from '../picker/picker.vue';
|
|
2
|
-
import { colorPalettes } from './color-picker';
|
|
3
|
-
import { Icon } from '../../../icon';
|
|
4
|
-
import { ElInput } from 'element-plus';
|
|
5
|
-
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
6
|
-
declare const hashId: import("vue").Ref<string, string>;
|
|
7
1
|
type __VLS_Props = {
|
|
8
2
|
visible?: boolean;
|
|
9
3
|
};
|
|
10
|
-
declare const innerVisible: import("vue").WritableComputedRef<boolean, boolean>;
|
|
11
|
-
declare const inputColor: import("vue").Ref<string, string>;
|
|
12
|
-
declare const mapHistoryColors: import("vue").ComputedRef<string[]>;
|
|
13
|
-
declare const normalInputColor: import("vue").ComputedRef<string>;
|
|
14
|
-
declare const isEyeDropperSupported: import("vue").ComputedRef<boolean>;
|
|
15
|
-
declare const onSelect: (color: string) => void;
|
|
16
|
-
declare const onCustomSelect: () => void;
|
|
17
|
-
declare const onClear: () => void;
|
|
18
|
-
declare const onAbsorb: () => void;
|
|
19
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
20
4
|
declare var __VLS_5: {};
|
|
21
|
-
type __VLS_Slots =
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
22
6
|
default?: (props: typeof __VLS_5) => any;
|
|
23
|
-
}
|
|
24
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
25
|
-
Picker: typeof Picker;
|
|
26
|
-
colorPalettes: typeof colorPalettes;
|
|
27
|
-
Icon: typeof Icon;
|
|
28
|
-
ElInput: typeof ElInput;
|
|
29
|
-
prefixCls: typeof prefixCls;
|
|
30
|
-
hashId: typeof hashId;
|
|
31
|
-
innerVisible: typeof innerVisible;
|
|
32
|
-
inputColor: typeof inputColor;
|
|
33
|
-
mapHistoryColors: typeof mapHistoryColors;
|
|
34
|
-
normalInputColor: typeof normalInputColor;
|
|
35
|
-
isEyeDropperSupported: typeof isEyeDropperSupported;
|
|
36
|
-
onSelect: typeof onSelect;
|
|
37
|
-
onCustomSelect: typeof onCustomSelect;
|
|
38
|
-
onClear: typeof onClear;
|
|
39
|
-
onAbsorb: typeof onAbsorb;
|
|
40
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
41
|
-
clear: () => any;
|
|
42
|
-
select: (color: string) => any;
|
|
43
|
-
"update:visible": (visible: boolean) => any;
|
|
44
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
45
|
-
onClear?: (() => any) | undefined;
|
|
46
|
-
onSelect?: ((color: string) => any) | undefined;
|
|
47
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
48
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
};
|
|
49
8
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
50
9
|
clear: () => any;
|
|
51
10
|
select: (color: string) => any;
|
|
@@ -84,11 +84,13 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
84
84
|
}, "\u9884\u8BBE", 2
|
|
85
85
|
/* CLASS */), createElementVNode("div", {
|
|
86
86
|
class: normalizeClass(`${unref(prefixCls)}-preset`)
|
|
87
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(colorPalettes), row => {
|
|
87
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(colorPalettes), (row, i) => {
|
|
88
88
|
return openBlock(), createElementBlock("div", {
|
|
89
|
+
key: i,
|
|
89
90
|
class: normalizeClass(`${unref(prefixCls)}-row`)
|
|
90
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(row, color => {
|
|
91
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(row, (color, j) => {
|
|
91
92
|
return openBlock(), createElementBlock("div", {
|
|
93
|
+
key: j,
|
|
92
94
|
class: normalizeClass(`${unref(prefixCls)}-item`)
|
|
93
95
|
}, [createElementVNode("button", {
|
|
94
96
|
type: "button",
|
|
@@ -99,18 +101,19 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
99
101
|
onClick: $event => onSelect(color)
|
|
100
102
|
}, null, 14, _hoisted_1)], 2
|
|
101
103
|
/* CLASS */);
|
|
102
|
-
}),
|
|
103
|
-
/*
|
|
104
|
+
}), 128
|
|
105
|
+
/* KEYED_FRAGMENT */))], 2
|
|
104
106
|
/* CLASS */);
|
|
105
|
-
}),
|
|
106
|
-
/*
|
|
107
|
+
}), 128
|
|
108
|
+
/* KEYED_FRAGMENT */))], 2
|
|
107
109
|
/* CLASS */), createElementVNode("div", {
|
|
108
110
|
class: normalizeClass(`${unref(prefixCls)}-title`)
|
|
109
111
|
}, "\u6700\u8FD1\u4F7F\u7528", 2
|
|
110
112
|
/* CLASS */), createElementVNode("div", {
|
|
111
113
|
class: normalizeClass(`${unref(prefixCls)}-row`)
|
|
112
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(mapHistoryColors.value, color => {
|
|
114
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(mapHistoryColors.value, (color, i) => {
|
|
113
115
|
return openBlock(), createElementBlock("div", {
|
|
116
|
+
key: i,
|
|
114
117
|
class: normalizeClass(`${unref(prefixCls)}-item`)
|
|
115
118
|
}, [createElementVNode("button", {
|
|
116
119
|
type: "button",
|
|
@@ -123,8 +126,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
123
126
|
onClick: $event => onSelect(color)
|
|
124
127
|
}, null, 14, _hoisted_2)], 2
|
|
125
128
|
/* CLASS */);
|
|
126
|
-
}),
|
|
127
|
-
/*
|
|
129
|
+
}), 128
|
|
130
|
+
/* KEYED_FRAGMENT */))], 2
|
|
128
131
|
/* CLASS */), createElementVNode("div", {
|
|
129
132
|
class: normalizeClass(`${unref(prefixCls)}-title`)
|
|
130
133
|
}, "\u624B\u52A8\u8BBE\u7F6E", 2
|
|
@@ -136,7 +139,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
136
139
|
class: normalizeClass([`${unref(prefixCls)}-btn`]),
|
|
137
140
|
onClick: onAbsorb
|
|
138
141
|
}, [createVNode(unref(_Icon), {
|
|
139
|
-
name: "
|
|
142
|
+
name: "co:eyedropper",
|
|
140
143
|
size: "lg"
|
|
141
144
|
})], 2
|
|
142
145
|
/* CLASS */)) : createCommentVNode("v-if", true), createVNode(unref(ElInput), {
|
|
@@ -158,7 +161,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
158
161
|
class: normalizeClass([`${unref(prefixCls)}-color`, `${unref(prefixCls)}-btn`, `${unref(prefixCls)}-clear`]),
|
|
159
162
|
onClick: onClear
|
|
160
163
|
}, [createVNode(unref(_Icon), {
|
|
161
|
-
name: "
|
|
164
|
+
name: "co:slash-forward",
|
|
162
165
|
size: "lg"
|
|
163
166
|
})], 2
|
|
164
167
|
/* CLASS */)], 2
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ElTooltip } from 'element-plus';
|
|
2
1
|
type __VLS_Props = {
|
|
3
2
|
popperClass?: any;
|
|
4
3
|
visible?: boolean;
|
|
@@ -6,24 +5,12 @@ type __VLS_Props = {
|
|
|
6
5
|
triggerTarget?: HTMLElement | null;
|
|
7
6
|
nopadding?: boolean;
|
|
8
7
|
};
|
|
9
|
-
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
10
|
-
declare const hashId: import("vue").Ref<string, string>;
|
|
11
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
12
8
|
declare var __VLS_6: {}, __VLS_8: {};
|
|
13
|
-
type __VLS_Slots =
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
14
10
|
content?: (props: typeof __VLS_6) => any;
|
|
15
11
|
} & {
|
|
16
12
|
default?: (props: typeof __VLS_8) => any;
|
|
17
|
-
}
|
|
18
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
19
|
-
ElTooltip: typeof ElTooltip;
|
|
20
|
-
prefixCls: typeof prefixCls;
|
|
21
|
-
hashId: typeof hashId;
|
|
22
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
-
"update:visible": (visible: boolean) => any;
|
|
24
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
26
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
};
|
|
27
14
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
28
15
|
"update:visible": (visible: boolean) => any;
|
|
29
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const mapIcons = {
|
|
2
|
-
left: "
|
|
3
|
-
center: "
|
|
4
|
-
right: "
|
|
2
|
+
left: "co:text-align-left",
|
|
3
|
+
center: "co:text-align-center",
|
|
4
|
+
right: "co:text-align-right"
|
|
5
5
|
};
|
|
6
6
|
const getAlign = (el) => {
|
|
7
7
|
if (!el) {
|
|
@@ -20,7 +20,7 @@ const getAlign = (el) => {
|
|
|
20
20
|
return null;
|
|
21
21
|
};
|
|
22
22
|
const onDrag = (downRect, currRect, options) => {
|
|
23
|
-
|
|
23
|
+
const { x, y } = currRect;
|
|
24
24
|
const aspectScale = downRect.width / downRect.height;
|
|
25
25
|
let width = 0;
|
|
26
26
|
switch (options.position) {
|
|
@@ -44,40 +44,17 @@ var stdin_default = getSimpleStyleHook("EditorResize", (token) => {
|
|
|
44
44
|
},
|
|
45
45
|
[`${componentCls}-align`]: {
|
|
46
46
|
position: "absolute",
|
|
47
|
+
bottom: "100%",
|
|
47
48
|
left: "50%",
|
|
48
|
-
zIndex: 1,
|
|
49
|
-
top: token.sizeXXS,
|
|
50
49
|
display: "flex",
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
fontSize: token.fontSizeXL,
|
|
60
|
-
border: `${token.lineWidth} ${token.lineType} ${token.colorBorder}`,
|
|
61
|
-
backgroundColor: token.colorBgElevated,
|
|
62
|
-
cursor: "pointer",
|
|
63
|
-
"&:hover": {
|
|
64
|
-
backgroundColor: token.colorFillSecondary
|
|
65
|
-
},
|
|
66
|
-
"&.is-active": {
|
|
67
|
-
backgroundColor: token.colorPrimaryBg
|
|
68
|
-
},
|
|
69
|
-
"&:not(:first-child)": {
|
|
70
|
-
borderLeft: "none"
|
|
71
|
-
},
|
|
72
|
-
"&:first-child": {
|
|
73
|
-
borderTopLeftRadius: token.borderRadiusSM,
|
|
74
|
-
borderBottomLeftRadius: token.borderRadiusSM
|
|
75
|
-
},
|
|
76
|
-
"&:last-child": {
|
|
77
|
-
borderTopRightRadius: token.borderRadiusSM,
|
|
78
|
-
borderBottomRightRadius: token.borderRadiusSM
|
|
79
|
-
}
|
|
80
|
-
}
|
|
50
|
+
columnGap: token.padding,
|
|
51
|
+
paddingInline: token.paddingXS,
|
|
52
|
+
paddingBlock: token.paddingXXS,
|
|
53
|
+
border: `${token.lineWidth} ${token.lineType} ${token.colorBorderSecondary}`,
|
|
54
|
+
borderRadius: token.borderRadius,
|
|
55
|
+
backgroundColor: token.colorBgElevated,
|
|
56
|
+
boxShadow: token.boxShadow,
|
|
57
|
+
transform: `translate(-50%, -4px)`
|
|
81
58
|
},
|
|
82
59
|
[`${componentCls}-size`]: {
|
|
83
60
|
position: "absolute",
|