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
package/es/component.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VftDivider as o } from "./components/divider/index.js";
|
|
2
2
|
import { VftConfigProvider as t } from "./components/config-provider/index.js";
|
|
3
3
|
import { VftIcon as r } from "./components/icon/index.js";
|
|
4
|
-
import { VftAvatar as
|
|
5
|
-
import { VftEmpty as
|
|
4
|
+
import { VftAvatar as f } from "./components/avatar/index.js";
|
|
5
|
+
import { VftEmpty as m } from "./components/empty/index.js";
|
|
6
6
|
import { VftResult as i } from "./components/result/index.js";
|
|
7
7
|
import { VftTooltip as p } from "./components/tooltip/index.js";
|
|
8
8
|
import { VftBackTop as V } from "./components/back-top/index.js";
|
|
@@ -22,51 +22,67 @@ import { VftClamp as g } from "./components/clamp/index.js";
|
|
|
22
22
|
import { VftPageWrapper as I } from "./components/page-wrapper/index.js";
|
|
23
23
|
import { VftClampToggle as D } from "./components/clamp-toggle/index.js";
|
|
24
24
|
import { VftRouterViewContent as P } from "./components/router-view-content/index.js";
|
|
25
|
-
import { VftIframeLayout as
|
|
26
|
-
import { VftFooterLayout as
|
|
27
|
-
import { VftHeaderLayout as
|
|
28
|
-
import { VftPagination as
|
|
25
|
+
import { VftIframeLayout as k } from "./components/iframe-layout/index.js";
|
|
26
|
+
import { VftFooterLayout as S } from "./components/footer-layout/index.js";
|
|
27
|
+
import { VftHeaderLayout as w } from "./components/header-layout/index.js";
|
|
28
|
+
import { VftPagination as y } from "./components/pagination/index.js";
|
|
29
29
|
import { VftTabs as x, VftTabPane as L } from "./components/tabs/index.js";
|
|
30
|
-
import { VftForm as
|
|
31
|
-
import { VftDescriptions as
|
|
30
|
+
import { VftForm as R, VftFormItem as h } from "./components/form/index.js";
|
|
31
|
+
import { VftDescriptions as v, VftDescriptionsItem as B } from "./components/descriptions/index.js";
|
|
32
32
|
import { VftMultipleTabs as F } from "./components/multiple-tabs/index.js";
|
|
33
33
|
import { VftCollapseTransition as G } from "./components/collapse-transition/index.js";
|
|
34
|
-
import { VftMenu as
|
|
35
|
-
import { VftException as
|
|
36
|
-
import { VftSearch as
|
|
37
|
-
import { VftButton as
|
|
38
|
-
import { VftCheckboxGroup as
|
|
34
|
+
import { VftMenu as H, VftMenuItem as A, VftMenuItemGroup as E, VftSubMenu as z } from "./components/menu/index.js";
|
|
35
|
+
import { VftException as O } from "./components/exception/index.js";
|
|
36
|
+
import { VftSearch as Q } from "./components/search/index.js";
|
|
37
|
+
import { VftButton as W, VftButtonGroup as j } from "./components/button/index.js";
|
|
38
|
+
import { VftCheckboxGroup as q, VftCheckbox as J, VftCheckboxButton as K } from "./components/checkbox/index.js";
|
|
39
39
|
import { VftRadioButton as N, VftRadio as U, VftRadioGroup as X } from "./components/radio/index.js";
|
|
40
40
|
import { VftSwitch as Y } from "./components/switch/index.js";
|
|
41
41
|
import { VftColorPicker as Z } from "./components/color-picker/index.js";
|
|
42
42
|
import { VftScrollbar as _ } from "./components/scrollbar/index.js";
|
|
43
43
|
import { VftDropdownItem as $, VftDropdownMenu as oo, VftDropdown as to } from "./components/dropdown/index.js";
|
|
44
44
|
import { VftSelectV2 as ro } from "./components/select-v2/index.js";
|
|
45
|
-
import { VftVerifyCode as
|
|
46
|
-
import { VftTable as
|
|
45
|
+
import { VftVerifyCode as fo } from "./components/verify-code/index.js";
|
|
46
|
+
import { VftTable as mo } from "./components/table/index.js";
|
|
47
47
|
import { VftImageViewer as io } from "./components/image-viewer/index.js";
|
|
48
48
|
import { VftListCell as po } from "./components/list-cell/index.js";
|
|
49
49
|
import { VftDialog as Vo } from "./components/dialog/index.js";
|
|
50
50
|
import { VftDateTimeSelect as eo } from "./components/date-time-select/index.js";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
import { VftHorizontalMenu as ao } from "./components/horizontal-menu/index.js";
|
|
52
|
+
import { VftCol as no } from "./components/col/index.js";
|
|
53
|
+
import { VftRow as uo } from "./components/row/index.js";
|
|
54
|
+
import { VftTimePicker as lo } from "./components/time-picker/index.js";
|
|
55
|
+
import { VftDatePicker as co } from "./components/date-picker/index.js";
|
|
56
|
+
import { VftAside as Co, VftContainer as so, VftFooter as Mo, VftHeader as To, VftMain as bo } from "./components/container/index.js";
|
|
57
|
+
import { VftMdComment as go } from "./components/md-comment/index.js";
|
|
58
|
+
import { VftMdTabs as Io } from "./components/md-tabs/index.js";
|
|
59
|
+
import { VftMdVuePlayground as Do } from "./components/md-vue-playground/index.js";
|
|
60
|
+
import { VftMdCodeDemo as Po } from "./components/md-code-demo/index.js";
|
|
61
|
+
import { VftMdCodeTabs as ko } from "./components/md-code-tabs/index.js";
|
|
62
|
+
import { VftMdContainer as So } from "./components/md-container/index.js";
|
|
63
|
+
const Ft = [
|
|
64
|
+
So,
|
|
65
|
+
ko,
|
|
66
|
+
Po,
|
|
67
|
+
Do,
|
|
68
|
+
Io,
|
|
59
69
|
co,
|
|
70
|
+
go,
|
|
71
|
+
Co,
|
|
72
|
+
so,
|
|
73
|
+
Mo,
|
|
74
|
+
To,
|
|
75
|
+
bo,
|
|
76
|
+
ao,
|
|
77
|
+
no,
|
|
60
78
|
lo,
|
|
61
79
|
uo,
|
|
62
|
-
no,
|
|
63
|
-
ao,
|
|
64
80
|
Vo,
|
|
65
81
|
eo,
|
|
66
82
|
po,
|
|
67
83
|
io,
|
|
68
|
-
fo,
|
|
69
84
|
mo,
|
|
85
|
+
fo,
|
|
70
86
|
ro,
|
|
71
87
|
$,
|
|
72
88
|
oo,
|
|
@@ -77,14 +93,14 @@ const Tt = [
|
|
|
77
93
|
N,
|
|
78
94
|
U,
|
|
79
95
|
X,
|
|
80
|
-
|
|
96
|
+
q,
|
|
81
97
|
J,
|
|
82
98
|
K,
|
|
99
|
+
W,
|
|
83
100
|
j,
|
|
84
|
-
|
|
101
|
+
R,
|
|
85
102
|
h,
|
|
86
|
-
|
|
87
|
-
W,
|
|
103
|
+
Q,
|
|
88
104
|
I,
|
|
89
105
|
g,
|
|
90
106
|
D,
|
|
@@ -92,39 +108,39 @@ const Tt = [
|
|
|
92
108
|
T,
|
|
93
109
|
s,
|
|
94
110
|
b,
|
|
95
|
-
|
|
111
|
+
y,
|
|
96
112
|
C,
|
|
97
113
|
c,
|
|
98
114
|
l,
|
|
99
115
|
u,
|
|
100
116
|
d,
|
|
117
|
+
v,
|
|
101
118
|
B,
|
|
102
|
-
R,
|
|
103
119
|
t,
|
|
104
120
|
V,
|
|
105
121
|
P,
|
|
106
|
-
S,
|
|
107
|
-
y,
|
|
108
122
|
k,
|
|
123
|
+
S,
|
|
124
|
+
w,
|
|
109
125
|
n,
|
|
110
126
|
F,
|
|
111
|
-
E,
|
|
112
|
-
A,
|
|
113
127
|
H,
|
|
114
|
-
|
|
128
|
+
A,
|
|
129
|
+
E,
|
|
130
|
+
z,
|
|
115
131
|
G,
|
|
116
132
|
o,
|
|
117
133
|
r,
|
|
118
|
-
m,
|
|
119
134
|
f,
|
|
135
|
+
m,
|
|
120
136
|
i,
|
|
121
137
|
x,
|
|
122
138
|
L,
|
|
123
139
|
p,
|
|
124
140
|
e,
|
|
125
141
|
a,
|
|
126
|
-
|
|
142
|
+
O
|
|
127
143
|
];
|
|
128
144
|
export {
|
|
129
|
-
|
|
145
|
+
Ft as default
|
|
130
146
|
};
|
|
@@ -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 "./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";
|
|
@@ -75,7 +81,7 @@ const r = (
|
|
|
75
81
|
_("back-top")
|
|
76
82
|
), N = c({
|
|
77
83
|
name: r.b()
|
|
78
|
-
}),
|
|
84
|
+
}), ro = /* @__PURE__ */ c({
|
|
79
85
|
...N,
|
|
80
86
|
props: {
|
|
81
87
|
visibilityHeight: { default: 200 },
|
|
@@ -118,5 +124,5 @@ const r = (
|
|
|
118
124
|
}
|
|
119
125
|
});
|
|
120
126
|
export {
|
|
121
|
-
|
|
127
|
+
ro as default
|
|
122
128
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as i, inject as h, computed as u, openBlock as $, createBlock as b, resolveDynamicComponent as g, normalizeClass as x, unref as c, normalizeStyle as y, withCtx as _, renderSlot as v } from "vue";
|
|
2
|
+
import { isNumber as f, isObject as C } from "@vft/utils";
|
|
3
|
+
import { useNamespace as j } from "../../hooks/use-namespace/index.js";
|
|
4
|
+
import "@popperjs/core";
|
|
5
|
+
import "lodash";
|
|
6
|
+
import "../../hooks/use-z-index/index.js";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
import "../row/index.js";
|
|
10
|
+
import { rowContextKey as E } from "../row/constants.js";
|
|
11
|
+
const e = (
|
|
12
|
+
/* hoist-static*/
|
|
13
|
+
j("col")
|
|
14
|
+
), k = i({
|
|
15
|
+
name: e.b()
|
|
16
|
+
}), F = /* @__PURE__ */ i({
|
|
17
|
+
...k,
|
|
18
|
+
props: {
|
|
19
|
+
tag: { default: "div" },
|
|
20
|
+
span: { default: 24 },
|
|
21
|
+
offset: { default: 0 },
|
|
22
|
+
pull: { default: 0 },
|
|
23
|
+
push: { default: 0 },
|
|
24
|
+
xs: null,
|
|
25
|
+
sm: null,
|
|
26
|
+
md: null,
|
|
27
|
+
lg: null,
|
|
28
|
+
xl: null
|
|
29
|
+
},
|
|
30
|
+
setup(a) {
|
|
31
|
+
const l = a, { gutter: n } = h(E, { gutter: u(() => 0) }), m = u(() => {
|
|
32
|
+
const s = {};
|
|
33
|
+
return n.value && (s.paddingLeft = s.paddingRight = `${n.value / 2}px`), s;
|
|
34
|
+
}), p = u(() => {
|
|
35
|
+
const s = [];
|
|
36
|
+
return ["span", "offset", "pull", "push"].forEach((t) => {
|
|
37
|
+
const o = l[t];
|
|
38
|
+
f(o) && (t === "span" ? s.push(e.b(`${l[t]}`)) : o > 0 && s.push(e.b(`${t}-${l[t]}`)));
|
|
39
|
+
}), ["xs", "sm", "md", "lg", "xl"].forEach((t) => {
|
|
40
|
+
f(l[t]) ? s.push(e.b(`${t}-${l[t]}`)) : C(l[t]) && Object.entries(l[t]).forEach(([o, r]) => {
|
|
41
|
+
s.push(
|
|
42
|
+
o !== "span" ? e.b(`${t}-${o}-${r}`) : e.b(`${t}-${r}`)
|
|
43
|
+
);
|
|
44
|
+
});
|
|
45
|
+
}), n.value && s.push(e.is("guttered")), [e.b(), s];
|
|
46
|
+
});
|
|
47
|
+
return (s, d) => ($(), b(g(a.tag), {
|
|
48
|
+
class: x(c(p)),
|
|
49
|
+
style: y(c(m))
|
|
50
|
+
}, {
|
|
51
|
+
default: _(() => [
|
|
52
|
+
v(s.$slots, "default")
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["class", "style"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
F as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import o from "./col.vue2.js";
|
|
8
|
+
const s = t(o);
|
|
9
|
+
export {
|
|
10
|
+
s as VftCol,
|
|
11
|
+
s as default
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var c = (a, t, e) => (k(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { hasOwn as _ } from "@vft/utils";
|
|
5
|
-
const g = function(a, t, e) {
|
|
1
|
+
import { hasOwn as b } from "@vft/utils";
|
|
2
|
+
const _ = function(a, t, e) {
|
|
6
3
|
return [
|
|
7
4
|
a,
|
|
8
5
|
t * e / ((a = (2 - t) * e) < 1 ? a : 2 - a) || 0,
|
|
9
6
|
a / 2
|
|
10
7
|
];
|
|
11
|
-
},
|
|
8
|
+
}, F = function(a) {
|
|
12
9
|
return typeof a == "string" && a.includes(".") && Number.parseFloat(a) === 1;
|
|
13
|
-
},
|
|
10
|
+
}, C = function(a) {
|
|
14
11
|
return typeof a == "string" && a.includes("%");
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
const e =
|
|
12
|
+
}, l = function(a, t) {
|
|
13
|
+
F(a) && (a = "100%");
|
|
14
|
+
const e = C(a);
|
|
18
15
|
return a = Math.min(t, Math.max(0, Number.parseFloat(`${a}`))), e && (a = Number.parseInt(`${a * t}`, 10) / 100), Math.abs(a - t) < 1e-6 ? 1 : a % t / Number.parseFloat(t);
|
|
19
|
-
},
|
|
16
|
+
}, g = {
|
|
20
17
|
10: "A",
|
|
21
18
|
11: "B",
|
|
22
19
|
12: "C",
|
|
23
20
|
13: "D",
|
|
24
21
|
14: "E",
|
|
25
22
|
15: "F"
|
|
26
|
-
},
|
|
23
|
+
}, f = (a) => {
|
|
27
24
|
a = Math.min(Math.round(a), 255);
|
|
28
25
|
const t = Math.floor(a / 16), e = a % 16;
|
|
29
|
-
return `${
|
|
30
|
-
},
|
|
31
|
-
return Number.isNaN(+a) || Number.isNaN(+t) || Number.isNaN(+e) ? "" : `#${
|
|
32
|
-
},
|
|
26
|
+
return `${g[t] || t}${g[e] || e}`;
|
|
27
|
+
}, $ = function({ r: a, g: t, b: e }) {
|
|
28
|
+
return Number.isNaN(+a) || Number.isNaN(+t) || Number.isNaN(+e) ? "" : `#${f(a)}${f(t)}${f(e)}`;
|
|
29
|
+
}, p = {
|
|
33
30
|
A: 10,
|
|
34
31
|
B: 11,
|
|
35
32
|
C: 12,
|
|
36
33
|
D: 13,
|
|
37
34
|
E: 14,
|
|
38
35
|
F: 15
|
|
39
|
-
},
|
|
40
|
-
return a.length === 2 ? (
|
|
41
|
-
},
|
|
36
|
+
}, c = function(a) {
|
|
37
|
+
return a.length === 2 ? (p[a[0].toUpperCase()] || +a[0]) * 16 + (p[a[1].toUpperCase()] || +a[1]) : p[a[1].toUpperCase()] || +a[1];
|
|
38
|
+
}, k = function(a, t, e) {
|
|
42
39
|
t = t / 100, e = e / 100;
|
|
43
40
|
let s = t;
|
|
44
41
|
const n = Math.max(e, 0.01);
|
|
@@ -49,8 +46,8 @@ const g = function(a, t, e) {
|
|
|
49
46
|
s: r * 100,
|
|
50
47
|
v: h * 100
|
|
51
48
|
};
|
|
52
|
-
},
|
|
53
|
-
a =
|
|
49
|
+
}, M = (a, t, e) => {
|
|
50
|
+
a = l(a, 255), t = l(t, 255), e = l(e, 255);
|
|
54
51
|
const s = Math.max(a, t, e), n = Math.min(a, t, e);
|
|
55
52
|
let h;
|
|
56
53
|
const r = s, i = s - n, o = s === 0 ? 0 : i / s;
|
|
@@ -74,33 +71,26 @@ const g = function(a, t, e) {
|
|
|
74
71
|
h /= 6;
|
|
75
72
|
}
|
|
76
73
|
return { h: h * 360, s: o * 100, v: r * 100 };
|
|
77
|
-
},
|
|
78
|
-
a =
|
|
79
|
-
const s = Math.floor(a), n = a - s, h = e * (1 - t), r = e * (1 - n * t), i = e * (1 - (1 - n) * t), o = s % 6,
|
|
74
|
+
}, u = function(a, t, e) {
|
|
75
|
+
a = l(a, 360) * 6, t = l(t, 100), e = l(e, 100);
|
|
76
|
+
const s = Math.floor(a), n = a - s, h = e * (1 - t), r = e * (1 - n * t), i = e * (1 - (1 - n) * t), o = s % 6, m = [e, r, h, h, i, e][o], d = [i, e, e, r, h, h][o], N = [h, h, i, e, e, r][o];
|
|
80
77
|
return {
|
|
81
|
-
r: Math.round(
|
|
82
|
-
g: Math.round(
|
|
83
|
-
b: Math.round(
|
|
78
|
+
r: Math.round(m * 255),
|
|
79
|
+
g: Math.round(d * 255),
|
|
80
|
+
b: Math.round(N * 255)
|
|
84
81
|
};
|
|
85
82
|
};
|
|
86
|
-
class
|
|
83
|
+
class O {
|
|
87
84
|
constructor(t = {}) {
|
|
88
|
-
|
|
89
|
-
c(this, "_saturation", 100);
|
|
90
|
-
c(this, "_value", 100);
|
|
91
|
-
c(this, "_alpha", 100);
|
|
92
|
-
c(this, "enableAlpha", !1);
|
|
93
|
-
c(this, "format", "hex");
|
|
94
|
-
c(this, "value", "");
|
|
95
|
-
c(this, "selected");
|
|
85
|
+
this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100, this.enableAlpha = !1, this.format = "hex", this.value = "";
|
|
96
86
|
for (const e in t)
|
|
97
|
-
|
|
87
|
+
b(t, e) && (this[e] = t[e]);
|
|
98
88
|
t.value ? this.fromString(t.value) : this.doOnChange();
|
|
99
89
|
}
|
|
100
90
|
set(t, e) {
|
|
101
91
|
if (arguments.length === 1 && typeof t == "object") {
|
|
102
92
|
for (const s in t)
|
|
103
|
-
|
|
93
|
+
b(t, s) && this.set(s, t[s]);
|
|
104
94
|
return;
|
|
105
95
|
}
|
|
106
96
|
this[`_${t}`] = e, this.doOnChange();
|
|
@@ -109,7 +99,7 @@ class P {
|
|
|
109
99
|
return t === "alpha" ? Math.floor(this[`_${t}`]) : this[`_${t}`];
|
|
110
100
|
}
|
|
111
101
|
toRgb() {
|
|
112
|
-
return
|
|
102
|
+
return u(this._hue, this._saturation, this._value);
|
|
113
103
|
}
|
|
114
104
|
fromString(t) {
|
|
115
105
|
if (!t) {
|
|
@@ -124,7 +114,7 @@ class P {
|
|
|
124
114
|
(n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10)
|
|
125
115
|
);
|
|
126
116
|
if (s.length === 4 ? this._alpha = Number.parseFloat(s[3]) * 100 : s.length === 3 && (this._alpha = 100), s.length >= 3) {
|
|
127
|
-
const { h: n, s: h, v: r } =
|
|
117
|
+
const { h: n, s: h, v: r } = k(s[0], s[1], s[2]);
|
|
128
118
|
e(n, h, r);
|
|
129
119
|
}
|
|
130
120
|
} else if (t.includes("hsv")) {
|
|
@@ -137,7 +127,7 @@ class P {
|
|
|
137
127
|
(n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10)
|
|
138
128
|
);
|
|
139
129
|
if (s.length === 4 ? this._alpha = Number.parseFloat(s[3]) * 100 : s.length === 3 && (this._alpha = 100), s.length >= 3) {
|
|
140
|
-
const { h: n, s: h, v: r } =
|
|
130
|
+
const { h: n, s: h, v: r } = M(s[0], s[1], s[2]);
|
|
141
131
|
e(n, h, r);
|
|
142
132
|
}
|
|
143
133
|
} else if (t.includes("#")) {
|
|
@@ -145,9 +135,9 @@ class P {
|
|
|
145
135
|
if (!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(s))
|
|
146
136
|
return;
|
|
147
137
|
let n, h, r;
|
|
148
|
-
s.length === 3 ? (n =
|
|
149
|
-
const { h: i, s: o, v:
|
|
150
|
-
e(i, o,
|
|
138
|
+
s.length === 3 ? (n = c(s[0] + s[0]), h = c(s[1] + s[1]), r = c(s[2] + s[2])) : (s.length === 6 || s.length === 8) && (n = c(s.slice(0, 2)), h = c(s.slice(2, 4)), r = c(s.slice(4, 6))), s.length === 8 ? this._alpha = c(s.slice(6)) / 255 * 100 : (s.length === 3 || s.length === 6) && (this._alpha = 100);
|
|
139
|
+
const { h: i, s: o, v: m } = M(n, h, r);
|
|
140
|
+
e(i, o, m);
|
|
151
141
|
}
|
|
152
142
|
}
|
|
153
143
|
compare(t) {
|
|
@@ -158,7 +148,7 @@ class P {
|
|
|
158
148
|
if (this.enableAlpha)
|
|
159
149
|
switch (h) {
|
|
160
150
|
case "hsl": {
|
|
161
|
-
const r =
|
|
151
|
+
const r = _(t, e / 100, s / 100);
|
|
162
152
|
this.value = `hsla(${t}, ${Math.round(
|
|
163
153
|
r[1] * 100
|
|
164
154
|
)}%, ${Math.round(r[2] * 100)}%, ${this.get("alpha") / 100})`;
|
|
@@ -171,20 +161,20 @@ class P {
|
|
|
171
161
|
break;
|
|
172
162
|
}
|
|
173
163
|
case "hex": {
|
|
174
|
-
this.value = `${
|
|
164
|
+
this.value = `${$(u(t, e, s))}${f(
|
|
175
165
|
n * 255 / 100
|
|
176
166
|
)}`;
|
|
177
167
|
break;
|
|
178
168
|
}
|
|
179
169
|
default: {
|
|
180
|
-
const { r, g: i, b: o } =
|
|
170
|
+
const { r, g: i, b: o } = u(t, e, s);
|
|
181
171
|
this.value = `rgba(${r}, ${i}, ${o}, ${this.get("alpha") / 100})`;
|
|
182
172
|
}
|
|
183
173
|
}
|
|
184
174
|
else
|
|
185
175
|
switch (h) {
|
|
186
176
|
case "hsl": {
|
|
187
|
-
const r =
|
|
177
|
+
const r = _(t, e / 100, s / 100);
|
|
188
178
|
this.value = `hsl(${t}, ${Math.round(r[1] * 100)}%, ${Math.round(
|
|
189
179
|
r[2] * 100
|
|
190
180
|
)}%)`;
|
|
@@ -197,15 +187,15 @@ class P {
|
|
|
197
187
|
break;
|
|
198
188
|
}
|
|
199
189
|
case "rgb": {
|
|
200
|
-
const { r, g: i, b: o } =
|
|
190
|
+
const { r, g: i, b: o } = u(t, e, s);
|
|
201
191
|
this.value = `rgb(${r}, ${i}, ${o})`;
|
|
202
192
|
break;
|
|
203
193
|
}
|
|
204
194
|
default:
|
|
205
|
-
this.value =
|
|
195
|
+
this.value = $(u(t, e, s));
|
|
206
196
|
}
|
|
207
197
|
}
|
|
208
198
|
}
|
|
209
199
|
export {
|
|
210
|
-
|
|
200
|
+
O as default
|
|
211
201
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as r, computed as l, openBlock as p, createElementBlock as a, normalizeClass as m, unref as o, normalizeStyle as c, renderSlot as d } from "vue";
|
|
2
|
+
import { useNamespace as u } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
const t = (
|
|
10
|
+
/* hoist-static*/
|
|
11
|
+
u("aside")
|
|
12
|
+
), f = r({
|
|
13
|
+
name: t.b()
|
|
14
|
+
}), C = /* @__PURE__ */ r({
|
|
15
|
+
...f,
|
|
16
|
+
props: {
|
|
17
|
+
/**
|
|
18
|
+
* @description width of the side section
|
|
19
|
+
*/
|
|
20
|
+
width: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: null
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(s) {
|
|
26
|
+
const e = s, n = l(() => e.width ? t.cssVarBlock({ width: e.width }) : {});
|
|
27
|
+
return (i, _) => (p(), a("aside", {
|
|
28
|
+
class: m(o(t).b()),
|
|
29
|
+
style: c(o(n))
|
|
30
|
+
}, [
|
|
31
|
+
d(i.$slots, "default")
|
|
32
|
+
], 6));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
C as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as a, useSlots as c, computed as m, openBlock as u, createElementBlock as f, normalizeClass as p, unref as t, renderSlot as d } from "vue";
|
|
2
|
+
import { useNamespace as v } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
const o = (
|
|
10
|
+
/* hoist-static*/
|
|
11
|
+
v("container")
|
|
12
|
+
), _ = a({
|
|
13
|
+
name: o.b()
|
|
14
|
+
}), g = /* @__PURE__ */ a({
|
|
15
|
+
..._,
|
|
16
|
+
props: {
|
|
17
|
+
direction: null
|
|
18
|
+
},
|
|
19
|
+
setup(r) {
|
|
20
|
+
const e = c(), l = m(() => r.direction === "vertical" ? !0 : r.direction === "horizontal" ? !1 : e && e.default ? e.default().some((s) => {
|
|
21
|
+
const i = s.type.name;
|
|
22
|
+
return i === "vft-header" || i === "vft-footer";
|
|
23
|
+
}) : !1);
|
|
24
|
+
return (n, s) => (u(), f("section", {
|
|
25
|
+
class: p([t(o).b(), t(o).is("vertical", t(l))])
|
|
26
|
+
}, [
|
|
27
|
+
d(n.$slots, "default")
|
|
28
|
+
], 2));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
g as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as r, computed as p, openBlock as m, createElementBlock as i, normalizeClass as a, unref as o, normalizeStyle as c, renderSlot as f } from "vue";
|
|
2
|
+
import { useNamespace as u } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
const t = (
|
|
10
|
+
/* hoist-static*/
|
|
11
|
+
u("footer")
|
|
12
|
+
), h = r({
|
|
13
|
+
name: t.b()
|
|
14
|
+
}), C = /* @__PURE__ */ r({
|
|
15
|
+
...h,
|
|
16
|
+
props: {
|
|
17
|
+
/**
|
|
18
|
+
* @description height of the footer
|
|
19
|
+
*/
|
|
20
|
+
height: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: null
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(s) {
|
|
26
|
+
const e = s, n = p(
|
|
27
|
+
() => e.height ? t.cssVarBlock({ height: e.height }) : {}
|
|
28
|
+
);
|
|
29
|
+
return (l, d) => (m(), i("footer", {
|
|
30
|
+
class: a(o(t).b()),
|
|
31
|
+
style: c(o(n))
|
|
32
|
+
}, [
|
|
33
|
+
f(l.$slots, "default")
|
|
34
|
+
], 6));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
C as default
|
|
39
|
+
};
|