vue-devui 1.6.18 → 1.6.20
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/action-timeline/index.es.js +12 -8
- package/action-timeline/index.umd.js +1 -1
- package/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +161 -107
- package/auto-complete/index.umd.js +35 -20
- package/auto-complete/style.css +1 -1
- package/avatar/index.umd.js +3 -3
- package/badge/index.umd.js +1 -1
- package/breadcrumb/index.es.js +98 -91
- package/breadcrumb/index.umd.js +5 -1
- package/button/index.es.js +56 -46
- package/button/index.umd.js +9 -9
- package/card/index.umd.js +1 -1
- package/carousel/index.umd.js +1 -1
- package/category-search/index.es.js +1478 -2372
- package/category-search/index.umd.js +41 -26
- package/category-search/style.css +1 -1
- package/checkbox/index.es.js +170 -108
- package/checkbox/index.umd.js +32 -17
- package/code-editor/index.es.js +83 -62
- package/code-editor/index.umd.js +9 -9
- package/code-review/index.es.js +92 -68
- package/code-review/index.umd.js +23 -19
- package/code-review/style.css +1 -1
- package/collapse/index.es.js +3 -21
- package/collapse/index.umd.js +2 -2
- package/countdown/index.umd.js +1 -1
- package/data-grid/index.es.js +339 -220
- package/data-grid/index.umd.js +31 -16
- package/date-picker-pro/index.es.js +490 -313
- package/date-picker-pro/index.umd.js +35 -20
- package/dragdrop/index.umd.js +1 -1
- package/dragdrop-new/index.es.js +499 -555
- package/dragdrop-new/index.umd.js +3 -16
- package/drawer/index.es.js +15 -25
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +98 -91
- package/dropdown/index.umd.js +5 -1
- package/echarts/index.es.js +12 -27
- package/echarts/index.umd.js +1 -1
- package/editable-select/index.es.js +104 -79
- package/editable-select/index.umd.js +10 -10
- package/editor-md/index.es.js +356 -268
- package/editor-md/index.umd.js +48 -44
- package/form/index.es.js +146 -94
- package/form/index.umd.js +27 -12
- package/fullscreen/index.umd.js +1 -1
- package/git-graph/index.es.js +96 -90
- package/git-graph/index.umd.js +14 -14
- package/global.d.ts +0 -1
- package/grid/index.es.js +7 -20
- package/grid/index.umd.js +1 -1
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +12 -23
- package/image-preview/index.umd.js +5 -5
- package/input/index.es.js +148 -96
- package/input/index.umd.js +30 -15
- package/input-number/index.es.js +167 -107
- package/input-number/index.umd.js +35 -20
- package/layout/index.umd.js +1 -1
- package/loading/index.es.js +19 -38
- package/loading/index.umd.js +1 -1
- package/mention/index.es.js +143 -89
- package/mention/index.umd.js +33 -18
- package/menu/index.es.js +0 -7
- package/menu/index.umd.js +2 -2
- package/message/index.es.js +34 -34
- package/message/index.umd.js +5 -1
- package/modal/index.es.js +50 -70
- package/modal/index.umd.js +2 -2
- package/notification/index.es.js +13 -27
- package/notification/index.umd.js +3 -3
- package/overlay/index.es.js +24 -18
- package/overlay/index.umd.js +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +302 -201
- package/pagination/index.umd.js +33 -18
- package/pagination/style.css +1 -1
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +60 -22
- package/popover/index.umd.js +9 -5
- package/progress/index.umd.js +3 -3
- package/radio/index.es.js +164 -104
- package/radio/index.umd.js +34 -19
- package/radio/style.css +1 -1
- package/rate/index.umd.js +1 -1
- package/result/index.es.js +3 -3
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +5 -18
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +156 -106
- package/search/index.umd.js +29 -20
- package/select/index.es.js +239 -153
- package/select/index.umd.js +34 -19
- package/select/style.css +1 -1
- package/skeleton/index.umd.js +2 -2
- package/slider/index.es.js +15 -11
- package/slider/index.umd.js +1 -1
- package/splitter/index.es.js +93 -53
- package/splitter/index.umd.js +17 -13
- package/statistic/index.es.js +0 -21
- package/statistic/index.umd.js +1 -1
- package/status/index.umd.js +1 -1
- package/steps/index.umd.js +1 -1
- package/style.css +2 -2
- package/switch/index.es.js +140 -88
- package/switch/index.umd.js +34 -19
- package/table/index.es.js +403 -260
- package/table/index.umd.js +34 -19
- package/tabs/index.umd.js +1 -1
- package/tag/index.es.js +3 -1
- package/tag/index.umd.js +1 -1
- package/textarea/index.es.js +149 -95
- package/textarea/index.umd.js +34 -19
- package/time-picker/index.es.js +164 -109
- package/time-picker/index.umd.js +33 -18
- package/time-select/index.es.js +239 -153
- package/time-select/index.umd.js +33 -18
- package/time-select/style.css +1 -1
- package/timeline/index.umd.js +1 -1
- package/tooltip/index.es.js +60 -22
- package/tooltip/index.umd.js +8 -4
- package/tree/index.es.js +213 -136
- package/tree/index.umd.js +32 -17
- package/tree/style.css +1 -1
- package/types/accordion/src/accordion-item-hreflink.d.ts +1 -1
- package/types/accordion/src/accordion-item-routerlink.d.ts +1 -1
- package/types/accordion/src/accordion-item.d.ts +1 -1
- package/types/accordion/src/accordion-list.d.ts +1 -1
- package/types/accordion/src/accordion-menu.d.ts +1 -1
- package/types/accordion/src/accordion-types.d.ts +1 -1
- package/types/accordion/src/accordion.d.ts +1 -1
- package/types/accordion/src/accordion.type.d.ts +2 -2
- package/types/action-timeline/src/action-timeline-types.d.ts +2 -2
- package/types/action-timeline/src/action-timeline.d.ts +1 -1
- package/types/alert/src/alert-types.d.ts +2 -2
- package/types/alert/src/alert.d.ts +1 -1
- package/types/anchor/src/anchor.d.ts +1 -1
- package/types/anchor/src/utils.d.ts +1 -1
- package/types/auto-complete/src/auto-complete-types.d.ts +14 -14
- package/types/auto-complete/src/auto-complete.d.ts +1 -1
- package/types/auto-complete/src/components/dropdown.d.ts +1 -1
- package/types/auto-complete/src/composables/use-custom-template.d.ts +1 -1
- package/types/avatar/src/avatar-types.d.ts +1 -1
- package/types/avatar/src/avatar.d.ts +1 -1
- package/types/avatar/src/components/avatar-body-icon.d.ts +1 -1
- package/types/avatar/src/components/avatar-nobody-icon.d.ts +1 -1
- package/types/back-top/src/back-top-types.d.ts +3 -3
- package/types/back-top/src/back-top.d.ts +1 -1
- package/types/back-top/src/hooks/use-event-listener.d.ts +1 -1
- package/types/badge/src/badge-types.d.ts +3 -3
- package/types/badge/src/badge.d.ts +1 -1
- package/types/breadcrumb/src/breadcrumb-item-types.d.ts +1 -1
- package/types/breadcrumb/src/breadcrumb-item.d.ts +1 -1
- package/types/breadcrumb/src/breadcrumb-types.d.ts +1 -1
- package/types/breadcrumb/src/breadcrumb.d.ts +1 -1
- package/types/button/src/button-group.d.ts +1 -1
- package/types/button/src/button-types.d.ts +7 -7
- package/types/button/src/button.d.ts +1 -1
- package/types/card/src/card-types.d.ts +1 -1
- package/types/card/src/card.d.ts +1 -1
- package/types/carousel/src/carousel.d.ts +1 -1
- package/types/carousel/src/item.d.ts +1 -1
- package/types/carousel/src/types.d.ts +4 -4
- package/types/cascader/components/cascader-list/index.d.ts +1 -1
- package/types/cascader/hooks/use-cascader-item.d.ts +1 -1
- package/types/cascader/hooks/use-cascader-multiple.d.ts +1 -1
- package/types/cascader/hooks/use-cascader-options.d.ts +2 -14
- package/types/cascader/src/cascader-types.d.ts +10 -10
- package/types/cascader/src/cascader.d.ts +1 -1
- package/types/category-search/src/category-search-types.d.ts +7 -7
- package/types/category-search/src/category-search.d.ts +1 -1
- package/types/category-search/src/components/category-search-clear.d.ts +1 -1
- package/types/category-search/src/components/category-search-input.d.ts +1 -1
- package/types/category-search/src/components/category-search-more.d.ts +1 -1
- package/types/category-search/src/components/category-search-save.d.ts +1 -1
- package/types/category-search/src/components/category-search-tag-dropdown.d.ts +1 -1
- package/types/category-search/src/components/category-search-tag.d.ts +1 -1
- package/types/category-search/src/components/checkbox-menu.d.ts +1 -1
- package/types/category-search/src/components/label-menu.d.ts +1 -1
- package/types/category-search/src/components/number-range-menu.d.ts +1 -1
- package/types/category-search/src/components/radio-menu.d.ts +1 -1
- package/types/category-search/src/components/text-input-menu.d.ts +1 -1
- package/types/category-search/src/composables/use-category-search.d.ts +1 -1
- package/types/checkbox/src/checkbox-button.d.ts +1 -1
- package/types/checkbox/src/checkbox-group.d.ts +1 -1
- package/types/checkbox/src/checkbox-types.d.ts +7 -7
- package/types/checkbox/src/checkbox.d.ts +1 -1
- package/types/code-editor/src/code-editor-types.d.ts +3 -3
- package/types/code-editor/src/code-editor.d.ts +1 -1
- package/types/code-review/src/code-review-types.d.ts +6 -6
- package/types/code-review/src/code-review.d.ts +1 -1
- package/types/code-review/src/components/code-review-header.d.ts +1 -1
- package/types/code-review/src/composables/use-code-review-fold.d.ts +1 -1
- package/types/collapse/src/collapse-item.d.ts +1 -1
- package/types/collapse/src/collapse-types.d.ts +3 -3
- package/types/collapse/src/collapse.d.ts +1 -1
- package/types/color-picker/src/color-picker-types.d.ts +1 -1
- package/types/color-picker/src/color-picker.d.ts +1 -1
- package/types/color-picker/src/components/color-alpha-slider/color-alpha-slider.d.ts +1 -1
- package/types/color-picker/src/components/color-alpha-slider/color-picker-alpha-slider-types.d.ts +1 -1
- package/types/color-picker/src/components/color-basic/color-basic-types.d.ts +1 -1
- package/types/color-picker/src/components/color-basic/color-basic.d.ts +1 -1
- package/types/color-picker/src/components/color-edit/color-edit.d.ts +1 -1
- package/types/color-picker/src/components/color-edit/color-picker-edit-types.d.ts +1 -1
- package/types/color-picker/src/components/color-history/color-history.d.ts +1 -1
- package/types/color-picker/src/components/color-history/color-picker-history-types.d.ts +1 -1
- package/types/color-picker/src/components/color-hue-slider/color-hue-slider.d.ts +1 -1
- package/types/color-picker/src/components/color-hue-slider/color-picker-hue-slider-types.d.ts +1 -1
- package/types/color-picker/src/components/color-palette/color-palette.d.ts +1 -1
- package/types/color-picker/src/components/color-palette/color-picker-palette-types.d.ts +1 -1
- package/types/color-picker/src/components/color-picker-panel/color-picker-panel-types.d.ts +1 -1
- package/types/color-picker/src/components/color-picker-panel/color-picker-panel.d.ts +1 -1
- package/types/color-picker/src/utils/color-utils-types.d.ts +11 -11
- package/types/color-picker/src/utils/dom-dragger.d.ts +1 -1
- package/types/comment/src/comment-types.d.ts +1 -1
- package/types/comment/src/comment.d.ts +1 -1
- package/types/countdown/src/countdown-types.d.ts +1 -1
- package/types/countdown/src/countdown.d.ts +1 -1
- package/types/data-grid/src/components/fix-head-grid.d.ts +1 -1
- package/types/data-grid/src/components/grid-body.d.ts +1 -1
- package/types/data-grid/src/components/grid-head.d.ts +1 -1
- package/types/data-grid/src/components/grid-td.d.ts +1 -1
- package/types/data-grid/src/components/grid-th-filter.d.ts +1 -1
- package/types/data-grid/src/components/grid-th-multiple-filter.d.ts +1 -1
- package/types/data-grid/src/components/grid-th-single-filter.d.ts +1 -1
- package/types/data-grid/src/components/grid-th.d.ts +1 -1
- package/types/data-grid/src/components/normal-head-grid.d.ts +1 -1
- package/types/data-grid/src/composables/use-column-sort.d.ts +1 -1
- package/types/data-grid/src/composables/use-data-grid-tree.d.ts +4 -4
- package/types/data-grid/src/data-grid-types.d.ts +19 -19
- package/types/data-grid/src/data-grid.d.ts +1 -1
- package/types/date-picker/src/components/popup/index.d.ts +1 -3
- package/types/date-picker/src/components/timepicker/index.d.ts +1 -1
- package/types/date-picker/src/components/today-default/index.d.ts +1 -1
- package/types/date-picker/src/components/types.d.ts +16 -16
- package/types/date-picker/src/components/utils.d.ts +3 -3
- package/types/date-picker/src/components/vertical-slider/index.d.ts +1 -1
- package/types/date-picker/src/date-picker-types.d.ts +5 -5
- package/types/date-picker/src/date-picker.d.ts +1 -1
- package/types/date-picker/src/stick-slider/index.d.ts +1 -1
- package/types/date-picker/src/utils.d.ts +1 -1
- package/types/date-picker-pro/src/components/calendar-panel.d.ts +1 -1
- package/types/date-picker-pro/src/components/date-picker-panel.d.ts +1 -1
- package/types/date-picker-pro/src/components/month-calendar-panel.d.ts +1 -1
- package/types/date-picker-pro/src/components/range-date-picker-pro.d.ts +1 -1
- package/types/date-picker-pro/src/components/time-picker-panel.d.ts +1 -1
- package/types/date-picker-pro/src/components/year-calendar-panel.d.ts +1 -1
- package/types/date-picker-pro/src/date-picker-pro-types.d.ts +4 -4
- package/types/date-picker-pro/src/date-picker-pro.d.ts +1 -1
- package/types/date-picker-pro/src/range-date-picker-types.d.ts +1 -1
- package/types/dragdrop-new/src/batch-draggable.directive.d.ts +1 -1
- package/types/dragdrop-new/src/directive-base.d.ts +1 -1
- package/types/dragdrop-new/src/drag-preview-clone-dom-ref.component.d.ts +1 -1
- package/types/dragdrop-new/src/drag-preview.component.d.ts +2 -2
- package/types/dragdrop-new/src/drop-scroll-enhance.directive.d.ts +5 -5
- package/types/dragdrop-new/src/droppable.directive.d.ts +1 -1
- package/types/drawer/src/components/drawer-overlay.d.ts +1 -1
- package/types/drawer/src/drawer-types.d.ts +6 -6
- package/types/drawer/src/drawer.d.ts +1 -1
- package/types/dropdown/src/dropdown-menu-types.d.ts +5 -5
- package/types/dropdown/src/dropdown-menu.d.ts +1 -1
- package/types/dropdown/src/dropdown-types.d.ts +6 -6
- package/types/dropdown/src/dropdown.d.ts +1 -1
- package/types/echarts/src/echarts-types.d.ts +1 -1
- package/types/echarts/src/echarts.d.ts +1 -1
- package/types/editable-select/src/components/dropdown/dropdown-types.d.ts +1 -1
- package/types/editable-select/src/components/dropdown/dropdown.d.ts +1 -1
- package/types/editable-select/src/components/option/option-types.d.ts +1 -1
- package/types/editable-select/src/components/option/option.d.ts +1 -1
- package/types/editable-select/src/composables/use-select.d.ts +1 -1
- package/types/editable-select/src/editable-select-types.d.ts +4 -4
- package/types/editable-select/src/editable-select.d.ts +1 -1
- package/types/editor-md/src/components/font-color.d.ts +1 -1
- package/types/editor-md/src/components/font-size.d.ts +1 -1
- package/types/editor-md/src/components/md-render.d.ts +1 -1
- package/types/editor-md/src/components/toolbar-item.d.ts +1 -1
- package/types/editor-md/src/components/toolbar.d.ts +1 -1
- package/types/editor-md/src/composables/use-editor-md-toolbar.d.ts +1 -0
- package/types/editor-md/src/composables/use-editor-md.d.ts +2 -0
- package/types/editor-md/src/editor-md-types.d.ts +6 -5
- package/types/editor-md/src/editor-md.d.ts +1 -1
- package/types/form/src/components/form-control/form-control-types.d.ts +2 -2
- package/types/form/src/components/form-control/form-control.d.ts +1 -1
- package/types/form/src/components/form-item/form-item-types.d.ts +7 -7
- package/types/form/src/components/form-item/form-item.d.ts +1 -1
- package/types/form/src/components/form-label/form-label-types.d.ts +1 -1
- package/types/form/src/components/form-label/form-label.d.ts +1 -1
- package/types/form/src/components/form-operation/form-operation.d.ts +1 -1
- package/types/form/src/form-types.d.ts +10 -10
- package/types/form/src/form.d.ts +1 -1
- package/types/fullscreen/src/fullscreen-types.d.ts +2 -2
- package/types/fullscreen/src/fullscreen.d.ts +1 -1
- package/types/gantt/src/gantt-bar/index.d.ts +1 -1
- package/types/gantt/src/gantt-bar-parent/index.d.ts +1 -1
- package/types/gantt/src/gantt-milestone/index.d.ts +1 -1
- package/types/gantt/src/gantt-milestone/milestone-icon.d.ts +1 -1
- package/types/gantt/src/gantt-scale/index.d.ts +4 -1
- package/types/gantt/src/gantt-tools/index.d.ts +1 -1
- package/types/gantt/src/gantt-types.d.ts +1 -1
- package/types/gantt/src/gantt.d.ts +1 -1
- package/types/git-graph/src/git-graph-types.d.ts +1 -1
- package/types/git-graph/src/git-graph.d.ts +1 -1
- package/types/grid/src/col.d.ts +1 -1
- package/types/grid/src/composables/use-screen.d.ts +2 -2
- package/types/grid/src/grid-types.d.ts +7 -7
- package/types/grid/src/row.d.ts +1 -1
- package/types/icon/src/icon-group.d.ts +1 -1
- package/types/icon/src/icon.d.ts +1 -1
- package/types/icon/src/svg-icon.d.ts +1 -1
- package/types/image-preview/src/image-preview-types.d.ts +1 -1
- package/types/image-preview/src/image-preview.d.ts +1 -1
- package/types/input/src/input-types.d.ts +2 -2
- package/types/input/src/input.d.ts +1 -1
- package/types/input-icon/src/input-icon.d.ts +1 -1
- package/types/input-number/src/input-number-types.d.ts +12 -8
- package/types/input-number/src/input-number.d.ts +1 -1
- package/types/layout/src/aside.d.ts +1 -1
- package/types/layout/src/content.d.ts +1 -1
- package/types/layout/src/footer.d.ts +1 -1
- package/types/layout/src/header.d.ts +1 -1
- package/types/layout/src/layout.d.ts +1 -1
- package/types/list/src/list-item.d.ts +1 -1
- package/types/list/src/list.d.ts +1 -1
- package/types/loading/src/loading-service.d.ts +1 -1
- package/types/loading/src/loading-types.d.ts +2 -2
- package/types/loading/src/loading.d.ts +52 -0
- package/types/locale/index.d.ts +1 -1
- package/types/mention/src/mention-types.d.ts +1 -1
- package/types/mention/src/mention.d.ts +1 -1
- package/types/menu/src/components/menu-item/menu-item-types.d.ts +1 -1
- package/types/menu/src/components/menu-item/menu-item.d.ts +1 -1
- package/types/menu/src/components/menu-transition/menu-transition.d.ts +1 -1
- package/types/menu/src/components/sub-menu/sub-menu-types.d.ts +1 -1
- package/types/menu/src/components/sub-menu/sub-menu.d.ts +1 -1
- package/types/menu/src/components/sub-menu/use-sub-menu.d.ts +1 -1
- package/types/menu/src/menu-types.d.ts +2 -2
- package/types/menu/src/menu.d.ts +1 -1
- package/types/message/src/instance.d.ts +2 -2
- package/types/message/src/message-icon-close.d.ts +1 -1
- package/types/message/src/message-types.d.ts +5 -5
- package/types/message/src/message.d.ts +1 -1
- package/types/modal/src/components/body.d.ts +1 -1
- package/types/modal/src/components/footer.d.ts +1 -1
- package/types/modal/src/components/header.d.ts +1 -1
- package/types/modal/src/modal-types.d.ts +4 -4
- package/types/modal/src/modal.d.ts +1 -1
- package/types/multi-auto-complete/src/multi-auto-complete-types.d.ts +1 -1
- package/types/multi-auto-complete/src/multi-auto-complete.d.ts +1 -1
- package/types/nav-sprite/src/nav-sprite-types.d.ts +1 -1
- package/types/nav-sprite/src/nav-sprite.d.ts +1 -1
- package/types/notification/src/notification-icon-close.d.ts +1 -1
- package/types/notification/src/notification-image.d.ts +1 -1
- package/types/notification/src/notification-types.d.ts +5 -5
- package/types/notification/src/notification.d.ts +1 -1
- package/types/overlay/src/base-overlay.d.ts +1 -1
- package/types/overlay/src/fixed-overlay/fixed-overlay-types.d.ts +1 -1
- package/types/overlay/src/fixed-overlay/index.d.ts +1 -1
- package/types/overlay/src/flexible-overlay/flexible-overlay-types.d.ts +6 -6
- package/types/overlay/src/flexible-overlay/index.d.ts +1 -1
- package/types/pagination/src/components/config-menu.d.ts +1 -1
- package/types/pagination/src/components/jump-page.d.ts +1 -1
- package/types/pagination/src/components/page-nums.d.ts +1 -1
- package/types/pagination/src/components/page-size.d.ts +1 -1
- package/types/pagination/src/pagination-types.d.ts +3 -3
- package/types/pagination/src/pagination.d.ts +1 -1
- package/types/panel/src/components/panel-body.d.ts +1 -1
- package/types/panel/src/components/panel-footer.d.ts +1 -1
- package/types/panel/src/components/panel-header.d.ts +1 -1
- package/types/panel/src/panel-types.d.ts +3 -3
- package/types/panel/src/panel.d.ts +1 -1
- package/types/popover/src/popover-icon.d.ts +1 -1
- package/types/popover/src/popover-types.d.ts +5 -5
- package/types/popover/src/popover.d.ts +1 -1
- package/types/progress/src/progress-types.d.ts +1 -1
- package/types/progress/src/progress.d.ts +1 -1
- package/types/quadrant-diagram/src/components/axis/index.d.ts +1 -1
- package/types/quadrant-diagram/src/components/axis/types.d.ts +1 -1
- package/types/quadrant-diagram/src/quadrant-diagram-types.d.ts +1 -1
- package/types/quadrant-diagram/src/quadrant-diagram.d.ts +1 -1
- package/types/quadrant-diagram/type.d.ts +1 -1
- package/types/radio/src/radio-button.d.ts +1 -1
- package/types/radio/src/radio-group.d.ts +1 -1
- package/types/radio/src/radio-types.d.ts +6 -6
- package/types/radio/src/radio.d.ts +1 -1
- package/types/rate/src/rate-types.d.ts +2 -2
- package/types/rate/src/rate.d.ts +3 -3
- package/types/read-tip/src/read-tip-template.d.ts +1 -1
- package/types/read-tip/src/read-tip-types.d.ts +7 -7
- package/types/read-tip/src/read-tip.d.ts +1 -1
- package/types/result/src/result-types.d.ts +2 -2
- package/types/result/src/result.d.ts +1 -1
- package/types/search/src/composables/use-search-keydown.d.ts +1 -1
- package/types/search/src/composables/use-search-keywords.d.ts +1 -1
- package/types/search/src/search-types.d.ts +3 -3
- package/types/search/src/search.d.ts +1 -1
- package/types/select/src/components/option-group.d.ts +1 -1
- package/types/select/src/components/option.d.ts +1 -1
- package/types/select/src/components/select-content.d.ts +1 -1
- package/types/select/src/select-types.d.ts +11 -11
- package/types/select/src/select.d.ts +1 -1
- package/types/select/src/utils.d.ts +1 -1
- package/types/shared/components/popper-trigger/src/popper-trigger.d.ts +1 -1
- package/types/shared/devui-api/devui-api.d.ts +1 -1
- package/types/shared/devui-api-table/devui-api-table.d.ts +1 -1
- package/types/shared/devui-api-table/devui-api-table.type.d.ts +3 -3
- package/types/shared/devui-codebox/codebox-collapse-icon.d.ts +1 -1
- package/types/shared/devui-codebox/codebox-copied-icon.d.ts +1 -1
- package/types/shared/devui-codebox/codebox-copy-icon.d.ts +1 -1
- package/types/shared/devui-codebox/devui-codebox.d.ts +1 -1
- package/types/shared/devui-highlight/devui-highlight.d.ts +1 -1
- package/types/shared/hooks/use-namespace.d.ts +1 -1
- package/types/shared/utils/use-namespace.d.ts +1 -1
- package/types/skeleton/src/components/skeleton-item-types.d.ts +3 -3
- package/types/skeleton/src/components/skeleton-item.d.ts +1 -1
- package/types/skeleton/src/skeleton-types.d.ts +1 -1
- package/types/skeleton/src/skeleton.d.ts +1 -3
- package/types/slider/src/slider-types.d.ts +1 -1
- package/types/slider/src/slider.d.ts +1 -1
- package/types/splitter/src/components/splitter-bar-types.d.ts +1 -1
- package/types/splitter/src/components/splitter-bar.d.ts +1 -1
- package/types/splitter/src/components/splitter-pane-types.d.ts +1 -1
- package/types/splitter/src/components/splitter-pane.d.ts +1 -1
- package/types/splitter/src/d-resize-directive.d.ts +1 -1
- package/types/splitter/src/splitter-store.d.ts +1 -1
- package/types/splitter/src/splitter-types.d.ts +3 -3
- package/types/splitter/src/splitter.d.ts +1 -1
- package/types/statistic/src/statistic-types.d.ts +1 -1
- package/types/statistic/src/statistic.d.ts +1 -1
- package/types/statistic/src/utils/animation.d.ts +5 -5
- package/types/statistic/src/utils/separator.d.ts +1 -1
- package/types/status/src/status-types.d.ts +1 -1
- package/types/status/src/status.d.ts +1 -1
- package/types/steps/src/step-types.d.ts +2 -2
- package/types/steps/src/step.d.ts +1 -1
- package/types/steps/src/steps-types.d.ts +2 -2
- package/types/steps/src/steps.d.ts +1 -1
- package/types/steps-guide/__tests__/steps-guide-demo.d.ts +1 -1
- package/types/steps-guide/src/steps-guide-types.d.ts +4 -4
- package/types/steps-guide/src/steps-guide.d.ts +1 -1
- package/types/sticky/src/sticky.d.ts +1 -1
- package/types/switch/src/switch-types.d.ts +3 -3
- package/types/switch/src/switch.d.ts +1 -1
- package/types/table/src/components/body/body.d.ts +1 -1
- package/types/table/src/components/body-td/body-td-types.d.ts +1 -1
- package/types/table/src/components/body-td/body-td.d.ts +1 -1
- package/types/table/src/components/colgroup/colgroup.d.ts +1 -1
- package/types/table/src/components/column/column-types.d.ts +8 -8
- package/types/table/src/components/column/column.d.ts +1 -1
- package/types/table/src/components/filter/filter-types.d.ts +1 -1
- package/types/table/src/components/filter/filter.d.ts +1 -1
- package/types/table/src/components/filter/multiple-filter.d.ts +1 -1
- package/types/table/src/components/filter/single-filter.d.ts +1 -1
- package/types/table/src/components/fix-header.d.ts +1 -1
- package/types/table/src/components/header/header.d.ts +1 -1
- package/types/table/src/components/header/header.type.d.ts +1 -1
- package/types/table/src/components/header-th/header-th-types.d.ts +1 -1
- package/types/table/src/components/header-th/header-th.d.ts +1 -1
- package/types/table/src/components/normal-header.d.ts +1 -1
- package/types/table/src/components/sort/sort-types.d.ts +1 -1
- package/types/table/src/components/sort/sort.d.ts +1 -1
- package/types/table/src/table-types.d.ts +8 -8
- package/types/table/src/table.d.ts +1 -1
- package/types/tabs/src/components/tab/tab-types.d.ts +1 -1
- package/types/tabs/src/components/tab/tab.d.ts +1 -1
- package/types/tabs/src/components/tab-nav/tab-nav.d.ts +1 -1
- package/types/tabs/src/tabs-types.d.ts +5 -5
- package/types/tabs/src/tabs.d.ts +1 -1
- package/types/tag/src/tag-types.d.ts +3 -3
- package/types/tag/src/tag.d.ts +1 -1
- package/types/tag-input/src/components/icon-remove.d.ts +1 -1
- package/types/tag-input/src/tag-input-types.d.ts +3 -3
- package/types/tag-input/src/tag-input.d.ts +1 -1
- package/types/textarea/src/textarea-types.d.ts +3 -3
- package/types/textarea/src/textarea.d.ts +1 -1
- package/types/textarea/src/utils.d.ts +1 -1
- package/types/time-picker/src/components/popup-line/index.d.ts +1 -1
- package/types/time-picker/src/components/popup-line/popup-line-types.d.ts +1 -1
- package/types/time-picker/src/components/time-popup/index.d.ts +1 -1
- package/types/time-picker/src/components/time-popup/time-popup-types.d.ts +1 -1
- package/types/time-picker/src/components/time-scroll/index.d.ts +1 -1
- package/types/time-picker/src/time-picker-types.d.ts +2 -2
- package/types/time-picker/src/time-picker.d.ts +1 -1
- package/types/time-picker/src/types.d.ts +8 -8
- package/types/time-select/src/time-select-types.d.ts +3 -3
- package/types/time-select/src/time-select.d.ts +1 -1
- package/types/timeline/src/components/timeline-item-types.d.ts +3 -3
- package/types/timeline/src/components/timeline-item.d.ts +1 -1
- package/types/timeline/src/timeline-types.d.ts +5 -5
- package/types/timeline/src/timeline.d.ts +1 -1
- package/types/tooltip/src/tooltip-types.d.ts +3 -3
- package/types/tooltip/src/tooltip.d.ts +1 -1
- package/types/transfer/src/components/transfer-body.d.ts +1 -1
- package/types/transfer/src/components/transfer-header.d.ts +1 -1
- package/types/transfer/src/components/transfer-operate.d.ts +1 -1
- package/types/transfer/src/components/transfer-panel.d.ts +1 -1
- package/types/transfer/src/composables/use-transfer-body.d.ts +80 -0
- package/types/transfer/src/composables/use-transfer-header.d.ts +1 -1
- package/types/transfer/src/composables/use-transfer-operate.d.ts +1 -1
- package/types/transfer/src/composables/use-transfer-panel.d.ts +1 -1
- package/types/transfer/src/transfer-types.d.ts +3 -3
- package/types/transfer/src/transfer.d.ts +1 -1
- package/types/tree/src/components/tree-node-content.d.ts +1 -1
- package/types/tree/src/components/tree-node-loading.d.ts +1 -1
- package/types/tree/src/components/tree-node-toggle.d.ts +1 -1
- package/types/tree/src/components/tree-node.d.ts +1 -1
- package/types/tree/src/composables/use-tree-types.d.ts +7 -7
- package/types/tree/src/tree-types.d.ts +2 -2
- package/types/tree/src/tree.d.ts +1 -1
- package/types/tree/src/utils.d.ts +1 -1
- package/types/tree-select/assets/close.d.ts +1 -1
- package/types/tree-select/assets/open.d.ts +1 -1
- package/types/tree-select/src/tree-select-types.d.ts +3 -3
- package/types/tree-select/src/tree-select.d.ts +1 -1
- package/types/upload/src/composables/use-select-files.d.ts +1 -1
- package/types/upload/src/upload-types.d.ts +4 -4
- package/types/upload/src/upload.d.ts +11 -34
- package/types/virtual-list/src/components/container.d.ts +1 -1
- package/types/virtual-list/src/components/resize-observer.d.ts +1 -1
- package/types/virtual-list/src/components/scroll-bar.d.ts +1 -1
- package/types/virtual-list/src/utils.d.ts +2 -6
- package/types/virtual-list/src/virtual-list-types.d.ts +4 -4
- package/types/virtual-list/src/virtual-list.d.ts +1 -1
- package/upload/index.es.js +28 -63
- package/upload/index.umd.js +3 -3
- package/vue-devui.es.js +3276 -3728
- package/vue-devui.umd.js +103 -107
- package/types/carousel/src/components/carousel-icons.d.ts +0 -2
- package/types/category-search/src/components/category-search-icons.d.ts +0 -4
- package/types/code-review/src/components/code-review-icons.d.ts +0 -6
- package/types/data-grid/src/components/grid-icons.d.ts +0 -4
- package/types/form/src/components/form-icons.d.ts +0 -4
- package/types/icon/src/icon-types.d.ts +0 -54
- package/types/input-number/src/input-number-icons.d.ts +0 -2
- package/types/menu/src/composables/use-layer-operate.d.ts +0 -9
- package/types/message/src/message-icons.d.ts +0 -4
- package/types/modal/src/components/modal-icons.d.ts +0 -1
- package/types/notification/src/notification-icons.d.ts +0 -4
- package/types/pagination/src/components/page-link-icons.d.ts +0 -2
- package/types/popover/src/popover-icons.d.ts +0 -4
- package/types/shared/hooks/use-demo.d.ts +0 -9
- package/types/skeleton/src/components/image-icon.d.ts +0 -1
- package/types/svg-icons/index.d.ts +0 -3
package/data-grid/index.es.js
CHANGED
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
var __publicField = (obj, key, value) => {
|
|
33
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
|
-
return value;
|
|
35
|
-
};
|
|
36
|
-
import { watch, onUnmounted, defineComponent, toRefs, createVNode, Transition, mergeProps, ref, computed, unref, nextTick, withModifiers, provide, reactive, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, vShow, resolveDynamicComponent, render, resolveComponent, getCurrentInstance, isVNode, onBeforeMount } from "vue";
|
|
1
|
+
import { watch, onUnmounted, defineComponent, toRefs, createVNode, Transition, mergeProps, ref, computed, nextTick, unref, withModifiers, provide, reactive, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, vShow, resolveDynamicComponent, render, resolveComponent, getCurrentInstance, isVNode, onBeforeMount } from "vue";
|
|
37
2
|
import { offset, flip, arrow, computePosition } from "@floating-ui/dom";
|
|
38
3
|
import "clipboard";
|
|
39
4
|
import { onClickOutside } from "@vueuse/core";
|
|
@@ -105,13 +70,16 @@ function useFixedOverlay(props, ctx) {
|
|
|
105
70
|
const removeBodyAdditions = () => {
|
|
106
71
|
lockScrollCb == null ? void 0 : lockScrollCb();
|
|
107
72
|
};
|
|
108
|
-
watch(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
73
|
+
watch(
|
|
74
|
+
() => props.modelValue,
|
|
75
|
+
(val) => {
|
|
76
|
+
if (val) {
|
|
77
|
+
props.lockScroll && (lockScrollCb = lockScroll());
|
|
78
|
+
} else {
|
|
79
|
+
removeBodyAdditions();
|
|
80
|
+
}
|
|
113
81
|
}
|
|
114
|
-
|
|
82
|
+
);
|
|
115
83
|
onUnmounted(removeBodyAdditions);
|
|
116
84
|
return { onClick };
|
|
117
85
|
}
|
|
@@ -279,18 +247,21 @@ function useOverlay(props, emit) {
|
|
|
279
247
|
const originEl = (_b = (_a = props.origin) == null ? void 0 : _a.$el) != null ? _b : props.origin;
|
|
280
248
|
originEl && (originObserver == null ? void 0 : originObserver.unobserve(originEl));
|
|
281
249
|
};
|
|
282
|
-
watch(
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
250
|
+
watch(
|
|
251
|
+
() => props.modelValue,
|
|
252
|
+
() => {
|
|
253
|
+
if (props.modelValue && props.origin) {
|
|
254
|
+
nextTick(updatePosition);
|
|
255
|
+
window.addEventListener("scroll", scrollCallback, true);
|
|
256
|
+
window.addEventListener("resize", updatePosition);
|
|
257
|
+
observeOrigin();
|
|
258
|
+
} else {
|
|
259
|
+
window.removeEventListener("scroll", scrollCallback, true);
|
|
260
|
+
window.removeEventListener("resize", updatePosition);
|
|
261
|
+
unobserveOrigin();
|
|
262
|
+
}
|
|
292
263
|
}
|
|
293
|
-
|
|
264
|
+
);
|
|
294
265
|
onUnmounted(() => {
|
|
295
266
|
window.removeEventListener("scroll", scrollCallback, true);
|
|
296
267
|
window.removeEventListener("resize", updatePosition);
|
|
@@ -379,7 +350,8 @@ const commonProps = {
|
|
|
379
350
|
default: true
|
|
380
351
|
}
|
|
381
352
|
};
|
|
382
|
-
const checkboxProps =
|
|
353
|
+
const checkboxProps = {
|
|
354
|
+
...commonProps,
|
|
383
355
|
checked: {
|
|
384
356
|
type: Boolean,
|
|
385
357
|
default: false
|
|
@@ -409,8 +381,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
409
381
|
type: Boolean,
|
|
410
382
|
default: false
|
|
411
383
|
}
|
|
412
|
-
}
|
|
413
|
-
const checkboxGroupProps =
|
|
384
|
+
};
|
|
385
|
+
const checkboxGroupProps = {
|
|
386
|
+
...commonProps,
|
|
414
387
|
modelValue: {
|
|
415
388
|
type: Array,
|
|
416
389
|
required: true
|
|
@@ -447,7 +420,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
447
420
|
type: String,
|
|
448
421
|
default: ""
|
|
449
422
|
}
|
|
450
|
-
}
|
|
423
|
+
};
|
|
451
424
|
const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
|
|
452
425
|
function getElement(element) {
|
|
453
426
|
if (element instanceof Element) {
|
|
@@ -1266,8 +1239,10 @@ var lodash = { exports: {} };
|
|
|
1266
1239
|
var nativeObjectToString = objectProto.toString;
|
|
1267
1240
|
var objectCtorString = funcToString.call(Object2);
|
|
1268
1241
|
var oldDash = root._;
|
|
1269
|
-
var reIsNative = RegExp2(
|
|
1270
|
-
|
|
1242
|
+
var reIsNative = RegExp2(
|
|
1243
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1244
|
+
);
|
|
1245
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
1271
1246
|
var defineProperty = function() {
|
|
1272
1247
|
try {
|
|
1273
1248
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -1277,11 +1252,11 @@ var lodash = { exports: {} };
|
|
|
1277
1252
|
}
|
|
1278
1253
|
}();
|
|
1279
1254
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1280
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
1281
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
|
1282
|
-
var metaMap =
|
|
1255
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
1256
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
1257
|
+
var metaMap = WeakMap && new WeakMap();
|
|
1283
1258
|
var realNames = {};
|
|
1284
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
1259
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
1285
1260
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
1286
1261
|
function lodash2(value) {
|
|
1287
1262
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -2748,7 +2723,18 @@ var lodash = { exports: {} };
|
|
|
2748
2723
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
2749
2724
|
length -= holders.length;
|
|
2750
2725
|
if (length < arity) {
|
|
2751
|
-
return createRecurry(
|
|
2726
|
+
return createRecurry(
|
|
2727
|
+
func,
|
|
2728
|
+
bitmask,
|
|
2729
|
+
createHybrid,
|
|
2730
|
+
wrapper.placeholder,
|
|
2731
|
+
undefined$1,
|
|
2732
|
+
args,
|
|
2733
|
+
holders,
|
|
2734
|
+
undefined$1,
|
|
2735
|
+
undefined$1,
|
|
2736
|
+
arity - length
|
|
2737
|
+
);
|
|
2752
2738
|
}
|
|
2753
2739
|
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
|
2754
2740
|
return apply(fn, this, args);
|
|
@@ -2826,7 +2812,18 @@ var lodash = { exports: {} };
|
|
|
2826
2812
|
length -= holdersCount;
|
|
2827
2813
|
if (isCurried && length < arity) {
|
|
2828
2814
|
var newHolders = replaceHolders(args, placeholder);
|
|
2829
|
-
return createRecurry(
|
|
2815
|
+
return createRecurry(
|
|
2816
|
+
func,
|
|
2817
|
+
bitmask,
|
|
2818
|
+
createHybrid,
|
|
2819
|
+
wrapper.placeholder,
|
|
2820
|
+
thisArg,
|
|
2821
|
+
args,
|
|
2822
|
+
newHolders,
|
|
2823
|
+
argPos,
|
|
2824
|
+
ary2,
|
|
2825
|
+
arity - length
|
|
2826
|
+
);
|
|
2830
2827
|
}
|
|
2831
2828
|
var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
|
|
2832
2829
|
length = args.length;
|
|
@@ -3273,7 +3270,7 @@ var lodash = { exports: {} };
|
|
|
3273
3270
|
return result2;
|
|
3274
3271
|
};
|
|
3275
3272
|
var getTag = baseGetTag;
|
|
3276
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
3273
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
3277
3274
|
getTag = function(value) {
|
|
3278
3275
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3279
3276
|
if (ctorString) {
|
|
@@ -5146,7 +5143,10 @@ var lodash = { exports: {} };
|
|
|
5146
5143
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
5147
5144
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
5148
5145
|
var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
5149
|
-
var reDelimiters = RegExp2(
|
|
5146
|
+
var reDelimiters = RegExp2(
|
|
5147
|
+
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
5148
|
+
"g"
|
|
5149
|
+
);
|
|
5150
5150
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
5151
5151
|
string3.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset2) {
|
|
5152
5152
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
@@ -5990,7 +5990,10 @@ function useFormValidation(itemContexts) {
|
|
|
5990
5990
|
try {
|
|
5991
5991
|
await field.validate("");
|
|
5992
5992
|
} catch (err) {
|
|
5993
|
-
errors =
|
|
5993
|
+
errors = {
|
|
5994
|
+
...errors,
|
|
5995
|
+
...err
|
|
5996
|
+
};
|
|
5994
5997
|
}
|
|
5995
5998
|
}
|
|
5996
5999
|
if (!Object.keys(errors).length) {
|
|
@@ -6047,11 +6050,12 @@ defineComponent({
|
|
|
6047
6050
|
}, {
|
|
6048
6051
|
deep: true
|
|
6049
6052
|
});
|
|
6050
|
-
provide(FORM_TOKEN, reactive(
|
|
6053
|
+
provide(FORM_TOKEN, reactive({
|
|
6054
|
+
...toRefs(props),
|
|
6051
6055
|
emit: ctx.emit,
|
|
6052
6056
|
addItemContext,
|
|
6053
6057
|
removeItemContext
|
|
6054
|
-
}))
|
|
6058
|
+
}));
|
|
6055
6059
|
provide(STYLE_TOKEN, props.styleType);
|
|
6056
6060
|
ctx.expose({
|
|
6057
6061
|
validate,
|
|
@@ -6112,6 +6116,11 @@ const formItemProps = {
|
|
|
6112
6116
|
const FORM_ITEM_TOKEN = "dFormItem";
|
|
6113
6117
|
const LABEL_DATA = "dFormLabelData";
|
|
6114
6118
|
const POPPER_TRIGGER_TOKEN = Symbol("popper-trigger");
|
|
6119
|
+
/**
|
|
6120
|
+
* @vue/shared v3.4.27
|
|
6121
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6122
|
+
* @license MIT
|
|
6123
|
+
**/
|
|
6115
6124
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
6116
6125
|
const ns$1 = useNamespace$1("popper-trigger");
|
|
6117
6126
|
function wrapContent(content) {
|
|
@@ -6588,9 +6597,9 @@ function useFormLabel() {
|
|
|
6588
6597
|
}));
|
|
6589
6598
|
const tipsPopover = computed(() => {
|
|
6590
6599
|
if (typeof labelData.value.helpTips === "string") {
|
|
6591
|
-
return
|
|
6600
|
+
return { ...defaultTipsPopover, content: labelData.value.helpTips };
|
|
6592
6601
|
} else {
|
|
6593
|
-
return
|
|
6602
|
+
return { ...defaultTipsPopover, ...labelData.value.helpTips };
|
|
6594
6603
|
}
|
|
6595
6604
|
});
|
|
6596
6605
|
return { labelClasses, labelInnerClasses, tipsPopover };
|
|
@@ -6720,7 +6729,7 @@ var FormControl = defineComponent({
|
|
|
6720
6729
|
}
|
|
6721
6730
|
});
|
|
6722
6731
|
function _extends() {
|
|
6723
|
-
_extends = Object.assign
|
|
6732
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6724
6733
|
for (var i = 1; i < arguments.length; i++) {
|
|
6725
6734
|
var source = arguments[i];
|
|
6726
6735
|
for (var key in source) {
|
|
@@ -6739,13 +6748,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6739
6748
|
_setPrototypeOf(subClass, superClass);
|
|
6740
6749
|
}
|
|
6741
6750
|
function _getPrototypeOf(o) {
|
|
6742
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6751
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6743
6752
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6744
6753
|
};
|
|
6745
6754
|
return _getPrototypeOf(o);
|
|
6746
6755
|
}
|
|
6747
6756
|
function _setPrototypeOf(o, p) {
|
|
6748
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6757
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6749
6758
|
o2.__proto__ = p2;
|
|
6750
6759
|
return o2;
|
|
6751
6760
|
};
|
|
@@ -6768,7 +6777,7 @@ function _isNativeReflectConstruct() {
|
|
|
6768
6777
|
}
|
|
6769
6778
|
function _construct(Parent, args, Class) {
|
|
6770
6779
|
if (_isNativeReflectConstruct()) {
|
|
6771
|
-
_construct = Reflect.construct;
|
|
6780
|
+
_construct = Reflect.construct.bind();
|
|
6772
6781
|
} else {
|
|
6773
6782
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6774
6783
|
var a = [null];
|
|
@@ -7046,9 +7055,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
7046
7055
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
7047
7056
|
}
|
|
7048
7057
|
};
|
|
7058
|
+
var urlReg;
|
|
7059
|
+
var getUrlRegex = function() {
|
|
7060
|
+
if (urlReg) {
|
|
7061
|
+
return urlReg;
|
|
7062
|
+
}
|
|
7063
|
+
var word = "[a-fA-F\\d:]";
|
|
7064
|
+
var b = function b2(options) {
|
|
7065
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
7066
|
+
};
|
|
7067
|
+
var v42 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
7068
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
7069
|
+
var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v42 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v42 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v42 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v42 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v42 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v42 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v42 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
7070
|
+
var v46Exact = new RegExp("(?:^" + v42 + "$)|(?:^" + v6 + "$)");
|
|
7071
|
+
var v4exact = new RegExp("^" + v42 + "$");
|
|
7072
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
7073
|
+
var ip = function ip2(options) {
|
|
7074
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v42 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
7075
|
+
};
|
|
7076
|
+
ip.v4 = function(options) {
|
|
7077
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v42 + b(options), "g");
|
|
7078
|
+
};
|
|
7079
|
+
ip.v6 = function(options) {
|
|
7080
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
7081
|
+
};
|
|
7082
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
7083
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
7084
|
+
var ipv4 = ip.v4().source;
|
|
7085
|
+
var ipv6 = ip.v6().source;
|
|
7086
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
7087
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
7088
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
7089
|
+
var port = "(?::\\d{2,5})?";
|
|
7090
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
7091
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
7092
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
7093
|
+
return urlReg;
|
|
7094
|
+
};
|
|
7049
7095
|
var pattern$2 = {
|
|
7050
7096
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
7051
|
-
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", "i"),
|
|
7052
7097
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
7053
7098
|
};
|
|
7054
7099
|
var types = {
|
|
@@ -7090,7 +7135,7 @@ var types = {
|
|
|
7090
7135
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
7091
7136
|
},
|
|
7092
7137
|
url: function url(value) {
|
|
7093
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
7138
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
7094
7139
|
},
|
|
7095
7140
|
hex: function hex(value) {
|
|
7096
7141
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7665,7 +7710,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7665
7710
|
if (rule.asyncValidator) {
|
|
7666
7711
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7667
7712
|
} else if (rule.validator) {
|
|
7668
|
-
|
|
7713
|
+
try {
|
|
7714
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7715
|
+
} catch (error) {
|
|
7716
|
+
console.error == null ? void 0 : console.error(error);
|
|
7717
|
+
if (!options.suppressValidatorError) {
|
|
7718
|
+
setTimeout(function() {
|
|
7719
|
+
throw error;
|
|
7720
|
+
}, 0);
|
|
7721
|
+
}
|
|
7722
|
+
cb(error.message);
|
|
7723
|
+
}
|
|
7669
7724
|
if (res === true) {
|
|
7670
7725
|
cb();
|
|
7671
7726
|
} else if (res === false) {
|
|
@@ -7786,10 +7841,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7786
7841
|
} else {
|
|
7787
7842
|
return rule.trigger === triggerVal;
|
|
7788
7843
|
}
|
|
7789
|
-
}).map((
|
|
7790
|
-
var rule = __objRest(_a, []);
|
|
7791
|
-
return rule;
|
|
7792
|
-
});
|
|
7844
|
+
}).map(({ ...rule }) => rule);
|
|
7793
7845
|
};
|
|
7794
7846
|
const onValidateSuccess = () => {
|
|
7795
7847
|
validateState.value = "success";
|
|
@@ -7864,15 +7916,12 @@ defineComponent({
|
|
|
7864
7916
|
props: formItemProps,
|
|
7865
7917
|
setup(props, ctx) {
|
|
7866
7918
|
const formContext = inject(FORM_TOKEN);
|
|
7867
|
-
const
|
|
7919
|
+
const {
|
|
7868
7920
|
messageType: itemMessageType,
|
|
7869
7921
|
popPosition: itemPopPosition,
|
|
7870
|
-
showFeedback: itemShowFeedback
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
"popPosition",
|
|
7874
|
-
"showFeedback"
|
|
7875
|
-
]);
|
|
7922
|
+
showFeedback: itemShowFeedback,
|
|
7923
|
+
...otherProps
|
|
7924
|
+
} = toRefs(props);
|
|
7876
7925
|
const {
|
|
7877
7926
|
label,
|
|
7878
7927
|
helpTips,
|
|
@@ -7905,7 +7954,8 @@ defineComponent({
|
|
|
7905
7954
|
formItemCtx: ctx
|
|
7906
7955
|
}));
|
|
7907
7956
|
provide(LABEL_DATA, labelData);
|
|
7908
|
-
const context = reactive(
|
|
7957
|
+
const context = reactive({
|
|
7958
|
+
...otherProps,
|
|
7909
7959
|
showFeedback,
|
|
7910
7960
|
messageType,
|
|
7911
7961
|
popPosition,
|
|
@@ -7915,7 +7965,7 @@ defineComponent({
|
|
|
7915
7965
|
validate,
|
|
7916
7966
|
resetField,
|
|
7917
7967
|
clearValidate
|
|
7918
|
-
})
|
|
7968
|
+
});
|
|
7919
7969
|
provide(FORM_ITEM_TOKEN, context);
|
|
7920
7970
|
ctx.expose({
|
|
7921
7971
|
validate,
|
|
@@ -7939,8 +7989,8 @@ defineComponent({
|
|
|
7939
7989
|
"extra-info": extraInfo.value
|
|
7940
7990
|
}, {
|
|
7941
7991
|
default: () => {
|
|
7942
|
-
var
|
|
7943
|
-
return [(_b = (
|
|
7992
|
+
var _a, _b;
|
|
7993
|
+
return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
|
|
7944
7994
|
}
|
|
7945
7995
|
})]);
|
|
7946
7996
|
}
|
|
@@ -8027,10 +8077,13 @@ function useCheckbox(props, ctx) {
|
|
|
8027
8077
|
var _a;
|
|
8028
8078
|
return (_a = checkboxGroupConf == null ? void 0 : checkboxGroupConf.border.value) != null ? _a : props.border;
|
|
8029
8079
|
});
|
|
8030
|
-
watch(
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8080
|
+
watch(
|
|
8081
|
+
() => props.modelValue,
|
|
8082
|
+
() => {
|
|
8083
|
+
formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
|
|
8084
|
+
});
|
|
8085
|
+
}
|
|
8086
|
+
);
|
|
8034
8087
|
return {
|
|
8035
8088
|
mergedChecked,
|
|
8036
8089
|
mergedDisabled,
|
|
@@ -8086,10 +8139,14 @@ function useCheckboxGroup(props, ctx) {
|
|
|
8086
8139
|
return valList.value.some((item) => item.value === itemVal);
|
|
8087
8140
|
}
|
|
8088
8141
|
};
|
|
8089
|
-
watch(
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8142
|
+
watch(
|
|
8143
|
+
() => props.modelValue,
|
|
8144
|
+
() => {
|
|
8145
|
+
formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
|
|
8146
|
+
});
|
|
8147
|
+
},
|
|
8148
|
+
{ deep: true }
|
|
8149
|
+
);
|
|
8093
8150
|
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
|
|
8094
8151
|
provide(checkboxGroupInjectionKey, {
|
|
8095
8152
|
disabled: toRef(props, "disabled"),
|
|
@@ -8256,9 +8313,10 @@ defineComponent({
|
|
|
8256
8313
|
value: opt
|
|
8257
8314
|
});
|
|
8258
8315
|
} else if (typeof opt === "object") {
|
|
8259
|
-
mergedOpt = Object.assign({}, defaultOpt,
|
|
8316
|
+
mergedOpt = Object.assign({}, defaultOpt, {
|
|
8317
|
+
...opt,
|
|
8260
8318
|
label: opt.name
|
|
8261
|
-
})
|
|
8319
|
+
});
|
|
8262
8320
|
}
|
|
8263
8321
|
return createVNode(Checkbox, mergedOpt, null);
|
|
8264
8322
|
});
|
|
@@ -8515,76 +8573,91 @@ const useDropdownEvent = ({ id, isOpen, origin, dropdownRef, props, emit }) => {
|
|
|
8515
8573
|
const originEl = getElement(originVal);
|
|
8516
8574
|
const subscriptions = [];
|
|
8517
8575
|
setTimeout(() => {
|
|
8518
|
-
subscriptions.push(
|
|
8519
|
-
e
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
(
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8576
|
+
subscriptions.push(
|
|
8577
|
+
subscribeEvent(document, "click", (e) => {
|
|
8578
|
+
e.stopPropagation();
|
|
8579
|
+
const dropdownValues = [...dropdownMap.values()];
|
|
8580
|
+
if (!isOpen.value || closeScope.value === "none" || (dropdownEl == null ? void 0 : dropdownEl.contains(e.target)) && closeScope.value === "blank" || dropdownValues.some((item) => {
|
|
8581
|
+
var _a;
|
|
8582
|
+
return (_a = item.toggleEl) == null ? void 0 : _a.contains(e.target);
|
|
8583
|
+
}) && dropdownValues.some((item) => {
|
|
8584
|
+
var _a;
|
|
8585
|
+
return (_a = item.menuEl) == null ? void 0 : _a.contains(e.target);
|
|
8586
|
+
})) {
|
|
8587
|
+
return;
|
|
8588
|
+
}
|
|
8589
|
+
[...dropdownMap.values()].reverse().forEach((item) => {
|
|
8590
|
+
setTimeout(() => {
|
|
8591
|
+
var _a, _b;
|
|
8592
|
+
if (!((_a = item.toggleEl) == null ? void 0 : _a.contains(e.target))) {
|
|
8593
|
+
(_b = item.toggle) == null ? void 0 : _b.call(item);
|
|
8594
|
+
}
|
|
8595
|
+
}, 0);
|
|
8596
|
+
});
|
|
8597
|
+
overlayEnter = false;
|
|
8598
|
+
})
|
|
8599
|
+
);
|
|
8540
8600
|
}, 0);
|
|
8541
8601
|
if (triggerVal === "click") {
|
|
8542
|
-
subscriptions.push(
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8602
|
+
subscriptions.push(
|
|
8603
|
+
subscribeEvent(originEl, "click", () => toggle(!isOpen.value)),
|
|
8604
|
+
subscribeEvent(dropdownEl, "mouseleave", (e) => {
|
|
8605
|
+
var _a;
|
|
8606
|
+
if (closeOnMouseLeaveMenu.value && !((_a = dropdownMap.get(id).child) == null ? void 0 : _a.contains(e.relatedTarget))) {
|
|
8607
|
+
handleLeave("dropdown", true);
|
|
8608
|
+
}
|
|
8609
|
+
})
|
|
8610
|
+
);
|
|
8548
8611
|
} else if (triggerVal === "hover") {
|
|
8549
|
-
subscriptions.push(
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8612
|
+
subscriptions.push(
|
|
8613
|
+
subscribeEvent(originEl, "mouseenter", () => {
|
|
8614
|
+
originEnter = true;
|
|
8615
|
+
toggle(true);
|
|
8616
|
+
}),
|
|
8617
|
+
subscribeEvent(originEl, "mouseleave", () => {
|
|
8618
|
+
originEnter = false;
|
|
8619
|
+
handleLeave("origin");
|
|
8620
|
+
}),
|
|
8621
|
+
subscribeEvent(dropdownEl, "mouseenter", () => {
|
|
8622
|
+
overlayEnter = true;
|
|
8623
|
+
isOpen.value = true;
|
|
8624
|
+
}),
|
|
8625
|
+
subscribeEvent(dropdownEl, "mouseleave", (e) => {
|
|
8626
|
+
var _a;
|
|
8627
|
+
overlayEnter = false;
|
|
8628
|
+
if (e.relatedTarget && ((originEl == null ? void 0 : originEl.contains(e.relatedTarget)) || ((_a = dropdownMap.get(id).child) == null ? void 0 : _a.contains(e.relatedTarget)))) {
|
|
8629
|
+
return;
|
|
8630
|
+
}
|
|
8631
|
+
handleLeave("dropdown", true);
|
|
8632
|
+
})
|
|
8633
|
+
);
|
|
8566
8634
|
}
|
|
8567
8635
|
onInvalidate(() => subscriptions.forEach((v) => v()));
|
|
8568
8636
|
});
|
|
8569
8637
|
};
|
|
8570
8638
|
function useDropdown(id, visible, isOpen, origin, dropdownRef, emit) {
|
|
8571
|
-
watch(
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8639
|
+
watch(
|
|
8640
|
+
visible,
|
|
8641
|
+
(newVal, oldVal) => {
|
|
8642
|
+
if (oldVal === void 0) {
|
|
8643
|
+
return;
|
|
8644
|
+
}
|
|
8645
|
+
isOpen.value = newVal;
|
|
8646
|
+
emit("toggle", isOpen.value);
|
|
8647
|
+
},
|
|
8648
|
+
{ immediate: true }
|
|
8649
|
+
);
|
|
8578
8650
|
watch([isOpen, dropdownRef], ([isOpenVal, dropdownEl]) => {
|
|
8579
8651
|
var _a;
|
|
8580
8652
|
if (isOpenVal) {
|
|
8581
|
-
dropdownMap.set(id,
|
|
8653
|
+
dropdownMap.set(id, {
|
|
8654
|
+
...dropdownMap.get(id),
|
|
8582
8655
|
menuEl: dropdownEl,
|
|
8583
8656
|
toggle: () => {
|
|
8584
8657
|
isOpen.value = false;
|
|
8585
8658
|
emit("toggle", isOpen.value);
|
|
8586
8659
|
}
|
|
8587
|
-
})
|
|
8660
|
+
});
|
|
8588
8661
|
for (const value of dropdownMap.values()) {
|
|
8589
8662
|
if ((_a = value.menuEl) == null ? void 0 : _a.contains(origin.value)) {
|
|
8590
8663
|
value.child = dropdownEl;
|
|
@@ -9357,8 +9430,8 @@ defineComponent({
|
|
|
9357
9430
|
});
|
|
9358
9431
|
class View {
|
|
9359
9432
|
constructor() {
|
|
9360
|
-
|
|
9361
|
-
|
|
9433
|
+
this.top = "50%";
|
|
9434
|
+
this.left = "50%";
|
|
9362
9435
|
}
|
|
9363
9436
|
}
|
|
9364
9437
|
const loadingProps = {
|
|
@@ -9376,13 +9449,9 @@ const loadingProps = {
|
|
|
9376
9449
|
};
|
|
9377
9450
|
class LoadingOptions {
|
|
9378
9451
|
constructor() {
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
__publicField(this, "backdrop", true);
|
|
9383
|
-
__publicField(this, "positionType", "relative");
|
|
9384
|
-
__publicField(this, "view", new View());
|
|
9385
|
-
__publicField(this, "zIndex");
|
|
9452
|
+
this.backdrop = true;
|
|
9453
|
+
this.positionType = "relative";
|
|
9454
|
+
this.view = new View();
|
|
9386
9455
|
}
|
|
9387
9456
|
}
|
|
9388
9457
|
var loading = "";
|
|
@@ -9450,7 +9519,7 @@ var Loading = defineComponent({
|
|
|
9450
9519
|
});
|
|
9451
9520
|
const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
|
|
9452
9521
|
function createComponent(component, props, children = null) {
|
|
9453
|
-
const vnode = h(component,
|
|
9522
|
+
const vnode = h(component, { ...props }, children);
|
|
9454
9523
|
const container = document.createElement("div");
|
|
9455
9524
|
vnode[COMPONENT_CONTAINER_SYMBOL] = container;
|
|
9456
9525
|
render(vnode, container);
|
|
@@ -9537,9 +9606,16 @@ const removeAttribute = (el) => {
|
|
|
9537
9606
|
};
|
|
9538
9607
|
const handleProps = (el, vprops) => {
|
|
9539
9608
|
var _a;
|
|
9540
|
-
const props =
|
|
9609
|
+
const props = {
|
|
9610
|
+
...new LoadingOptions(),
|
|
9611
|
+
...vprops
|
|
9612
|
+
};
|
|
9541
9613
|
const loadingTemplateRef = props.loadingTemplateRef;
|
|
9542
|
-
const loadingInstance = createComponent(
|
|
9614
|
+
const loadingInstance = createComponent(
|
|
9615
|
+
loadingConstructor,
|
|
9616
|
+
{ ...props },
|
|
9617
|
+
loadingTemplateRef ? () => loadingTemplateRef : null
|
|
9618
|
+
);
|
|
9543
9619
|
el.style.position = props.positionType || "relative";
|
|
9544
9620
|
el.options = props;
|
|
9545
9621
|
el.instance = loadingInstance;
|
|
@@ -9776,12 +9852,16 @@ function useGridThMultipleFilter(props, ctx) {
|
|
|
9776
9852
|
}
|
|
9777
9853
|
}
|
|
9778
9854
|
});
|
|
9779
|
-
watch(
|
|
9780
|
-
|
|
9781
|
-
(
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9855
|
+
watch(
|
|
9856
|
+
filterListTemp,
|
|
9857
|
+
() => {
|
|
9858
|
+
var _a;
|
|
9859
|
+
(_a = props.filterList) == null ? void 0 : _a.forEach((item) => {
|
|
9860
|
+
_checkList.value.push({ checked: false, ...item });
|
|
9861
|
+
});
|
|
9862
|
+
},
|
|
9863
|
+
{ immediate: true }
|
|
9864
|
+
);
|
|
9785
9865
|
const updateCheckAll = () => {
|
|
9786
9866
|
if (!_checkList.value.length) {
|
|
9787
9867
|
return;
|
|
@@ -10302,10 +10382,14 @@ var GridTd = defineComponent({
|
|
|
10302
10382
|
return;
|
|
10303
10383
|
}
|
|
10304
10384
|
rootCtx.emit("cellClick", {
|
|
10305
|
-
row:
|
|
10385
|
+
row: {
|
|
10386
|
+
...rowData.value
|
|
10387
|
+
},
|
|
10306
10388
|
renderRowIndex: rowIndex.value,
|
|
10307
10389
|
flattenRowIndex: rowData.value.$rowIndex,
|
|
10308
|
-
column:
|
|
10390
|
+
column: {
|
|
10391
|
+
...cellData.value
|
|
10392
|
+
},
|
|
10309
10393
|
columnIndex: getColumnIndex()
|
|
10310
10394
|
});
|
|
10311
10395
|
};
|
|
@@ -10404,7 +10488,9 @@ var GridBody = defineComponent({
|
|
|
10404
10488
|
return;
|
|
10405
10489
|
}
|
|
10406
10490
|
rootCtx.emit("rowClick", {
|
|
10407
|
-
row:
|
|
10491
|
+
row: {
|
|
10492
|
+
...rowData2
|
|
10493
|
+
},
|
|
10408
10494
|
renderRowIndex: rowIndex,
|
|
10409
10495
|
flattenRowIndex: rowData2.$rowIndex
|
|
10410
10496
|
});
|
|
@@ -10546,7 +10632,7 @@ function calcEachColumnWidth(columns, containerWidth) {
|
|
|
10546
10632
|
const result = [];
|
|
10547
10633
|
let totalMinWidth = 0;
|
|
10548
10634
|
for (let i = 0; i < columns.length; i++) {
|
|
10549
|
-
const item =
|
|
10635
|
+
const item = { ...columns[i] };
|
|
10550
10636
|
item.minWidth = (_a = getRealWidth(item.minWidth, containerWidth)) != null ? _a : ColumnMinWidth;
|
|
10551
10637
|
item.maxWidth = (_b = getRealWidth(item.maxWidth, containerWidth)) != null ? _b : Infinity;
|
|
10552
10638
|
if (item.width) {
|
|
@@ -10877,9 +10963,9 @@ function useColumnSort(scrollYParams, afterSort) {
|
|
|
10877
10963
|
const execSortMethod = (direction, sortMethod) => {
|
|
10878
10964
|
const temp = [...scrollYParams.defaultSortRowData];
|
|
10879
10965
|
if (direction === "asc") {
|
|
10880
|
-
scrollYParams.originRowData = temp.sort((a, b) => sortMethod ? sortMethod(a, b) ? 1 : -1 : 0).map((item, index2) =>
|
|
10966
|
+
scrollYParams.originRowData = temp.sort((a, b) => sortMethod ? sortMethod(a, b) ? 1 : -1 : 0).map((item, index2) => ({ ...item, offsetTop: index2 * 40 }));
|
|
10881
10967
|
} else if (direction === "desc") {
|
|
10882
|
-
scrollYParams.originRowData = temp.sort((a, b) => sortMethod ? sortMethod(a, b) ? -1 : 1 : 0).map((item, index2) =>
|
|
10968
|
+
scrollYParams.originRowData = temp.sort((a, b) => sortMethod ? sortMethod(a, b) ? -1 : 1 : 0).map((item, index2) => ({ ...item, offsetTop: index2 * 40 }));
|
|
10883
10969
|
} else {
|
|
10884
10970
|
scrollYParams.originRowData = temp;
|
|
10885
10971
|
}
|
|
@@ -11127,7 +11213,7 @@ function useDataGridTree(props, ctx, afterToggleExpandTree) {
|
|
|
11127
11213
|
const result = [];
|
|
11128
11214
|
for (let i = 0; i < innerRowsData.value.length; i++) {
|
|
11129
11215
|
if (innerRowsData.value[i].checked) {
|
|
11130
|
-
result.push(
|
|
11216
|
+
result.push({ ...innerRowsData.value[i] });
|
|
11131
11217
|
}
|
|
11132
11218
|
}
|
|
11133
11219
|
return result;
|
|
@@ -11151,9 +11237,15 @@ function useDataGridColumnDrag(bodyContentWidth, scrollRef, renderFixedLeftColum
|
|
|
11151
11237
|
const scrollDistance = scrollRef.value.scrollWidth - scrollRef.value.clientWidth;
|
|
11152
11238
|
if (offset2 > 0 && scrollDistance > 0 && offset2 > scrollDistance) {
|
|
11153
11239
|
offset2 = offset2 - scrollDistance;
|
|
11154
|
-
lastColumn.width = Math.min(
|
|
11240
|
+
lastColumn.width = Math.min(
|
|
11241
|
+
lastColumn.maxWidth,
|
|
11242
|
+
Math.max(lastColumn.minWidth, lastColumn.width + offset2)
|
|
11243
|
+
);
|
|
11155
11244
|
} else if (scrollDistance <= 0 && lastColumn.$columnId !== columnId) {
|
|
11156
|
-
lastColumn.width = Math.min(
|
|
11245
|
+
lastColumn.width = Math.min(
|
|
11246
|
+
lastColumn.maxWidth,
|
|
11247
|
+
Math.max(lastColumn.minWidth, lastColumn.width + offset2)
|
|
11248
|
+
);
|
|
11157
11249
|
}
|
|
11158
11250
|
let bodyTotalWidth = 0;
|
|
11159
11251
|
for (let i = 0; i < renderFixedLeftColumnData.value.length; i++) {
|
|
@@ -11214,7 +11306,13 @@ function useDataGrid(props, ctx) {
|
|
|
11214
11306
|
toggleAllRowChecked,
|
|
11215
11307
|
getCheckedRows
|
|
11216
11308
|
} = useDataGridTree(props, ctx, afterToggleExpandTree);
|
|
11217
|
-
const { afterColumnDragend } = useDataGridColumnDrag(
|
|
11309
|
+
const { afterColumnDragend } = useDataGridColumnDrag(
|
|
11310
|
+
bodyContentWidth,
|
|
11311
|
+
scrollRef,
|
|
11312
|
+
renderFixedLeftColumnData,
|
|
11313
|
+
renderFixedRightColumnData,
|
|
11314
|
+
renderColumnData
|
|
11315
|
+
);
|
|
11218
11316
|
const initOriginRowData = () => {
|
|
11219
11317
|
let bodyTotalHeight = 0;
|
|
11220
11318
|
const rowsData = getShowRowsData();
|
|
@@ -11252,10 +11350,11 @@ function useDataGrid(props, ctx) {
|
|
|
11252
11350
|
scrollXParams.originColumnData = [];
|
|
11253
11351
|
const columnsWithRealWidth = calcEachColumnWidth(columns.value, scrollViewWidth);
|
|
11254
11352
|
for (let i = 0; i < scrollXParams.totalColumn; i++) {
|
|
11255
|
-
const itemColumn =
|
|
11353
|
+
const itemColumn = {
|
|
11354
|
+
...columnsWithRealWidth[i],
|
|
11256
11355
|
offsetLeft: bodyTotalWidth,
|
|
11257
11356
|
$columnId: `columnId-${columnId++}`
|
|
11258
|
-
}
|
|
11357
|
+
};
|
|
11259
11358
|
const prevColumn = i > 0 ? columnsWithRealWidth[i - 1] : null;
|
|
11260
11359
|
if (prevColumn) {
|
|
11261
11360
|
if (prevColumn.type && ColumnType.includes(prevColumn.type) && !itemColumn.type) {
|
|
@@ -11314,35 +11413,51 @@ function useDataGrid(props, ctx) {
|
|
|
11314
11413
|
}
|
|
11315
11414
|
});
|
|
11316
11415
|
}
|
|
11317
|
-
watch(
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
|
|
11416
|
+
watch(
|
|
11417
|
+
sliceData,
|
|
11418
|
+
() => {
|
|
11419
|
+
refreshRowsData();
|
|
11420
|
+
},
|
|
11421
|
+
{ immediate: true }
|
|
11422
|
+
);
|
|
11423
|
+
watch(
|
|
11424
|
+
sliceColumns,
|
|
11425
|
+
() => {
|
|
11426
|
+
if (!sliceColumns.value.length) {
|
|
11427
|
+
renderColumnData.value = [];
|
|
11428
|
+
return;
|
|
11429
|
+
}
|
|
11430
|
+
let distance = 0;
|
|
11431
|
+
nextTick(() => {
|
|
11432
|
+
var _a;
|
|
11433
|
+
initOriginColumnData();
|
|
11434
|
+
if (((_a = columnVirtualScroll.value) != null ? _a : virtualScroll.value) && scrollRef.value) {
|
|
11435
|
+
distance = scrollRef.value.scrollLeft;
|
|
11436
|
+
initVirtualColumnData(distance, scrollRef.value.clientWidth);
|
|
11437
|
+
}
|
|
11438
|
+
});
|
|
11439
|
+
},
|
|
11440
|
+
{ immediate: true }
|
|
11441
|
+
);
|
|
11442
|
+
watch(
|
|
11443
|
+
virtualRowData,
|
|
11444
|
+
(val) => {
|
|
11445
|
+
if (virtualScroll.value) {
|
|
11446
|
+
renderRowData.value = val;
|
|
11447
|
+
}
|
|
11448
|
+
},
|
|
11449
|
+
{ immediate: true }
|
|
11450
|
+
);
|
|
11451
|
+
watch(
|
|
11452
|
+
virtualColumnData,
|
|
11453
|
+
(val) => {
|
|
11327
11454
|
var _a;
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
distance = scrollRef.value.scrollLeft;
|
|
11331
|
-
initVirtualColumnData(distance, scrollRef.value.clientWidth);
|
|
11455
|
+
if ((_a = columnVirtualScroll.value) != null ? _a : virtualScroll.value) {
|
|
11456
|
+
renderColumnData.value = val;
|
|
11332
11457
|
}
|
|
11333
|
-
}
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
if (virtualScroll.value) {
|
|
11337
|
-
renderRowData.value = val;
|
|
11338
|
-
}
|
|
11339
|
-
}, { immediate: true });
|
|
11340
|
-
watch(virtualColumnData, (val) => {
|
|
11341
|
-
var _a;
|
|
11342
|
-
if ((_a = columnVirtualScroll.value) != null ? _a : virtualScroll.value) {
|
|
11343
|
-
renderColumnData.value = val;
|
|
11344
|
-
}
|
|
11345
|
-
}, { immediate: true });
|
|
11458
|
+
},
|
|
11459
|
+
{ immediate: true }
|
|
11460
|
+
);
|
|
11346
11461
|
const onScroll = (e) => {
|
|
11347
11462
|
var _a;
|
|
11348
11463
|
if (tick) {
|
|
@@ -11451,11 +11566,15 @@ function useDataGridStyle(props, scrollRef) {
|
|
|
11451
11566
|
const initScrollPosition = () => {
|
|
11452
11567
|
scrollPosition.value = scrollRef.value.clientWidth === scrollRef.value.clientWidth ? "" : "left";
|
|
11453
11568
|
};
|
|
11454
|
-
watch(
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11569
|
+
watch(
|
|
11570
|
+
sliceColumns,
|
|
11571
|
+
() => {
|
|
11572
|
+
if (scrollRef.value) {
|
|
11573
|
+
setTimeout(initScrollPosition);
|
|
11574
|
+
}
|
|
11575
|
+
},
|
|
11576
|
+
{ flush: "post" }
|
|
11577
|
+
);
|
|
11459
11578
|
onMounted(() => {
|
|
11460
11579
|
if (scrollRef.value) {
|
|
11461
11580
|
scrollRef.value.addEventListener("scroll", onScroll);
|