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,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useNamespace as xe } from "../../hooks/use-namespace/index.js";
|
|
7
|
-
import { useCursor as Ye } from "../../hooks/use-cursor/index.js";
|
|
1
|
+
import { defineComponent as Te, useAttrs as Le, useSlots as Oe, computed as l, getCurrentInstance as je, shallowRef as q, ref as E, watch as G, nextTick as V, onMounted as We, withDirectives as He, openBlock as i, createElementBlock as d, mergeProps as h, unref as t, Fragment as J, normalizeClass as c, renderSlot as N, createCommentVNode as r, createElementVNode as g, createBlock as B, withKeys as Ue, withModifiers as qe, toDisplayString as D, normalizeStyle as Ge, vShow as Je } from "vue";
|
|
2
|
+
import "../form/index.js";
|
|
3
|
+
import { VftIcon as F } from "../icon/index.js";
|
|
4
|
+
import { useNamespace as he } from "../../hooks/use-namespace/index.js";
|
|
5
|
+
import { useCursor as Qe } from "../../hooks/use-cursor/index.js";
|
|
8
6
|
import "@popperjs/core";
|
|
9
|
-
import { isNil as
|
|
7
|
+
import { isNil as Xe } from "lodash";
|
|
10
8
|
import "../../hooks/use-z-index/index.js";
|
|
11
|
-
import {
|
|
9
|
+
import { useResizeObserver as Ye, isClient as Ze } from "@vueuse/core";
|
|
10
|
+
import { isString as A, singleAttrToObj as Q, noop as _e, isObject as xe } from "@vft/utils";
|
|
11
|
+
import { debugWarn as X } from "../../utils/error.js";
|
|
12
12
|
import "../../utils/ns-cover.js";
|
|
13
|
-
import "
|
|
14
|
-
import {
|
|
13
|
+
import { UPDATE_MODEL_EVENT as Y } from "@vft/constants";
|
|
14
|
+
import { useAttrs as et } from "@vft/use";
|
|
15
15
|
import { calcTextareaHeight as pe } from "./utils.js";
|
|
16
|
-
import { useFormItem as
|
|
17
|
-
import { useFormSize as
|
|
18
|
-
const
|
|
16
|
+
import { useFormItem as tt, useFormItemInputId as nt } from "../form/hooks/use-form-item.js";
|
|
17
|
+
import { useFormSize as at, useFormDisabled as ot } from "../form/hooks/use-form-common-props.js";
|
|
18
|
+
const lt = ["role"], st = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], it = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], St = /* @__PURE__ */ Te({
|
|
19
19
|
__name: "input",
|
|
20
20
|
props: {
|
|
21
21
|
id: null,
|
|
@@ -44,13 +44,15 @@ const nt = ["role"], ot = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
44
44
|
inputStyle: null
|
|
45
45
|
},
|
|
46
46
|
emits: {
|
|
47
|
-
[
|
|
48
|
-
input: (e) =>
|
|
49
|
-
change: (e) =>
|
|
50
|
-
|
|
47
|
+
[Y]: (e) => A(e),
|
|
48
|
+
input: (e) => A(e),
|
|
49
|
+
change: (e) => A(e),
|
|
50
|
+
suffixClick: (e) => A(e),
|
|
51
|
+
prefixClick: (e) => A(e),
|
|
51
52
|
focus: (e) => e instanceof FocusEvent,
|
|
52
53
|
blur: (e) => e instanceof FocusEvent,
|
|
53
54
|
clear: () => !0,
|
|
55
|
+
enter: () => !0,
|
|
54
56
|
mouseleave: (e) => e instanceof MouseEvent,
|
|
55
57
|
mouseenter: (e) => e instanceof MouseEvent,
|
|
56
58
|
// NOTE: when autofill by browser, the keydown event is instanceof Event, not KeyboardEvent
|
|
@@ -60,192 +62,197 @@ const nt = ["role"], ot = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
60
62
|
compositionend: (e) => e instanceof CompositionEvent
|
|
61
63
|
},
|
|
62
64
|
setup(e, { expose: be, emit: s }) {
|
|
63
|
-
const C =
|
|
64
|
-
const
|
|
65
|
-
return e.containerRole === "combobox" && (
|
|
65
|
+
const C = Le(), y = Oe(), Z = l(() => {
|
|
66
|
+
const n = {};
|
|
67
|
+
return e.containerRole === "combobox" && (n["aria-haspopup"] = C["aria-haspopup"], n["aria-owns"] = C["aria-owns"], n["aria-expanded"] = C["aria-expanded"]), n;
|
|
66
68
|
}), we = l(() => [
|
|
67
|
-
e.type === "textarea" ?
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
e.type === "textarea" ? ee.b() : a.b(),
|
|
70
|
+
a.m(ke.value),
|
|
71
|
+
a.is("disabled", x.value),
|
|
72
|
+
a.is("exceed", Ee.value),
|
|
73
|
+
a.is("focus", b.value),
|
|
72
74
|
{
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
77
|
-
[
|
|
78
|
-
[
|
|
75
|
+
[a.b("group")]: y.prepend || y.append,
|
|
76
|
+
[a.bm("group", "append")]: y.append,
|
|
77
|
+
[a.bm("group", "prepend")]: y.prepend,
|
|
78
|
+
[a.m("prefix")]: y.prefix || e.prefixIcon,
|
|
79
|
+
[a.m("suffix")]: y.suffix || e.suffixIcon || e.clearable || e.showPassword,
|
|
80
|
+
[a.bm("suffix", "password-clear")]: R.value && W.value
|
|
79
81
|
},
|
|
80
82
|
C.class
|
|
81
|
-
]), ge =
|
|
82
|
-
excludeKeys: l(() => Object.keys(
|
|
83
|
-
}), { form:
|
|
83
|
+
]), ge = je(), Ce = l(() => [a.e("wrapper"), a.is("focus", b.value)]), f = et({
|
|
84
|
+
excludeKeys: l(() => Object.keys(Z.value))
|
|
85
|
+
}), { form: T, formItem: u } = tt(), { inputId: _ } = nt(ge.props, {
|
|
84
86
|
formItemContext: u
|
|
85
|
-
}), ke =
|
|
87
|
+
}), ke = at(), x = ot(), a = he("input"), ee = he("textarea"), K = q(), p = q(), b = E(!1), L = E(!1), k = E(!1), M = E(!1), te = E(), O = q(e.inputStyle), z = l(() => K.value || p.value), j = l(() => Q(e.prefixIcon, "icon", { size: 16 })), ne = l(() => Q(e.suffixIcon, "icon", { size: 16 })), ze = l(() => Q(e.clearIcon, "icon", { icon: "ico-ep:circle-close", size: 16 })), ae = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), P = l(() => (u == null ? void 0 : u.validateState) || ""), oe = l(() => P.value && "vico-user"), Ie = l(
|
|
86
88
|
() => M.value ? { icon: "ico-ep:view", size: 16 } : { icon: "ico-ep:hide", size: 16 }
|
|
87
|
-
), Se = l(() => [C.style, e.inputStyle]),
|
|
88
|
-
() => [e.inputStyle,
|
|
89
|
-
), m = l(() =>
|
|
90
|
-
() => e.clearable && !x.value && !e.readonly && !!m.value && (b.value ||
|
|
91
|
-
),
|
|
89
|
+
), Se = l(() => [C.style, e.inputStyle]), le = l(
|
|
90
|
+
() => [e.inputStyle, O.value, { resize: e.resize }]
|
|
91
|
+
), m = l(() => Xe(e.modelValue) ? "" : String(e.modelValue)), R = l(
|
|
92
|
+
() => e.clearable && !x.value && !e.readonly && !!m.value && (b.value || L.value)
|
|
93
|
+
), W = l(
|
|
92
94
|
() => e.showPassword && !x.value && !e.readonly && !!m.value && (!!m.value || b.value)
|
|
93
95
|
), w = l(
|
|
94
96
|
() => e.showWordLimit && !!f.value.maxlength && (e.type === "text" || e.type === "textarea") && !x.value && !e.readonly && !e.showPassword
|
|
95
|
-
),
|
|
97
|
+
), H = l(() => Array.from(m.value).length), Ee = l(
|
|
96
98
|
() => (
|
|
97
99
|
// show exceed style if length of initial value greater then maxlength
|
|
98
|
-
!!w.value &&
|
|
100
|
+
!!w.value && H.value > Number(f.value.maxlength)
|
|
99
101
|
)
|
|
100
102
|
), Ve = l(
|
|
101
|
-
() => !!y.suffix || !!e.suffixIcon || R.value || e.showPassword || w.value || !!P.value &&
|
|
102
|
-
), [Be, Fe] =
|
|
103
|
-
|
|
103
|
+
() => !!y.suffix || !!e.suffixIcon || R.value || e.showPassword || w.value || !!P.value && ae.value
|
|
104
|
+
), [Be, Fe] = Qe(K);
|
|
105
|
+
Ye(p, (n) => {
|
|
104
106
|
if (!w.value || e.resize !== "both")
|
|
105
107
|
return;
|
|
106
|
-
const o =
|
|
107
|
-
|
|
108
|
+
const o = n[0], { width: v } = o.contentRect;
|
|
109
|
+
te.value = {
|
|
108
110
|
/** right: 100% - width + padding(15) + right(6) */
|
|
109
111
|
right: `calc(100% - ${v + 15 + 6}px)`
|
|
110
112
|
};
|
|
111
113
|
});
|
|
112
|
-
const
|
|
113
|
-
if (!(!
|
|
114
|
+
const $ = () => {
|
|
115
|
+
if (!(!Ze || e.type !== "textarea"))
|
|
114
116
|
if (e.autosize) {
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
...pe(p.value,
|
|
117
|
+
const n = xe(e.autosize) ? e.autosize.minRows : void 0, o = xe(e.autosize) ? e.autosize.maxRows : void 0;
|
|
118
|
+
O.value = {
|
|
119
|
+
...pe(p.value, n, o)
|
|
118
120
|
};
|
|
119
121
|
} else
|
|
120
|
-
|
|
122
|
+
O.value = {
|
|
121
123
|
minHeight: pe(p.value).minHeight
|
|
122
124
|
};
|
|
123
125
|
}, I = () => {
|
|
124
|
-
const
|
|
125
|
-
!
|
|
126
|
-
},
|
|
126
|
+
const n = z.value;
|
|
127
|
+
!n || n.value === m.value || (n.value = m.value);
|
|
128
|
+
}, U = async (n) => {
|
|
127
129
|
Be();
|
|
128
|
-
let { value: o } =
|
|
130
|
+
let { value: o } = n.target;
|
|
129
131
|
if (f.value.maxlength && o.length >= f.value.maxlength && (o = o.slice(0, Number(f.value.maxlength))), e.formatter && (o = e.parser ? e.parser(o) : o, o = e.formatter(o)), !k.value) {
|
|
130
132
|
if (o === m.value) {
|
|
131
133
|
I();
|
|
132
134
|
return;
|
|
133
135
|
}
|
|
134
|
-
s(
|
|
136
|
+
s(Y, o), s("input", o), await V(), I(), Fe();
|
|
135
137
|
}
|
|
136
|
-
},
|
|
137
|
-
s("change",
|
|
138
|
+
}, se = (n) => {
|
|
139
|
+
s("change", n.target.value);
|
|
138
140
|
}, Ae = () => {
|
|
139
|
-
s("
|
|
140
|
-
},
|
|
141
|
-
s("
|
|
142
|
-
},
|
|
141
|
+
s("suffixClick", e.modelValue);
|
|
142
|
+
}, Ke = () => {
|
|
143
|
+
console.log(333), s("prefixClick", e.modelValue);
|
|
144
|
+
}, ie = (n) => {
|
|
145
|
+
s("compositionstart", n), k.value = !0;
|
|
146
|
+
}, Me = (n) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(n), ue = (n) => {
|
|
143
147
|
var S;
|
|
144
|
-
s("compositionupdate",
|
|
145
|
-
const o = (S =
|
|
148
|
+
s("compositionupdate", n);
|
|
149
|
+
const o = (S = n.target) == null ? void 0 : S.value, v = o[o.length - 1] || "";
|
|
146
150
|
k.value = !Me(v);
|
|
147
|
-
}, re = (
|
|
148
|
-
s("compositionend",
|
|
151
|
+
}, re = (n) => {
|
|
152
|
+
s("compositionend", n), k.value && (k.value = !1, U(n));
|
|
149
153
|
}, Pe = () => {
|
|
150
|
-
M.value = !M.value,
|
|
151
|
-
},
|
|
152
|
-
var
|
|
153
|
-
await V(), (
|
|
154
|
+
M.value = !M.value, ce();
|
|
155
|
+
}, ce = async () => {
|
|
156
|
+
var n;
|
|
157
|
+
await V(), (n = z.value) == null || n.focus();
|
|
154
158
|
}, Re = () => {
|
|
155
|
-
var
|
|
156
|
-
return (
|
|
157
|
-
}, de = (
|
|
158
|
-
b.value = !0, s("focus",
|
|
159
|
-
}, fe = (
|
|
159
|
+
var n;
|
|
160
|
+
return (n = z.value) == null ? void 0 : n.blur();
|
|
161
|
+
}, de = (n) => {
|
|
162
|
+
b.value = !0, s("focus", n);
|
|
163
|
+
}, fe = (n) => {
|
|
160
164
|
var o;
|
|
161
|
-
b.value = !1, s("blur",
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
}, ve = (
|
|
167
|
-
let o =
|
|
168
|
-
if (
|
|
169
|
-
return
|
|
170
|
-
s("keydown",
|
|
171
|
-
},
|
|
172
|
-
var
|
|
173
|
-
(
|
|
165
|
+
b.value = !1, s("blur", n), e.validateEvent && ((o = u == null ? void 0 : u.validate) == null || o.call(u, "blur").catch((v) => X(v)));
|
|
166
|
+
}, $e = (n) => {
|
|
167
|
+
L.value = !1, s("mouseleave", n);
|
|
168
|
+
}, Ne = (n) => {
|
|
169
|
+
L.value = !0, s("mouseenter", n);
|
|
170
|
+
}, ve = (n) => {
|
|
171
|
+
let o = n.key;
|
|
172
|
+
if (n.target.type === "number" && ["e", "+", "-0", "E"].includes(o))
|
|
173
|
+
return n.returnValue = !1, !1;
|
|
174
|
+
s("keydown", n);
|
|
175
|
+
}, De = () => {
|
|
176
|
+
var n;
|
|
177
|
+
(n = z.value) == null || n.select();
|
|
174
178
|
}, me = () => {
|
|
175
|
-
s(
|
|
179
|
+
s(Y, ""), s("change", ""), s("clear"), s("input", "");
|
|
176
180
|
};
|
|
177
|
-
return
|
|
181
|
+
return G(
|
|
178
182
|
() => e.modelValue,
|
|
179
183
|
() => {
|
|
180
|
-
var
|
|
181
|
-
V(() =>
|
|
184
|
+
var n;
|
|
185
|
+
V(() => $()), e.validateEvent && ((n = u == null ? void 0 : u.validate) == null || n.call(u, "change").catch((o) => X(o)));
|
|
182
186
|
}
|
|
183
|
-
),
|
|
187
|
+
), G(m, () => I()), G(
|
|
184
188
|
() => e.type,
|
|
185
189
|
async () => {
|
|
186
|
-
await V(), I(),
|
|
190
|
+
await V(), I(), $();
|
|
187
191
|
}
|
|
188
|
-
),
|
|
189
|
-
!e.formatter && e.parser &&
|
|
192
|
+
), We(() => {
|
|
193
|
+
!e.formatter && e.parser && X("VftInput", "If you set the parser, you also need to set the formatter."), I(), V($);
|
|
190
194
|
}), be({
|
|
191
195
|
/** @description HTML input element */
|
|
192
|
-
input:
|
|
196
|
+
input: K,
|
|
193
197
|
/** @description HTML textarea element */
|
|
194
198
|
textarea: p,
|
|
195
199
|
/** @description HTML element, input or textarea */
|
|
196
200
|
ref: z,
|
|
197
201
|
/** @description style of textarea. */
|
|
198
|
-
textareaStyle:
|
|
202
|
+
textareaStyle: le,
|
|
199
203
|
/** @description from props (used on unit test) */
|
|
200
204
|
autosize: e.autosize,
|
|
201
205
|
/** @description HTML input element native method */
|
|
202
|
-
focus:
|
|
206
|
+
focus: ce,
|
|
203
207
|
/** @description HTML input element native method */
|
|
204
208
|
blur: Re,
|
|
205
209
|
/** @description HTML input element native method */
|
|
206
|
-
select:
|
|
210
|
+
select: De,
|
|
207
211
|
/** @description clear input value */
|
|
208
212
|
clear: me,
|
|
209
213
|
/** @description resize textarea. */
|
|
210
|
-
resizeTextarea:
|
|
211
|
-
}), (
|
|
214
|
+
resizeTextarea: $
|
|
215
|
+
}), (n, o) => {
|
|
212
216
|
var v, S, ye;
|
|
213
|
-
return
|
|
217
|
+
return He((i(), d("div", h(t(Z), {
|
|
214
218
|
class: t(we),
|
|
215
219
|
style: t(Se),
|
|
216
220
|
role: e.containerRole,
|
|
217
|
-
onMouseenter:
|
|
218
|
-
onMouseleave:
|
|
221
|
+
onMouseenter: Ne,
|
|
222
|
+
onMouseleave: $e
|
|
219
223
|
}), [
|
|
220
|
-
e.type !== "textarea" ? (i(), d(
|
|
221
|
-
|
|
224
|
+
e.type !== "textarea" ? (i(), d(J, { key: 0 }, [
|
|
225
|
+
n.$slots.prepend ? (i(), d("div", {
|
|
222
226
|
key: 0,
|
|
223
|
-
class:
|
|
227
|
+
class: c(t(a).be("group", "prepend"))
|
|
224
228
|
}, [
|
|
225
|
-
N(
|
|
226
|
-
], 2)) :
|
|
229
|
+
N(n.$slots, "prepend")
|
|
230
|
+
], 2)) : r("", !0),
|
|
227
231
|
g("div", {
|
|
228
|
-
class:
|
|
232
|
+
class: c(t(Ce))
|
|
229
233
|
}, [
|
|
230
|
-
|
|
234
|
+
n.$slots.prefix || (v = t(j)) != null && v.icon ? (i(), d("span", {
|
|
231
235
|
key: 0,
|
|
232
|
-
class:
|
|
236
|
+
class: c(t(a).e("prefix"))
|
|
233
237
|
}, [
|
|
234
238
|
g("span", {
|
|
235
|
-
class:
|
|
236
|
-
onClick:
|
|
239
|
+
class: c(t(a).e("prefix-inner")),
|
|
240
|
+
onClick: Ke
|
|
237
241
|
}, [
|
|
238
|
-
N(
|
|
239
|
-
(S = t(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
N(n.$slots, "prefix"),
|
|
243
|
+
(S = t(j)) != null && S.icon ? (i(), B(t(F), h({
|
|
244
|
+
key: 0,
|
|
245
|
+
pointer: ""
|
|
246
|
+
}, t(j), {
|
|
247
|
+
class: t(a).e("icon")
|
|
248
|
+
}), null, 16, ["class"])) : r("", !0)
|
|
242
249
|
], 2)
|
|
243
|
-
], 2)) :
|
|
250
|
+
], 2)) : r("", !0),
|
|
244
251
|
g("input", h({
|
|
245
|
-
id: t(
|
|
252
|
+
id: t(_),
|
|
246
253
|
ref_key: "input",
|
|
247
|
-
ref:
|
|
248
|
-
class: t(
|
|
254
|
+
ref: K,
|
|
255
|
+
class: t(a).e("inner")
|
|
249
256
|
}, t(f), {
|
|
250
257
|
type: e.showPassword ? M.value ? "text" : "password" : e.type,
|
|
251
258
|
disabled: t(x),
|
|
@@ -258,101 +265,100 @@ const nt = ["role"], ot = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
258
265
|
placeholder: e.placeholder,
|
|
259
266
|
style: e.inputStyle,
|
|
260
267
|
form: e.form,
|
|
261
|
-
onCompositionstart:
|
|
262
|
-
onCompositionupdate:
|
|
268
|
+
onCompositionstart: ie,
|
|
269
|
+
onCompositionupdate: ue,
|
|
263
270
|
onCompositionend: re,
|
|
264
|
-
onInput:
|
|
271
|
+
onInput: U,
|
|
265
272
|
onFocus: de,
|
|
266
273
|
onBlur: fe,
|
|
267
|
-
onChange:
|
|
268
|
-
onKeydown: ve
|
|
269
|
-
|
|
274
|
+
onChange: se,
|
|
275
|
+
onKeydown: ve,
|
|
276
|
+
onKeyup: o[0] || (o[0] = Ue((ut) => s("enter"), ["enter"]))
|
|
277
|
+
}), null, 16, st),
|
|
270
278
|
t(Ve) ? (i(), d("span", {
|
|
271
279
|
key: 1,
|
|
272
|
-
class:
|
|
280
|
+
class: c(t(a).e("suffix"))
|
|
273
281
|
}, [
|
|
274
282
|
g("span", {
|
|
275
|
-
class:
|
|
276
|
-
onClick:
|
|
283
|
+
class: c(t(a).e("suffix-inner")),
|
|
284
|
+
onClick: Ae
|
|
277
285
|
}, [
|
|
278
|
-
!t(R) || !t(
|
|
279
|
-
N(
|
|
280
|
-
(ye = t(ne)) != null && ye.icon ? (i(), B(t(F), h({
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
class: t(n).e("icon")
|
|
285
|
-
}), null, 16, ["class"])) : c("", !0)
|
|
286
|
-
], 64)) : c("", !0),
|
|
286
|
+
!t(R) || !t(W) || !t(w) ? (i(), d(J, { key: 0 }, [
|
|
287
|
+
N(n.$slots, "suffix"),
|
|
288
|
+
(ye = t(ne)) != null && ye.icon ? (i(), B(t(F), h({ key: 0 }, t(ne), {
|
|
289
|
+
class: t(a).e("icon")
|
|
290
|
+
}), null, 16, ["class"])) : r("", !0)
|
|
291
|
+
], 64)) : r("", !0),
|
|
287
292
|
t(R) ? (i(), B(t(F), h({
|
|
288
293
|
key: 1,
|
|
289
|
-
|
|
294
|
+
pointer: "",
|
|
295
|
+
class: [t(a).e("icon"), t(a).e("clear")]
|
|
290
296
|
}, t(ze), {
|
|
291
|
-
onMousedown:
|
|
297
|
+
onMousedown: qe(t(_e), ["prevent"]),
|
|
292
298
|
onClick: me
|
|
293
|
-
}), null, 16, ["class", "onMousedown"])) :
|
|
294
|
-
t(
|
|
295
|
-
class: [t(
|
|
299
|
+
}), null, 16, ["class", "onMousedown"])) : r("", !0),
|
|
300
|
+
t(W) ? (i(), B(t(F), h({ key: 2 }, t(Ie), {
|
|
301
|
+
class: [t(a).e("icon"), t(a).e("password")],
|
|
296
302
|
onClick: Pe
|
|
297
|
-
}), null, 16, ["class"])) :
|
|
303
|
+
}), null, 16, ["class"])) : r("", !0),
|
|
298
304
|
t(w) ? (i(), d("span", {
|
|
299
305
|
key: 3,
|
|
300
|
-
class:
|
|
306
|
+
class: c(t(a).e("count"))
|
|
301
307
|
}, [
|
|
302
308
|
g("span", {
|
|
303
|
-
class:
|
|
304
|
-
}, D(t(
|
|
305
|
-
], 2)) :
|
|
306
|
-
t(P) && t(
|
|
309
|
+
class: c(t(a).e("count-inner"))
|
|
310
|
+
}, D(t(H)) + " / " + D(t(f).maxlength), 3)
|
|
311
|
+
], 2)) : r("", !0),
|
|
312
|
+
t(P) && t(oe) && t(ae) ? (i(), B(t(F), {
|
|
307
313
|
key: 4,
|
|
308
|
-
icon: t(
|
|
309
|
-
class:
|
|
310
|
-
}, null, 8, ["icon", "class"])) :
|
|
314
|
+
icon: t(oe),
|
|
315
|
+
class: c([t(a).e("icon"), t(a).e("validateIcon"), t(a).is("loading", t(P) === "validating")])
|
|
316
|
+
}, null, 8, ["icon", "class"])) : r("", !0)
|
|
311
317
|
], 2)
|
|
312
|
-
], 2)) :
|
|
318
|
+
], 2)) : r("", !0)
|
|
313
319
|
], 2),
|
|
314
|
-
|
|
320
|
+
n.$slots.append ? (i(), d("div", {
|
|
315
321
|
key: 1,
|
|
316
|
-
class:
|
|
322
|
+
class: c(t(a).be("group", "append"))
|
|
317
323
|
}, [
|
|
318
|
-
N(
|
|
319
|
-
], 2)) :
|
|
320
|
-
], 64)) : (i(), d(
|
|
324
|
+
N(n.$slots, "append")
|
|
325
|
+
], 2)) : r("", !0)
|
|
326
|
+
], 64)) : (i(), d(J, { key: 1 }, [
|
|
321
327
|
g("textarea", h({
|
|
322
|
-
id: t(
|
|
328
|
+
id: t(_),
|
|
323
329
|
ref_key: "textarea",
|
|
324
330
|
ref: p,
|
|
325
|
-
class: t(
|
|
331
|
+
class: t(ee).e("inner")
|
|
326
332
|
}, t(f), {
|
|
327
333
|
tabindex: e.tabindex,
|
|
328
334
|
disabled: t(x),
|
|
329
335
|
readonly: e.readonly,
|
|
330
336
|
autocomplete: e.autocomplete,
|
|
331
|
-
style: t(
|
|
337
|
+
style: t(le),
|
|
332
338
|
"aria-label": e.label,
|
|
333
339
|
placeholder: e.placeholder,
|
|
334
340
|
form: e.form,
|
|
335
|
-
onCompositionstart:
|
|
336
|
-
onCompositionupdate:
|
|
341
|
+
onCompositionstart: ie,
|
|
342
|
+
onCompositionupdate: ue,
|
|
337
343
|
onCompositionend: re,
|
|
338
|
-
onInput:
|
|
344
|
+
onInput: U,
|
|
339
345
|
onFocus: de,
|
|
340
346
|
onBlur: fe,
|
|
341
|
-
onChange:
|
|
347
|
+
onChange: se,
|
|
342
348
|
onKeydown: ve
|
|
343
|
-
}), null, 16,
|
|
349
|
+
}), null, 16, it),
|
|
344
350
|
t(w) ? (i(), d("span", {
|
|
345
351
|
key: 0,
|
|
346
|
-
style:
|
|
347
|
-
class:
|
|
348
|
-
}, D(t(
|
|
352
|
+
style: Ge(te.value),
|
|
353
|
+
class: c(t(a).e("count"))
|
|
354
|
+
}, D(t(H)) + " / " + D(t(f).maxlength), 7)) : r("", !0)
|
|
349
355
|
], 64))
|
|
350
|
-
], 16,
|
|
351
|
-
[
|
|
356
|
+
], 16, lt)), [
|
|
357
|
+
[Je, e.type !== "hidden"]
|
|
352
358
|
]);
|
|
353
359
|
};
|
|
354
360
|
}
|
|
355
361
|
});
|
|
356
362
|
export {
|
|
357
|
-
|
|
363
|
+
St as default
|
|
358
364
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { singleAttrToObj as
|
|
3
|
-
import { VftIcon as
|
|
4
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as u, getCurrentInstance as k, computed as b, openBlock as l, createElementBlock as a, normalizeClass as c, unref as t, createBlock as y, normalizeProps as C, mergeProps as g, createCommentVNode as s, renderSlot as B } from "vue";
|
|
2
|
+
import { singleAttrToObj as P } from "@vft/utils";
|
|
3
|
+
import { VftIcon as R } from "../icon/index.js";
|
|
4
|
+
import { useNamespace as $ } from "../../hooks/use-namespace/index.js";
|
|
5
5
|
import "@popperjs/core";
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../../hooks/use-z-index/index.js";
|
|
8
8
|
import "@vueuse/core";
|
|
9
9
|
import "../../utils/ns-cover.js";
|
|
10
10
|
import { useRouterHelper as h } from "@vft/router";
|
|
11
|
-
const
|
|
11
|
+
const n = (
|
|
12
12
|
/* hoist-static*/
|
|
13
|
-
|
|
13
|
+
$("link")
|
|
14
14
|
), z = u({
|
|
15
|
-
name:
|
|
16
|
-
}),
|
|
15
|
+
name: n.b()
|
|
16
|
+
}), v = /* @__PURE__ */ u({
|
|
17
17
|
...z,
|
|
18
18
|
props: {
|
|
19
19
|
type: { default: "default" },
|
|
@@ -25,33 +25,33 @@ const o = (
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["click"],
|
|
27
27
|
setup(e, { emit: m }) {
|
|
28
|
-
const { go:
|
|
29
|
-
function
|
|
30
|
-
e.route &&
|
|
28
|
+
const d = k().appContext.config.globalProperties.$router, { go: f } = h(d);
|
|
29
|
+
function p(o) {
|
|
30
|
+
e.route && f(e.route, e.isReplace), e.disabled || m("click", o);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
return (
|
|
34
|
-
var
|
|
32
|
+
const r = b(() => P(e.icon, "icon"));
|
|
33
|
+
return (o, N) => {
|
|
34
|
+
var i;
|
|
35
35
|
return l(), a("span", {
|
|
36
36
|
class: c([
|
|
37
|
-
t(
|
|
38
|
-
t(
|
|
39
|
-
t(
|
|
40
|
-
t(
|
|
37
|
+
t(n).b(),
|
|
38
|
+
t(n).m(e.type),
|
|
39
|
+
t(n).is("disabled", e.disabled),
|
|
40
|
+
t(n).is("underline", e.underline && !e.disabled)
|
|
41
41
|
]),
|
|
42
|
-
onClick:
|
|
42
|
+
onClick: p
|
|
43
43
|
}, [
|
|
44
|
-
(
|
|
45
|
-
|
|
44
|
+
(i = t(r)) != null && i.icon ? (l(), y(t(R), C(g({ key: 0 }, t(r))), null, 16)) : s("", !0),
|
|
45
|
+
o.$slots.default ? (l(), a("span", {
|
|
46
46
|
key: 1,
|
|
47
|
-
class: c(t(
|
|
47
|
+
class: c(t(n).e("inner"))
|
|
48
48
|
}, [
|
|
49
|
-
B(
|
|
49
|
+
B(o.$slots, "default")
|
|
50
50
|
], 2)) : s("", !0)
|
|
51
51
|
], 2);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
v as default
|
|
57
57
|
};
|