@veltra/desktop 1.15.0 → 1.15.2
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/_virtual/_rolldown/runtime.js +1 -2
- package/dist/components/action/action-group.js +1 -2
- package/dist/components/action/action-group.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/action/action.js +1 -2
- package/dist/components/action/di.js +1 -2
- package/dist/components/ai-button/ai-button.js +1 -2
- package/dist/components/alert/alert.js +32 -30
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/style.d.ts +1 -1
- package/dist/components/alert/style.js +1 -0
- package/dist/components/alert/style2.css +5 -1
- package/dist/components/anchor/anchor-item.js +1 -2
- package/dist/components/anchor/anchor.js +1 -2
- package/dist/components/anchor/di.js +1 -2
- package/dist/components/anchor/use-anchor.js +1 -2
- package/dist/components/auto-complete/auto-complete.js +1 -2
- package/dist/components/auto-complete/style2.css +1 -0
- package/dist/components/auto-complete/use-keyboard.js +1 -2
- package/dist/components/auto-complete/use-suggestions.js +1 -2
- package/dist/components/avatar/avatar-group.js +1 -2
- package/dist/components/avatar/avatar.js +1 -2
- package/dist/components/back-top/back-top.js +1 -2
- package/dist/components/back-top/style2.css +11 -2
- package/dist/components/badge/badge.js +16 -17
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/badge/style2.css +10 -1
- package/dist/components/batch-edit/batch-edit-form.js +109 -99
- package/dist/components/batch-edit/batch-edit-form.js.map +1 -1
- package/dist/components/batch-edit/batch-edit-list.js +1 -2
- package/dist/components/batch-edit/batch-edit.js +12 -7
- package/dist/components/batch-edit/batch-edit.js.map +1 -1
- package/dist/components/batch-edit/di.js +1 -2
- package/dist/components/batch-edit/form-action-header.js +1 -2
- package/dist/components/batch-edit/helper.d.ts +0 -2
- package/dist/components/batch-edit/helper.js +1 -2
- package/dist/components/batch-edit/style2.css +25 -1
- package/dist/components/batch-edit/use-dialog-effect.js +1 -2
- package/dist/components/batch-edit/use-edit-state.js +1 -2
- package/dist/components/batch-edit/use-features.js +1 -2
- package/dist/components/batch-edit/use-handlers.js +1 -2
- package/dist/components/batch-edit/use-shortcut-key.js +1 -2
- package/dist/components/breadcrumb/breadcrumb.js +1 -2
- package/dist/components/breadcrumb/style2.css +4 -1
- package/dist/components/button/button-group.js +1 -2
- package/dist/components/button/button.js +1 -2
- package/dist/components/button/style2.css +3 -2
- package/dist/components/calendar/calendar.js +1 -2
- package/dist/components/calendar/utils.js +1 -2
- package/dist/components/card/card-action.js +1 -2
- package/dist/components/card/card-content.js +1 -2
- package/dist/components/card/card-cover.js +1 -2
- package/dist/components/card/card-header.js +1 -2
- package/dist/components/card/card.js +1 -2
- package/dist/components/card/di.js +1 -2
- package/dist/components/carousel/carousel-item.js +1 -2
- package/dist/components/carousel/carousel.js +6 -5
- package/dist/components/carousel/carousel.js.map +1 -1
- package/dist/components/carousel/di.js +1 -2
- package/dist/components/carousel/style2.css +7 -1
- package/dist/components/carousel/use-carousel.js +17 -4
- package/dist/components/carousel/use-carousel.js.map +1 -1
- package/dist/components/cascade/cascade-panel-item.js +1 -2
- package/dist/components/cascade/cascade.js +1 -2
- package/dist/components/cascade/di.js +1 -2
- package/dist/components/cascade/node.js +1 -2
- package/dist/components/cascade/style2.css +16 -0
- package/dist/components/cascade/use-check.js +1 -2
- package/dist/components/cascade/use-data-map.js +1 -2
- package/dist/components/cascade/use-select.js +1 -2
- package/dist/components/check-tag/check-tag.js +12 -7
- package/dist/components/check-tag/check-tag.js.map +1 -1
- package/dist/components/check-tag/style2.css +10 -0
- package/dist/components/checkbox/checkbox-button.js +9 -5
- package/dist/components/checkbox/checkbox-button.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +6 -11
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/checkbox/style2.css +32 -2
- package/dist/components/checkbox-group/checkbox-group.js +1 -2
- package/dist/components/chip/chip.js +1 -2
- package/dist/components/chip/style2.css +4 -0
- package/dist/components/chip-group/chip-group.js +1 -2
- package/dist/components/chip-group/reveal.js +1 -2
- package/dist/components/code-editor/basic-setup.js +1 -2
- package/dist/components/code-editor/code-editor.js +27 -5
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/code-editor/lang-loaders.js +1 -2
- package/dist/components/code-editor/langs/bash/index.js +1 -2
- package/dist/components/code-editor/langs/powershell/index.js +1 -2
- package/dist/components/code-editor/langs/spel/completion.js +0 -1
- package/dist/components/code-editor/langs/spel/index.js +1 -2
- package/dist/components/code-editor/langs/spel/language.js +1 -2
- package/dist/components/code-editor/shell-extension.js +1 -2
- package/dist/components/code-editor/style2.css +38 -3
- package/dist/components/collapse/collapse-item.js +5 -3
- package/dist/components/collapse/collapse-item.js.map +1 -1
- package/dist/components/collapse/collapse.js +2 -3
- package/dist/components/collapse/collapse.js.map +1 -1
- package/dist/components/collapse/di.js +1 -2
- package/dist/components/collapse/style2.css +6 -3
- package/dist/components/condition-editor/components/condition-group.js +1 -2
- package/dist/components/condition-editor/components/condition-row.js +1 -2
- package/dist/components/condition-editor/condition-editor.js +1 -2
- package/dist/components/condition-editor/core/evaluator.d.ts +0 -2
- package/dist/components/condition-editor/core/evaluator.js +1 -2
- package/dist/components/condition-editor/core/operators.js +1 -2
- package/dist/components/condition-editor/style2.css +24 -6
- package/dist/components/contextmenu/api.d.ts +0 -2
- package/dist/components/contextmenu/api.js +1 -2
- package/dist/components/contextmenu/contextmenu-item.js +1 -2
- package/dist/components/contextmenu/contextmenu-panel.js +1 -2
- package/dist/components/contextmenu/contextmenu-sub.js +14 -9
- package/dist/components/contextmenu/contextmenu-sub.js.map +1 -1
- package/dist/components/contextmenu/contextmenu.js +1 -2
- package/dist/components/contextmenu/di.d.ts +0 -2
- package/dist/components/contextmenu/di.js +1 -2
- package/dist/components/contextmenu/helper.js +1 -2
- package/dist/components/contextmenu/style2.css +14 -1
- package/dist/components/date-panel/date-panel.js +1 -2
- package/dist/components/date-panel/di.js +1 -2
- package/dist/components/date-panel/headers/day.js +1 -2
- package/dist/components/date-panel/headers/month.js +1 -2
- package/dist/components/date-panel/headers/year.js +1 -2
- package/dist/components/date-panel/panels/day.js +1 -2
- package/dist/components/date-panel/panels/month.js +1 -2
- package/dist/components/date-panel/panels/year.js +1 -2
- package/dist/components/date-panel/style2.css +9 -1
- package/dist/components/date-panel/use-date-select.js +1 -2
- package/dist/components/date-panel/use-panel-date.js +1 -2
- package/dist/components/date-panel/use-panel.js +1 -2
- package/dist/components/date-picker/date-picker.js +1 -2
- package/dist/components/date-range-picker/date-range-picker.js +1 -2
- package/dist/components/descriptions/descriptions-item.js +1 -2
- package/dist/components/descriptions/descriptions.js +1 -2
- package/dist/components/dialog/di.js +1 -2
- package/dist/components/dialog/dialog.js +1 -2
- package/dist/components/dialog/style2.css +5 -1
- package/dist/components/dialog/use-maximum.js +7 -2
- package/dist/components/dialog/use-maximum.js.map +1 -1
- package/dist/components/divider/divider.js +1 -2
- package/dist/components/drawer/drawer.js +1 -2
- package/dist/components/drawer/style2.css +4 -0
- package/dist/components/dropdown/dropdown.js +1 -2
- package/dist/components/dual-nav/dual-nav-app.js +1 -2
- package/dist/components/dual-nav/dual-nav.js +1 -2
- package/dist/components/dual-nav/helper.js +1 -2
- package/dist/components/dual-nav/style2.css +5 -2
- package/dist/components/empty/empty.js +1 -2
- package/dist/components/expression-editor/components/path-preview.js +1 -2
- package/dist/components/expression-editor/components/variable-picker.js +1 -2
- package/dist/components/expression-editor/core/chip.js +1 -2
- package/dist/components/expression-editor/core/editor.js +1 -2
- package/dist/components/expression-editor/core/mention.js +1 -2
- package/dist/components/expression-editor/core/model.js +1 -2
- package/dist/components/expression-editor/di.js +1 -2
- package/dist/components/expression-editor/expression-editor.js +1 -2
- package/dist/components/expression-editor/style2.css +17 -5
- package/dist/components/file-picker/file-picker.js +1 -2
- package/dist/components/file-picker/helper.js +1 -2
- package/dist/components/file-viewer/file-viewer-toolbar.js +1 -2
- package/dist/components/file-viewer/file-viewer.js +1 -2
- package/dist/components/file-viewer/helper.js +1 -2
- package/dist/components/file-viewer/previewers/docx-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/image-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/ofd-previewer.js +3 -2
- package/dist/components/file-viewer/previewers/ofd-previewer.js.map +1 -1
- package/dist/components/file-viewer/previewers/pdf-polyfill.js +35 -3
- package/dist/components/file-viewer/previewers/pdf-polyfill.js.map +1 -1
- package/dist/components/file-viewer/previewers/pdf-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/pdf-previewer.js.map +1 -1
- package/dist/components/file-viewer/previewers/pdf-worker-wrapper.js +36 -5
- package/dist/components/file-viewer/previewers/pdf-worker-wrapper.js.map +1 -1
- package/dist/components/file-viewer/previewers/sheet-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/text-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/video-previewer.js +1 -2
- package/dist/components/file-viewer/style2.css +8 -2
- package/dist/components/float-button/float-button.js +2 -3
- package/dist/components/float-button/float-button.js.map +1 -1
- package/dist/components/float-button/style2.css +2 -3
- package/dist/components/form/form.js +1 -2
- package/dist/components/form/form.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/form/is-field-modified.js +1 -2
- package/dist/components/form/use-form-fields.js +1 -2
- package/dist/components/form/use-node-interceptor.js +1 -2
- package/dist/components/form-item/form-item.js +1 -2
- package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/form-item/helper.js +1 -2
- package/dist/components/form-item/style2.css +13 -1
- package/dist/components/form-item/validate.js +1 -2
- package/dist/components/gantt-chart/gantt-chart.js +1 -2
- package/dist/components/grid/breakpoint.js +0 -1
- package/dist/components/grid/di.js +1 -2
- package/dist/components/grid/grid-item.js +1 -2
- package/dist/components/grid/grid.js +1 -2
- package/dist/components/grid/use-responsive.js +1 -2
- package/dist/components/grid-input/grid-input.js +1 -2
- package/dist/components/grid-input/style2.css +15 -3
- package/dist/components/group-input/group-input.js +1 -2
- package/dist/components/group-input/use-group-items.js +1 -2
- package/dist/components/group-nav/group-nav-item.js +1 -2
- package/dist/components/group-nav/group-nav.js +1 -2
- package/dist/components/group-nav/style2.css +16 -7
- package/dist/components/icon/icon.js +1 -2
- package/dist/components/icon/style2.css +1 -1
- package/dist/components/image-cropper/draw-crop.js +1 -2
- package/dist/components/image-cropper/image-cropper.js +1 -2
- package/dist/components/image-cropper/style2.css +4 -1
- package/dist/components/image-cropper/use-image-loader.js +1 -2
- package/dist/components/image-cropper/use-preview.js +1 -2
- package/dist/components/image-cropper/use-selection.js +1 -2
- package/dist/components/image-cropper/use-transform.js +1 -2
- package/dist/components/image-previewer/image-previewer.js +15 -4
- package/dist/components/image-previewer/image-previewer.js.map +1 -1
- package/dist/components/image-previewer/style.d.ts +1 -1
- package/dist/components/image-previewer/style.js +1 -0
- package/dist/components/image-previewer/style2.css +9 -14
- package/dist/components/index.js +1 -2
- package/dist/components/input/input.js +1 -2
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js +5 -6
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input/style2.css +13 -1
- package/dist/components/kanban/di.js +1 -2
- package/dist/components/kanban/kanban-column.js +2 -2
- package/dist/components/kanban/kanban-column.js.map +1 -1
- package/dist/components/kanban/kanban.js +1 -2
- package/dist/components/kanban/style2.css +6 -2
- package/dist/components/kbd/kbd.js +1 -2
- package/dist/components/layout/di.js +1 -2
- package/dist/components/layout/layout-resizer.js +9 -3
- package/dist/components/layout/layout-resizer.js.map +1 -1
- package/dist/components/layout/layout.js +12 -3
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/style2.css +22 -0
- package/dist/components/list/list-item.js +1 -2
- package/dist/components/list/list.js +1 -2
- package/dist/components/loading/directive.d.ts +0 -2
- package/dist/components/loading/directive.js +1 -2
- package/dist/components/loading/loading.js +1 -2
- package/dist/components/loading/style2.css +26 -7
- package/dist/components/message/helper.js +1 -2
- package/dist/components/message/message-box.js +1 -2
- package/dist/components/message/message.d.ts +0 -2
- package/dist/components/message/message.js +1 -2
- package/dist/components/message/message2.js +1 -2
- package/dist/components/message/style2.css +18 -2
- package/dist/components/message-confirm/message-confirm-box.js +1 -2
- package/dist/components/message-confirm/message-confirm.d.ts +0 -2
- package/dist/components/message-confirm/message-confirm.js +1 -2
- package/dist/components/message-confirm/message-confirm2.js +1 -2
- package/dist/components/message-confirm/style2.css +11 -0
- package/dist/components/multi-select/di.js +1 -2
- package/dist/components/multi-select/multi-select-option.js +1 -2
- package/dist/components/multi-select/multi-select.js +22 -20
- package/dist/components/multi-select/multi-select.js.map +1 -1
- package/dist/components/multi-select/style2.css +13 -0
- package/dist/components/multi-tree-select/multi-tree-select.js +1 -2
- package/dist/components/nav/di.js +1 -2
- package/dist/components/nav/helper.js +1 -2
- package/dist/components/nav/nav-icon.js +1 -2
- package/dist/components/nav/nav-item-collapsed.js +1 -2
- package/dist/components/nav/nav-item.js +1 -2
- package/dist/components/nav/nav-sub-collapsed.js +1 -2
- package/dist/components/nav/nav-sub.js +9 -4
- package/dist/components/nav/nav-sub.js.map +1 -1
- package/dist/components/nav/nav.js +1 -2
- package/dist/components/nav/style2.css +50 -26
- package/dist/components/nav/use-nav-item.js +1 -2
- package/dist/components/nav/walk-nav-path.js +1 -2
- package/dist/components/node-render/node-render.d.ts +0 -2
- package/dist/components/node-render/node-render.js +1 -2
- package/dist/components/notification/notification-box.js +1 -2
- package/dist/components/notification/notification.d.ts +0 -2
- package/dist/components/notification/notification.js +1 -2
- package/dist/components/notification/notification2.js +1 -2
- package/dist/components/notification/style2.css +21 -0
- package/dist/components/number/number.js +1 -2
- package/dist/components/number-input/number-input.js +1 -2
- package/dist/components/number-input/style2.css +5 -2
- package/dist/components/number-range-input/number-range-input.js +1 -2
- package/dist/components/paginator/paginator.js +1 -2
- package/dist/components/paginator/style2.css +1 -0
- package/dist/components/palette/color-transform.js +1 -2
- package/dist/components/palette/di.js +1 -2
- package/dist/components/palette/palette-alpha.js +1 -2
- package/dist/components/palette/palette-color-switch.js +1 -2
- package/dist/components/palette/palette-hue.js +1 -2
- package/dist/components/palette/palette-sv.js +1 -2
- package/dist/components/palette/palette.js +1 -2
- package/dist/components/palette/use-hsv.js +1 -2
- package/dist/components/password-input/password-input.js +1 -2
- package/dist/components/password-input/style2.css +10 -1
- package/dist/components/pop-confirm/pop-confirm.js +2 -3
- package/dist/components/pop-confirm/pop-confirm.js.map +1 -1
- package/dist/components/progress/progress.js +1 -2
- package/dist/components/progress/style2.css +2 -2
- package/dist/components/progress-nodes/progress-nodes.js +1 -2
- package/dist/components/progress-nodes/style2.css +3 -3
- package/dist/components/radio/radio.js +2 -6
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/radio/style2.css +11 -1
- package/dist/components/radio-group/radio-group.js +1 -2
- package/dist/components/rate/rate.js +1 -2
- package/dist/components/rate/style2.css +7 -0
- package/dist/components/rich-text-editor/image-node.js +1 -2
- package/dist/components/rich-text-editor/rich-text-editor.js +1 -2
- package/dist/components/rich-text-editor/style2.css +6 -3
- package/dist/components/rich-text-editor/toolbar.js +1 -2
- package/dist/components/rich-text-editor/use-image-resize.js +1 -2
- package/dist/components/scroll/di.js +1 -2
- package/dist/components/scroll/scroll-bar.js +1 -2
- package/dist/components/scroll/scroll.js +1 -2
- package/dist/components/scroll/style2.css +2 -2
- package/dist/components/segment/segment.js +6 -3
- package/dist/components/segment/segment.js.map +1 -1
- package/dist/components/segment/style2.css +6 -0
- package/dist/components/select/select.js +6 -3
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/style2.css +11 -1
- package/dist/components/select/use-keyboard.js +1 -2
- package/dist/components/select/use-options.js +1 -2
- package/dist/components/skeleton/skeleton.js +1 -2
- package/dist/components/slider/di.js +1 -2
- package/dist/components/slider/slider-thumb.js +1 -2
- package/dist/components/slider/slider.js +1 -2
- package/dist/components/slider/use-slider.js +1 -2
- package/dist/components/space/space.js +1 -2
- package/dist/components/steps/steps.js +1 -2
- package/dist/components/steps/style2.css +21 -2
- package/dist/components/switch/style2.css +10 -2
- package/dist/components/switch/switch.js +1 -2
- package/dist/components/table/allocate-column-widths.js +1 -2
- package/dist/components/table/di.js +1 -2
- package/dist/components/table/node/col.js +1 -2
- package/dist/components/table/node/row.js +1 -2
- package/dist/components/table/style2.css +20 -7
- package/dist/components/table/table-body.js +1 -2
- package/dist/components/table/table-cell.js +1 -2
- package/dist/components/table/table-foot.js +1 -2
- package/dist/components/table/table-head.js +1 -2
- package/dist/components/table/table-row.js +1 -2
- package/dist/components/table/table.js +1 -2
- package/dist/components/table/use-check.js +1 -2
- package/dist/components/table/use-col-resize.js +1 -2
- package/dist/components/table/use-columns.d.ts +0 -2
- package/dist/components/table/use-columns.js +1 -2
- package/dist/components/table/use-fixed-columns.js +1 -2
- package/dist/components/table/use-rows.js +1 -2
- package/dist/components/table/use-table.js +1 -2
- package/dist/components/table-editor/table-editor.js +1 -2
- package/dist/components/tabs/style2.css +9 -3
- package/dist/components/tabs/tabs-horizontal.js +1 -2
- package/dist/components/tabs/tabs-vertical.js +1 -2
- package/dist/components/tabs/tabs.js +1 -2
- package/dist/components/tabs/use-tabs-bar.js +1 -2
- package/dist/components/tag/style2.css +16 -7
- package/dist/components/tag/tag.js +1 -2
- package/dist/components/text/text.js +1 -2
- package/dist/components/textarea/style2.css +9 -1
- package/dist/components/textarea/textarea.js +1 -2
- package/dist/components/textarea/utils.js +1 -2
- package/dist/components/theme/schema.js +1 -2
- package/dist/components/theme/style2.css +38 -29
- package/dist/components/theme/theme.js +1 -2
- package/dist/components/time-picker/style2.css +4 -1
- package/dist/components/time-picker/time-picker.js +1 -2
- package/dist/components/timeline/timeline-item.js +1 -2
- package/dist/components/timeline/timeline.js +1 -2
- package/dist/components/tip/style2.css +11 -0
- package/dist/components/tip/tip.js +1 -2
- package/dist/components/tip/use-nest.js +1 -2
- package/dist/components/transfer/style2.css +21 -1
- package/dist/components/transfer/transfer-list.js +21 -19
- package/dist/components/transfer/transfer-list.js.map +1 -1
- package/dist/components/transfer/transfer.js +1 -2
- package/dist/components/tree/di.js +1 -2
- package/dist/components/tree/style2.css +5 -2
- package/dist/components/tree/tree-node.js +1 -2
- package/dist/components/tree/tree-node2.js +1 -2
- package/dist/components/tree/tree.js +1 -2
- package/dist/components/tree/use-check.js +1 -2
- package/dist/components/tree/use-filter.js +1 -2
- package/dist/components/tree/use-select.js +1 -2
- package/dist/components/tree/use-tree-nodes.js +1 -2
- package/dist/components/tree-select/tree-select.js +1 -2
- package/dist/components/watermark/watermark.js +1 -2
- package/dist/composables/use-overlay.js +1 -2
- package/dist/install.d.ts +0 -2
- package/dist/install.js +1 -2
- package/dist/node_modules/.bun/@codemirror_autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_commands@6.11.1/node_modules/@codemirror/commands/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-html@6.4.12/node_modules/@codemirror/lang-html/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-java@6.0.2/node_modules/@codemirror/lang-java/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-javascript@6.2.5/node_modules/@codemirror/lang-javascript/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-markdown@6.5.2/node_modules/@codemirror/lang-markdown/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_language@6.13.1/node_modules/@codemirror/language/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/powershell.js +1 -2
- package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/shell.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lint@6.9.7/node_modules/@codemirror/lint/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_search@6.7.2/node_modules/@codemirror/search/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_state@6.7.6/node_modules/@codemirror/state/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_streamparser@6.0.0/node_modules/@codemirror/streamparser/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_view@6.43.14/node_modules/@codemirror/view/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_common@1.5.3/node_modules/@lezer/common/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_css@1.3.9/node_modules/@lezer/css/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_highlight@1.2.5/node_modules/@lezer/highlight/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_java@1.1.5/node_modules/@lezer/java/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_javascript@1.5.6/node_modules/@lezer/javascript/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_lr@1.4.11/node_modules/@lezer/lr/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_markdown@1.8.0/node_modules/@lezer/markdown/dist/index.js +1 -2
- package/dist/node_modules/.bun/@marijn_find-cluster-break@1.0.4/node_modules/@marijn/find-cluster-break/src/index.js +1 -2
- package/dist/node_modules/.bun/crelt@1.0.7/node_modules/crelt/index.js +1 -2
- package/dist/node_modules/.bun/style-mod@4.1.4/node_modules/style-mod/src/style-mod.js +1 -2
- package/dist/node_modules/.bun/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js +1 -2
- package/dist/packages/ofd-core/dist/color.js +1 -2
- package/dist/packages/ofd-core/dist/color.js.map +1 -1
- package/dist/packages/ofd-core/dist/ctm.js +1 -2
- package/dist/packages/ofd-core/dist/ctm.js.map +1 -1
- package/dist/packages/ofd-core/dist/error.js +1 -2
- package/dist/packages/ofd-core/dist/error.js.map +1 -1
- package/dist/packages/ofd-core/dist/font.js +1 -2
- package/dist/packages/ofd-core/dist/font.js.map +1 -1
- package/dist/packages/ofd-core/dist/inflate.js +367 -0
- package/dist/packages/ofd-core/dist/inflate.js.map +1 -0
- package/dist/packages/ofd-core/dist/number.js +1 -2
- package/dist/packages/ofd-core/dist/number.js.map +1 -1
- package/dist/packages/ofd-core/dist/page-objects.js +1 -2
- package/dist/packages/ofd-core/dist/page-objects.js.map +1 -1
- package/dist/packages/ofd-core/dist/parse.js +1 -2
- package/dist/packages/ofd-core/dist/parse.js.map +1 -1
- package/dist/packages/ofd-core/dist/render.js +1 -2
- package/dist/packages/ofd-core/dist/render.js.map +1 -1
- package/dist/packages/ofd-core/dist/xml.js +1 -2
- package/dist/packages/ofd-core/dist/xml.js.map +1 -1
- package/dist/packages/ofd-core/dist/zip.js +22 -5
- package/dist/packages/ofd-core/dist/zip.js.map +1 -1
- package/dist/types/action.d.ts +0 -2
- package/dist/types/ai-button.d.ts +0 -2
- package/dist/types/alert.d.ts +0 -2
- package/dist/types/anchor.d.ts +0 -2
- package/dist/types/animation.d.ts +0 -2
- package/dist/types/auto-complete.d.ts +0 -2
- package/dist/types/avatar.d.ts +0 -2
- package/dist/types/back-top.d.ts +0 -2
- package/dist/types/badge.d.ts +0 -2
- package/dist/types/batch-edit.d.ts +0 -2
- package/dist/types/breadcrumb.d.ts +0 -2
- package/dist/types/button.d.ts +0 -2
- package/dist/types/calendar.d.ts +0 -2
- package/dist/types/card.d.ts +0 -2
- package/dist/types/carousel.d.ts +0 -2
- package/dist/types/cascade.d.ts +0 -2
- package/dist/types/check-tag.d.ts +0 -2
- package/dist/types/checkbox-group.d.ts +0 -2
- package/dist/types/checkbox.d.ts +0 -2
- package/dist/types/chip-group.d.ts +0 -2
- package/dist/types/chip.d.ts +0 -2
- package/dist/types/code-editor.d.ts +0 -2
- package/dist/types/collapse.d.ts +0 -2
- package/dist/types/condition-editor.d.ts +0 -2
- package/dist/types/contextmenu.d.ts +0 -2
- package/dist/types/css-transition.d.ts +0 -2
- package/dist/types/date-panel.d.ts +0 -2
- package/dist/types/date-picker.d.ts +0 -2
- package/dist/types/date-range-picker.d.ts +0 -2
- package/dist/types/descriptions.d.ts +0 -2
- package/dist/types/dialog.d.ts +0 -2
- package/dist/types/divider.d.ts +0 -2
- package/dist/types/drawer.d.ts +0 -2
- package/dist/types/dropdown.d.ts +0 -2
- package/dist/types/dual-nav.d.ts +0 -2
- package/dist/types/empty.d.ts +0 -2
- package/dist/types/expression-editor.d.ts +0 -2
- package/dist/types/file-picker.d.ts +0 -2
- package/dist/types/file-viewer.d.ts +0 -2
- package/dist/types/float-button.d.ts +0 -2
- package/dist/types/form-item.d.ts +0 -2
- package/dist/types/form.d.ts +0 -2
- package/dist/types/gantt-chart.d.ts +0 -2
- package/dist/types/grid-input.d.ts +0 -2
- package/dist/types/grid.d.ts +0 -2
- package/dist/types/group-input.d.ts +0 -2
- package/dist/types/group-nav.d.ts +0 -2
- package/dist/types/icon.d.ts +0 -2
- package/dist/types/image-cropper.d.ts +0 -2
- package/dist/types/image-previewer.d.ts +0 -2
- package/dist/types/input.d.ts +0 -2
- package/dist/types/kanban.d.ts +0 -2
- package/dist/types/layout.d.ts +0 -2
- package/dist/types/list.d.ts +0 -2
- package/dist/types/loading.d.ts +0 -2
- package/dist/types/message-confirm.d.ts +0 -2
- package/dist/types/message.d.ts +0 -2
- package/dist/types/multi-auto-complete.d.ts +0 -2
- package/dist/types/multi-select.d.ts +0 -2
- package/dist/types/multi-tree-select.d.ts +0 -2
- package/dist/types/nav.d.ts +0 -2
- package/dist/types/node-render.d.ts +0 -2
- package/dist/types/notification.d.ts +0 -2
- package/dist/types/number-input.d.ts +0 -2
- package/dist/types/number-range-input.d.ts +0 -2
- package/dist/types/number.d.ts +0 -2
- package/dist/types/paginator.d.ts +0 -2
- package/dist/types/palette.d.ts +0 -2
- package/dist/types/password-input.d.ts +0 -2
- package/dist/types/pop-confirm.d.ts +0 -2
- package/dist/types/pop.d.ts +0 -2
- package/dist/types/progress-nodes.d.ts +0 -2
- package/dist/types/progress.d.ts +0 -2
- package/dist/types/quick-batch-edit.d.ts +0 -2
- package/dist/types/radio-group.d.ts +0 -2
- package/dist/types/radio.d.ts +0 -2
- package/dist/types/rate.d.ts +0 -2
- package/dist/types/rich-text-editor.d.ts +0 -2
- package/dist/types/scroll.d.ts +0 -2
- package/dist/types/segment.d.ts +0 -2
- package/dist/types/select.d.ts +0 -2
- package/dist/types/skeleton.d.ts +0 -2
- package/dist/types/slider.d.ts +0 -2
- package/dist/types/space.d.ts +0 -2
- package/dist/types/steps.d.ts +0 -2
- package/dist/types/switch.d.ts +0 -2
- package/dist/types/table-editor.d.ts +0 -2
- package/dist/types/table.d.ts +0 -2
- package/dist/types/tabs.d.ts +0 -2
- package/dist/types/tag.d.ts +0 -2
- package/dist/types/text-editor.d.ts +0 -2
- package/dist/types/text.d.ts +0 -2
- package/dist/types/textarea.d.ts +0 -2
- package/dist/types/theme.d.ts +0 -2
- package/dist/types/time-picker.d.ts +0 -2
- package/dist/types/timeline.d.ts +0 -2
- package/dist/types/tip.d.ts +0 -2
- package/dist/types/transfer.d.ts +0 -2
- package/dist/types/tree-select.d.ts +0 -2
- package/dist/types/tree.d.ts +0 -2
- package/dist/types/watermark.d.ts +0 -2
- package/package.json +1 -1
- package/src/components/alert/alert.vue +18 -16
- package/src/components/alert/style.scss +9 -1
- package/src/components/alert/style.ts +1 -0
- package/src/components/auto-complete/style.scss +3 -0
- package/src/components/back-top/style.scss +17 -3
- package/src/components/badge/badge.vue +6 -7
- package/src/components/badge/style.scss +20 -1
- package/src/components/batch-edit/__test__/batch-edit.test.ts +10 -0
- package/src/components/batch-edit/batch-edit-form.vue +95 -83
- package/src/components/batch-edit/batch-edit.vue +18 -3
- package/src/components/batch-edit/style.scss +39 -3
- package/src/components/breadcrumb/style.scss +5 -1
- package/src/components/button/style.scss +4 -2
- package/src/components/carousel/carousel.vue +8 -2
- package/src/components/carousel/style.scss +10 -1
- package/src/components/carousel/use-carousel.ts +17 -2
- package/src/components/cascade/style.scss +27 -0
- package/src/components/check-tag/check-tag.vue +13 -3
- package/src/components/check-tag/style.scss +21 -0
- package/src/components/checkbox/checkbox-button.vue +11 -1
- package/src/components/checkbox/checkbox.vue +6 -2
- package/src/components/checkbox/style.scss +51 -2
- package/src/components/chip/style.scss +11 -0
- package/src/components/code-editor/code-editor.vue +24 -3
- package/src/components/code-editor/style.scss +54 -4
- package/src/components/collapse/collapse-item.vue +10 -1
- package/src/components/collapse/collapse.vue +3 -1
- package/src/components/collapse/style.scss +10 -7
- package/src/components/condition-editor/style.scss +39 -12
- package/src/components/contextmenu/contextmenu-sub.vue +9 -7
- package/src/components/contextmenu/style.scss +17 -1
- package/src/components/date-panel/style.scss +22 -1
- package/src/components/dialog/style.scss +6 -1
- package/src/components/dialog/use-maximum.ts +8 -0
- package/src/components/drawer/style.scss +5 -0
- package/src/components/dual-nav/style.scss +9 -4
- package/src/components/expression-editor/style.scss +27 -9
- package/src/components/file-viewer/__test__/pdf-polyfill.test.ts +83 -0
- package/src/components/file-viewer/__test__/pdfjs-compat.test.ts +27 -15
- package/src/components/file-viewer/previewers/ofd-previewer.vue +2 -0
- package/src/components/file-viewer/previewers/pdf-polyfill.ts +85 -4
- package/src/components/file-viewer/previewers/pdf-previewer.vue +2 -2
- package/src/components/file-viewer/style.scss +12 -2
- package/src/components/float-button/float-button.vue +1 -1
- package/src/components/float-button/style.scss +4 -3
- package/src/components/form-item/style.scss +16 -2
- package/src/components/grid-input/style.scss +6 -1
- package/src/components/group-nav/style.scss +30 -13
- package/src/components/icon/style.scss +2 -1
- package/src/components/image-cropper/style.scss +6 -1
- package/src/components/image-previewer/image-previewer.vue +20 -2
- package/src/components/image-previewer/style.scss +17 -14
- package/src/components/image-previewer/style.ts +1 -0
- package/src/components/input/input.vue +2 -8
- package/src/components/input/style.scss +19 -1
- package/src/components/kanban/kanban-column.vue +2 -0
- package/src/components/kanban/style.scss +11 -2
- package/src/components/layout/__test__/layout.test.ts +135 -0
- package/src/components/layout/layout-resizer.vue +8 -1
- package/src/components/layout/layout.vue +17 -1
- package/src/components/layout/style.scss +31 -6
- package/src/components/loading/style.scss +39 -8
- package/src/components/message/style.scss +20 -2
- package/src/components/message-confirm/style.scss +13 -0
- package/src/components/multi-select/multi-select.vue +13 -10
- package/src/components/multi-select/style.scss +14 -0
- package/src/components/multi-tree-select/__test__/multi-tree-select.test.ts +4 -2
- package/src/components/nav/nav-sub.vue +10 -2
- package/src/components/nav/style.scss +37 -13
- package/src/components/notification/style.scss +13 -0
- package/src/components/number-input/style.scss +8 -2
- package/src/components/paginator/style.scss +3 -0
- package/src/components/password-input/style.scss +15 -1
- package/src/components/pop-confirm/pop-confirm.vue +1 -1
- package/src/components/progress/style.scss +3 -3
- package/src/components/progress-nodes/style.scss +5 -5
- package/src/components/radio/radio.vue +1 -1
- package/src/components/radio/style.scss +19 -1
- package/src/components/rate/style.scss +9 -0
- package/src/components/rich-text-editor/style.scss +11 -6
- package/src/components/scroll/style.scss +3 -3
- package/src/components/segment/segment.vue +13 -1
- package/src/components/segment/style.scss +13 -3
- package/src/components/select/select.vue +1 -1
- package/src/components/select/style.scss +22 -1
- package/src/components/steps/style.scss +27 -5
- package/src/components/switch/style.scss +13 -2
- package/src/components/table/style.scss +44 -20
- package/src/components/tabs/style.scss +16 -3
- package/src/components/tag/style.scss +18 -1
- package/src/components/textarea/style.scss +15 -2
- package/src/components/theme/style.scss +62 -40
- package/src/components/time-picker/style.scss +9 -1
- package/src/components/tip/style.scss +13 -0
- package/src/components/transfer/style.scss +31 -1
- package/src/components/transfer/transfer-list.vue +18 -15
- package/src/components/tree/style.scss +8 -3
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<div
|
|
9
|
-
<
|
|
10
|
-
|
|
2
|
+
<transition name="fade">
|
|
3
|
+
<div v-if="visible" :class="className" role="alert">
|
|
4
|
+
<u-icon v-if="showIcon" :class="cls.e('icon')">
|
|
5
|
+
<component :is="typeIcons[type]" />
|
|
6
|
+
</u-icon>
|
|
7
|
+
|
|
8
|
+
<div :class="cls.e('content')">
|
|
9
|
+
<div v-if="$slots.title || title" :class="cls.e('title')">
|
|
10
|
+
<slot name="title">{{ title }}</slot>
|
|
11
|
+
</div>
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
<div v-if="$slots.default || description" :class="cls.e('description')">
|
|
14
|
+
<slot>{{ description }}</slot>
|
|
15
|
+
</div>
|
|
14
16
|
</div>
|
|
15
|
-
</div>
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
<u-icon v-if="closable" :class="cls.e('close')" @click.stop="handleClose">
|
|
19
|
+
<Close />
|
|
20
|
+
</u-icon>
|
|
21
|
+
</div>
|
|
22
|
+
</transition>
|
|
21
23
|
</template>
|
|
22
24
|
|
|
23
25
|
<script lang="ts" setup>
|
|
@@ -58,10 +58,18 @@ $line-ratio: 1.6;
|
|
|
58
58
|
cursor: pointer;
|
|
59
59
|
align-self: center;
|
|
60
60
|
opacity: 0.6;
|
|
61
|
-
transition:
|
|
61
|
+
transition:
|
|
62
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
63
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
62
64
|
|
|
63
65
|
&:hover {
|
|
64
66
|
opacity: 1;
|
|
65
67
|
}
|
|
68
|
+
|
|
69
|
+
// 点击即关闭,过渡来不及显示——按下瞬间缩到位
|
|
70
|
+
&:active {
|
|
71
|
+
transform: scale(0.9);
|
|
72
|
+
transition-duration: 0s;
|
|
73
|
+
}
|
|
66
74
|
}
|
|
67
75
|
}
|
|
@@ -30,6 +30,9 @@ $root-name: auto-complete;
|
|
|
30
30
|
margin: 2px 0;
|
|
31
31
|
user-select: none;
|
|
32
32
|
color: fn.use-var(text-color, main);
|
|
33
|
+
transition:
|
|
34
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
35
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
33
36
|
@include m.ellipsis;
|
|
34
37
|
|
|
35
38
|
&:hover {
|
|
@@ -19,13 +19,27 @@ $edge-offset: 10px;
|
|
|
19
19
|
&-enter-active,
|
|
20
20
|
&-leave-active {
|
|
21
21
|
transition:
|
|
22
|
-
opacity fn.use-var(transition,
|
|
23
|
-
transform fn.use-var(transition,
|
|
22
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
23
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&-enter-from,
|
|
27
27
|
&-leave-to {
|
|
28
28
|
opacity: 0;
|
|
29
|
-
transform: scale(0.
|
|
29
|
+
transform: scale(0.9);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// 降级:只保留 opacity 淡入,不做 scale 位移
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
&-enter-active,
|
|
35
|
+
&-leave-active {
|
|
36
|
+
transition: opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-enter-from,
|
|
40
|
+
&-leave-to {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: none;
|
|
43
|
+
}
|
|
30
44
|
}
|
|
31
45
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="cls.b">
|
|
3
3
|
<slot />
|
|
4
|
-
<
|
|
4
|
+
<Transition :name="transitionName">
|
|
5
|
+
<sup :class="classList" ref="supRef" v-if="!hidden">{{ badgeValue }}</sup>
|
|
6
|
+
</Transition>
|
|
5
7
|
</div>
|
|
6
8
|
</template>
|
|
7
9
|
|
|
@@ -15,6 +17,7 @@ import type { BadgeProps, ComponentSize } from '../../types'
|
|
|
15
17
|
defineOptions({ name: 'UBadge' })
|
|
16
18
|
|
|
17
19
|
const cls = bem('badge')
|
|
20
|
+
const transitionName = cls.create('fade').b
|
|
18
21
|
|
|
19
22
|
const props = withDefaults(defineProps<BadgeProps>(), { max: 99 })
|
|
20
23
|
|
|
@@ -41,12 +44,8 @@ const supRef = shallowRef<HTMLElement>()
|
|
|
41
44
|
|
|
42
45
|
const setPosition = () => {
|
|
43
46
|
if (supRef.value) {
|
|
44
|
-
|
|
45
|
-
setStyles(supRef.value, {
|
|
46
|
-
transform: `translate(-${width / 2}px, -${height / 2}px)`,
|
|
47
|
-
backgroundColor: props.color,
|
|
48
|
-
zIndex: zIndex()
|
|
49
|
-
})
|
|
47
|
+
// 角标位移(-50%,-50%)由 style.scss 常驻提供,此处仅注入运行时样式
|
|
48
|
+
setStyles(supRef.value, { backgroundColor: props.color, zIndex: zIndex() })
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -18,7 +18,10 @@ $root-name: badge;
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
background: fn.use-var(color, danger);
|
|
20
20
|
border-radius: 18px;
|
|
21
|
-
color:
|
|
21
|
+
color: fn.use-var(text-color, white);
|
|
22
|
+
// 向左上角偏移半个自身(与原 JS 内联 translate(-50%,-50%) 等价),
|
|
23
|
+
// 常驻 CSS 化后过渡类的 scale 可与位移叠加
|
|
24
|
+
transform: translate(-50%, -50%);
|
|
22
25
|
|
|
23
26
|
@include m.is(dot) {
|
|
24
27
|
height: 8px;
|
|
@@ -48,3 +51,19 @@ $root-name: badge;
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
}
|
|
54
|
+
|
|
55
|
+
// 徽标出现/消失:从 scale(0.9) + 透明淡入/淡出,位移保持不变
|
|
56
|
+
@include m.b(#{$root-name}-fade) {
|
|
57
|
+
&-enter-active,
|
|
58
|
+
&-leave-active {
|
|
59
|
+
transition:
|
|
60
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
61
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-enter-from,
|
|
65
|
+
&-leave-to {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
transform: translate(-50%, -50%) scale(0.9);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -121,6 +121,14 @@ async function clickRow(host: HTMLElement, index: number) {
|
|
|
121
121
|
await nextTick()
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/** 侧栏离场走 Transition:display 落为 none 要等离场帧结束(v-show 由过渡接管后不再瞬时隐藏) */
|
|
125
|
+
async function nextFrames(count: number) {
|
|
126
|
+
for (let i = 0; i < count; i++) {
|
|
127
|
+
await new Promise<void>((resolve) => requestAnimationFrame(() => resolve()))
|
|
128
|
+
}
|
|
129
|
+
await nextTick()
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
async function clickEditRow(host: HTMLElement, index: number) {
|
|
125
133
|
const btn = queryEditButton(host, index)
|
|
126
134
|
expect(btn, `第 ${index} 行的编辑按钮应存在`).toBeTruthy()
|
|
@@ -167,6 +175,8 @@ describe('UBatchEdit quick-edit 切换编辑行', () => {
|
|
|
167
175
|
|
|
168
176
|
// 再次点击当前行:取消选中并关闭表单,model 恢复初始值
|
|
169
177
|
await clickRow(host, 0)
|
|
178
|
+
// 侧栏离场过渡结束后 display 才落为 none
|
|
179
|
+
await nextFrames(2)
|
|
170
180
|
expect(aside.style.display).toBe('none')
|
|
171
181
|
expect(model.label).toBe('')
|
|
172
182
|
|
|
@@ -1,93 +1,100 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- 面板模式:表单常驻挂载(快照只在挂载时对传入的 model 拍一次),仅用 v-show 控制显隐;
|
|
3
3
|
弹框模式:表单随弹框挂载 / 卸载,model 初始快照由 use-edit-state 维护 -->
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<h3 :class="cls.e('form-title-text')">{{ headerInfo.title }}</h3>
|
|
17
|
-
</div>
|
|
18
|
-
<u-button
|
|
19
|
-
:class="cls.e('form-close')"
|
|
20
|
-
:icon="Close"
|
|
21
|
-
text
|
|
22
|
-
circle
|
|
23
|
-
size="small"
|
|
24
|
-
title="关闭"
|
|
25
|
-
@click="handleClose"
|
|
26
|
-
/>
|
|
27
|
-
</header>
|
|
28
|
-
|
|
29
|
-
<u-scroll always :class="cls.e('form-body')">
|
|
30
|
-
<transition name="fade" appear mode="out-in">
|
|
31
|
-
<u-form
|
|
32
|
-
ref="formComponentRef"
|
|
33
|
-
:model="props.model"
|
|
34
|
-
:readonly="props.readonly"
|
|
35
|
-
:label-width="props.labelWidth"
|
|
36
|
-
@field:update="handleFieldUpdate"
|
|
37
|
-
>
|
|
38
|
-
<slot
|
|
39
|
-
v-bind="{
|
|
40
|
-
row: state.row,
|
|
41
|
-
parentRow: state.parentRow,
|
|
42
|
-
formActionType: state.formActionType,
|
|
43
|
-
depth: state.depth,
|
|
44
|
-
indexes: state.indexPath,
|
|
45
|
-
index: state.row?.index
|
|
46
|
-
}"
|
|
47
|
-
/>
|
|
48
|
-
</u-form>
|
|
49
|
-
</transition>
|
|
50
|
-
</u-scroll>
|
|
51
|
-
|
|
52
|
-
<footer :class="cls.e('form-footer')">
|
|
53
|
-
<span :class="cls.e('form-hint')">
|
|
54
|
-
<template v-if="props.readonly"> 只读模式 </template>
|
|
55
|
-
|
|
56
|
-
<span :class="{ [bem.is('concealed')]: !shortcutActive }">
|
|
57
|
-
<template
|
|
58
|
-
v-if="
|
|
59
|
-
props.formMode === 'panel' && !(state.formActionType === 'update' && props.quickEdit)
|
|
60
|
-
"
|
|
61
|
-
>
|
|
62
|
-
<u-kbd>Ctrl + S</u-kbd> 保存 ·
|
|
63
|
-
</template>
|
|
64
|
-
<u-kbd>Esc</u-kbd> 关闭
|
|
4
|
+
<!-- 侧栏进出过渡:入场从右轻移淡入、离场快速淡出;离场结束后通知父级释放表单列 -->
|
|
5
|
+
<Transition name="u-batch-edit-form" @after-leave="emit('after-leave')">
|
|
6
|
+
<aside
|
|
7
|
+
:class="[cls.e('form'), bem.is('dialog', props.formMode === 'dialog')]"
|
|
8
|
+
v-if="!!props.model"
|
|
9
|
+
v-show="state.formVisible"
|
|
10
|
+
>
|
|
11
|
+
<header :class="cls.e('form-header')">
|
|
12
|
+
<span :class="[cls.e('form-icon'), iconToneCls]">
|
|
13
|
+
<u-icon>
|
|
14
|
+
<component :is="headerInfo.icon" />
|
|
15
|
+
</u-icon>
|
|
65
16
|
</span>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<u-button size="small" text :loading="state.loading" @click="handleClose"> 取消 </u-button>
|
|
17
|
+
<div :class="cls.e('form-title')">
|
|
18
|
+
<h3 :class="cls.e('form-title-text')">{{ headerInfo.title }}</h3>
|
|
19
|
+
</div>
|
|
70
20
|
<u-button
|
|
71
|
-
|
|
21
|
+
:class="cls.e('form-close')"
|
|
22
|
+
:icon="Close"
|
|
23
|
+
text
|
|
24
|
+
circle
|
|
72
25
|
size="small"
|
|
73
|
-
title="
|
|
74
|
-
|
|
75
|
-
@click="handleSave(true)"
|
|
76
|
-
>
|
|
77
|
-
保存并继续
|
|
78
|
-
</u-button>
|
|
79
|
-
<u-button
|
|
80
|
-
v-if="showSaveBtn"
|
|
81
|
-
type="primary"
|
|
82
|
-
size="small"
|
|
83
|
-
title="保存"
|
|
84
|
-
:icon="Save"
|
|
85
|
-
:loading="state.loading"
|
|
86
|
-
@click="handleSave()"
|
|
26
|
+
title="关闭"
|
|
27
|
+
@click="handleClose"
|
|
87
28
|
/>
|
|
88
|
-
</
|
|
89
|
-
|
|
90
|
-
|
|
29
|
+
</header>
|
|
30
|
+
|
|
31
|
+
<u-scroll always :class="cls.e('form-body')">
|
|
32
|
+
<!-- 本地快速淡入(fast):替代全局 fade(250ms)+ out-in 的空窗 -->
|
|
33
|
+
<transition name="u-batch-edit-fade" appear>
|
|
34
|
+
<u-form
|
|
35
|
+
ref="formComponentRef"
|
|
36
|
+
:model="props.model"
|
|
37
|
+
:readonly="props.readonly"
|
|
38
|
+
:label-width="props.labelWidth"
|
|
39
|
+
@field:update="handleFieldUpdate"
|
|
40
|
+
>
|
|
41
|
+
<slot
|
|
42
|
+
v-bind="{
|
|
43
|
+
row: state.row,
|
|
44
|
+
parentRow: state.parentRow,
|
|
45
|
+
formActionType: state.formActionType,
|
|
46
|
+
depth: state.depth,
|
|
47
|
+
indexes: state.indexPath,
|
|
48
|
+
index: state.row?.index
|
|
49
|
+
}"
|
|
50
|
+
/>
|
|
51
|
+
</u-form>
|
|
52
|
+
</transition>
|
|
53
|
+
</u-scroll>
|
|
54
|
+
|
|
55
|
+
<footer :class="cls.e('form-footer')">
|
|
56
|
+
<span :class="cls.e('form-hint')">
|
|
57
|
+
<template v-if="props.readonly"> 只读模式 </template>
|
|
58
|
+
|
|
59
|
+
<span :class="{ [bem.is('concealed')]: !shortcutActive }">
|
|
60
|
+
<template
|
|
61
|
+
v-if="
|
|
62
|
+
props.formMode === 'panel' &&
|
|
63
|
+
!(state.formActionType === 'update' && props.quickEdit)
|
|
64
|
+
"
|
|
65
|
+
>
|
|
66
|
+
<u-kbd>Ctrl + S</u-kbd> 保存 ·
|
|
67
|
+
</template>
|
|
68
|
+
<u-kbd>Esc</u-kbd> 关闭
|
|
69
|
+
</span>
|
|
70
|
+
</span>
|
|
71
|
+
|
|
72
|
+
<div :class="cls.e('form-actions')">
|
|
73
|
+
<u-button size="small" text :loading="state.loading" @click="handleClose">
|
|
74
|
+
取消
|
|
75
|
+
</u-button>
|
|
76
|
+
<u-button
|
|
77
|
+
v-if="showSaveContinueBtn"
|
|
78
|
+
size="small"
|
|
79
|
+
title="保存并继续"
|
|
80
|
+
:loading="state.loading"
|
|
81
|
+
@click="handleSave(true)"
|
|
82
|
+
>
|
|
83
|
+
保存并继续
|
|
84
|
+
</u-button>
|
|
85
|
+
<u-button
|
|
86
|
+
v-if="showSaveBtn"
|
|
87
|
+
type="primary"
|
|
88
|
+
size="small"
|
|
89
|
+
title="保存"
|
|
90
|
+
:icon="Save"
|
|
91
|
+
:loading="state.loading"
|
|
92
|
+
@click="handleSave()"
|
|
93
|
+
/>
|
|
94
|
+
</div>
|
|
95
|
+
</footer>
|
|
96
|
+
</aside>
|
|
97
|
+
</Transition>
|
|
91
98
|
</template>
|
|
92
99
|
|
|
93
100
|
<script lang="ts" setup>
|
|
@@ -108,6 +115,11 @@ import { useDialogEffect } from './use-dialog-effect'
|
|
|
108
115
|
|
|
109
116
|
defineOptions({ name: 'UBatchEditForm' })
|
|
110
117
|
|
|
118
|
+
const emit = defineEmits<{
|
|
119
|
+
/** 侧栏离场过渡结束(仅面板模式用于释放布局列) */
|
|
120
|
+
(e: 'after-leave'): void
|
|
121
|
+
}>()
|
|
122
|
+
|
|
111
123
|
const batchEditCtx = inject(BatchEditDIKey)!
|
|
112
124
|
|
|
113
125
|
const { cls, props, state, handleClose, handleSave, staticFeatures, dynamicFeatures, syncing } =
|
|
@@ -15,7 +15,12 @@
|
|
|
15
15
|
<BatchEditList :slots="slots" />
|
|
16
16
|
|
|
17
17
|
<!-- 编辑表单 -->
|
|
18
|
-
<BatchEditForm
|
|
18
|
+
<BatchEditForm
|
|
19
|
+
v-if="props.formMode === 'panel'"
|
|
20
|
+
ref="form"
|
|
21
|
+
v-slot="scoped"
|
|
22
|
+
@after-leave="formColumnActive = false"
|
|
23
|
+
>
|
|
19
24
|
<slot name="form" v-bind="scoped" />
|
|
20
25
|
</BatchEditForm>
|
|
21
26
|
</u-layout>
|
|
@@ -36,7 +41,7 @@
|
|
|
36
41
|
|
|
37
42
|
<script lang="ts" setup>
|
|
38
43
|
import { bem } from '@veltra/utils'
|
|
39
|
-
import { computed, provide, useTemplateRef } from 'vue'
|
|
44
|
+
import { computed, provide, shallowRef, useTemplateRef, watch } from 'vue'
|
|
40
45
|
|
|
41
46
|
import type { BatchEditEmits, BatchEditProps, BatchEditSlots, FormExposed } from '../../types'
|
|
42
47
|
import { UDialog } from '../dialog'
|
|
@@ -78,8 +83,18 @@ const { handleFocusIn, handleFocusOut, handleKeydown, focused } = useShortcutKey
|
|
|
78
83
|
state
|
|
79
84
|
})
|
|
80
85
|
|
|
86
|
+
/** 表单列占位:出现立即占位,收起待离场淡出结束(after-leave)再释放,避免淡出期间侧栏掉到第二行 */
|
|
87
|
+
const formColumnActive = shallowRef(false)
|
|
88
|
+
|
|
89
|
+
watch(
|
|
90
|
+
() => state.formVisible,
|
|
91
|
+
(visible) => {
|
|
92
|
+
if (visible) formColumnActive.value = true
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
|
|
81
96
|
const cols = computed(() => {
|
|
82
|
-
return props.formMode === 'panel' &&
|
|
97
|
+
return props.formMode === 'panel' && formColumnActive.value ? props.cols : undefined
|
|
83
98
|
})
|
|
84
99
|
|
|
85
100
|
provide(BatchEditDIKey, {
|
|
@@ -46,9 +46,7 @@ $root-name: batch-edit;
|
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
background-color: fn.use-var(bg-color, top);
|
|
48
48
|
border-radius: var(--u-batch-edit-form-radius);
|
|
49
|
-
box-shadow:
|
|
50
|
-
0 1px 2px fn.color-a(shadow, 40, color),
|
|
51
|
-
0 12px 32px -16px fn.color-a(shadow, 50, color);
|
|
49
|
+
box-shadow: fn.use-var(shadow, lg);
|
|
52
50
|
overflow: hidden;
|
|
53
51
|
isolation: isolate;
|
|
54
52
|
min-height: 0;
|
|
@@ -191,3 +189,41 @@ $root-name: batch-edit;
|
|
|
191
189
|
display: none;
|
|
192
190
|
}
|
|
193
191
|
}
|
|
192
|
+
|
|
193
|
+
// ---------- 侧栏进出过渡 ----------
|
|
194
|
+
// 入场从右轻移淡入(normal/ease-out),离场快速纯淡出(出场快于入场);
|
|
195
|
+
// 弹框模式的显隐由弹框外壳负责,排除 is-dialog
|
|
196
|
+
#{fn.bem($root-name, form)}:not(.is-dialog) {
|
|
197
|
+
&.u-batch-edit-form-enter-active {
|
|
198
|
+
transition:
|
|
199
|
+
opacity fn.use-var(transition, normal) fn.use-var(transition, ease-out),
|
|
200
|
+
transform fn.use-var(transition, normal) fn.use-var(transition, ease-out);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&.u-batch-edit-form-leave-active {
|
|
204
|
+
transition:
|
|
205
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
206
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.u-batch-edit-form-enter-from {
|
|
210
|
+
opacity: 0;
|
|
211
|
+
transform: translateX(12px);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.u-batch-edit-form-leave-to {
|
|
215
|
+
opacity: 0;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// ---------- 表单内容快速淡入 ----------
|
|
220
|
+
// 替代全局 fade(250ms + out-in 空窗):本地 fast,无 out-in
|
|
221
|
+
.u-batch-edit-fade-enter-active,
|
|
222
|
+
.u-batch-edit-fade-leave-active {
|
|
223
|
+
transition: opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.u-batch-edit-fade-enter-from,
|
|
227
|
+
.u-batch-edit-fade-leave-to {
|
|
228
|
+
opacity: 0;
|
|
229
|
+
}
|
|
@@ -42,12 +42,16 @@ $root-name: breadcrumb;
|
|
|
42
42
|
text-decoration: none;
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
border-radius: fn.use-var(radius, small);
|
|
45
|
-
transition: color
|
|
45
|
+
transition: color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
46
46
|
|
|
47
47
|
@include m.is-not(disabled) {
|
|
48
48
|
&:hover {
|
|
49
49
|
color: fn.use-var(color, primary);
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
&:active {
|
|
53
|
+
opacity: 0.7;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
&:focus-visible {
|
|
@@ -23,7 +23,8 @@ $root-name: button;
|
|
|
23
23
|
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
24
24
|
border-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
25
25
|
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
26
|
-
box-shadow fn.use-var(transition, fast) fn.use-var(transition, ease)
|
|
26
|
+
box-shadow fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
27
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
27
28
|
-webkit-tap-highlight-color: transparent; /* For some Androids */
|
|
28
29
|
gap: fn.use-var(gap-small);
|
|
29
30
|
|
|
@@ -38,8 +39,9 @@ $root-name: button;
|
|
|
38
39
|
border-color: fn.component-var(button, default-hover-border, transparent);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
&:active {
|
|
42
|
+
&:active:not(.is-disabled):not(.is-loading) {
|
|
42
43
|
box-shadow: none;
|
|
44
|
+
transform: scale(0.97);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
@include m.is(disabled, loading) {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
:class="cls.b"
|
|
4
|
+
role="region"
|
|
5
|
+
aria-roledescription="carousel"
|
|
6
|
+
@mouseenter="pauseAutoplay"
|
|
7
|
+
@mouseleave="resumeAutoplay"
|
|
8
|
+
>
|
|
3
9
|
<div :class="cls.e('track')" :style="trackStyle">
|
|
4
10
|
<slot />
|
|
5
11
|
</div>
|
|
@@ -77,7 +83,7 @@ const unregister = (uid: number) => {
|
|
|
77
83
|
if (index > -1) itemUids.value.splice(index, 1)
|
|
78
84
|
}
|
|
79
85
|
|
|
80
|
-
const { current, canPrev, canNext, goTo, prev, next } = useCarousel({
|
|
86
|
+
const { current, canPrev, canNext, goTo, prev, next, pauseAutoplay, resumeAutoplay } = useCarousel({
|
|
81
87
|
model,
|
|
82
88
|
count: () => itemUids.value.length,
|
|
83
89
|
autoplay: () => autoplay,
|
|
@@ -48,6 +48,10 @@ $root-name: carousel;
|
|
|
48
48
|
transform: translateY(-50%) scale(1.08);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
&:active:not(:disabled) {
|
|
52
|
+
transform: translateY(-50%) scale(0.95);
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
&:focus-visible {
|
|
52
56
|
box-shadow: fn.use-var(focus-ring);
|
|
53
57
|
}
|
|
@@ -90,12 +94,17 @@ $root-name: carousel;
|
|
|
90
94
|
background-color: fn.color-a(text-color, 40, white);
|
|
91
95
|
transition:
|
|
92
96
|
width fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
93
|
-
background-color fn.use-var(transition, fast) fn.use-var(transition, ease)
|
|
97
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
98
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
94
99
|
|
|
95
100
|
&:hover {
|
|
96
101
|
background-color: fn.color-a(text-color, 70, white);
|
|
97
102
|
}
|
|
98
103
|
|
|
104
|
+
&:active {
|
|
105
|
+
transform: scale(0.9);
|
|
106
|
+
}
|
|
107
|
+
|
|
99
108
|
&:focus-visible {
|
|
100
109
|
box-shadow: fn.use-var(focus-ring);
|
|
101
110
|
}
|
|
@@ -56,6 +56,9 @@ export function useCarousel({ model, count, autoplay, interval, loop }: UseCarou
|
|
|
56
56
|
|
|
57
57
|
let timer: ReturnType<typeof setInterval> | undefined
|
|
58
58
|
|
|
59
|
+
/** 悬停暂停标记:暂停期间 watch 触发的重启一律忽略,离开后才恢复 */
|
|
60
|
+
let hoverPaused = false
|
|
61
|
+
|
|
59
62
|
const stopAutoplay = () => {
|
|
60
63
|
if (timer !== undefined) {
|
|
61
64
|
clearInterval(timer)
|
|
@@ -65,13 +68,25 @@ export function useCarousel({ model, count, autoplay, interval, loop }: UseCarou
|
|
|
65
68
|
|
|
66
69
|
const startAutoplay = () => {
|
|
67
70
|
stopAutoplay()
|
|
68
|
-
if (!toValue(autoplay) || pageCount() < 2) return
|
|
71
|
+
if (hoverPaused || !toValue(autoplay) || pageCount() < 2) return
|
|
69
72
|
timer = setInterval(() => step(1), toValue(interval))
|
|
70
73
|
}
|
|
71
74
|
|
|
75
|
+
/** 悬停暂停自动播放 */
|
|
76
|
+
const pauseAutoplay = () => {
|
|
77
|
+
hoverPaused = true
|
|
78
|
+
stopAutoplay()
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** 离开后恢复自动播放:重建定时器重置整个间隔,不立即跳帧 */
|
|
82
|
+
const resumeAutoplay = () => {
|
|
83
|
+
hoverPaused = false
|
|
84
|
+
startAutoplay()
|
|
85
|
+
}
|
|
86
|
+
|
|
72
87
|
watch([autoplay, count, interval, current], startAutoplay)
|
|
73
88
|
|
|
74
89
|
onScopeDispose(stopAutoplay)
|
|
75
90
|
|
|
76
|
-
return { current, canPrev, canNext, goTo, prev, next }
|
|
91
|
+
return { current, canPrev, canNext, goTo, prev, next, pauseAutoplay, resumeAutoplay }
|
|
77
92
|
}
|
|
@@ -101,6 +101,10 @@ $menu-name: $root-name + '-panel-item';
|
|
|
101
101
|
max-width: 200px;
|
|
102
102
|
flex-grow: 1;
|
|
103
103
|
|
|
104
|
+
// 新列随「从左往右钻取」语义从右侧轻移淡入;纯 CSS 动画不阻塞连续下钻
|
|
105
|
+
animation: cascade-panel-item-enter fn.use-var(transition, fast) fn.use-var(transition, ease-out)
|
|
106
|
+
both;
|
|
107
|
+
|
|
104
108
|
&:not(:last-child) {
|
|
105
109
|
border-right: fn.use-var(border);
|
|
106
110
|
}
|
|
@@ -111,6 +115,16 @@ $menu-name: $root-name + '-panel-item';
|
|
|
111
115
|
user-select: none;
|
|
112
116
|
gap: 4px;
|
|
113
117
|
@include m.flex($justify: space-between);
|
|
118
|
+
transition:
|
|
119
|
+
background-color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
120
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
121
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
122
|
+
|
|
123
|
+
@include m.is-not(disabled) {
|
|
124
|
+
&:active {
|
|
125
|
+
transform: scale(0.98);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
114
128
|
|
|
115
129
|
&:hover {
|
|
116
130
|
background-color: fn.use-var(bg-color, hover);
|
|
@@ -152,3 +166,16 @@ $menu-name: $root-name + '-panel-item';
|
|
|
152
166
|
flex-shrink: 0;
|
|
153
167
|
}
|
|
154
168
|
}
|
|
169
|
+
|
|
170
|
+
// 新子面板列入场:透明 + 右移 8px 归位(fast,钻取方向从左往右)
|
|
171
|
+
@keyframes cascade-panel-item-enter {
|
|
172
|
+
from {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
transform: translateX(8px);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
to {
|
|
178
|
+
opacity: 1;
|
|
179
|
+
transform: none;
|
|
180
|
+
}
|
|
181
|
+
}
|