@veltra/desktop 1.1.5 → 1.1.7
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 +1 -1
- package/dist/components/action/action.vue.d.ts +1 -1
- package/dist/components/batch-edit/batch-edit-form.js +23 -11
- package/dist/components/batch-edit/batch-edit-form.js.map +1 -1
- package/dist/components/batch-edit/batch-edit.js +0 -1
- package/dist/components/batch-edit/batch-edit.js.map +1 -1
- package/dist/components/batch-edit/style.js +1 -0
- package/dist/components/button/button.vue.d.ts +1 -1
- package/dist/components/button/style2.css +57 -45
- package/dist/components/cascade/cascade.vue.d.ts +4 -4
- package/dist/components/cascade/style2.css +2 -1
- package/dist/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/dist/components/checkbox/style2.css +2 -2
- package/dist/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
- package/dist/components/collapse/collapse.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker.vue.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +2 -2
- package/dist/components/expression-editor/style2.css +4 -4
- package/dist/components/file-viewer/file-viewer.vue.d.ts +1 -1
- package/dist/components/index.d.ts +9 -8
- package/dist/components/index.js +56 -54
- package/dist/components/index.js.map +1 -1
- package/dist/components/input/input.vue.d.ts +2 -2
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/kbd.js +17 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/kbd/kbd.vue.d.ts +18 -0
- package/dist/components/kbd/style.d.ts +1 -0
- package/dist/components/kbd/style.js +1 -0
- package/dist/components/kbd/style2.css +43 -0
- package/dist/components/message-confirm/style2.css +3 -1
- package/dist/components/multi-select/multi-select.vue.d.ts +2 -2
- package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +4 -4
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/notification/style2.css +1 -1
- package/dist/components/number-input/number-input.vue.d.ts +2 -2
- package/dist/components/paginator/style2.css +4 -3
- package/dist/components/progress-nodes/progress-nodes.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group.vue.d.ts +1 -1
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/table/table.js +0 -1
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/table-editor/table-editor.js +0 -1
- package/dist/components/table-editor/table-editor.js.map +1 -1
- package/dist/components/tabs/style2.css +3 -3
- package/dist/components/tabs/tabs-horizontal.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-vertical.vue.d.ts +4 -4
- package/dist/components/tabs/tabs.vue.d.ts +5 -5
- package/dist/components/tag/style2.css +35 -35
- package/dist/components/textarea/textarea.vue.d.ts +2 -2
- package/dist/components/tip/tip.vue.d.ts +1 -1
- package/dist/components/tree/style2.css +2 -2
- package/dist/components/tree-select/tree-select.vue.d.ts +4 -4
- package/dist/index.d.ts +45 -44
- package/dist/index.js +44 -43
- package/dist/style.js +1 -0
- package/dist/types/table.d.ts +0 -2
- package/package.json +11 -11
- package/src/components/auto-complete/style.scss +3 -1
- package/src/components/batch-edit/batch-edit-form.vue +10 -2
- package/src/components/batch-edit/style.ts +1 -0
- package/src/components/button/style.scss +16 -9
- package/src/components/cascade/style.scss +5 -2
- package/src/components/checkbox/style.scss +2 -2
- package/src/components/code-editor/style.scss +5 -2
- package/src/components/date-range-picker/style.scss +3 -1
- package/src/components/expression-editor/style.scss +4 -4
- package/src/components/index.ts +2 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.vue +13 -0
- package/src/components/kbd/style.scss +37 -0
- package/src/components/kbd/style.ts +1 -0
- package/src/components/message-confirm/style.scss +3 -1
- package/src/components/multi-select/style.scss +3 -1
- package/src/components/multi-tree-select/style.scss +3 -1
- package/src/components/notification/style.scss +1 -1
- package/src/components/paginator/style.scss +4 -3
- package/src/components/tabs/style.scss +2 -2
- package/src/components/tag/style.scss +5 -5
- package/src/components/textarea/style.scss +3 -1
- package/src/components/tree/style.scss +2 -2
- package/src/style.ts +1 -0
- package/src/types/table.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import _sfc_main$39 from "./components/icon/icon.js";
|
|
2
2
|
import _sfc_main$29 from "./components/empty/empty.js";
|
|
3
|
-
import _sfc_main$
|
|
3
|
+
import _sfc_main$65 from "./components/scroll/scroll.js";
|
|
4
4
|
import NodeRender from "./components/node-render/node-render.js";
|
|
5
|
-
import _sfc_main$
|
|
5
|
+
import _sfc_main$79 from "./components/tip/tip.js";
|
|
6
6
|
import _sfc_main$28 from "./components/dropdown/dropdown.js";
|
|
7
7
|
import input_default from "./components/input/input.js";
|
|
8
|
-
import _sfc_main$
|
|
8
|
+
import _sfc_main$66 from "./components/select/select.js";
|
|
9
9
|
import _sfc_main$21 from "./components/condition-editor/condition-editor.js";
|
|
10
|
-
import _sfc_main$
|
|
11
|
-
import _sfc_main$
|
|
12
|
-
import _sfc_main$
|
|
10
|
+
import _sfc_main$73 from "./components/tabs/tabs-horizontal.js";
|
|
11
|
+
import _sfc_main$74 from "./components/tabs/tabs-vertical.js";
|
|
12
|
+
import _sfc_main$72 from "./components/tabs/tabs.js";
|
|
13
13
|
import _sfc_main$15 from "./components/checkbox/checkbox.js";
|
|
14
|
-
import _sfc_main$
|
|
15
|
-
import _sfc_main$
|
|
14
|
+
import _sfc_main$80 from "./components/tree/tree.js";
|
|
15
|
+
import _sfc_main$81 from "./components/tree-select/tree-select.js";
|
|
16
16
|
import _sfc_main$18 from "./components/code-editor/code-editor.js";
|
|
17
17
|
import _sfc_main$27 from "./components/drawer/drawer.js";
|
|
18
18
|
import _sfc_main$35 from "./components/grid/grid.js";
|
|
@@ -24,10 +24,10 @@ import { FormModel } from "./components/form/form-model.js";
|
|
|
24
24
|
import { DynamicFormModel } from "./components/form/dynamic-form-model.js";
|
|
25
25
|
import _sfc_main$5 from "./components/button/button.js";
|
|
26
26
|
import _sfc_main$6 from "./components/button/button-group.js";
|
|
27
|
-
import _sfc_main$
|
|
27
|
+
import _sfc_main$49 from "./components/message-confirm/message-confirm.js";
|
|
28
28
|
import MessageConfirm from "./components/message-confirm/message-confirm2.js";
|
|
29
29
|
import _sfc_main$7 from "./components/calendar/calendar.js";
|
|
30
|
-
import _sfc_main$
|
|
30
|
+
import _sfc_main$62 from "./components/radio/radio.js";
|
|
31
31
|
import _sfc_main$8 from "./components/card/card.js";
|
|
32
32
|
import _sfc_main$12 from "./components/card/card-header.js";
|
|
33
33
|
import _sfc_main$11 from "./components/card/card-cover.js";
|
|
@@ -35,64 +35,65 @@ import _sfc_main$10 from "./components/card/card-content.js";
|
|
|
35
35
|
import _sfc_main$9 from "./components/card/card-action.js";
|
|
36
36
|
import _sfc_main$23 from "./components/date-panel/date-panel.js";
|
|
37
37
|
import _sfc_main$25 from "./components/date-range-picker/date-range-picker.js";
|
|
38
|
-
import _sfc_main$
|
|
38
|
+
import _sfc_main$44 from "./components/loading/loading.js";
|
|
39
39
|
import { vLoading } from "./components/loading/directive.js";
|
|
40
|
-
import _sfc_main$
|
|
40
|
+
import _sfc_main$61 from "./components/progress-nodes/progress-nodes.js";
|
|
41
41
|
import _sfc_main$1 from "./components/auto-complete/auto-complete.js";
|
|
42
|
-
import _sfc_main$
|
|
43
|
-
import _sfc_main$
|
|
42
|
+
import _sfc_main$60 from "./components/progress/progress.js";
|
|
43
|
+
import _sfc_main$52 from "./components/notification/notification.js";
|
|
44
44
|
import { Notification } from "./components/notification/index.js";
|
|
45
|
-
import _sfc_main$
|
|
46
|
-
import _sfc_main$
|
|
45
|
+
import _sfc_main$41 from "./components/layout/layout.js";
|
|
46
|
+
import _sfc_main$75 from "./components/tag/tag.js";
|
|
47
47
|
import _sfc_main$16 from "./components/checkbox/checkbox-button.js";
|
|
48
|
-
import _sfc_main$
|
|
49
|
-
import _sfc_main$
|
|
48
|
+
import _sfc_main$50 from "./components/multi-select/multi-select.js";
|
|
49
|
+
import _sfc_main$67 from "./components/slider/slider.js";
|
|
50
50
|
import _sfc_main$34 from "./components/gantt-chart/gantt-chart.js";
|
|
51
|
-
import _sfc_main$
|
|
51
|
+
import _sfc_main$48 from "./components/message/message.js";
|
|
52
52
|
import { message } from "./components/message/message2.js";
|
|
53
53
|
import _sfc_main$31 from "./components/file-picker/file-picker.js";
|
|
54
|
-
import _sfc_main$
|
|
55
|
-
import _sfc_main$
|
|
54
|
+
import _sfc_main$54 from "./components/number-input/number-input.js";
|
|
55
|
+
import _sfc_main$55 from "./components/number-range-input/number-range-input.js";
|
|
56
56
|
import _sfc_main$19 from "./components/collapse/collapse.js";
|
|
57
57
|
import _sfc_main$20 from "./components/collapse/collapse-item.js";
|
|
58
58
|
import { defineTableColumns } from "./components/table/use-columns.js";
|
|
59
|
-
import _sfc_main$
|
|
60
|
-
import _sfc_main$
|
|
59
|
+
import _sfc_main$70 from "./components/table/table.js";
|
|
60
|
+
import _sfc_main$71 from "./components/table-editor/table-editor.js";
|
|
61
61
|
import _sfc_main$14 from "./components/check-tag/check-tag.js";
|
|
62
62
|
import _sfc_main$22 from "./components/context-menu/context-menu.js";
|
|
63
63
|
import { contextmenu } from "./components/context-menu/api.js";
|
|
64
|
-
import _sfc_main$
|
|
65
|
-
import _sfc_main$
|
|
64
|
+
import _sfc_main$58 from "./components/password-input/password-input.js";
|
|
65
|
+
import _sfc_main$53 from "./components/number/number.js";
|
|
66
66
|
import _sfc_main$26 from "./components/dialog/dialog.js";
|
|
67
67
|
import _sfc_main$30 from "./components/expression-editor/expression-editor.js";
|
|
68
|
-
import _sfc_main$
|
|
69
|
-
import _sfc_main$
|
|
68
|
+
import _sfc_main$82 from "./components/watermark/watermark.js";
|
|
69
|
+
import _sfc_main$40 from "./components/kbd/kbd.js";
|
|
70
|
+
import _sfc_main$59 from "./components/pop-confirm/pop-confirm.js";
|
|
70
71
|
import _sfc_main from "./components/action/action.js";
|
|
71
72
|
import action_group_default from "./components/action/action-group.js";
|
|
72
73
|
import _sfc_main$3 from "./components/batch-edit/batch-edit.js";
|
|
73
74
|
import { defineBatchEditColumns } from "./components/batch-edit/helper.js";
|
|
74
|
-
import _sfc_main$
|
|
75
|
+
import _sfc_main$77 from "./components/textarea/textarea.js";
|
|
75
76
|
import _sfc_main$13 from "./components/cascade/cascade.js";
|
|
76
|
-
import _sfc_main$
|
|
77
|
+
import _sfc_main$68 from "./components/steps/steps.js";
|
|
77
78
|
import _sfc_main$24 from "./components/date-picker/date-picker.js";
|
|
78
|
-
import _sfc_main$
|
|
79
|
-
import _sfc_main$
|
|
80
|
-
import _sfc_main$
|
|
79
|
+
import _sfc_main$57 from "./components/palette/palette.js";
|
|
80
|
+
import _sfc_main$78 from "./components/theme/theme.js";
|
|
81
|
+
import _sfc_main$51 from "./components/multi-tree-select/multi-tree-select.js";
|
|
81
82
|
import _sfc_main$38 from "./components/group-input/group-input.js";
|
|
82
|
-
import _sfc_main$
|
|
83
|
-
import _sfc_main$
|
|
84
|
-
import _sfc_main$
|
|
85
|
-
import _sfc_main$
|
|
86
|
-
import _sfc_main$
|
|
87
|
-
import _sfc_main$
|
|
83
|
+
import _sfc_main$42 from "./components/list/list.js";
|
|
84
|
+
import _sfc_main$43 from "./components/list/list-item.js";
|
|
85
|
+
import _sfc_main$64 from "./components/rich-text-editor/rich-text-editor.js";
|
|
86
|
+
import _sfc_main$46 from "./components/menu/menu-item.js";
|
|
87
|
+
import _sfc_main$47 from "./components/menu/menu-sub.js";
|
|
88
|
+
import _sfc_main$45 from "./components/menu/menu.js";
|
|
88
89
|
import _sfc_main$36 from "./components/grid-input/grid-input.js";
|
|
89
|
-
import _sfc_main$
|
|
90
|
-
import _sfc_main$
|
|
90
|
+
import _sfc_main$69 from "./components/switch/switch.js";
|
|
91
|
+
import _sfc_main$63 from "./components/radio-group/radio-group.js";
|
|
91
92
|
import _sfc_main$17 from "./components/checkbox-group/checkbox-group.js";
|
|
92
93
|
import _sfc_main$32 from "./components/file-viewer/file-viewer.js";
|
|
93
|
-
import _sfc_main$
|
|
94
|
+
import _sfc_main$76 from "./components/text/text.js";
|
|
94
95
|
import _sfc_main$4 from "./components/breadcrumb/breadcrumb.js";
|
|
95
|
-
import _sfc_main$
|
|
96
|
+
import _sfc_main$56 from "./components/paginator/paginator.js";
|
|
96
97
|
import _sfc_main$33 from "./components/float-button/float-button.js";
|
|
97
98
|
import _sfc_main$2 from "./components/badge/badge.js";
|
|
98
|
-
export { DynamicFormModel, FormModel, MessageConfirm, Notification, _sfc_main as UAction, action_group_default as UActionGroup, _sfc_main$1 as UAutoComplete, _sfc_main$2 as UBadge, _sfc_main$3 as UBatchEdit, _sfc_main$4 as UBreadcrumb, _sfc_main$5 as UButton, _sfc_main$6 as UButtonGroup, _sfc_main$7 as UCalendar, _sfc_main$8 as UCard, _sfc_main$9 as UCardAction, _sfc_main$10 as UCardContent, _sfc_main$11 as UCardCover, _sfc_main$12 as UCardHeader, _sfc_main$13 as UCascade, _sfc_main$14 as UCheckTag, _sfc_main$15 as UCheckbox, _sfc_main$16 as UCheckboxButton, _sfc_main$17 as UCheckboxGroup, _sfc_main$18 as UCodeEditor, _sfc_main$19 as UCollapse, _sfc_main$20 as UCollapseItem, _sfc_main$21 as UConditionEditor, _sfc_main$22 as UContextMenu, _sfc_main$23 as UDatePanel, _sfc_main$24 as UDatePicker, _sfc_main$25 as UDateRangePicker, _sfc_main$26 as UDialog, _sfc_main$27 as UDrawer, _sfc_main$28 as UDropdown, _sfc_main$29 as UEmpty, _sfc_main$30 as UExpressionEditor, _sfc_main$31 as UFilePicker, _sfc_main$32 as UFileViewer, _sfc_main$33 as UFloatButton, form_default as UForm, form_item_default as UFormItem, _sfc_main$34 as UGanttChart, _sfc_main$35 as UGrid, _sfc_main$36 as UGridInput, _sfc_main$37 as UGridItem, _sfc_main$38 as UGroupInput, _sfc_main$39 as UIcon, input_default as UInput, _sfc_main$40 as
|
|
99
|
+
export { DynamicFormModel, FormModel, MessageConfirm, Notification, _sfc_main as UAction, action_group_default as UActionGroup, _sfc_main$1 as UAutoComplete, _sfc_main$2 as UBadge, _sfc_main$3 as UBatchEdit, _sfc_main$4 as UBreadcrumb, _sfc_main$5 as UButton, _sfc_main$6 as UButtonGroup, _sfc_main$7 as UCalendar, _sfc_main$8 as UCard, _sfc_main$9 as UCardAction, _sfc_main$10 as UCardContent, _sfc_main$11 as UCardCover, _sfc_main$12 as UCardHeader, _sfc_main$13 as UCascade, _sfc_main$14 as UCheckTag, _sfc_main$15 as UCheckbox, _sfc_main$16 as UCheckboxButton, _sfc_main$17 as UCheckboxGroup, _sfc_main$18 as UCodeEditor, _sfc_main$19 as UCollapse, _sfc_main$20 as UCollapseItem, _sfc_main$21 as UConditionEditor, _sfc_main$22 as UContextMenu, _sfc_main$23 as UDatePanel, _sfc_main$24 as UDatePicker, _sfc_main$25 as UDateRangePicker, _sfc_main$26 as UDialog, _sfc_main$27 as UDrawer, _sfc_main$28 as UDropdown, _sfc_main$29 as UEmpty, _sfc_main$30 as UExpressionEditor, _sfc_main$31 as UFilePicker, _sfc_main$32 as UFileViewer, _sfc_main$33 as UFloatButton, form_default as UForm, form_item_default as UFormItem, _sfc_main$34 as UGanttChart, _sfc_main$35 as UGrid, _sfc_main$36 as UGridInput, _sfc_main$37 as UGridItem, _sfc_main$38 as UGroupInput, _sfc_main$39 as UIcon, input_default as UInput, _sfc_main$40 as UKbd, _sfc_main$41 as ULayout, _sfc_main$42 as UList, _sfc_main$43 as UListItem, _sfc_main$44 as ULoading, _sfc_main$45 as UMenu, _sfc_main$46 as UMenuItem, _sfc_main$47 as UMenuSub, _sfc_main$48 as UMessage, _sfc_main$49 as UMessageConfirm, _sfc_main$50 as UMultiSelect, _sfc_main$51 as UMultiTreeSelect, NodeRender as UNodeRender, _sfc_main$52 as UNotification, _sfc_main$53 as UNumber, _sfc_main$54 as UNumberInput, _sfc_main$55 as UNumberRangeInput, _sfc_main$56 as UPaginator, _sfc_main$57 as UPalette, _sfc_main$58 as UPasswordInput, _sfc_main$59 as UPopConfirm, _sfc_main$60 as UProgress, _sfc_main$61 as UProgressNodes, _sfc_main$62 as URadio, _sfc_main$63 as URadioGroup, _sfc_main$64 as URichTextEditor, _sfc_main$65 as UScroll, _sfc_main$66 as USelect, _sfc_main$67 as USlider, _sfc_main$68 as USteps, _sfc_main$69 as USwitch, _sfc_main$70 as UTable, _sfc_main$71 as UTableEditor, _sfc_main$72 as UTabs, _sfc_main$73 as UTabsHorizontal, _sfc_main$74 as UTabsVertical, _sfc_main$75 as UTag, _sfc_main$76 as UText, _sfc_main$77 as UTextarea, _sfc_main$78 as UTheme, _sfc_main$79 as UTip, _sfc_main$80 as UTree, _sfc_main$81 as UTreeSelect, _sfc_main$82 as UWatermark, contextmenu, defineBatchEditColumns, defineTableColumns, formField, message, vLoading };
|
package/dist/style.js
CHANGED
|
@@ -17,6 +17,7 @@ import "./components/checkbox/style.js";
|
|
|
17
17
|
import "./components/radio/style.js";
|
|
18
18
|
import "./components/empty/style.js";
|
|
19
19
|
import "./components/table/style.js";
|
|
20
|
+
import "./components/kbd/style.js";
|
|
20
21
|
import "./components/batch-edit/style.js";
|
|
21
22
|
import "./components/breadcrumb/style.js";
|
|
22
23
|
import "./components/calendar/style.js";
|
package/dist/types/table.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltra/desktop",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"src"
|
|
@@ -61,22 +61,22 @@
|
|
|
61
61
|
"@lexical/rich-text": "^0.43.0",
|
|
62
62
|
"@lexical/selection": "^0.43.0",
|
|
63
63
|
"@lexical/utils": "^0.43.0",
|
|
64
|
-
"@veltra/compositions": "1.1.
|
|
65
|
-
"@veltra/directives": "1.1.
|
|
66
|
-
"@veltra/icons": "1.1.
|
|
67
|
-
"@veltra/styles": "1.1.
|
|
68
|
-
"@veltra/utils": "1.1.
|
|
64
|
+
"@veltra/compositions": "1.1.7",
|
|
65
|
+
"@veltra/directives": "1.1.7",
|
|
66
|
+
"@veltra/icons": "1.1.7",
|
|
67
|
+
"@veltra/styles": "1.1.7",
|
|
68
|
+
"@veltra/utils": "1.1.7",
|
|
69
69
|
"@visactor/vtable": "^1.26.0",
|
|
70
70
|
"codemirror": "^6.0.2",
|
|
71
71
|
"docx-preview": "^0.3.7",
|
|
72
72
|
"lexical": "^0.43.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@veltra/compositions": "1.1.
|
|
76
|
-
"@veltra/directives": "1.1.
|
|
77
|
-
"@veltra/icons": "1.1.
|
|
78
|
-
"@veltra/styles": "1.1.
|
|
79
|
-
"@veltra/utils": "1.1.
|
|
75
|
+
"@veltra/compositions": "1.1.7",
|
|
76
|
+
"@veltra/directives": "1.1.7",
|
|
77
|
+
"@veltra/icons": "1.1.7",
|
|
78
|
+
"@veltra/styles": "1.1.7",
|
|
79
|
+
"@veltra/utils": "1.1.7",
|
|
80
80
|
"vue": "^3.5.33"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -70,7 +70,9 @@ $root-name: auto-complete;
|
|
|
70
70
|
line-height: 1;
|
|
71
71
|
border: fn.use-var(border-muted);
|
|
72
72
|
box-shadow: fn.use-var(shadow, emboss);
|
|
73
|
-
transition:
|
|
73
|
+
transition:
|
|
74
|
+
border-color 0.25s ease,
|
|
75
|
+
box-shadow 0.25s ease;
|
|
74
76
|
overflow: hidden;
|
|
75
77
|
@include m.flex($display: inline-flex);
|
|
76
78
|
&:hover {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<u-form
|
|
29
29
|
:model="props.model"
|
|
30
30
|
:readonly="props.readonly"
|
|
31
|
-
@
|
|
31
|
+
@keydown="handleFormKeydown"
|
|
32
32
|
:label-width="props.labelWidth"
|
|
33
33
|
>
|
|
34
34
|
<template #default="{ data, model }">
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
有未保存改动
|
|
53
53
|
</span>
|
|
54
54
|
<span :class="cls.e('form-hint')" v-else-if="!props.readonly">
|
|
55
|
-
<kbd>Enter</kbd> 保存 · <kbd>Esc</kbd> 关闭
|
|
55
|
+
<u-kbd>Ctrl + Enter</u-kbd> 保存 · <u-kbd>Esc</u-kbd> 关闭
|
|
56
56
|
</span>
|
|
57
57
|
<span :class="cls.e('form-hint')" v-else>只读模式</span>
|
|
58
58
|
|
|
@@ -80,6 +80,7 @@ import { computed, inject, type Component } from 'vue'
|
|
|
80
80
|
import { UButton } from '../button'
|
|
81
81
|
import { UForm } from '../form'
|
|
82
82
|
import { UIcon } from '../icon'
|
|
83
|
+
import { UKbd } from '../kbd'
|
|
83
84
|
import { UScroll } from '../scroll'
|
|
84
85
|
import { BatchEditDIKey } from './di'
|
|
85
86
|
|
|
@@ -153,4 +154,11 @@ const headerInfo = computed<HeaderInfo>(() => {
|
|
|
153
154
|
const bodyKey = computed(() => {
|
|
154
155
|
return `${state.type}-${state.row?.uid ?? 'create'}-${state.parentRow?.uid ?? 'root'}`
|
|
155
156
|
})
|
|
157
|
+
|
|
158
|
+
function handleFormKeydown(e: KeyboardEvent) {
|
|
159
|
+
if ((e.metaKey || e.ctrlKey) && e.key === 'Enter') {
|
|
160
|
+
e.preventDefault()
|
|
161
|
+
handleSave()
|
|
162
|
+
}
|
|
163
|
+
}
|
|
156
164
|
</script>
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
$root-name: button;
|
|
7
7
|
|
|
8
8
|
@include m.b($root-name) {
|
|
9
|
-
color: fn.use-var(text-color, main);
|
|
9
|
+
color: fn.component-var(button, default-color, fn.use-var(text-color, main));
|
|
10
|
+
box-sizing: border-box;
|
|
10
11
|
|
|
11
12
|
line-height: 1;
|
|
12
13
|
outline: none;
|
|
@@ -17,8 +18,8 @@ $root-name: button;
|
|
|
17
18
|
cursor: pointer;
|
|
18
19
|
padding: 0 0.8em;
|
|
19
20
|
-webkit-appearance: none;
|
|
20
|
-
border:
|
|
21
|
-
background-color: fn.use-var(color, default);
|
|
21
|
+
border: 1px solid fn.component-var(button, default-border, transparent);
|
|
22
|
+
background-color: fn.component-var(button, default-bg, fn.use-var(color, default));
|
|
22
23
|
box-shadow: fn.use-var(shadow, emboss);
|
|
23
24
|
transition:
|
|
24
25
|
background-color 0.25s,
|
|
@@ -29,6 +30,11 @@ $root-name: button;
|
|
|
29
30
|
|
|
30
31
|
@include m.flex($display: inline-flex, $justify: center);
|
|
31
32
|
|
|
33
|
+
&:hover {
|
|
34
|
+
background-color: fn.component-var(button, default-hover-bg, fn.use-var(color, default, 'dark-1'));
|
|
35
|
+
border-color: fn.component-var(button, default-hover-border, transparent);
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
&:active {
|
|
33
39
|
box-shadow: none;
|
|
34
40
|
}
|
|
@@ -80,10 +86,11 @@ $root-name: button;
|
|
|
80
86
|
|
|
81
87
|
@include m.m(color-#{$type}) {
|
|
82
88
|
background-color: fn.use-var(color, $type);
|
|
83
|
-
color: fn.use-var(text-color, white);
|
|
89
|
+
color: fn.component-var(button, #{$type}-text-color, fn.use-var(text-color, white));
|
|
84
90
|
|
|
85
91
|
&:hover {
|
|
86
|
-
background-color: fn.use-var(color, $type, dark-1);
|
|
92
|
+
background-color: fn.component-var(button, #{$type}-hover-bg, fn.use-var(color, $type, dark-1));
|
|
93
|
+
color: fn.component-var(button, #{$type}-hover-color, fn.component-var(button, #{$type}-text-color, fn.use-var(text-color, white)));
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
// 禁用
|
|
@@ -105,7 +112,7 @@ $root-name: button;
|
|
|
105
112
|
@include m.is-not(disabled, loading) {
|
|
106
113
|
&:hover,
|
|
107
114
|
&:focus {
|
|
108
|
-
background-color: fn.use-var(color, $type, 'light-9');
|
|
115
|
+
background-color: fn.component-var(button, #{$type}-plain-bg, fn.use-var(color, $type, 'light-9'));
|
|
109
116
|
}
|
|
110
117
|
}
|
|
111
118
|
|
|
@@ -115,9 +122,9 @@ $root-name: button;
|
|
|
115
122
|
}
|
|
116
123
|
|
|
117
124
|
@include m.is(plain) {
|
|
118
|
-
color: fn.use-var(color, $type);
|
|
119
|
-
background-color: fn.use-var(color, $type, light-9);
|
|
120
|
-
box-shadow: 0px 0px 2px 1px fn.use-var(color, $type, light-5);
|
|
125
|
+
color: fn.component-var(button, #{$type}-plain-color, fn.use-var(color, $type));
|
|
126
|
+
background-color: fn.component-var(button, #{$type}-plain-bg, fn.use-var(color, $type, light-9));
|
|
127
|
+
box-shadow: 0px 0px 2px 1px fn.component-var(button, #{$type}-plain-shadow, fn.use-var(color, $type, light-5));
|
|
121
128
|
|
|
122
129
|
&:active {
|
|
123
130
|
box-shadow: none;
|
|
@@ -12,7 +12,9 @@ $menu-name: $root-name + '-panel-item';
|
|
|
12
12
|
@include m.is(multiple) {
|
|
13
13
|
border: fn.use-var(border-muted);
|
|
14
14
|
box-shadow: fn.use-var(shadow, emboss);
|
|
15
|
-
transition:
|
|
15
|
+
transition:
|
|
16
|
+
border-color 0.25s ease,
|
|
17
|
+
box-shadow 0.25s ease;
|
|
16
18
|
overflow: hidden;
|
|
17
19
|
cursor: pointer;
|
|
18
20
|
|
|
@@ -114,7 +116,8 @@ $menu-name: $root-name + '-panel-item';
|
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
@include m.is(active) {
|
|
117
|
-
background-color: fn.use-var(color, primary, light-9);
|
|
119
|
+
background-color: fn.component-var(cascade, node-active-bg, fn.use-var(color, primary, light-9));
|
|
120
|
+
color: fn.component-var(cascade, node-active-color, fn.use-var(color, primary));
|
|
118
121
|
border-radius: fn.use-var(radius, default);
|
|
119
122
|
}
|
|
120
123
|
|
|
@@ -53,7 +53,7 @@ $root-name: checkbox;
|
|
|
53
53
|
border: fn.use-var(border, width) fn.use-var(border, style)
|
|
54
54
|
#{fn.component-var(checkbox, border, #ccc)};
|
|
55
55
|
border-radius: 6px;
|
|
56
|
-
color: #fff;
|
|
56
|
+
color: fn.component-var(checkbox, color, #fff);
|
|
57
57
|
transition: background-color 0.15s ease;
|
|
58
58
|
@include m.flex(inline-flex, center);
|
|
59
59
|
}
|
|
@@ -63,7 +63,7 @@ $root-name: checkbox;
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@include m.m(indeterminate) {
|
|
66
|
-
background-color: #fff;
|
|
66
|
+
background-color: fn.component-var(checkbox, color, #fff);
|
|
67
67
|
width: 10px;
|
|
68
68
|
height: 2px;
|
|
69
69
|
vertical-align: middle;
|
|
@@ -24,7 +24,9 @@ $root-name: code-editor;
|
|
|
24
24
|
border: 1px solid var(--u-code-editor-border);
|
|
25
25
|
box-shadow: fn.use-var(shadow, emboss);
|
|
26
26
|
overflow: hidden;
|
|
27
|
-
transition:
|
|
27
|
+
transition:
|
|
28
|
+
border-color 0.2s ease,
|
|
29
|
+
box-shadow 0.2s ease;
|
|
28
30
|
|
|
29
31
|
&:hover,
|
|
30
32
|
&:focus-within {
|
|
@@ -36,7 +38,8 @@ $root-name: code-editor;
|
|
|
36
38
|
color: var(--u-code-editor-fg);
|
|
37
39
|
font-size: var(--u-code-editor-font-size);
|
|
38
40
|
line-height: var(--u-code-editor-line-height);
|
|
39
|
-
font-family:
|
|
41
|
+
font-family:
|
|
42
|
+
ui-monospace, 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Menlo, Consolas,
|
|
40
43
|
'Liberation Mono', monospace;
|
|
41
44
|
outline: none;
|
|
42
45
|
|
|
@@ -11,7 +11,9 @@ $root-name: date-range-picker;
|
|
|
11
11
|
line-height: 1;
|
|
12
12
|
border: fn.use-var(border-muted);
|
|
13
13
|
box-shadow: fn.use-var(shadow, emboss);
|
|
14
|
-
transition:
|
|
14
|
+
transition:
|
|
15
|
+
border-color 0.25s ease,
|
|
16
|
+
box-shadow 0.25s ease;
|
|
15
17
|
overflow: hidden;
|
|
16
18
|
|
|
17
19
|
@include m.flex($display: inline-flex);
|
|
@@ -84,8 +84,8 @@ $root-name: expression-editor;
|
|
|
84
84
|
height: 22px;
|
|
85
85
|
line-height: 1;
|
|
86
86
|
font-size: 12px;
|
|
87
|
-
color: fn.use-var(color, primary);
|
|
88
|
-
background-color: fn.use-var(color, primary, light-9);
|
|
87
|
+
color: fn.component-var(expression-editor, chip-color, fn.use-var(color, primary));
|
|
88
|
+
background-color: fn.component-var(expression-editor, chip-bg, fn.use-var(color, primary, light-9));
|
|
89
89
|
border-radius: 999px;
|
|
90
90
|
cursor: pointer;
|
|
91
91
|
user-select: none;
|
|
@@ -94,8 +94,8 @@ $root-name: expression-editor;
|
|
|
94
94
|
box-shadow 0.12s ease;
|
|
95
95
|
|
|
96
96
|
&:hover {
|
|
97
|
-
color: fn.use-var(color, primary);
|
|
98
|
-
background-color: fn.use-var(color, primary, light-8);
|
|
97
|
+
color: fn.component-var(expression-editor, chip-color, fn.use-var(color, primary));
|
|
98
|
+
background-color: fn.component-var(expression-editor, chip-bg, fn.use-var(color, primary, light-8));
|
|
99
99
|
box-shadow: 0 1px 4px fn.use-var(shadow, color);
|
|
100
100
|
|
|
101
101
|
.#{vars.$namespace}#{$root-name}__chip-close {
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UKbd } from './kbd.vue'
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use 'pkg:@veltra/styles/mixins' as m;
|
|
2
|
+
@use 'pkg:@veltra/styles/functions' as fn;
|
|
3
|
+
|
|
4
|
+
@include m.b(kbd) {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
font-family: fn.use-var(font-family);
|
|
10
|
+
font-weight: normal;
|
|
11
|
+
vertical-align: text-top;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
user-select: none;
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
top: -0.03em;
|
|
17
|
+
|
|
18
|
+
font-size: 0.75em;
|
|
19
|
+
min-width: 1.75em;
|
|
20
|
+
line-height: 1.7em;
|
|
21
|
+
padding: 0 0.5em 0.05em;
|
|
22
|
+
border-radius: calc(fn.use-var(radius, default) * 0.35);
|
|
23
|
+
height: fit-content;
|
|
24
|
+
|
|
25
|
+
color: fn.use-var(text-color, main);
|
|
26
|
+
background: fn.use-var(bg-color, top);
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
* Adapted from Radix UI Themes Kbd.
|
|
30
|
+
* Multi-layer box-shadow simulates a 3D keycap appearance.
|
|
31
|
+
*/
|
|
32
|
+
box-shadow:
|
|
33
|
+
inset 0 0.05em
|
|
34
|
+
color-mix(in srgb, #{fn.use-var(bg-color, top)} 75%, #{fn.use-var(bg-color, black)}),
|
|
35
|
+
0 0 0 0.05em color-mix(in srgb, #{fn.use-var(border, color)} 50%, transparent),
|
|
36
|
+
0 0.08em 0.17em color-mix(in srgb, #{fn.use-var(shadow, color)} 60%, transparent);
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './style.scss'
|
|
@@ -19,7 +19,9 @@ $root-name: message-confirm;
|
|
|
19
19
|
|
|
20
20
|
@include m.e(box) {
|
|
21
21
|
width: 420px;
|
|
22
|
-
background-color:
|
|
22
|
+
background-color: fn.use-var(bg-color, top);
|
|
23
|
+
border: fn.use-var(border);
|
|
24
|
+
box-shadow: fn.use-var(shadow);
|
|
23
25
|
transition:
|
|
24
26
|
opacity 0.3s,
|
|
25
27
|
transform 0.4s;
|
|
@@ -10,7 +10,9 @@ $root-name: multi-select;
|
|
|
10
10
|
line-height: 1;
|
|
11
11
|
border: fn.use-var(border-muted);
|
|
12
12
|
box-shadow: fn.use-var(shadow, emboss);
|
|
13
|
-
transition:
|
|
13
|
+
transition:
|
|
14
|
+
border-color 0.25s ease,
|
|
15
|
+
box-shadow 0.25s ease;
|
|
14
16
|
overflow: hidden;
|
|
15
17
|
cursor: pointer;
|
|
16
18
|
@include m.flex($display: inline-flex);
|
|
@@ -9,7 +9,9 @@ $root-name: multi-tree-select;
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
border: fn.use-var(border-muted);
|
|
11
11
|
box-shadow: fn.use-var(shadow, emboss);
|
|
12
|
-
transition:
|
|
12
|
+
transition:
|
|
13
|
+
border-color 0.25s ease,
|
|
14
|
+
box-shadow 0.25s ease;
|
|
13
15
|
overflow: hidden;
|
|
14
16
|
cursor: pointer;
|
|
15
17
|
line-height: 1;
|
|
@@ -16,7 +16,7 @@ $positions: ('top-left', 'top-right', 'bottom-left', 'bottom-right');
|
|
|
16
16
|
transform 0.4s,
|
|
17
17
|
top 0.4s;
|
|
18
18
|
border: fn.use-var(border);
|
|
19
|
-
background-color:
|
|
19
|
+
background-color: fn.use-var(bg-color, top);
|
|
20
20
|
box-shadow: fn.use-var(shadow);
|
|
21
21
|
margin: 4px;
|
|
22
22
|
overflow: hidden;
|
|
@@ -39,12 +39,13 @@ $root-name: paginator;
|
|
|
39
39
|
@include m.flex($justify: center);
|
|
40
40
|
|
|
41
41
|
&:hover {
|
|
42
|
-
background-color: fn.use-var(color, primary, 'light-9');
|
|
42
|
+
background-color: fn.component-var(paginator, btn-hover-bg, fn.use-var(color, primary, 'light-9'));
|
|
43
|
+
color: fn.component-var(paginator, btn-hover-color, fn.use-var(text, color, title));
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
@include m.is(active) {
|
|
46
|
-
background-color: fn.use-var(color, primary, 'light-9');
|
|
47
|
-
color: fn.use-var(color, primary);
|
|
47
|
+
background-color: fn.component-var(paginator, btn-active-bg, fn.use-var(color, primary, 'light-9'));
|
|
48
|
+
color: fn.component-var(paginator, btn-active-color, fn.use-var(color, primary));
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
@include m.is(disabled) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@use 'pkg:@veltra/styles/functions' as fn;
|
|
3
3
|
|
|
4
4
|
/** shadcn 风格 TabsList:hover 背景底色容器 + 白底活动态;rounded=true 时水平为胶囊状。 */
|
|
5
|
-
$list-bg: fn.use-var(bg-color, hover);
|
|
5
|
+
$list-bg: fn.component-var(tabs, bar-bg, fn.use-var(bg-color, hover));
|
|
6
6
|
$list-radius: fn.use-var(radius, default);
|
|
7
7
|
$item-radius: calc(fn.use-var(radius, default) - 2px);
|
|
8
8
|
$list-padding: 4px;
|
|
9
|
-
$active-bg: fn.use-var(bg-color, top);
|
|
9
|
+
$active-bg: fn.component-var(tabs, active-bg, fn.use-var(bg-color, top));
|
|
10
10
|
$active-shadow:
|
|
11
11
|
0 1px 2px rgba(15, 23, 42, 0.08),
|
|
12
12
|
0 1px 3px rgba(15, 23, 42, 0.06);
|
|
@@ -52,13 +52,13 @@ $root-name: tag;
|
|
|
52
52
|
// 颜色样式
|
|
53
53
|
@each $type in vars.$color-types {
|
|
54
54
|
@include m.m(color-#{$type}) {
|
|
55
|
-
color: fn.use-var(color, $type);
|
|
56
|
-
border-color: fn.use-var(color, $type);
|
|
57
|
-
background-color: fn.use-var(color, $type, light-9);
|
|
55
|
+
color: fn.component-var(tag, #{$type}-color, fn.use-var(color, $type));
|
|
56
|
+
border-color: fn.component-var(tag, #{$type}-border, fn.use-var(color, $type));
|
|
57
|
+
background-color: fn.component-var(tag, #{$type}-bg, fn.use-var(color, $type, light-9));
|
|
58
58
|
|
|
59
59
|
@include m.is(dark) {
|
|
60
|
-
color: fn.use-var(text-color, white);
|
|
61
|
-
background-color: fn.use-var(color, $type);
|
|
60
|
+
color: fn.component-var(tag, #{$type}-dark-color, fn.use-var(text-color, white));
|
|
61
|
+
background-color: fn.component-var(tag, #{$type}-dark-bg, fn.use-var(color, $type));
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
@include m.bem($root-name, icon-close) {
|
|
@@ -9,7 +9,9 @@ $root-name: textarea;
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
border: fn.use-var(border-muted);
|
|
11
11
|
box-shadow: fn.use-var(shadow, emboss);
|
|
12
|
-
transition:
|
|
12
|
+
transition:
|
|
13
|
+
border-color 0.25s ease,
|
|
14
|
+
box-shadow 0.25s ease;
|
|
13
15
|
overflow: hidden;
|
|
14
16
|
vertical-align: middle;
|
|
15
17
|
|
|
@@ -74,8 +74,8 @@ $indent-width: 20px;
|
|
|
74
74
|
|
|
75
75
|
@include m.is(selected) {
|
|
76
76
|
@include m.bem($root-name, node-content) {
|
|
77
|
-
background-color: fn.use-var(color, primary, light-9);
|
|
78
|
-
color: fn.use-var(color, primary);
|
|
77
|
+
background-color: fn.component-var(tree, node-selected-bg, fn.use-var(color, primary, light-9));
|
|
78
|
+
color: fn.component-var(tree, node-selected-color, fn.use-var(color, primary));
|
|
79
79
|
font-weight: 500;
|
|
80
80
|
|
|
81
81
|
// 左侧 3px 色带,配合淡色背景共同构成选中态;
|
package/src/style.ts
CHANGED
|
@@ -32,6 +32,7 @@ import './components/grid-input/style'
|
|
|
32
32
|
import './components/grid/style'
|
|
33
33
|
import './components/group-input/style'
|
|
34
34
|
import './components/icon/style'
|
|
35
|
+
import './components/kbd/style'
|
|
35
36
|
import './components/input/style'
|
|
36
37
|
import './components/layout/style'
|
|
37
38
|
import './components/list/style'
|