vft 0.0.71 → 0.0.72
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/component.js +56 -40
- package/es/components/aside/style/css.js +2 -0
- package/es/components/aside/style/index.js +2 -0
- package/es/components/back-top/back-top.vue2.js +8 -2
- package/es/components/col/col.vue.js +4 -0
- package/es/components/col/col.vue2.js +60 -0
- package/es/components/col/index.js +12 -0
- package/es/components/col/style/css.js +2 -0
- package/es/components/col/style/index.js +2 -0
- package/es/components/col/types.js +1 -0
- package/es/components/color-picker/utils/color.js +41 -51
- package/es/components/container/aside.vue.js +4 -0
- package/es/components/container/aside.vue2.js +37 -0
- package/es/components/container/container.vue.js +4 -0
- package/es/components/container/container.vue2.js +33 -0
- package/es/components/container/footer.vue.js +4 -0
- package/es/components/container/footer.vue2.js +39 -0
- package/es/components/container/header.vue.js +4 -0
- package/es/components/container/header.vue2.js +39 -0
- package/es/components/container/index.js +25 -0
- package/es/components/container/main.vue.js +4 -0
- package/es/components/container/main.vue2.js +26 -0
- package/es/components/container/style/css.js +6 -0
- package/es/components/container/style/index.js +6 -0
- package/es/components/context-menu/context-menu.vue2.js +20 -14
- package/es/components/date-picker/composables/use-month-range-header.js +29 -0
- package/es/components/date-picker/composables/use-range-picker.js +68 -0
- package/es/components/date-picker/composables/use-shortcut.js +24 -0
- package/es/components/date-picker/constants.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +37 -0
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +206 -0
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +131 -0
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +85 -0
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +455 -0
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +383 -0
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +170 -0
- package/es/components/date-picker/date-picker.js +81 -0
- package/es/components/date-picker/date-picker.type.js +1 -0
- package/es/components/date-picker/index.js +14 -0
- package/es/components/date-picker/panel-utils.js +17 -0
- package/es/components/date-picker/props/basic-cell.js +14 -0
- package/es/components/date-picker/props/basic-date-table.js +18 -0
- package/es/components/date-picker/props/basic-month-table.js +14 -0
- package/es/components/date-picker/props/basic-year-table.js +15 -0
- package/es/components/date-picker/props/date-picker.js +18 -0
- package/es/components/date-picker/props/panel-date-pick.js +23 -0
- package/es/components/date-picker/props/panel-date-range.js +14 -0
- package/es/components/date-picker/props/panel-month-range.js +14 -0
- package/es/components/date-picker/props/shared.js +56 -0
- package/es/components/date-picker/style/css.js +2 -0
- package/es/components/date-picker/style/index.js +7 -0
- package/es/components/date-picker/utils.js +49 -0
- package/es/components/date-time-select/date-time-select.vue2.js +70 -62
- package/es/components/date-time-select/style/index.js +6 -0
- package/es/components/footer/style/css.js +2 -0
- package/es/components/footer/style/index.js +2 -0
- package/es/components/footer-layout/footer-layout.vue2.js +105 -35
- package/es/components/header/style/css.js +2 -0
- package/es/components/header/style/index.js +2 -0
- package/es/components/header-layout/header-layout.vue2.js +122 -37
- package/es/components/horizontal-menu/horizontal-menu.vue.js +4 -0
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +115 -0
- package/es/components/horizontal-menu/index.js +12 -0
- package/es/components/horizontal-menu/style/css.js +6 -0
- package/es/components/horizontal-menu/style/index.js +6 -0
- package/es/components/index.js +254 -209
- package/es/components/input/input.vue2.js +184 -178
- package/es/components/link/link.vue2.js +24 -24
- package/es/components/logo/logo.vue2.js +21 -21
- package/es/components/main/style/css.js +2 -0
- package/es/components/main/style/index.js +2 -0
- package/es/components/md-container/md-container.vue2.js +65 -59
- package/es/components/md-container/toc.js +1 -1
- package/es/components/menu/menu-item.vue2.js +89 -62
- package/es/components/menu/menu.vue2.js +100 -106
- package/es/components/menu/sub-menu.vue2.js +83 -76
- package/es/components/menu/utils/menu-item.js +15 -19
- package/es/components/menu/utils/submenu.js +20 -25
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -39
- package/es/components/result/result.vue2.js +8 -2
- package/es/components/row/constants.js +4 -0
- package/es/components/row/index.js +14 -0
- package/es/components/row/row.vue.js +4 -0
- package/es/components/row/row.vue2.js +49 -0
- package/es/components/row/style/css.js +2 -0
- package/es/components/row/style/index.js +2 -0
- package/es/components/row/types.js +1 -0
- package/es/components/search/search.vue2.js +126 -114
- package/es/components/side-menu/side-menu.vue2.js +212 -146
- package/es/components/side-menu/use-drag-line.js +29 -28
- package/es/components/tabs/tab-nav.vue2.js +48 -42
- package/es/components/time-picker/common/picker.vue.js +4 -0
- package/es/components/time-picker/common/picker.vue2.js +438 -0
- package/es/components/time-picker/common/props.js +201 -0
- package/es/components/time-picker/composables/use-time-panel.js +60 -0
- package/es/components/time-picker/composables/use-time-picker.js +40 -0
- package/es/components/time-picker/constants.js +17 -0
- package/es/components/time-picker/index.js +31 -0
- package/es/components/time-picker/props/basic-time-spinner.js +31 -0
- package/es/components/time-picker/props/panel-time-picker.js +17 -0
- package/es/components/time-picker/props/panel-time-range.js +16 -0
- package/es/components/time-picker/props/shared.js +40 -0
- package/es/components/time-picker/style/css.js +2 -0
- package/es/components/time-picker/style/index.js +2 -0
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.js +4 -0
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +227 -0
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.js +4 -0
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +107 -0
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.js +4 -0
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +190 -0
- package/es/components/time-picker/time-picker.js +70 -0
- package/es/components/time-picker/types.js +1 -0
- package/es/components/time-picker/utils.js +35 -0
- package/es/components/time-select/style/css.js +2 -0
- package/es/components/time-select/style/index.js +2 -0
- package/es/components/time-select/time-select.js +54 -0
- package/es/components/time-select/time-select.vue.js +4 -0
- package/es/components/time-select/time-select.vue2.js +104 -0
- package/es/components/time-select/utils.js +40 -0
- package/es/components/tooltip/index.js +5 -3
- package/es/index.js +381 -336
- package/es/package.json.js +1 -1
- package/global.d.ts +73 -2
- package/lib/component.cjs +1 -1
- package/lib/components/aside/style/css.cjs +1 -0
- package/lib/components/aside/style/index.cjs +1 -0
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/col/col.vue.cjs +1 -0
- package/lib/components/col/col.vue2.cjs +1 -0
- package/lib/components/col/index.cjs +1 -0
- package/lib/components/col/style/css.cjs +1 -0
- package/lib/components/col/style/index.cjs +1 -0
- package/lib/components/col/types.cjs +1 -0
- package/lib/components/color-picker/utils/color.cjs +1 -1
- package/lib/components/container/aside.vue.cjs +1 -0
- package/lib/components/container/aside.vue2.cjs +1 -0
- package/lib/components/container/container.vue.cjs +1 -0
- package/lib/components/container/container.vue2.cjs +1 -0
- package/lib/components/container/footer.vue.cjs +1 -0
- package/lib/components/container/footer.vue2.cjs +1 -0
- package/lib/components/container/header.vue.cjs +1 -0
- package/lib/components/container/header.vue2.cjs +1 -0
- package/lib/components/container/index.cjs +1 -0
- package/lib/components/container/main.vue.cjs +1 -0
- package/lib/components/container/main.vue2.cjs +1 -0
- package/lib/components/container/style/css.cjs +1 -0
- package/lib/components/container/style/index.cjs +1 -0
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -0
- package/lib/components/date-picker/composables/use-range-picker.cjs +1 -0
- package/lib/components/date-picker/composables/use-shortcut.cjs +1 -0
- package/lib/components/date-picker/constants.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker.cjs +1 -0
- package/lib/components/date-picker/date-picker.type.cjs +1 -0
- package/lib/components/date-picker/index.cjs +1 -0
- package/lib/components/date-picker/panel-utils.cjs +1 -0
- package/lib/components/date-picker/props/basic-cell.cjs +1 -0
- package/lib/components/date-picker/props/basic-date-table.cjs +1 -0
- package/lib/components/date-picker/props/basic-month-table.cjs +1 -0
- package/lib/components/date-picker/props/basic-year-table.cjs +1 -0
- package/lib/components/date-picker/props/date-picker.cjs +1 -0
- package/lib/components/date-picker/props/panel-date-pick.cjs +1 -0
- package/lib/components/date-picker/props/panel-date-range.cjs +1 -0
- package/lib/components/date-picker/props/panel-month-range.cjs +1 -0
- package/lib/components/date-picker/props/shared.cjs +1 -0
- package/lib/components/date-picker/style/css.cjs +1 -0
- package/lib/components/date-picker/style/index.cjs +1 -0
- package/lib/components/date-picker/utils.cjs +1 -0
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/style/index.cjs +1 -1
- package/lib/components/footer/style/css.cjs +1 -0
- package/lib/components/footer/style/index.cjs +1 -0
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header/style/css.cjs +1 -0
- package/lib/components/header/style/index.cjs +1 -0
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue.cjs +1 -0
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -0
- package/lib/components/horizontal-menu/index.cjs +1 -0
- package/lib/components/horizontal-menu/style/css.cjs +1 -0
- package/lib/components/horizontal-menu/style/index.cjs +1 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/main/style/css.cjs +1 -0
- package/lib/components/main/style/index.cjs +1 -0
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/menu/utils/menu-item.cjs +1 -1
- package/lib/components/menu/utils/submenu.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/row/constants.cjs +1 -0
- package/lib/components/row/index.cjs +1 -0
- package/lib/components/row/row.vue.cjs +1 -0
- package/lib/components/row/row.vue2.cjs +1 -0
- package/lib/components/row/style/css.cjs +1 -0
- package/lib/components/row/style/index.cjs +1 -0
- package/lib/components/row/types.cjs +1 -0
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/use-drag-line.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.cjs +1 -0
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -0
- package/lib/components/time-picker/common/props.cjs +1 -0
- package/lib/components/time-picker/composables/use-time-panel.cjs +1 -0
- package/lib/components/time-picker/composables/use-time-picker.cjs +1 -0
- package/lib/components/time-picker/constants.cjs +1 -0
- package/lib/components/time-picker/index.cjs +1 -0
- package/lib/components/time-picker/props/basic-time-spinner.cjs +1 -0
- package/lib/components/time-picker/props/panel-time-picker.cjs +1 -0
- package/lib/components/time-picker/props/panel-time-range.cjs +1 -0
- package/lib/components/time-picker/props/shared.cjs +1 -0
- package/lib/components/time-picker/style/css.cjs +1 -0
- package/lib/components/time-picker/style/index.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -0
- package/lib/components/time-picker/time-picker.cjs +1 -0
- package/lib/components/time-picker/types.cjs +1 -0
- package/lib/components/time-picker/utils.cjs +1 -0
- package/lib/components/time-select/style/css.cjs +1 -0
- package/lib/components/time-select/style/index.cjs +1 -0
- package/lib/components/time-select/time-select.cjs +1 -0
- package/lib/components/time-select/time-select.vue.cjs +1 -0
- package/lib/components/time-select/time-select.vue2.cjs +1 -0
- package/lib/components/time-select/utils.cjs +1 -0
- package/lib/components/tooltip/index.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +7 -7
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/display.css +1 -0
- package/theme-style/index.css +1 -1
- package/theme-style/src/affix.scss +7 -0
- package/theme-style/src/aside.scss +8 -0
- package/theme-style/src/autocomplete.scss +83 -0
- package/theme-style/src/back-top.scss +7 -6
- package/theme-style/src/badge.scss +57 -0
- package/theme-style/src/breadcrumb-item.scss +0 -0
- package/theme-style/src/breadcrumb.scss +61 -0
- package/theme-style/src/calendar.scss +80 -0
- package/theme-style/src/card.scss +38 -0
- package/theme-style/src/carousel-item.scss +50 -0
- package/theme-style/src/carousel.scss +174 -0
- package/theme-style/src/cascader-panel.scss +138 -0
- package/theme-style/src/cascader.scss +216 -0
- package/theme-style/src/check-tag.scss +29 -0
- package/theme-style/src/col.scss +52 -0
- package/theme-style/src/collapse-item.scss +0 -0
- package/theme-style/src/collapse.scss +67 -0
- package/theme-style/src/color-picker.scss +2 -2
- package/theme-style/src/common/popup.scss +47 -0
- package/theme-style/src/common/var.scss +381 -6
- package/theme-style/src/container.scss +14 -0
- package/theme-style/src/date-picker/date-picker.scss +110 -0
- package/theme-style/src/date-picker/date-range-picker.scss +113 -0
- package/theme-style/src/date-picker/date-table.scss +162 -0
- package/theme-style/src/date-picker/month-table.scss +90 -0
- package/theme-style/src/date-picker/picker-panel.scss +131 -0
- package/theme-style/src/date-picker/picker.scss +210 -0
- package/theme-style/src/date-picker/time-picker.scss +90 -0
- package/theme-style/src/date-picker/time-range-picker.scss +33 -0
- package/theme-style/src/date-picker/time-spinner.scss +111 -0
- package/theme-style/src/date-picker/year-table.scss +60 -0
- package/theme-style/src/date-picker.scss +9 -0
- package/theme-style/src/date-time-select.scss +1 -1
- package/theme-style/src/display.scss +12 -0
- package/theme-style/src/drawer.scss +160 -0
- package/theme-style/src/footer-layout.scss +4 -9
- package/theme-style/src/footer.scss +11 -0
- package/theme-style/src/header-layout.scss +26 -15
- package/theme-style/src/header.scss +11 -0
- package/theme-style/src/horizontal-menu.scss +90 -0
- package/theme-style/src/icon.scss +6 -6
- package/theme-style/src/index.scss +123 -76
- package/theme-style/src/infinite-scroll.scss +0 -0
- package/theme-style/src/input-number.scss +175 -0
- package/theme-style/src/input.scss +2 -4
- package/theme-style/src/list-cell.scss +3 -3
- package/theme-style/src/loading.scss +1 -1
- package/theme-style/src/main.scss +10 -0
- package/theme-style/src/md/code.scss +3 -3
- package/theme-style/src/md/demo-block.scss +2 -2
- package/theme-style/src/md/pswp.scss +4 -4
- package/theme-style/src/md/scroll-bar.scss +1 -1
- package/theme-style/src/md/table.scss +3 -3
- package/theme-style/src/md/toc.scss +3 -3
- package/theme-style/src/md-container.scss +6 -8
- package/theme-style/src/menu.scss +43 -17
- package/theme-style/src/message-box.scss +258 -0
- package/theme-style/src/mixins/_col.scss +38 -0
- package/theme-style/src/mixins/mixins.scss +25 -0
- package/theme-style/src/notification.scss +105 -0
- package/theme-style/src/option.scss +36 -0
- package/theme-style/src/pagination.scss +0 -2
- package/theme-style/src/progress.scss +169 -0
- package/theme-style/src/rate.scss +101 -0
- package/theme-style/src/reset.scss +92 -0
- package/theme-style/src/row.scss +31 -0
- package/theme-style/src/search.scss +6 -5
- package/theme-style/src/select-dropdown.scss +2 -2
- package/theme-style/src/side-menu.scss +9 -3
- package/theme-style/src/slider.scss +211 -0
- package/theme-style/src/space.scss +20 -0
- package/theme-style/src/spinner.scss +43 -0
- package/theme-style/src/statistic.scss +35 -0
- package/theme-style/src/step.scss +316 -0
- package/theme-style/src/steps.scss +21 -0
- package/theme-style/src/tabs.scss +2 -2
- package/theme-style/src/time-picker.scss +5 -0
- package/theme-style/src/time-select.scss +37 -0
- package/theme-style/src/timeline-item.scss +85 -0
- package/theme-style/src/timeline.scss +46 -0
- package/theme-style/src/transfer.scss +206 -0
- package/theme-style/src/tree-select.scss +36 -0
- package/theme-style/src/tree.scss +131 -0
- package/theme-style/src/upload.scss +621 -0
- package/theme-style/vft-affix.css +1 -0
- package/theme-style/vft-aside.css +1 -0
- package/theme-style/vft-autocomplete.css +1 -0
- package/theme-style/vft-back-top.css +1 -1
- package/theme-style/vft-badge.css +1 -0
- package/theme-style/vft-breadcrumb-item.css +0 -0
- package/theme-style/vft-breadcrumb.css +1 -0
- package/theme-style/vft-calendar.css +1 -0
- package/theme-style/vft-card.css +1 -0
- package/theme-style/vft-carousel-item.css +1 -0
- package/theme-style/vft-carousel.css +1 -0
- package/theme-style/vft-cascader-panel.css +1 -0
- package/theme-style/vft-cascader.css +1 -0
- package/theme-style/vft-check-tag.css +1 -0
- package/theme-style/vft-col.css +1 -0
- package/theme-style/vft-collapse-item.css +0 -0
- package/theme-style/vft-collapse.css +1 -0
- package/theme-style/vft-color-picker.css +1 -1
- package/theme-style/vft-container.css +1 -0
- package/theme-style/vft-date-picker.css +1 -0
- package/theme-style/vft-drawer.css +1 -0
- package/theme-style/vft-footer-layout.css +1 -1
- package/theme-style/vft-footer.css +1 -0
- package/theme-style/vft-header-layout.css +1 -1
- package/theme-style/vft-header.css +1 -0
- package/theme-style/vft-horizontal-menu.css +1 -0
- package/theme-style/vft-infinite-scroll.css +0 -0
- package/theme-style/vft-input-number.css +1 -0
- package/theme-style/vft-main.css +1 -0
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-message-box.css +1 -0
- package/theme-style/vft-notification.css +1 -0
- package/theme-style/vft-option.css +1 -0
- package/theme-style/vft-pagination.css +1 -1
- package/theme-style/vft-progress.css +1 -0
- package/theme-style/vft-rate.css +1 -0
- package/theme-style/vft-reset.css +1 -0
- package/theme-style/vft-row.css +1 -0
- package/theme-style/vft-search.css +1 -1
- package/theme-style/vft-select-dropdown.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-slider.css +1 -0
- package/theme-style/vft-space.css +1 -0
- package/theme-style/vft-spinner.css +1 -0
- package/theme-style/vft-statistic.css +1 -0
- package/theme-style/vft-step.css +1 -0
- package/theme-style/vft-steps.css +1 -0
- package/theme-style/vft-time-picker.css +1 -0
- package/theme-style/vft-time-select.css +1 -0
- package/theme-style/vft-timeline-item.css +1 -0
- package/theme-style/vft-timeline.css +1 -0
- package/theme-style/vft-transfer.css +1 -0
- package/theme-style/vft-tree-select.css +1 -0
- package/theme-style/vft-tree.css +1 -0
- package/theme-style/vft-upload.css +1 -0
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
- package/theme-style/src/md/list.scss +0 -21
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, toRefs as ee, useSlots as te, getCurrentInstance as oe, ref as y, computed as g, h as C, createVNode as f, onMounted as le, nextTick as ne, watch as re, isVNode as ie } from "vue";
|
|
2
2
|
import "../divider/index.js";
|
|
3
|
-
import { VftIcon as
|
|
3
|
+
import { VftIcon as ae } from "../icon/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
5
5
|
import "../empty/index.js";
|
|
6
6
|
import "../result/index.js";
|
|
@@ -9,8 +9,8 @@ import "../popper/index.js";
|
|
|
9
9
|
import "../collapse-transition/index.js";
|
|
10
10
|
import "../tooltip/index.js";
|
|
11
11
|
import "../popover/index.js";
|
|
12
|
-
import { VftMenu as
|
|
13
|
-
import { isUrl as
|
|
12
|
+
import { VftMenu as pe, VftSubMenu as ue, VftMenuItem as A } from "../menu/index.js";
|
|
13
|
+
import { isUrl as se, isNullOrUndefined as V, addUnit as j, isNumber as de } from "@vft/utils";
|
|
14
14
|
import "../context-menu/context-menu.vue2.js";
|
|
15
15
|
import "../multiple-tabs/index.js";
|
|
16
16
|
import "../header-layout/index.js";
|
|
@@ -19,6 +19,7 @@ import "../iframe-layout/index.js";
|
|
|
19
19
|
import "../router-view-content/index.js";
|
|
20
20
|
import "../logo/index.js";
|
|
21
21
|
import "../back-top/index.js";
|
|
22
|
+
import "../container/index.js";
|
|
22
23
|
import "../config-provider/index.js";
|
|
23
24
|
import "../descriptions/index.js";
|
|
24
25
|
import "../full-screen/index.js";
|
|
@@ -56,6 +57,11 @@ import "../image-viewer/index.js";
|
|
|
56
57
|
import "../list-cell/index.js";
|
|
57
58
|
import "../dialog/index.js";
|
|
58
59
|
import "../date-time-select/index.js";
|
|
60
|
+
import "../col/index.js";
|
|
61
|
+
import "../row/index.js";
|
|
62
|
+
import "../horizontal-menu/index.js";
|
|
63
|
+
import "../time-picker/index.js";
|
|
64
|
+
import "../date-picker/index.js";
|
|
59
65
|
import "../md-container/index.js";
|
|
60
66
|
import "../md-comment/index.js";
|
|
61
67
|
import "../md-tabs/index.js";
|
|
@@ -63,73 +69,92 @@ import "../md-vue-playground/index.js";
|
|
|
63
69
|
import "../md-code-demo/index.js";
|
|
64
70
|
import "../md-code-tabs/index.js";
|
|
65
71
|
import "../message/index.js";
|
|
66
|
-
import { useNamespace as
|
|
72
|
+
import { useNamespace as ce } from "../../hooks/use-namespace/index.js";
|
|
67
73
|
import "@popperjs/core";
|
|
68
74
|
import "lodash";
|
|
69
75
|
import "../../hooks/use-z-index/index.js";
|
|
70
76
|
import "@vueuse/core";
|
|
71
77
|
import "../../utils/ns-cover.js";
|
|
72
|
-
import { listenerRouteChange as
|
|
73
|
-
import { useSortable as
|
|
74
|
-
import {
|
|
75
|
-
|
|
76
|
-
const a = (
|
|
78
|
+
import { listenerRouteChange as me, useRouterHelper as fe } from "@vft/router";
|
|
79
|
+
import { useSortable as he } from "@vft/use";
|
|
80
|
+
import { useDragLine as ge } from "./use-drag-line.js";
|
|
81
|
+
const p = (
|
|
77
82
|
/* hoist-static*/
|
|
78
|
-
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
ce("side-menu")
|
|
84
|
+
);
|
|
85
|
+
function ve(v) {
|
|
86
|
+
return typeof v == "function" || Object.prototype.toString.call(v) === "[object Object]" && !ie(v);
|
|
87
|
+
}
|
|
88
|
+
const be = E({
|
|
89
|
+
name: p.b()
|
|
90
|
+
}), Ft = /* @__PURE__ */ E({
|
|
91
|
+
...be,
|
|
83
92
|
props: {
|
|
84
|
-
|
|
85
|
-
uniqueOpened: {
|
|
93
|
+
isFixedLeft: {
|
|
86
94
|
type: Boolean,
|
|
87
95
|
default: !0
|
|
88
96
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
default:
|
|
97
|
+
menus: null,
|
|
98
|
+
width: {
|
|
99
|
+
default: 200
|
|
100
|
+
},
|
|
101
|
+
height: {
|
|
102
|
+
default: "100%"
|
|
92
103
|
},
|
|
93
|
-
defaultActive: null,
|
|
94
|
-
sideWidth: null,
|
|
95
104
|
collapseWidth: {
|
|
96
105
|
default: 50
|
|
97
106
|
},
|
|
98
107
|
attrMapping: null,
|
|
99
|
-
extraHeight: {
|
|
100
|
-
default: 100
|
|
101
|
-
},
|
|
102
108
|
menuTopBottomHeight: {
|
|
103
|
-
default:
|
|
109
|
+
default: 0
|
|
104
110
|
},
|
|
105
111
|
showCollapse: {
|
|
106
112
|
type: Boolean,
|
|
107
113
|
default: !1
|
|
108
114
|
},
|
|
109
115
|
dragOption: null,
|
|
110
|
-
|
|
116
|
+
dragWidthCfg: {
|
|
117
|
+
type: [Boolean, Object],
|
|
118
|
+
default: !1
|
|
119
|
+
},
|
|
120
|
+
useRouterJump: {
|
|
111
121
|
type: Boolean,
|
|
112
122
|
default: !1
|
|
113
123
|
},
|
|
114
|
-
|
|
124
|
+
openDisabled: {
|
|
125
|
+
type: Boolean
|
|
126
|
+
},
|
|
127
|
+
autoScrollActiveDom: {
|
|
128
|
+
type: [Boolean, Number],
|
|
129
|
+
default: !0
|
|
130
|
+
},
|
|
131
|
+
openMenuCollapse: {
|
|
115
132
|
type: Boolean,
|
|
116
133
|
default: !0
|
|
117
134
|
},
|
|
118
|
-
|
|
135
|
+
collapse: {
|
|
119
136
|
type: Boolean,
|
|
120
137
|
default: !1
|
|
121
138
|
},
|
|
122
|
-
|
|
123
|
-
type: Boolean
|
|
139
|
+
uniqueOpened: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: !0
|
|
124
142
|
},
|
|
143
|
+
defaultActive: null,
|
|
125
144
|
defaultOpeneds: null
|
|
126
145
|
},
|
|
127
|
-
emits: ["update:collapse", "update:
|
|
128
|
-
setup(
|
|
129
|
-
expose:
|
|
130
|
-
emit:
|
|
146
|
+
emits: ["update:collapse", "update:width", "dragEnd", "dragWidthEnd", "select", "subMenuClick", "menuItemMouseenter", "menuItemMouseleave"],
|
|
147
|
+
setup(v, {
|
|
148
|
+
expose: I,
|
|
149
|
+
emit: m
|
|
131
150
|
}) {
|
|
132
|
-
const
|
|
151
|
+
const t = v, {
|
|
152
|
+
defaultActive: M,
|
|
153
|
+
collapse: h,
|
|
154
|
+
uniqueOpened: q,
|
|
155
|
+
defaultOpeneds: S,
|
|
156
|
+
openMenuCollapse: L
|
|
157
|
+
} = ee(t), i = te(), O = oe(), B = y(), a = g(() => ({
|
|
133
158
|
path: "path",
|
|
134
159
|
children: "children",
|
|
135
160
|
title: "title",
|
|
@@ -138,103 +163,135 @@ const a = (
|
|
|
138
163
|
disabled: "disabled",
|
|
139
164
|
...t.attrMapping
|
|
140
165
|
}));
|
|
141
|
-
|
|
142
|
-
var
|
|
143
|
-
!e || (
|
|
166
|
+
me((e) => {
|
|
167
|
+
var n;
|
|
168
|
+
!e || (n = e.meta) != null && n.hideSide && !t.useRouterJump || (B.value = e.path);
|
|
144
169
|
});
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
|
|
170
|
+
const P = (e) => {
|
|
171
|
+
var o;
|
|
172
|
+
const n = e.e;
|
|
173
|
+
if (t.autoScrollActiveDom && n) {
|
|
174
|
+
const u = de(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, r = n.target;
|
|
175
|
+
(o = b.value) != null && o.menu && r && setTimeout(() => {
|
|
176
|
+
b.value.menu.scrollTop = b.value.menu.scrollTop + (r.getBoundingClientRect().top - b.value.menu.getBoundingClientRect().top) + u;
|
|
177
|
+
}, 300);
|
|
178
|
+
}
|
|
179
|
+
m("subMenuClick", e);
|
|
180
|
+
}, H = (e) => {
|
|
181
|
+
m("menuItemMouseenter", e);
|
|
182
|
+
}, J = (e) => {
|
|
183
|
+
m("menuItemMouseleave", e);
|
|
184
|
+
}, _ = (e, n) => {
|
|
185
|
+
const o = e[a.value.path], u = e[a.value.title], r = e == null ? void 0 : e[a.value.children], s = e == null ? void 0 : e[a.value.index], d = e == null ? void 0 : e[a.value.icon], c = !!(e != null && e[a.value.disabled]);
|
|
186
|
+
return r != null && r.length ? C(
|
|
148
187
|
// @ts-ignore
|
|
149
|
-
|
|
188
|
+
ue,
|
|
150
189
|
{
|
|
190
|
+
...e,
|
|
151
191
|
popperAppendToBody: !0,
|
|
152
|
-
key:
|
|
153
|
-
index:
|
|
154
|
-
title:
|
|
155
|
-
icon:
|
|
156
|
-
|
|
192
|
+
key: s || o,
|
|
193
|
+
index: s || o,
|
|
194
|
+
title: u,
|
|
195
|
+
icon: d,
|
|
196
|
+
class: s || o,
|
|
197
|
+
disabled: t.openDisabled && c,
|
|
198
|
+
popperClass: p.e("popper")
|
|
157
199
|
},
|
|
158
200
|
{
|
|
159
|
-
default: () => r == null ? void 0 : r.map((
|
|
160
|
-
var
|
|
161
|
-
const
|
|
162
|
-
return (
|
|
201
|
+
default: () => r == null ? void 0 : r.map((l, G) => {
|
|
202
|
+
var k;
|
|
203
|
+
const w = l[a.value.path], N = l[a.value.index], K = l[a.value.icon], Q = l[a.value.title], X = !!l[a.value.disabled];
|
|
204
|
+
return (k = l == null ? void 0 : l[a.value.children]) != null && k.length ? _(l, G) : (
|
|
163
205
|
// @ts-ignore
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
206
|
+
C(A, {
|
|
207
|
+
...l,
|
|
208
|
+
key: N || w,
|
|
209
|
+
index: N || w,
|
|
210
|
+
route: w,
|
|
211
|
+
icon: K,
|
|
212
|
+
title: Q,
|
|
213
|
+
disabled: t.openDisabled && X
|
|
214
|
+
}, i.menuItem ? () => {
|
|
215
|
+
var W;
|
|
216
|
+
return (W = i.menuItem) == null ? void 0 : W.call(i, {
|
|
217
|
+
item: l
|
|
218
|
+
});
|
|
219
|
+
} : "")
|
|
172
220
|
);
|
|
173
221
|
})
|
|
174
222
|
}
|
|
175
|
-
) :
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
223
|
+
) : C(A, {
|
|
224
|
+
...e,
|
|
225
|
+
key: s || o,
|
|
226
|
+
index: s || o,
|
|
227
|
+
title: u,
|
|
228
|
+
route: o,
|
|
229
|
+
icon: d,
|
|
230
|
+
disabled: t.openDisabled && c,
|
|
231
|
+
onMouseenter: () => H(e),
|
|
232
|
+
onMouseleave: () => J(e)
|
|
233
|
+
}, i.menuItem ? () => {
|
|
234
|
+
var l;
|
|
235
|
+
return (l = i.menuItem) == null ? void 0 : l.call(i, {
|
|
185
236
|
item: e,
|
|
186
|
-
index:
|
|
237
|
+
index: n
|
|
187
238
|
});
|
|
188
239
|
} : "");
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
240
|
+
}, b = y(), U = g(() => ({
|
|
241
|
+
...t.collapseWidth === 0 && h.value ? {
|
|
242
|
+
width: 0
|
|
243
|
+
} : {},
|
|
244
|
+
height: `calc(100% - ${t.menuTopBottomHeight}px)`
|
|
245
|
+
})), F = g(() => {
|
|
246
|
+
var n, o;
|
|
247
|
+
let e;
|
|
248
|
+
return C(f(pe, {
|
|
249
|
+
ref: b,
|
|
250
|
+
onSelect: Z,
|
|
251
|
+
onOpen: P,
|
|
252
|
+
defaultActive: (M == null ? void 0 : M.value) || B.value,
|
|
253
|
+
defaultOpeneds: S == null ? void 0 : S.value,
|
|
254
|
+
class: [p.e("con"), (n = t.dragOption) != null && n.dragClassName ? p.e((o = t.dragOption) == null ? void 0 : o.dragClassName) : ""],
|
|
255
|
+
style: U.value,
|
|
256
|
+
collapse: L.value ? h.value : !1,
|
|
257
|
+
uniqueOpened: q.value,
|
|
258
|
+
collapseTransition: !1
|
|
259
|
+
}, ve(e = t.menus.map((u, r) => _(u, r))) ? e : {
|
|
260
|
+
default: () => [e]
|
|
261
|
+
}));
|
|
262
|
+
}), R = O.appContext.config.globalProperties.$router;
|
|
263
|
+
async function Z(e) {
|
|
264
|
+
var n, o, u;
|
|
265
|
+
if (t.useRouterJump) {
|
|
266
|
+
const {
|
|
267
|
+
go: r
|
|
268
|
+
} = fe(R), s = e.route;
|
|
269
|
+
let d = e.route;
|
|
270
|
+
e.indexPath.some((l) => se(l)) && (d = e.indexPath.slice(-2).join("/"));
|
|
271
|
+
const c = (u = (o = (n = R.getRoutes().filter((l) => l.path === d)) == null ? void 0 : n[0]) == null ? void 0 : o.meta) == null ? void 0 : u.linkTarget;
|
|
272
|
+
r(c ? {
|
|
273
|
+
url: s,
|
|
274
|
+
winOpenOpt: {
|
|
275
|
+
target: c
|
|
276
|
+
}
|
|
277
|
+
} : s);
|
|
278
|
+
}
|
|
279
|
+
m("select", e);
|
|
219
280
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
})), q = m(() => [a.b(), a.m("fixed")]);
|
|
224
|
-
F(() => {
|
|
225
|
-
G(() => {
|
|
226
|
-
var e, o, l;
|
|
281
|
+
le(() => {
|
|
282
|
+
ne(() => {
|
|
283
|
+
var e, n, o;
|
|
227
284
|
if ((e = t.dragOption) != null && e.dragClassName) {
|
|
228
|
-
const
|
|
285
|
+
const u = (o = document.querySelectorAll("." + p.e((n = t.dragOption) == null ? void 0 : n.dragClassName))) == null ? void 0 : o[0], {
|
|
229
286
|
initSortable: r
|
|
230
|
-
} =
|
|
287
|
+
} = he(u, {
|
|
231
288
|
draggable: ".vft-menu-item",
|
|
232
|
-
onEnd: (
|
|
289
|
+
onEnd: (s) => {
|
|
233
290
|
const {
|
|
234
|
-
oldIndex:
|
|
235
|
-
newIndex:
|
|
236
|
-
} =
|
|
237
|
-
|
|
291
|
+
oldIndex: d,
|
|
292
|
+
newIndex: c
|
|
293
|
+
} = s;
|
|
294
|
+
V(d) || V(c) || d === c || m("dragEnd", d, c);
|
|
238
295
|
},
|
|
239
296
|
...t.dragOption
|
|
240
297
|
});
|
|
@@ -242,39 +299,48 @@ const a = (
|
|
|
242
299
|
}
|
|
243
300
|
});
|
|
244
301
|
});
|
|
245
|
-
const
|
|
246
|
-
|
|
302
|
+
const x = y(), D = y(), T = y(), $ = g(() => ({
|
|
303
|
+
...t.collapseWidth === 0 && h.value ? {
|
|
304
|
+
borderRight: "none"
|
|
305
|
+
} : {},
|
|
306
|
+
width: j(t.width),
|
|
307
|
+
height: t.height
|
|
247
308
|
}));
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
309
|
+
re(() => h.value, (e) => {
|
|
310
|
+
e ? m("update:width", t.collapseWidth) : m("update:width", T.value || t.width), T.value = t.width;
|
|
311
|
+
}), t.dragWidthCfg && ge(x, D, O);
|
|
312
|
+
const z = g(() => ({
|
|
313
|
+
left: j(t.width)
|
|
314
|
+
})), Y = g(() => [p.b(), t.isFixedLeft ? p.m("fixed") : ""]);
|
|
315
|
+
return I({
|
|
316
|
+
sideRef: x
|
|
317
|
+
}), () => {
|
|
318
|
+
var e;
|
|
319
|
+
return f("div", {
|
|
320
|
+
ref: x,
|
|
321
|
+
class: Y.value,
|
|
322
|
+
style: $.value
|
|
323
|
+
}, [i.top ? f("div", {
|
|
324
|
+
class: p.e("top")
|
|
325
|
+
}, [i.top()]) : null, F.value, i.bottom ? f("div", {
|
|
326
|
+
class: p.e("bottom")
|
|
327
|
+
}, [i.bottom()]) : t.showCollapse ? f("div", {
|
|
328
|
+
onClick: () => m("update:collapse", !h.value),
|
|
329
|
+
class: [p.e("bottom"), p.e("collapse")]
|
|
330
|
+
}, [f(ae, {
|
|
331
|
+
style: {
|
|
332
|
+
transform: h.value ? "rotateY(180deg)" : ""
|
|
333
|
+
},
|
|
334
|
+
size: 20,
|
|
335
|
+
icon: "ico-iconoir:sidebar-collapse"
|
|
336
|
+
}, null)]) : null, (e = i.default) == null ? void 0 : e.call(i), t.dragWidthCfg ? f("div", {
|
|
337
|
+
ref: D,
|
|
338
|
+
style: z.value,
|
|
339
|
+
class: p.e("drag-bar")
|
|
340
|
+
}, null) : null]);
|
|
341
|
+
};
|
|
276
342
|
}
|
|
277
343
|
});
|
|
278
344
|
export {
|
|
279
|
-
|
|
345
|
+
Ft as default
|
|
280
346
|
};
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { useDebounceFn as v } from "@vft/use";
|
|
2
|
-
import { onMounted as
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useDebounceFn as v, useThrottleFn as T } from "@vft/use";
|
|
2
|
+
import { onMounted as C, nextTick as M, unref as r } from "vue";
|
|
3
|
+
function L(a, l, i) {
|
|
4
|
+
var s, f;
|
|
5
|
+
const h = ((f = (s = i.props) == null ? void 0 : s.dragWidthCfg) == null ? void 0 : f.minWidth) || 200;
|
|
6
|
+
C(() => {
|
|
7
|
+
M(() => {
|
|
8
|
+
v(x, 100)();
|
|
7
9
|
});
|
|
8
10
|
});
|
|
9
|
-
function
|
|
10
|
-
var
|
|
11
|
+
function c(t) {
|
|
12
|
+
var e;
|
|
11
13
|
const o = r(t);
|
|
12
|
-
return o ? Reflect.has(o, "$el") ? (
|
|
14
|
+
return o ? Reflect.has(o, "$el") ? (e = r(t)) == null ? void 0 : e.$el : r(t) : null;
|
|
13
15
|
}
|
|
14
|
-
function
|
|
16
|
+
function W(t, o, e) {
|
|
15
17
|
document.onmousemove = function(u) {
|
|
16
|
-
|
|
18
|
+
var m, p;
|
|
19
|
+
let n = t.left + (u.clientX - e);
|
|
17
20
|
u = u || window.event;
|
|
18
|
-
const
|
|
19
|
-
return
|
|
21
|
+
const d = ((p = (m = i.props) == null ? void 0 : m.dragWidthCfg) == null ? void 0 : p.maxWidth) || 800, w = r(h);
|
|
22
|
+
return n <= w ? void 0 : (n < 0 && (n = 0), n > d && (n = d), t.style.left = n + "px", T(() => {
|
|
23
|
+
i.emit("update:width", n);
|
|
24
|
+
}, 150)(), !1);
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
|
-
function
|
|
23
|
-
const o = i(f), n = i(l);
|
|
27
|
+
function g(t) {
|
|
24
28
|
document.onmouseup = function() {
|
|
25
|
-
var
|
|
26
|
-
document.onmousemove = null, document.onmouseup = null,
|
|
27
|
-
const u = parseInt(o.style.left);
|
|
28
|
-
u > r(m) && d.value && s.emit("update:collapse", !1), s.emit("update:sideWidth", u), s.emit("dragWidthEnd"), (e = t.releaseCapture) == null || e.call(t);
|
|
29
|
+
var o;
|
|
30
|
+
document.onmousemove = null, document.onmouseup = null, (o = t.releaseCapture) == null || o.call(t);
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
|
-
function
|
|
32
|
-
const t =
|
|
33
|
+
function x() {
|
|
34
|
+
const t = c(l);
|
|
33
35
|
if (!t)
|
|
34
36
|
return;
|
|
35
|
-
const o =
|
|
36
|
-
o && (t.onmousedown = (
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return t.left = t.offsetLeft, p(t, o, u), h(t), (e = t.setCapture) == null || e.call(t), !1;
|
|
37
|
+
const o = c(a);
|
|
38
|
+
o && (t.onmousedown = (e) => {
|
|
39
|
+
var n;
|
|
40
|
+
const u = e == null ? void 0 : e.clientX;
|
|
41
|
+
return t.left = t.offsetLeft, W(t, o, u), g(t), (n = t.setCapture) == null || n.call(t), !1;
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
return {};
|
|
44
45
|
}
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
L as useDragLine
|
|
47
48
|
};
|