@veltra/desktop 1.2.22 → 1.2.23
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/dist/components/action/action-group.vue.d.ts +2 -2
- package/dist/components/action/action.vue.d.ts +1 -1
- package/dist/components/action/style2.css +0 -12
- package/dist/components/auto-complete/auto-complete.vue.d.ts +2 -2
- package/dist/components/batch-edit/batch-edit.vue.d.ts +2 -2
- package/dist/components/batch-edit/style2.css +2 -2
- package/dist/components/cascade/cascade.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
- package/dist/components/collapse/style2.css +5 -5
- package/dist/components/date-panel/date-panel.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
- package/dist/components/file-picker/file-picker.vue.d.ts +1 -1
- package/dist/components/file-viewer/style2.css +24 -9
- package/dist/components/input/input.vue.d.ts +4 -4
- package/dist/components/kbd/style2.css +1 -1
- package/dist/components/loading/style2.css +3 -3
- package/dist/components/multi-select/multi-select.vue.d.ts +3 -3
- package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +5 -5
- package/dist/components/nav/nav-sub.js +1 -1
- package/dist/components/nav/nav-sub.js.map +1 -1
- package/dist/components/nav/style2.css +3 -5
- package/dist/components/number/number.vue.d.ts +1 -1
- package/dist/components/number-input/number-input.vue.d.ts +4 -4
- package/dist/components/number-range-input/number-range-input.vue.d.ts +1 -1
- package/dist/components/password-input/password-input.vue.d.ts +1 -1
- package/dist/components/radio-group/radio-group.vue.d.ts +2 -2
- package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
- package/dist/components/select/select.vue.d.ts +2 -2
- package/dist/components/textarea/textarea.vue.d.ts +4 -4
- package/dist/components/tree-select/tree-select.vue.d.ts +5 -5
- package/package.json +6 -6
- package/src/components/action/style.scss +0 -11
- package/src/components/batch-edit/style.scss +3 -7
- package/src/components/collapse/style.scss +5 -25
- package/src/components/file-viewer/style.scss +24 -9
- package/src/components/kbd/style.scss +3 -4
- package/src/components/loading/style.scss +3 -3
- package/src/components/nav/nav-sub.vue +1 -1
- package/src/components/nav/style.scss +3 -5
|
@@ -6,11 +6,11 @@ type __VLS_Slots = {
|
|
|
6
6
|
default?: () => VNode[];
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<ActionGroupProps, _ActionGroupExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ActionGroupProps> & Readonly<{}>, {
|
|
9
|
-
size: "small" | "default" | "large";
|
|
10
9
|
type: import("@veltra/utils").ColorType;
|
|
10
|
+
size: "small" | "default" | "large";
|
|
11
|
+
max: number;
|
|
11
12
|
text: boolean;
|
|
12
13
|
circle: boolean;
|
|
13
|
-
max: number;
|
|
14
14
|
loading: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_base: import("vue").DefineComponent<ActionProps, {}, {}, {},
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<ActionProps> & Readonly<{
|
|
13
13
|
onRun?: (() => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
size: import("@veltra/utils").ComponentSize;
|
|
16
15
|
type: ButtonType;
|
|
16
|
+
size: import("@veltra/utils").ComponentSize;
|
|
17
17
|
text: boolean;
|
|
18
18
|
circle: boolean;
|
|
19
19
|
loading: boolean;
|
|
@@ -15,18 +15,6 @@
|
|
|
15
15
|
* --u-height-small: 24px;
|
|
16
16
|
*/
|
|
17
17
|
/** 暗色:data-theme 与系统偏好,与 UITheme.injectBuiltInThemes 选择器策略一致 */
|
|
18
|
-
.u-action-group {
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
vertical-align: middle;
|
|
22
|
-
gap: 2px;
|
|
23
|
-
padding: 2px 4px;
|
|
24
|
-
border-radius: 999px;
|
|
25
|
-
background-color: color-mix(in srgb, var(--u-bg-color-top) 70%, transparent);
|
|
26
|
-
backdrop-filter: var(--u-bg-filter);
|
|
27
|
-
-webkit-backdrop-filter: var(--u-bg-filter);
|
|
28
|
-
box-shadow: 0 1px 4px color-mix(in srgb, var(--u-shadow-color) 35%, transparent);
|
|
29
|
-
}
|
|
30
18
|
.u-action-group__more {
|
|
31
19
|
flex-shrink: 0;
|
|
32
20
|
}
|
|
@@ -22,10 +22,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, _Auto
|
|
|
22
22
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
23
|
onSelect?: ((value: string) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
readonly: boolean;
|
|
27
25
|
placeholder: string;
|
|
28
26
|
clearable: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
readonly: boolean;
|
|
29
29
|
allowCustom: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -6,20 +6,20 @@ declare const __VLS_base: import("vue").DefineComponent<BatchEditProps, {}, {},
|
|
|
6
6
|
"update:selected": (value: Record<string, any> | undefined) => any;
|
|
7
7
|
"update:checked": (value: Record<string, any>[]) => any;
|
|
8
8
|
"update:current": (row?: TableRow | undefined) => any;
|
|
9
|
-
"update:data": (value: Record<string, any>[]) => any;
|
|
10
9
|
"update:rows": (rows: TableRow[]) => any;
|
|
11
10
|
"update:forest": (rows?: import("@cat-kit/core").Forest<Record<string, unknown>, any> | undefined) => any;
|
|
12
11
|
"cell-click": (row: TableRow, column: TableColumn, ev: MouseEvent) => any;
|
|
13
12
|
"row-click": (row: TableRow, ev: MouseEvent) => any;
|
|
13
|
+
"update:data": (value: Record<string, any>[]) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<BatchEditProps> & Readonly<{
|
|
15
15
|
"onUpdate:selected"?: ((value: Record<string, any> | undefined) => any) | undefined;
|
|
16
16
|
"onUpdate:checked"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
17
17
|
"onUpdate:current"?: ((row?: TableRow | undefined) => any) | undefined;
|
|
18
|
-
"onUpdate:data"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
19
18
|
"onUpdate:rows"?: ((rows: TableRow[]) => any) | undefined;
|
|
20
19
|
"onUpdate:forest"?: ((rows?: import("@cat-kit/core").Forest<Record<string, unknown>, any> | undefined) => any) | undefined;
|
|
21
20
|
"onCell-click"?: ((row: TableRow, column: TableColumn, ev: MouseEvent) => any) | undefined;
|
|
22
21
|
"onRow-click"?: ((row: TableRow, ev: MouseEvent) => any) | undefined;
|
|
22
|
+
"onUpdate:data"?: ((value: Record<string, any>[]) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
cols: string | [string, string];
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
background-color: var(--u-bg-color-top);
|
|
53
53
|
border-radius: var(--u-batch-edit-form-radius);
|
|
54
|
-
box-shadow: 0 1px 2px
|
|
54
|
+
box-shadow: 0 1px 2px var(--u-shadow-color-a-40), 0 12px 32px -16px var(--u-shadow-color-a-50);
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
isolation: isolate;
|
|
57
57
|
min-height: 0;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
gap: 12px;
|
|
63
63
|
padding: 10px 14px;
|
|
64
64
|
border-bottom: 1px solid var(--u-border-color);
|
|
65
|
-
background-color:
|
|
65
|
+
background-color: var(--u-batch-edit-form-header-bg);
|
|
66
66
|
flex-shrink: 0;
|
|
67
67
|
}
|
|
68
68
|
.u-batch-edit__form-icon {
|
|
@@ -2,23 +2,23 @@ import { CascadeProps } from "../../types/cascade.js";
|
|
|
2
2
|
//#region src/components/cascade/cascade.vue.d.ts
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<CascadeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
4
|
"update:modelValue": (value?: string | string[] | undefined) => any;
|
|
5
|
-
clear: () => any;
|
|
6
5
|
change: (...args: [item?: Record<string, any> | undefined] | [items: Record<string, any>[]]) => any;
|
|
6
|
+
clear: () => any;
|
|
7
7
|
"update:label": (label?: string | string[] | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<CascadeProps> & Readonly<{
|
|
9
9
|
"onUpdate:modelValue"?: ((value?: string | string[] | undefined) => any) | undefined;
|
|
10
|
-
onClear?: (() => any) | undefined;
|
|
11
10
|
onChange?: ((...args: [item?: Record<string, any> | undefined] | [items: Record<string, any>[]]) => any) | undefined;
|
|
11
|
+
onClear?: (() => any) | undefined;
|
|
12
12
|
"onUpdate:label"?: ((label?: string | string[] | undefined) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
readonly: boolean;
|
|
16
14
|
labelKey: string;
|
|
17
15
|
valueKey: string;
|
|
18
16
|
childrenKey: string;
|
|
19
17
|
data: Record<string, any>[];
|
|
20
18
|
placeholder: string;
|
|
21
19
|
clearable: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
readonly: boolean;
|
|
22
22
|
filterable: boolean;
|
|
23
23
|
visibilityLimit: number;
|
|
24
24
|
separator: string;
|
|
@@ -17,9 +17,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
17
17
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
18
18
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
+
type: import("@veltra/utils").ColorType;
|
|
20
21
|
disabled: boolean;
|
|
21
22
|
readonly: boolean;
|
|
22
|
-
type: import("@veltra/utils").ColorType;
|
|
23
23
|
round: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -12,10 +12,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
readonly: boolean;
|
|
17
15
|
labelKey: string;
|
|
18
16
|
valueKey: string;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
readonly: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
//#endregion
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
position: relative;
|
|
26
26
|
border-radius: calc(var(--u-radius-default) + 2px);
|
|
27
27
|
overflow: hidden;
|
|
28
|
-
background-color: var(--u-collapse-item-bg
|
|
28
|
+
background-color: var(--u-collapse-item-bg);
|
|
29
29
|
transition: background-color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
30
30
|
}
|
|
31
31
|
.u-collapse__item::before {
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
margin-top: var(--u-gap-default);
|
|
46
46
|
}
|
|
47
47
|
.u-collapse__item:not(.is-disabled):hover {
|
|
48
|
-
background-color: var(--u-collapse-item-hover-bg
|
|
48
|
+
background-color: var(--u-collapse-item-hover-bg);
|
|
49
49
|
}
|
|
50
50
|
.u-collapse__item.is-active {
|
|
51
|
-
background-color: var(--u-collapse-item-active-bg
|
|
51
|
+
background-color: var(--u-collapse-item-active-bg);
|
|
52
52
|
}
|
|
53
53
|
.u-collapse__item.is-active::before {
|
|
54
54
|
opacity: 1;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
.u-collapse__header.is-active {
|
|
81
81
|
font-weight: 600;
|
|
82
82
|
color: var(--u-collapse-active-title-color, var(--u-color-primary));
|
|
83
|
-
background-color: var(--u-collapse-header-active-bg
|
|
83
|
+
background-color: var(--u-collapse-header-active-bg);
|
|
84
84
|
border-bottom-right-radius: 0;
|
|
85
85
|
border-bottom-left-radius: 0;
|
|
86
86
|
}
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
height: 0;
|
|
108
108
|
border-bottom-right-radius: inherit;
|
|
109
109
|
border-bottom-left-radius: inherit;
|
|
110
|
-
background-color: var(--u-collapse-content-bg
|
|
110
|
+
background-color: var(--u-collapse-content-bg);
|
|
111
111
|
transition: height 0.24s cubic-bezier(0.4, 0, 0.2, 1);
|
|
112
112
|
}
|
|
113
113
|
.u-collapse__content {
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<DatePanelProps, {}, {}
|
|
|
7
7
|
"onSelect:range-date"?: ((rangeDate?: [import("@cat-kit/core").Dater, import("@cat-kit/core").Dater] | undefined) => any) | undefined;
|
|
8
8
|
"onSelect:date"?: ((date: import("@cat-kit/core").Dater) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
|
-
size: import("@veltra/utils").ComponentSize;
|
|
11
10
|
type: "date" | "month" | "year";
|
|
11
|
+
size: import("@veltra/utils").ComponentSize;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
//#endregion
|
|
@@ -5,11 +5,11 @@ declare const __VLS_export: import("vue").DefineComponent<DatePickerProps, {}, {
|
|
|
5
5
|
}, string, import("vue").PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
6
6
|
"onUpdate:modelValue"?: ((value?: string | number | Date | undefined) => any) | undefined;
|
|
7
7
|
}>, {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
readonly: boolean;
|
|
10
8
|
type: "date" | "month" | "year";
|
|
11
9
|
placeholder: string;
|
|
12
10
|
clearable: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
readonly: boolean;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
//#endregion
|
|
@@ -5,11 +5,11 @@ declare const __VLS_export: import("vue").DefineComponent<DateRangePickerProps,
|
|
|
5
5
|
}, string, import("vue").PublicProps, Readonly<DateRangePickerProps> & Readonly<{
|
|
6
6
|
"onUpdate:modelValue"?: ((value?: [string, string] | undefined) => any) | undefined;
|
|
7
7
|
}>, {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
readonly: boolean;
|
|
10
8
|
type: "date" | "month" | "year";
|
|
11
9
|
placeholder: [string, string];
|
|
12
10
|
clearable: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
readonly: boolean;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
//#endregion
|
|
@@ -11,8 +11,8 @@ declare const __VLS_base: import("vue").DefineComponent<UploaderProps, {}, {}, {
|
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<UploaderProps> & Readonly<{
|
|
12
12
|
onPick?: ((files: File[]) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
tag: string;
|
|
15
14
|
multiple: boolean;
|
|
15
|
+
tag: string;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
.u-file-viewer {
|
|
19
19
|
--u-file-viewer-canvas: #101114;
|
|
20
20
|
--u-file-viewer-canvas-soft: #17191f;
|
|
21
|
+
--u-file-viewer-canvas-overlay: rgba(16, 17, 20, 0.74);
|
|
21
22
|
--u-file-viewer-page-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
|
|
22
23
|
position: relative;
|
|
23
24
|
display: flex;
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
background: var(--u-bg-color-hover);
|
|
151
152
|
}
|
|
152
153
|
.u-file-viewer__item.is-active {
|
|
153
|
-
background:
|
|
154
|
+
background: var(--u-color-primary-a-8);
|
|
154
155
|
}
|
|
155
156
|
.u-file-viewer__item.is-active::before {
|
|
156
157
|
opacity: 1;
|
|
@@ -210,37 +211,51 @@
|
|
|
210
211
|
}
|
|
211
212
|
.u-file-viewer__badge {
|
|
212
213
|
--u-file-viewer-kind: var(--u-text-color-second);
|
|
214
|
+
--u-file-viewer-kind-border: fn.color-a(text-color, 28, second);
|
|
215
|
+
--u-file-viewer-kind-bg: fn.color-a(text-color, 10, second);
|
|
213
216
|
display: inline-flex;
|
|
214
217
|
align-items: center;
|
|
215
218
|
justify-content: center;
|
|
216
219
|
flex-shrink: 0;
|
|
217
220
|
width: 40px;
|
|
218
221
|
height: 26px;
|
|
219
|
-
border: 1px solid
|
|
222
|
+
border: 1px solid var(--u-file-viewer-kind-border);
|
|
220
223
|
border-radius: 7px;
|
|
221
224
|
color: var(--u-file-viewer-kind);
|
|
222
|
-
background:
|
|
225
|
+
background: var(--u-file-viewer-kind-bg);
|
|
223
226
|
font-size: 10px;
|
|
224
227
|
font-weight: 760;
|
|
225
228
|
line-height: 1;
|
|
226
229
|
}
|
|
227
230
|
.u-file-viewer__badge--image {
|
|
228
231
|
--u-file-viewer-kind: #0891b2;
|
|
232
|
+
--u-file-viewer-kind-border: rgba(8, 145, 178, 0.28);
|
|
233
|
+
--u-file-viewer-kind-bg: rgba(8, 145, 178, 0.1);
|
|
229
234
|
}
|
|
230
235
|
.u-file-viewer__badge--video {
|
|
231
236
|
--u-file-viewer-kind: #db2777;
|
|
237
|
+
--u-file-viewer-kind-border: rgba(219, 39, 119, 0.28);
|
|
238
|
+
--u-file-viewer-kind-bg: rgba(219, 39, 119, 0.1);
|
|
232
239
|
}
|
|
233
240
|
.u-file-viewer__badge--pdf {
|
|
234
241
|
--u-file-viewer-kind: #dc2626;
|
|
242
|
+
--u-file-viewer-kind-border: rgba(220, 38, 38, 0.28);
|
|
243
|
+
--u-file-viewer-kind-bg: rgba(220, 38, 38, 0.1);
|
|
235
244
|
}
|
|
236
245
|
.u-file-viewer__badge--sheet {
|
|
237
246
|
--u-file-viewer-kind: #15803d;
|
|
247
|
+
--u-file-viewer-kind-border: rgba(21, 128, 61, 0.28);
|
|
248
|
+
--u-file-viewer-kind-bg: rgba(21, 128, 61, 0.1);
|
|
238
249
|
}
|
|
239
250
|
.u-file-viewer__badge--docx {
|
|
240
251
|
--u-file-viewer-kind: #2563eb;
|
|
252
|
+
--u-file-viewer-kind-border: rgba(37, 99, 235, 0.28);
|
|
253
|
+
--u-file-viewer-kind-bg: rgba(37, 99, 235, 0.1);
|
|
241
254
|
}
|
|
242
255
|
.u-file-viewer__badge--text {
|
|
243
256
|
--u-file-viewer-kind: #64748b;
|
|
257
|
+
--u-file-viewer-kind-border: rgba(100, 116, 139, 0.28);
|
|
258
|
+
--u-file-viewer-kind-bg: rgba(100, 116, 139, 0.1);
|
|
244
259
|
}
|
|
245
260
|
.u-file-viewer__stage {
|
|
246
261
|
display: flex;
|
|
@@ -341,7 +356,7 @@
|
|
|
341
356
|
gap: 2px;
|
|
342
357
|
height: 34px;
|
|
343
358
|
padding: 2px;
|
|
344
|
-
border: 1px solid
|
|
359
|
+
border: 1px solid var(--u-border-color-a-86);
|
|
345
360
|
border-radius: 8px;
|
|
346
361
|
background: var(--u-bg-color-middle);
|
|
347
362
|
}
|
|
@@ -367,7 +382,7 @@
|
|
|
367
382
|
}
|
|
368
383
|
.u-file-viewer__action:not(:disabled):hover {
|
|
369
384
|
color: var(--u-color-primary);
|
|
370
|
-
background:
|
|
385
|
+
background: var(--u-color-primary-a-10);
|
|
371
386
|
}
|
|
372
387
|
.u-file-viewer__action:not(:disabled):active {
|
|
373
388
|
transform: translateY(1px);
|
|
@@ -394,7 +409,7 @@
|
|
|
394
409
|
}
|
|
395
410
|
.u-file-viewer__action--primary:not(:disabled):hover {
|
|
396
411
|
color: #fff;
|
|
397
|
-
background:
|
|
412
|
+
background: var(--u-color-primary-light-1);
|
|
398
413
|
}
|
|
399
414
|
.u-file-viewer.is-modal .u-file-viewer__action--primary {
|
|
400
415
|
color: #06111d;
|
|
@@ -623,8 +638,8 @@
|
|
|
623
638
|
}
|
|
624
639
|
.u-file-viewer__sheet-tab.is-active {
|
|
625
640
|
color: var(--u-color-primary);
|
|
626
|
-
background:
|
|
627
|
-
border-color:
|
|
641
|
+
background: var(--u-color-primary-a-11);
|
|
642
|
+
border-color: var(--u-color-primary-a-22);
|
|
628
643
|
}
|
|
629
644
|
.u-file-viewer.is-modal .u-file-viewer__sheet-tab {
|
|
630
645
|
color: rgba(255, 255, 255, 0.58);
|
|
@@ -650,7 +665,7 @@
|
|
|
650
665
|
align-items: center;
|
|
651
666
|
justify-content: center;
|
|
652
667
|
color: rgba(255, 255, 255, 0.72);
|
|
653
|
-
background:
|
|
668
|
+
background: var(--u-file-viewer-canvas-overlay);
|
|
654
669
|
font-size: 13px;
|
|
655
670
|
pointer-events: none;
|
|
656
671
|
}
|
|
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, _Inpu
|
|
|
15
15
|
"update:modelValue": (value: string | undefined) => any;
|
|
16
16
|
} & {
|
|
17
17
|
"update:modelValue": (value: string) => any;
|
|
18
|
-
clear: () => any;
|
|
19
18
|
change: (value: string) => any;
|
|
19
|
+
clear: () => any;
|
|
20
20
|
"suffix:click": (value?: string | undefined) => any;
|
|
21
21
|
"prefix:click": (value?: string | undefined) => any;
|
|
22
22
|
focus: (value?: string | undefined) => any;
|
|
@@ -24,18 +24,18 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, _Inpu
|
|
|
24
24
|
"native:input": (ev: Event) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
26
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
-
onClear?: (() => any) | undefined;
|
|
28
27
|
onChange?: ((value: string) => any) | undefined;
|
|
28
|
+
onClear?: (() => any) | undefined;
|
|
29
29
|
"onSuffix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
30
30
|
"onPrefix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
31
31
|
onFocus?: ((value?: string | undefined) => any) | undefined;
|
|
32
32
|
onBlur?: ((value?: string | undefined) => any) | undefined;
|
|
33
33
|
"onNative:input"?: ((ev: Event) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
readonly: boolean;
|
|
37
35
|
placeholder: string;
|
|
38
36
|
clearable: boolean;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
readonly: boolean;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
40
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
* Adapted from Radix UI Themes Kbd.
|
|
40
40
|
* Multi-layer box-shadow simulates a 3D keycap appearance.
|
|
41
41
|
*/
|
|
42
|
-
box-shadow: inset 0 0.05em
|
|
42
|
+
box-shadow: inset 0 0.05em var(--u-kbd-inset-shadow), 0 0 0 0.05em var(--u-kbd-border-shadow), 0 0.08em 0.17em var(--u-kbd-drop-shadow);
|
|
43
43
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
width: 36px;
|
|
34
34
|
aspect-ratio: 1;
|
|
35
35
|
border-radius: 50%;
|
|
36
|
-
border: 3px solid color-
|
|
36
|
+
border: 3px solid var(--u-color-primary-a-22);
|
|
37
37
|
border-top-color: currentColor;
|
|
38
38
|
position: relative;
|
|
39
39
|
animation: loading-spin 0.8s linear infinite;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
position: absolute;
|
|
44
44
|
inset: 5px;
|
|
45
45
|
border-radius: 50%;
|
|
46
|
-
border: 2px solid color-
|
|
46
|
+
border: 2px solid var(--u-color-primary-a-22);
|
|
47
47
|
border-bottom-color: currentColor;
|
|
48
48
|
animation: loading-spin 1.2s linear infinite reverse;
|
|
49
49
|
}
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
width: 36px;
|
|
79
79
|
aspect-ratio: 1;
|
|
80
80
|
border-radius: 50%;
|
|
81
|
-
border: 3px solid color-
|
|
81
|
+
border: 3px solid var(--u-color-primary-a-22);
|
|
82
82
|
border-top-color: currentColor;
|
|
83
83
|
animation: loading-spin 0.9s linear infinite;
|
|
84
84
|
}
|
|
@@ -26,13 +26,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
26
26
|
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
27
27
|
onChange?: ((options: Record<string, any>[]) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
readonly: boolean;
|
|
31
|
-
minWidth: string;
|
|
32
29
|
labelKey: string;
|
|
33
30
|
valueKey: string;
|
|
34
31
|
placeholder: string;
|
|
35
32
|
clearable: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
readonly: boolean;
|
|
35
|
+
minWidth: string;
|
|
36
36
|
visibilityLimit: number;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -14,22 +14,22 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
14
14
|
"update:modelValue": (value: (string | number)[]) => any;
|
|
15
15
|
} & {
|
|
16
16
|
"update:modelValue": (value: any[]) => any;
|
|
17
|
-
clear: () => any;
|
|
18
17
|
change: (checked: Record<string, any>[]) => any;
|
|
18
|
+
clear: () => any;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
20
|
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
21
|
-
onClear?: (() => any) | undefined;
|
|
22
21
|
onChange?: ((checked: Record<string, any>[]) => any) | undefined;
|
|
22
|
+
onClear?: (() => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
readonly: boolean;
|
|
26
|
-
minWidth: string;
|
|
27
24
|
expandAll: boolean;
|
|
28
25
|
labelKey: string;
|
|
29
26
|
valueKey: string;
|
|
30
27
|
placeholder: string;
|
|
31
28
|
clearable: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
readonly: boolean;
|
|
32
31
|
filterable: boolean;
|
|
32
|
+
minWidth: string;
|
|
33
33
|
visibilityLimit: number;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -65,7 +65,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
65
65
|
onAfterLeave: _cache[4] || (_cache[4] = (el) => unref(expandTransition).afterLeave(el)),
|
|
66
66
|
persisted: ""
|
|
67
67
|
}, {
|
|
68
|
-
default: withCtx(() => [withDirectives(createElementVNode("ul", { class: normalizeClass(unref(cls).e("sub-list")) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.children, (child, index) => {
|
|
68
|
+
default: withCtx(() => [withDirectives(createElementVNode("ul", { class: normalizeClass([unref(cls).e("sub-list"), unref(bem).is("has-active", branchActive.value)]) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.children, (child, index) => {
|
|
69
69
|
return openBlock(), createElementBlock(Fragment, { key: unref(getKey)(index, __props.parentKey) }, [!child.children?.length ? (openBlock(), createBlock(_sfc_main$3, {
|
|
70
70
|
key: 0,
|
|
71
71
|
item: child,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-sub.js","names":[],"sources":["../../../src/components/nav/nav-sub.vue"],"sourcesContent":["<template>\n <li :class=\"cls.e('sub')\">\n <div\n :class=\"[\n cls.e('sub-content'),\n bem.is('first-level', depth === 0),\n bem.is('expanded', expanded),\n bem.is('branch-active', branchActive)\n ]\"\n @click=\"handleToggleExpand\"\n >\n <UNavIcon v-if=\"item.icon\" :icon=\"item.icon\" :class=\"cls.e('icon')\" />\n\n <!-- 文本 -->\n <span :class=\"cls.e('sub-title')\">\n {{ item.title }}\n </span>\n\n <!-- 展开图标 -->\n <u-icon :class=\"[cls.e('sub-expand'), bem.is('expanded', expanded)]\">\n <ArrowRight />\n </u-icon>\n </div>\n\n <!-- @vue-ignore -->\n <transition\n @enter=\"(el: Element) => expandTransition.enter(el as HTMLElement)\"\n @after-enter=\"(el: Element) => expandTransition.afterEnter(el as HTMLElement)\"\n @before-leave=\"(el: Element) => expandTransition.beforeLeave(el as HTMLElement)\"\n @leave=\"(el: Element) => expandTransition.leave(el as HTMLElement)\"\n @after-leave=\"(el: Element) => expandTransition.afterLeave(el as HTMLElement)\"\n >\n <ul :class=\"cls.e('sub-list')\" v-show=\"expanded\">\n <template v-for=\"(child, index) of item.children!\" :key=\"getKey(index, parentKey)\">\n <UNavItem v-if=\"!child.children?.length\" :item=\"child\" :depth=\"depth + 1\" />\n <NavSub v-else :item=\"child\" :parent-key=\"getKey(index, parentKey)\" :depth=\"depth + 1\" />\n </template>\n </ul>\n </transition>\n </li>\n</template>\n\n<script setup lang=\"ts\">\nimport { ArrowRight } from '@veltra/icons/normal'\nimport { bem } from '@veltra/utils'\nimport { computed, inject } from 'vue'\n\nimport type { NavItem } from '../../types'\nimport { UIcon } from '../icon'\nimport { NavDIKey } from './di'\nimport { getKey } from './helper'\nimport UNavIcon from './nav-icon.vue'\nimport UNavItem from './nav-item.vue'\n\ndefineOptions({ name: 'UNavSub' })\n\nconst props = defineProps<{ item: NavItem; parentKey: string; depth: number }>()\n\nconst { cls, expandedPath, navProps, expandTransition } = inject(NavDIKey)!\n\nconst expanded = computed(() => expandedPath.has(props.item.path))\n\nconst branchActive = computed(() => {\n const currentPath = navProps.currentPath\n if (!currentPath) return false\n\n const check = (items?: NavItem[]) => {\n return items?.some((item) => item.path === currentPath || check(item.children)) ?? false\n }\n\n return check(props.item.children)\n})\n\nfunction handleToggleExpand() {\n const { item } = props\n expandedPath.has(item.path) ? expandedPath.delete(item.path) : expandedPath.add(item.path)\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAwDA,MAAM,QAAQ;EAEd,MAAM,EAAE,KAAK,cAAc,UAAU,qBAAqB,OAAO,QAAQ;EAEzE,MAAM,WAAW,eAAe,aAAa,IAAI,MAAM,KAAK,IAAI,CAAC;EAEjE,MAAM,eAAe,eAAe;GAClC,MAAM,cAAc,SAAS;GAC7B,IAAI,CAAC,aAAa,OAAO;GAEzB,MAAM,SAAS,UAAsB;IACnC,OAAO,OAAO,MAAM,SAAS,KAAK,SAAS,eAAe,MAAM,KAAK,QAAQ,CAAC,KAAK;GACrF;GAEA,OAAO,MAAM,MAAM,KAAK,QAAQ;EAClC,CAAC;EAED,SAAS,qBAAqB;GAC5B,MAAM,EAAE,SAAS;GACjB,aAAa,IAAI,KAAK,IAAI,IAAI,aAAa,OAAO,KAAK,IAAI,IAAI,aAAa,IAAI,KAAK,IAAI;EAC3F;;;uBA3EE,mBAsCK,MAAA,EAtCA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,KAAA,CAAA,EAAA,GAAA;IACf,mBAoBM,OAAA;KAnBH,OAAK,eAAA;MAAY,MAAA,GAAA,CAAG,CAAC,EAAC,aAAA;MAAyB,MAAA,GAAA,CAAG,CAAC,GAAE,eAAgB,QAAA,UAAK,CAAA;MAAiB,MAAA,GAAA,CAAG,CAAC,GAAE,YAAa,SAAA,KAAQ;MAAW,MAAA,GAAA,CAAG,CAAC,GAAE,iBAAkB,aAAA,KAAY;;KAMrK,SAAO;;KAEQ,QAAA,KAAK,QAAA,UAAA,GAArB,YAAsE,aAAA;;MAA1C,MAAM,QAAA,KAAK;MAAO,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,MAAA,CAAA;;KAE1D,mBAAA,MAAA;KACA,mBAEO,QAAA,EAFA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,WAAA,CAAA,EAAA,GAAA,gBACd,QAAA,KAAK,KAAK,GAAA,CAAA;KAGf,mBAAA,QAAA;KACA,YAES,MAAA,WAAA,GAAA,EAFA,OAAK,eAAA,CAAG,MAAA,GAAA,CAAG,CAAC,EAAC,YAAA,GAAgB,MAAA,GAAA,CAAG,CAAC,GAAE,YAAa,SAAA,KAAQ,CAAA,CAAA,EAAA,GAAA;6BACjD,CAAd,YAAc,MAAA,UAAA,CAAA,CAAA,CAAA;;;;IAIlB,mBAAA,eAAA;IACA,YAaa,YAAA;KAZV,SAAK,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,MAAM,EAAE;KACjD,cAAW,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,WAAW,EAAE;KAC5D,eAAY,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,YAAY,EAAE;KAC9D,SAAK,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,MAAM,EAAE;KACjD,cAAW,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,WAAW,EAAE;KAL/D,WAAA;;4BAYO,CAAA,eALL,mBAKK,MAAA,EALA,OAAK,
|
|
1
|
+
{"version":3,"file":"nav-sub.js","names":[],"sources":["../../../src/components/nav/nav-sub.vue"],"sourcesContent":["<template>\n <li :class=\"cls.e('sub')\">\n <div\n :class=\"[\n cls.e('sub-content'),\n bem.is('first-level', depth === 0),\n bem.is('expanded', expanded),\n bem.is('branch-active', branchActive)\n ]\"\n @click=\"handleToggleExpand\"\n >\n <UNavIcon v-if=\"item.icon\" :icon=\"item.icon\" :class=\"cls.e('icon')\" />\n\n <!-- 文本 -->\n <span :class=\"cls.e('sub-title')\">\n {{ item.title }}\n </span>\n\n <!-- 展开图标 -->\n <u-icon :class=\"[cls.e('sub-expand'), bem.is('expanded', expanded)]\">\n <ArrowRight />\n </u-icon>\n </div>\n\n <!-- @vue-ignore -->\n <transition\n @enter=\"(el: Element) => expandTransition.enter(el as HTMLElement)\"\n @after-enter=\"(el: Element) => expandTransition.afterEnter(el as HTMLElement)\"\n @before-leave=\"(el: Element) => expandTransition.beforeLeave(el as HTMLElement)\"\n @leave=\"(el: Element) => expandTransition.leave(el as HTMLElement)\"\n @after-leave=\"(el: Element) => expandTransition.afterLeave(el as HTMLElement)\"\n >\n <ul :class=\"[cls.e('sub-list'), bem.is('has-active', branchActive)]\" v-show=\"expanded\">\n <template v-for=\"(child, index) of item.children!\" :key=\"getKey(index, parentKey)\">\n <UNavItem v-if=\"!child.children?.length\" :item=\"child\" :depth=\"depth + 1\" />\n <NavSub v-else :item=\"child\" :parent-key=\"getKey(index, parentKey)\" :depth=\"depth + 1\" />\n </template>\n </ul>\n </transition>\n </li>\n</template>\n\n<script setup lang=\"ts\">\nimport { ArrowRight } from '@veltra/icons/normal'\nimport { bem } from '@veltra/utils'\nimport { computed, inject } from 'vue'\n\nimport type { NavItem } from '../../types'\nimport { UIcon } from '../icon'\nimport { NavDIKey } from './di'\nimport { getKey } from './helper'\nimport UNavIcon from './nav-icon.vue'\nimport UNavItem from './nav-item.vue'\n\ndefineOptions({ name: 'UNavSub' })\n\nconst props = defineProps<{ item: NavItem; parentKey: string; depth: number }>()\n\nconst { cls, expandedPath, navProps, expandTransition } = inject(NavDIKey)!\n\nconst expanded = computed(() => expandedPath.has(props.item.path))\n\nconst branchActive = computed(() => {\n const currentPath = navProps.currentPath\n if (!currentPath) return false\n\n const check = (items?: NavItem[]) => {\n return items?.some((item) => item.path === currentPath || check(item.children)) ?? false\n }\n\n return check(props.item.children)\n})\n\nfunction handleToggleExpand() {\n const { item } = props\n expandedPath.has(item.path) ? expandedPath.delete(item.path) : expandedPath.add(item.path)\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAwDA,MAAM,QAAQ;EAEd,MAAM,EAAE,KAAK,cAAc,UAAU,qBAAqB,OAAO,QAAQ;EAEzE,MAAM,WAAW,eAAe,aAAa,IAAI,MAAM,KAAK,IAAI,CAAC;EAEjE,MAAM,eAAe,eAAe;GAClC,MAAM,cAAc,SAAS;GAC7B,IAAI,CAAC,aAAa,OAAO;GAEzB,MAAM,SAAS,UAAsB;IACnC,OAAO,OAAO,MAAM,SAAS,KAAK,SAAS,eAAe,MAAM,KAAK,QAAQ,CAAC,KAAK;GACrF;GAEA,OAAO,MAAM,MAAM,KAAK,QAAQ;EAClC,CAAC;EAED,SAAS,qBAAqB;GAC5B,MAAM,EAAE,SAAS;GACjB,aAAa,IAAI,KAAK,IAAI,IAAI,aAAa,OAAO,KAAK,IAAI,IAAI,aAAa,IAAI,KAAK,IAAI;EAC3F;;;uBA3EE,mBAsCK,MAAA,EAtCA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,KAAA,CAAA,EAAA,GAAA;IACf,mBAoBM,OAAA;KAnBH,OAAK,eAAA;MAAY,MAAA,GAAA,CAAG,CAAC,EAAC,aAAA;MAAyB,MAAA,GAAA,CAAG,CAAC,GAAE,eAAgB,QAAA,UAAK,CAAA;MAAiB,MAAA,GAAA,CAAG,CAAC,GAAE,YAAa,SAAA,KAAQ;MAAW,MAAA,GAAA,CAAG,CAAC,GAAE,iBAAkB,aAAA,KAAY;;KAMrK,SAAO;;KAEQ,QAAA,KAAK,QAAA,UAAA,GAArB,YAAsE,aAAA;;MAA1C,MAAM,QAAA,KAAK;MAAO,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,MAAA,CAAA;;KAE1D,mBAAA,MAAA;KACA,mBAEO,QAAA,EAFA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,WAAA,CAAA,EAAA,GAAA,gBACd,QAAA,KAAK,KAAK,GAAA,CAAA;KAGf,mBAAA,QAAA;KACA,YAES,MAAA,WAAA,GAAA,EAFA,OAAK,eAAA,CAAG,MAAA,GAAA,CAAG,CAAC,EAAC,YAAA,GAAgB,MAAA,GAAA,CAAG,CAAC,GAAE,YAAa,SAAA,KAAQ,CAAA,CAAA,EAAA,GAAA;6BACjD,CAAd,YAAc,MAAA,UAAA,CAAA,CAAA,CAAA;;;;IAIlB,mBAAA,eAAA;IACA,YAaa,YAAA;KAZV,SAAK,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,MAAM,EAAE;KACjD,cAAW,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,WAAW,EAAE;KAC5D,eAAY,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,YAAY,EAAE;KAC9D,SAAK,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,MAAM,EAAE;KACjD,cAAW,OAAA,OAAA,OAAA,MAAG,OAAgB,MAAA,gBAAA,CAAgB,CAAC,WAAW,EAAE;KAL/D,WAAA;;4BAYO,CAAA,eALL,mBAKK,MAAA,EALA,OAAK,eAAA,CAAG,MAAA,GAAA,CAAG,CAAC,EAAC,UAAA,GAAc,MAAA,GAAA,CAAG,CAAC,GAAE,cAAe,aAAA,KAAY,CAAA,CAAA,EAAA,GAAA,EAAA,UAAA,IAAA,GAC/D,mBAGW,UAAA,MAAA,WAHwB,QAAA,KAAK,WAAtB,OAAO,UAAK;8DAA2B,MAAA,MAAA,CAAM,CAAC,OAAO,QAAA,SAAS,EAAA,GAAA,CAAA,CAC7D,MAAM,UAAU,UAAA,UAAA,GAAjC,YAA4E,aAAA;;OAAlC,MAAM;OAAQ,OAAO,QAAA,QAAK;sDACpE,YAAyF,mBAAA;;OAAzE,MAAM;OAAQ,cAAY,MAAA,MAAA,CAAM,CAAC,OAAO,QAAA,SAAS;OAAI,OAAO,QAAA,QAAK;;;;;;8BAHR,SAAA,KAAQ,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -291,12 +291,10 @@
|
|
|
291
291
|
overflow: hidden;
|
|
292
292
|
margin: 2px 0 0 12px;
|
|
293
293
|
padding: 2px 0 2px 8px;
|
|
294
|
-
border-left: 1px solid
|
|
294
|
+
border-left: 1px solid var(--u-border-color-a-52);
|
|
295
295
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
border-left-color: var(--u-color-primary);
|
|
299
|
-
}
|
|
296
|
+
.u-nav__sub-list.is-has-active {
|
|
297
|
+
border-left-color: var(--u-color-primary);
|
|
300
298
|
}
|
|
301
299
|
.u-nav__sub-expand {
|
|
302
300
|
transition: transform 0.2s cubic-bezier(0.4, 0, 1, 1), color 0.18s ease;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NumberProps } from "../../types/number.js";
|
|
2
2
|
//#region src/components/number/number.vue.d.ts
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<NumberProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NumberProps> & Readonly<{}>, {
|
|
4
|
-
format: "currency" | "percent" | "decimal";
|
|
5
4
|
duration: number;
|
|
5
|
+
format: "currency" | "percent" | "decimal";
|
|
6
6
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
declare const _default: typeof __VLS_export;
|
|
8
8
|
//#endregion
|
|
@@ -13,17 +13,17 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
13
13
|
"update:modelValue": (value: number | undefined) => any;
|
|
14
14
|
} & {
|
|
15
15
|
"update:modelValue": (value?: number | undefined) => any;
|
|
16
|
-
clear: () => any;
|
|
17
16
|
change: (value?: number | undefined) => any;
|
|
17
|
+
clear: () => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value?: number | undefined) => any) | undefined;
|
|
20
|
-
onClear?: (() => any) | undefined;
|
|
21
20
|
onChange?: ((value?: number | undefined) => any) | undefined;
|
|
21
|
+
onClear?: (() => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
readonly: boolean;
|
|
25
23
|
placeholder: string;
|
|
26
24
|
clearable: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
readonly: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -22,9 +22,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
22
22
|
"onUpdate:start"?: ((value: number | undefined) => any) | undefined;
|
|
23
23
|
"onUpdate:end"?: ((value: number | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
+
clearable: boolean;
|
|
25
26
|
disabled: boolean;
|
|
26
27
|
readonly: boolean;
|
|
27
|
-
clearable: boolean;
|
|
28
28
|
startPlaceholder: string;
|
|
29
29
|
endPlaceholder: string;
|
|
30
30
|
separator: string;
|
|
@@ -13,9 +13,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
+
clearable: boolean;
|
|
16
17
|
disabled: boolean;
|
|
17
18
|
readonly: boolean;
|
|
18
|
-
clearable: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,10 +14,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
15
15
|
onChange?: ((item: Record<string, any>) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
readonly: boolean;
|
|
19
17
|
labelKey: string;
|
|
20
18
|
valueKey: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
readonly: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
//#endregion
|
|
@@ -10,9 +10,9 @@ declare const __VLS_export: import("vue").DefineComponent<RichTextEditorProps &
|
|
|
10
10
|
}> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
+
placeholder: string;
|
|
13
14
|
disabled: boolean;
|
|
14
15
|
readonly: boolean;
|
|
15
|
-
placeholder: string;
|
|
16
16
|
format: RichTextFormat;
|
|
17
17
|
toolbar: ToolbarItem[];
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -24,12 +24,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
24
24
|
"onUpdate:text"?: ((value: any) => any) | undefined;
|
|
25
25
|
"onUpdate:label"?: ((label?: string | undefined) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
disabled: boolean;
|
|
28
|
-
readonly: boolean;
|
|
29
27
|
labelKey: string;
|
|
30
28
|
valueKey: string;
|
|
31
29
|
placeholder: string;
|
|
32
30
|
clearable: boolean;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
readonly: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,21 +9,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
9
9
|
"update:modelValue": (value: string | undefined) => any;
|
|
10
10
|
} & {
|
|
11
11
|
"update:modelValue": (value: string) => any;
|
|
12
|
-
clear: () => any;
|
|
13
12
|
change: (value: string) => any;
|
|
13
|
+
clear: () => any;
|
|
14
14
|
focus: () => any;
|
|
15
15
|
blur: () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
|
-
onClear?: (() => any) | undefined;
|
|
19
18
|
onChange?: ((value: string) => any) | undefined;
|
|
19
|
+
onClear?: (() => any) | undefined;
|
|
20
20
|
onFocus?: (() => any) | undefined;
|
|
21
21
|
onBlur?: (() => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
readonly: boolean;
|
|
25
23
|
placeholder: string;
|
|
26
24
|
clearable: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
readonly: boolean;
|
|
27
27
|
resize: boolean;
|
|
28
28
|
autosize: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -15,24 +15,24 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
15
15
|
"update:modelValue": (value: string | number | undefined) => any;
|
|
16
16
|
} & {
|
|
17
17
|
"update:modelValue": (value?: string | number | undefined) => any;
|
|
18
|
-
clear: () => any;
|
|
19
18
|
change: (selectedData?: Record<string, any> | undefined) => any;
|
|
19
|
+
clear: () => any;
|
|
20
20
|
"update:text": (text?: string | undefined) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
22
|
"onUpdate:modelValue"?: ((value?: string | number | undefined) => any) | undefined;
|
|
23
|
-
onClear?: (() => any) | undefined;
|
|
24
23
|
onChange?: ((selectedData?: Record<string, any> | undefined) => any) | undefined;
|
|
24
|
+
onClear?: (() => any) | undefined;
|
|
25
25
|
"onUpdate:text"?: ((text?: string | undefined) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
disabled: boolean;
|
|
28
|
-
readonly: boolean;
|
|
29
|
-
minWidth: string;
|
|
30
27
|
expandAll: boolean;
|
|
31
28
|
labelKey: string;
|
|
32
29
|
valueKey: string;
|
|
33
30
|
placeholder: string;
|
|
34
31
|
clearable: boolean;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
readonly: boolean;
|
|
35
34
|
filterable: boolean;
|
|
35
|
+
minWidth: string;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltra/desktop",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"src"
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"@cat-kit/core": ">=1.1.8",
|
|
58
58
|
"@cat-kit/excel": ">=1.0.0",
|
|
59
59
|
"@cat-kit/fe": "^1.1.8",
|
|
60
|
-
"@veltra/compositions": "1.2.
|
|
61
|
-
"@veltra/directives": "1.2.
|
|
62
|
-
"@veltra/icons": "1.2.
|
|
63
|
-
"@veltra/styles": "1.2.
|
|
64
|
-
"@veltra/utils": "1.2.
|
|
60
|
+
"@veltra/compositions": "1.2.23",
|
|
61
|
+
"@veltra/directives": "1.2.23",
|
|
62
|
+
"@veltra/icons": "1.2.23",
|
|
63
|
+
"@veltra/styles": "1.2.23",
|
|
64
|
+
"@veltra/utils": "1.2.23",
|
|
65
65
|
"vue": ">=3.5.39"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -5,17 +5,6 @@ $root-name: action;
|
|
|
5
5
|
$group-name: action-group;
|
|
6
6
|
|
|
7
7
|
@include m.b($group-name) {
|
|
8
|
-
display: inline-flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
vertical-align: middle;
|
|
11
|
-
gap: 2px;
|
|
12
|
-
padding: 2px 4px;
|
|
13
|
-
border-radius: 999px;
|
|
14
|
-
background-color: color-mix(in srgb, #{fn.use-var(bg-color, top)} 70%, transparent);
|
|
15
|
-
backdrop-filter: fn.use-var(bg-filter);
|
|
16
|
-
-webkit-backdrop-filter: fn.use-var(bg-filter);
|
|
17
|
-
box-shadow: 0 1px 4px color-mix(in srgb, #{fn.use-var(shadow, color)} 35%, transparent);
|
|
18
|
-
|
|
19
8
|
@include m.e(more) {
|
|
20
9
|
flex-shrink: 0;
|
|
21
10
|
}
|
|
@@ -52,8 +52,8 @@ $root-name: batch-edit;
|
|
|
52
52
|
background-color: fn.use-var(bg-color, top);
|
|
53
53
|
border-radius: var(--u-batch-edit-form-radius);
|
|
54
54
|
box-shadow:
|
|
55
|
-
0 1px 2px
|
|
56
|
-
0 12px 32px -16px
|
|
55
|
+
0 1px 2px fn.color-a(shadow, 40, color),
|
|
56
|
+
0 12px 32px -16px fn.color-a(shadow, 50, color);
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
isolation: isolate;
|
|
59
59
|
min-height: 0;
|
|
@@ -65,11 +65,7 @@ $root-name: batch-edit;
|
|
|
65
65
|
gap: 12px;
|
|
66
66
|
padding: 10px 14px;
|
|
67
67
|
border-bottom: 1px solid fn.use-var(border-color);
|
|
68
|
-
background-color:
|
|
69
|
-
in srgb,
|
|
70
|
-
#{fn.use-var(bg-color, top)} 96%,
|
|
71
|
-
#{fn.use-var(bg-color, hover)}
|
|
72
|
-
);
|
|
68
|
+
background-color: fn.component-var(batch-edit, form-header-bg);
|
|
73
69
|
flex-shrink: 0;
|
|
74
70
|
}
|
|
75
71
|
|
|
@@ -7,31 +7,11 @@ $root-name: collapse;
|
|
|
7
7
|
$ease: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8
8
|
$transition-fast: 0.18s $ease;
|
|
9
9
|
$transition-normal: 0.24s $ease;
|
|
10
|
-
$item-bg: fn.component-var(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
);
|
|
15
|
-
$item-hover-bg: fn.component-var(
|
|
16
|
-
collapse,
|
|
17
|
-
item-hover-bg,
|
|
18
|
-
color-mix(in srgb, #{fn.use-var(color, primary)} 4%, #{$item-bg})
|
|
19
|
-
);
|
|
20
|
-
$item-active-bg: fn.component-var(
|
|
21
|
-
collapse,
|
|
22
|
-
item-active-bg,
|
|
23
|
-
color-mix(in srgb, #{fn.use-var(color, primary)} 5%, #{$item-bg})
|
|
24
|
-
);
|
|
25
|
-
$header-active-bg: fn.component-var(
|
|
26
|
-
collapse,
|
|
27
|
-
header-active-bg,
|
|
28
|
-
color-mix(in srgb, #{fn.use-var(color, primary)} 8%, #{$item-bg})
|
|
29
|
-
);
|
|
30
|
-
$content-bg: fn.component-var(
|
|
31
|
-
collapse,
|
|
32
|
-
content-bg,
|
|
33
|
-
color-mix(in srgb, #{$item-active-bg} 42%, #{fn.use-var(bg-color, top)})
|
|
34
|
-
);
|
|
10
|
+
$item-bg: fn.component-var(collapse, item-bg);
|
|
11
|
+
$item-hover-bg: fn.component-var(collapse, item-hover-bg);
|
|
12
|
+
$item-active-bg: fn.component-var(collapse, item-active-bg);
|
|
13
|
+
$header-active-bg: fn.component-var(collapse, header-active-bg);
|
|
14
|
+
$content-bg: fn.component-var(collapse, content-bg);
|
|
35
15
|
$active-title-color: fn.component-var(collapse, active-title-color, fn.use-var(color, primary));
|
|
36
16
|
|
|
37
17
|
@include m.b($root-name) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@include m.b(file-viewer) {
|
|
5
5
|
--u-file-viewer-canvas: #101114;
|
|
6
6
|
--u-file-viewer-canvas-soft: #17191f;
|
|
7
|
+
--u-file-viewer-canvas-overlay: rgba(16, 17, 20, 0.74);
|
|
7
8
|
--u-file-viewer-page-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
|
|
8
9
|
|
|
9
10
|
position: relative;
|
|
@@ -174,7 +175,7 @@
|
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
@include m.is(active) {
|
|
177
|
-
background:
|
|
178
|
+
background: fn.color-a(color, 8, primary);
|
|
178
179
|
|
|
179
180
|
&::before {
|
|
180
181
|
opacity: 1;
|
|
@@ -247,6 +248,8 @@
|
|
|
247
248
|
|
|
248
249
|
@include m.e(badge) {
|
|
249
250
|
--u-file-viewer-kind: #{fn.use-var(text-color, second)};
|
|
251
|
+
--u-file-viewer-kind-border: fn.color-a(text-color, 28, second);
|
|
252
|
+
--u-file-viewer-kind-bg: fn.color-a(text-color, 10, second);
|
|
250
253
|
|
|
251
254
|
display: inline-flex;
|
|
252
255
|
align-items: center;
|
|
@@ -254,10 +257,10 @@
|
|
|
254
257
|
flex-shrink: 0;
|
|
255
258
|
width: 40px;
|
|
256
259
|
height: 26px;
|
|
257
|
-
border: 1px solid
|
|
260
|
+
border: 1px solid var(--u-file-viewer-kind-border);
|
|
258
261
|
border-radius: 7px;
|
|
259
262
|
color: var(--u-file-viewer-kind);
|
|
260
|
-
background:
|
|
263
|
+
background: var(--u-file-viewer-kind-bg);
|
|
261
264
|
font-size: 10px;
|
|
262
265
|
font-weight: 760;
|
|
263
266
|
line-height: 1;
|
|
@@ -265,26 +268,38 @@
|
|
|
265
268
|
|
|
266
269
|
@include m.em(badge, image) {
|
|
267
270
|
--u-file-viewer-kind: #0891b2;
|
|
271
|
+
--u-file-viewer-kind-border: rgba(8, 145, 178, 0.28);
|
|
272
|
+
--u-file-viewer-kind-bg: rgba(8, 145, 178, 0.1);
|
|
268
273
|
}
|
|
269
274
|
|
|
270
275
|
@include m.em(badge, video) {
|
|
271
276
|
--u-file-viewer-kind: #db2777;
|
|
277
|
+
--u-file-viewer-kind-border: rgba(219, 39, 119, 0.28);
|
|
278
|
+
--u-file-viewer-kind-bg: rgba(219, 39, 119, 0.1);
|
|
272
279
|
}
|
|
273
280
|
|
|
274
281
|
@include m.em(badge, pdf) {
|
|
275
282
|
--u-file-viewer-kind: #dc2626;
|
|
283
|
+
--u-file-viewer-kind-border: rgba(220, 38, 38, 0.28);
|
|
284
|
+
--u-file-viewer-kind-bg: rgba(220, 38, 38, 0.1);
|
|
276
285
|
}
|
|
277
286
|
|
|
278
287
|
@include m.em(badge, sheet) {
|
|
279
288
|
--u-file-viewer-kind: #15803d;
|
|
289
|
+
--u-file-viewer-kind-border: rgba(21, 128, 61, 0.28);
|
|
290
|
+
--u-file-viewer-kind-bg: rgba(21, 128, 61, 0.1);
|
|
280
291
|
}
|
|
281
292
|
|
|
282
293
|
@include m.em(badge, docx) {
|
|
283
294
|
--u-file-viewer-kind: #2563eb;
|
|
295
|
+
--u-file-viewer-kind-border: rgba(37, 99, 235, 0.28);
|
|
296
|
+
--u-file-viewer-kind-bg: rgba(37, 99, 235, 0.1);
|
|
284
297
|
}
|
|
285
298
|
|
|
286
299
|
@include m.em(badge, text) {
|
|
287
300
|
--u-file-viewer-kind: #64748b;
|
|
301
|
+
--u-file-viewer-kind-border: rgba(100, 116, 139, 0.28);
|
|
302
|
+
--u-file-viewer-kind-bg: rgba(100, 116, 139, 0.1);
|
|
288
303
|
}
|
|
289
304
|
|
|
290
305
|
@include m.e(stage) {
|
|
@@ -404,7 +419,7 @@
|
|
|
404
419
|
gap: 2px;
|
|
405
420
|
height: 34px;
|
|
406
421
|
padding: 2px;
|
|
407
|
-
border: 1px solid
|
|
422
|
+
border: 1px solid fn.color-a(border, 86, color);
|
|
408
423
|
border-radius: 8px;
|
|
409
424
|
background: fn.use-var(bg-color, middle);
|
|
410
425
|
}
|
|
@@ -436,7 +451,7 @@
|
|
|
436
451
|
|
|
437
452
|
&:not(:disabled):hover {
|
|
438
453
|
color: fn.use-var(color, primary);
|
|
439
|
-
background:
|
|
454
|
+
background: fn.color-a(color, 10, primary);
|
|
440
455
|
}
|
|
441
456
|
|
|
442
457
|
&:not(:disabled):active {
|
|
@@ -470,7 +485,7 @@
|
|
|
470
485
|
|
|
471
486
|
&:not(:disabled):hover {
|
|
472
487
|
color: #fff;
|
|
473
|
-
background:
|
|
488
|
+
background: fn.use-var(color, primary, light, 1);
|
|
474
489
|
}
|
|
475
490
|
}
|
|
476
491
|
|
|
@@ -760,8 +775,8 @@
|
|
|
760
775
|
|
|
761
776
|
@include m.is(active) {
|
|
762
777
|
color: fn.use-var(color, primary);
|
|
763
|
-
background:
|
|
764
|
-
border-color:
|
|
778
|
+
background: fn.color-a(color, 11, primary);
|
|
779
|
+
border-color: fn.color-a(color, 22, primary);
|
|
765
780
|
}
|
|
766
781
|
}
|
|
767
782
|
|
|
@@ -793,7 +808,7 @@
|
|
|
793
808
|
align-items: center;
|
|
794
809
|
justify-content: center;
|
|
795
810
|
color: rgba(255, 255, 255, 0.72);
|
|
796
|
-
background:
|
|
811
|
+
background: var(--u-file-viewer-canvas-overlay);
|
|
797
812
|
font-size: 13px;
|
|
798
813
|
pointer-events: none;
|
|
799
814
|
}
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
* Multi-layer box-shadow simulates a 3D keycap appearance.
|
|
31
31
|
*/
|
|
32
32
|
box-shadow:
|
|
33
|
-
inset 0 0.05em
|
|
34
|
-
|
|
35
|
-
0 0 0
|
|
36
|
-
0 0.08em 0.17em color-mix(in srgb, #{fn.use-var(shadow, color)} 60%, transparent);
|
|
33
|
+
inset 0 0.05em fn.component-var(kbd, inset-shadow),
|
|
34
|
+
0 0 0 0.05em fn.component-var(kbd, border-shadow),
|
|
35
|
+
0 0.08em 0.17em fn.component-var(kbd, drop-shadow);
|
|
37
36
|
}
|
|
@@ -25,7 +25,7 @@ $root-name: loading;
|
|
|
25
25
|
width: 36px;
|
|
26
26
|
aspect-ratio: 1;
|
|
27
27
|
border-radius: 50%;
|
|
28
|
-
border: 3px solid color-
|
|
28
|
+
border: 3px solid fn.color-a(color, 22, primary);
|
|
29
29
|
border-top-color: currentColor;
|
|
30
30
|
position: relative;
|
|
31
31
|
animation: loading-spin 0.8s linear infinite;
|
|
@@ -35,7 +35,7 @@ $root-name: loading;
|
|
|
35
35
|
position: absolute;
|
|
36
36
|
inset: 5px;
|
|
37
37
|
border-radius: 50%;
|
|
38
|
-
border: 2px solid color-
|
|
38
|
+
border: 2px solid fn.color-a(color, 22, primary);
|
|
39
39
|
border-bottom-color: currentColor;
|
|
40
40
|
animation: loading-spin 1.2s linear infinite reverse;
|
|
41
41
|
}
|
|
@@ -88,7 +88,7 @@ $root-name: loading;
|
|
|
88
88
|
width: 36px;
|
|
89
89
|
aspect-ratio: 1;
|
|
90
90
|
border-radius: 50%;
|
|
91
|
-
border: 3px solid color-
|
|
91
|
+
border: 3px solid fn.color-a(color, 22, primary);
|
|
92
92
|
border-top-color: currentColor;
|
|
93
93
|
animation: loading-spin 0.9s linear infinite;
|
|
94
94
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
@leave="(el: Element) => expandTransition.leave(el as HTMLElement)"
|
|
31
31
|
@after-leave="(el: Element) => expandTransition.afterLeave(el as HTMLElement)"
|
|
32
32
|
>
|
|
33
|
-
<ul :class="cls.e('sub-list')" v-show="expanded">
|
|
33
|
+
<ul :class="[cls.e('sub-list'), bem.is('has-active', branchActive)]" v-show="expanded">
|
|
34
34
|
<template v-for="(child, index) of item.children!" :key="getKey(index, parentKey)">
|
|
35
35
|
<UNavItem v-if="!child.children?.length" :item="child" :depth="depth + 1" />
|
|
36
36
|
<NavSub v-else :item="child" :parent-key="getKey(index, parentKey)" :depth="depth + 1" />
|
|
@@ -148,12 +148,10 @@ $collapsed-nav: collapsed-nav;
|
|
|
148
148
|
overflow: hidden;
|
|
149
149
|
margin: 2px 0 0 12px;
|
|
150
150
|
padding: 2px 0 2px 8px;
|
|
151
|
-
border-left: 1px solid
|
|
151
|
+
border-left: 1px solid fn.color-a(border, 52, color);
|
|
152
152
|
|
|
153
|
-
@
|
|
154
|
-
|
|
155
|
-
border-left-color: fn.use-var(color, primary);
|
|
156
|
-
}
|
|
153
|
+
@include m.is(has-active) {
|
|
154
|
+
border-left-color: fn.use-var(color, primary);
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
|