element-ps 2.0.31 → 2.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +133 -85
- package/dist/index.full.min.js +5 -5
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +5 -5
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +133 -85
- package/es/components/affix/index.d.ts +4 -0
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +19 -82
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix.vue.d.ts +4 -0
- package/es/components/affix/src/affix2.mjs +82 -19
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.d.ts +8 -0
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +83 -33
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert.vue.d.ts +8 -0
- package/es/components/alert/src/alert2.mjs +33 -83
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +20 -0
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +94 -58
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +20 -0
- package/es/components/autocomplete/src/autocomplete2.mjs +58 -94
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/avatar/index.d.ts +8 -0
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +61 -29
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar.vue.d.ts +8 -0
- package/es/components/avatar/src/avatar2.mjs +29 -61
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/backtop/index.d.ts +8 -0
- package/es/components/backtop/src/backtop.vue.d.ts +8 -0
- package/es/components/badge/index.d.ts +4 -0
- package/es/components/badge/src/badge.vue.d.ts +4 -0
- package/es/components/breadcrumb/index.d.ts +20 -0
- package/es/components/breadcrumb/index.mjs +4 -4
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -46
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +8 -0
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +46 -11
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.mjs +37 -12
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +4 -0
- package/es/components/breadcrumb/src/breadcrumb2.mjs +12 -37
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.d.ts +16 -0
- package/es/components/button/src/button-group.vue.d.ts +4 -0
- package/es/components/button/src/button.vue.d.ts +8 -0
- package/es/components/calendar/index.d.ts +28 -0
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +188 -9
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar.vue.d.ts +28 -0
- package/es/components/calendar/src/calendar2.mjs +9 -188
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table.mjs +146 -27
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue.d.ts +8 -0
- package/es/components/calendar/src/date-table2.mjs +27 -146
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/card/index.d.ts +4 -0
- package/es/components/card/src/card.vue.d.ts +4 -0
- package/es/components/carousel/index.d.ts +16 -0
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +148 -7
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item.vue.d.ts +4 -0
- package/es/components/carousel/src/carousel-item2.mjs +7 -148
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +8 -0
- package/es/components/cascader/index.d.ts +48 -0
- package/es/components/cascader/src/index.mjs +1 -1
- package/es/components/cascader/src/index.vue.d.ts +24 -0
- package/es/components/cascader-panel/index.d.ts +8 -0
- package/es/components/cascader-panel/src/index.vue.d.ts +4 -0
- package/es/components/cascader-panel/src/menu.vue.d.ts +4 -0
- package/es/components/cascader-panel/src/node-content.d.ts +4 -0
- package/es/components/cascader-panel/src/node.vue.d.ts +4 -0
- package/es/components/check-tag/index.d.ts +4 -0
- package/es/components/check-tag/src/check-tag.vue.d.ts +4 -0
- package/es/components/checkbox/index.d.ts +12 -0
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +4 -0
- package/es/components/checkbox/src/checkbox.vue.d.ts +4 -0
- package/es/components/collapse/index.d.ts +28 -0
- package/es/components/collapse/src/collapse-item.vue.d.ts +12 -0
- package/es/components/collapse/src/collapse.vue.d.ts +4 -0
- package/es/components/collapse-transition/index.d.ts +8 -0
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +4 -0
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +30 -10
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +10 -30
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +8 -0
- package/es/components/color-picker/src/index.vue.d.ts +4 -0
- package/es/components/container/index.d.ts +36 -0
- package/es/components/container/src/aside.vue.d.ts +4 -0
- package/es/components/container/src/container.vue.d.ts +4 -0
- package/es/components/container/src/footer.vue.d.ts +4 -0
- package/es/components/container/src/header.vue.d.ts +4 -0
- package/es/components/container/src/main.vue.d.ts +4 -0
- package/es/components/descriptions/index.d.ts +4 -0
- package/es/components/descriptions/src/index.vue.d.ts +4 -0
- package/es/components/dialog/index.d.ts +12 -0
- package/es/components/dialog/src/dialog-content.mjs +79 -34
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +8 -0
- package/es/components/dialog/src/dialog-content2.mjs +34 -79
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +12 -0
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/divider/index.d.ts +4 -0
- package/es/components/divider/src/divider.vue.d.ts +4 -0
- package/es/components/drawer/index.d.ts +4 -0
- package/es/components/drawer/src/drawer.vue.d.ts +4 -0
- package/es/components/dropdown/index.d.ts +4 -0
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +4 -0
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +109 -100
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +4 -0
- package/es/components/dropdown/src/dropdown2.mjs +100 -109
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/empty/index.d.ts +4 -0
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +56 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty.vue.d.ts +4 -0
- package/es/components/empty/src/empty2.mjs +11 -56
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/form/index.d.ts +12 -0
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form-item.vue.d.ts +4 -0
- package/es/components/form/src/form.mjs +45 -40
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +4 -0
- package/es/components/form/src/form2.mjs +40 -45
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/icon/index.d.ts +4 -0
- package/es/components/icon/src/icon.vue.d.ts +4 -0
- package/es/components/image/index.d.ts +12 -0
- package/es/components/image/src/image.vue.d.ts +12 -0
- package/es/components/image-viewer/index.d.ts +8 -0
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +8 -0
- package/es/components/index.mjs +25 -25
- package/es/components/input/index.d.ts +8 -0
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +85 -295
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +8 -0
- package/es/components/input/src/input2.mjs +295 -85
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +20 -0
- package/es/components/input-number/src/input-number.vue.d.ts +20 -0
- package/es/components/link/index.d.ts +8 -0
- package/es/components/link/src/link.vue.d.ts +8 -0
- package/es/components/menu/index.d.ts +26 -4
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-collapse-transition.mjs +53 -3
- package/es/components/menu/src/menu-collapse-transition.mjs.map +1 -1
- package/es/components/menu/src/menu-collapse-transition.vue.d.ts +4 -1
- package/es/components/menu/src/menu-item-group.vue.d.ts +4 -1
- package/es/components/menu/src/menu-item-group2.mjs +3 -24
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/menu/src/menu-item.mjs +100 -14
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item.vue.d.ts +9 -1
- package/es/components/menu/src/menu-item2.mjs +15 -73
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/menu/src/menu.mjs +6 -5
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/src/sub-menu.mjs +11 -17
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/menu/src/types.d.ts +1 -0
- package/es/components/menu/src/use-menu-css-var.d.ts +1 -7
- package/es/components/menu/src/use-menu-css-var.mjs +12 -8
- package/es/components/menu/src/use-menu-css-var.mjs.map +1 -1
- package/es/components/menu/src/use-menu.d.ts +1 -2
- package/es/components/menu/src/use-menu.mjs +1 -24
- package/es/components/menu/src/use-menu.mjs.map +1 -1
- package/es/components/menu/src/utils/menu-bar.mjs.map +1 -1
- package/es/components/menu/src/utils/menu-item.mjs.map +1 -1
- package/es/components/menu/src/utils/submenu.mjs.map +1 -1
- package/es/components/page-header/index.d.ts +8 -0
- package/es/components/page-header/src/page-header.vue.d.ts +8 -0
- package/es/components/pagination/src/components/jumper.vue.d.ts +4 -0
- package/es/components/pagination/src/components/pager.vue.d.ts +8 -0
- package/es/components/pagination/src/components/sizes.vue.d.ts +4 -0
- package/es/components/pagination/src/components/total.vue.d.ts +4 -0
- package/es/components/popconfirm/index.d.ts +4 -0
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +53 -20
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +4 -0
- package/es/components/popconfirm/src/popconfirm2.mjs +20 -53
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/index.d.ts +8 -0
- package/es/components/popover/src/index.vue.d.ts +4 -0
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/arrow.mjs +7 -31
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow.vue.d.ts +4 -0
- package/es/components/popper/src/arrow2.mjs +31 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +64 -52
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content.vue.d.ts +4 -0
- package/es/components/popper/src/content2.mjs +52 -64
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/progress/index.d.ts +4 -0
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +230 -57
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress.vue.d.ts +4 -0
- package/es/components/progress/src/progress2.mjs +57 -230
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/radio/index.d.ts +20 -0
- package/es/components/radio/index.mjs +6 -6
- package/es/components/radio/src/radio-button.mjs +80 -9
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button.vue.d.ts +4 -0
- package/es/components/radio/src/radio-button2.mjs +9 -80
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group.mjs +18 -37
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +4 -0
- package/es/components/radio/src/radio-group2.mjs +37 -18
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/radio/src/radio.mjs +62 -74
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio.vue.d.ts +4 -0
- package/es/components/radio/src/radio2.mjs +74 -62
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/rate/index.d.ts +8 -0
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +169 -84
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +8 -0
- package/es/components/rate/src/rate2.mjs +84 -169
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/result/index.d.ts +4 -0
- package/es/components/result/src/result.vue.d.ts +4 -0
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/scrollbar/index.d.ts +4 -0
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +42 -112
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +4 -0
- package/es/components/scrollbar/src/scrollbar2.mjs +112 -42
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.vue.d.ts +4 -0
- package/es/components/select/index.d.ts +20 -0
- package/es/components/select/src/option-group.vue.d.ts +4 -0
- package/es/components/select/src/option.vue.d.ts +4 -0
- package/es/components/select/src/select-dropdown.vue.d.ts +4 -0
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select/src/select.vue.d.ts +4 -0
- package/es/components/select-v2/index.d.ts +16 -0
- package/es/components/select-v2/src/group-item.vue.d.ts +4 -0
- package/es/components/select-v2/src/option-item.vue.d.ts +4 -0
- package/es/components/select-v2/src/select-dropdown.vue.d.ts +4 -0
- package/es/components/select-v2/src/select.vue.d.ts +8 -0
- package/es/components/select-v2/src/useSelect.d.ts +8 -0
- package/es/components/skeleton/index.d.ts +16 -0
- package/es/components/skeleton/src/skeleton-item.vue.d.ts +4 -0
- package/es/components/skeleton/src/skeleton.vue.d.ts +8 -0
- package/es/components/slider/index.d.ts +8 -0
- package/es/components/slider/src/button.vue.d.ts +4 -0
- package/es/components/slider/src/index.vue.d.ts +4 -0
- package/es/components/slider/src/marker.vue.d.ts +4 -0
- package/es/components/steps/index.d.ts +12 -0
- package/es/components/steps/src/index.vue.d.ts +4 -0
- package/es/components/steps/src/item.vue.d.ts +4 -0
- package/es/components/switch/index.d.ts +4 -0
- package/es/components/switch/src/switch.vue.d.ts +4 -0
- package/es/components/table/index.d.ts +4 -0
- package/es/components/table/src/filter-panel.vue.d.ts +4 -0
- package/es/components/table/src/table-body/index.d.ts +4 -0
- package/es/components/table/src/table-footer/index.d.ts +4 -0
- package/es/components/table/src/table-header/index.d.ts +4 -0
- package/es/components/table/src/table.vue.d.ts +4 -0
- package/es/components/tabs/index.d.ts +8 -0
- package/es/components/tabs/src/tab-bar.vue.d.ts +4 -0
- package/es/components/tabs/src/tab-pane.vue.d.ts +4 -0
- package/es/components/tag/index.d.ts +8 -0
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +81 -33
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag.vue.d.ts +8 -0
- package/es/components/tag/src/tag2.mjs +33 -81
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/teleport/index.d.ts +4 -0
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +43 -18
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport.vue.d.ts +4 -0
- package/es/components/teleport/src/teleport2.mjs +18 -43
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +12 -0
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +4 -0
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +4 -0
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +8 -0
- package/es/components/time-select/index.d.ts +8 -0
- package/es/components/time-select/src/time-select.vue.d.ts +4 -0
- package/es/components/timeline/index.d.ts +8 -0
- package/es/components/timeline/src/timeline-item.vue.d.ts +4 -0
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/trigger.vue.d.ts +4 -0
- package/es/components/tooltip-v2/index.d.ts +12 -0
- package/es/components/tooltip-v2/index.mjs +3 -3
- package/es/components/tooltip-v2/src/arrow.mjs +22 -38
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow.vue.d.ts +4 -0
- package/es/components/tooltip-v2/src/arrow2.mjs +38 -22
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.vue.d.ts +4 -0
- package/es/components/tooltip-v2/src/root.vue.d.ts +4 -0
- package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +12 -0
- package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/transfer/index.d.ts +40 -0
- package/es/components/transfer/src/index.vue.d.ts +20 -0
- package/es/components/transfer/src/transfer-panel.vue.d.ts +4 -0
- package/es/components/tree/index.d.ts +8 -0
- package/es/components/tree/src/tree-node.vue.d.ts +4 -0
- package/es/components/tree/src/tree.vue.d.ts +4 -0
- package/es/components/tree-select/src/tree-select-option.d.ts +24 -0
- package/es/components/tree-v2/index.d.ts +4 -0
- package/es/components/tree-v2/src/tree-node.vue.d.ts +4 -0
- package/es/components/tree-v2/src/tree.vue.d.ts +4 -0
- package/es/components/upload/index.d.ts +44 -0
- package/es/components/upload/src/upload-content.vue.d.ts +8 -0
- package/es/components/upload/src/upload-dragger.vue.d.ts +4 -0
- package/es/components/upload/src/upload-list.vue.d.ts +20 -0
- package/es/components/upload/src/upload.vue.d.ts +44 -0
- package/es/components/virtual-list/src/builders/build-list.d.ts +4 -0
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -0
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -0
- package/es/hooks/use-namespace/index.d.ts +4 -0
- package/es/hooks/use-namespace/index.mjs +21 -1
- package/es/hooks/use-namespace/index.mjs.map +1 -1
- package/es/index.mjs +25 -25
- package/lib/components/affix/index.d.ts +4 -0
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +19 -82
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +4 -0
- package/lib/components/affix/src/affix2.js +82 -19
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.d.ts +8 -0
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +82 -33
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +8 -0
- package/lib/components/alert/src/alert2.js +33 -82
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +20 -0
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +94 -58
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +20 -0
- package/lib/components/autocomplete/src/autocomplete2.js +58 -94
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/avatar/index.d.ts +8 -0
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +61 -29
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar.vue.d.ts +8 -0
- package/lib/components/avatar/src/avatar2.js +29 -61
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/backtop/index.d.ts +8 -0
- package/lib/components/backtop/src/backtop.vue.d.ts +8 -0
- package/lib/components/badge/index.d.ts +4 -0
- package/lib/components/badge/src/badge.vue.d.ts +4 -0
- package/lib/components/breadcrumb/index.d.ts +20 -0
- package/lib/components/breadcrumb/index.js +4 -4
- package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -46
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +8 -0
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +46 -11
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.js +37 -12
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +4 -0
- package/lib/components/breadcrumb/src/breadcrumb2.js +12 -37
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.d.ts +16 -0
- package/lib/components/button/src/button-group.vue.d.ts +4 -0
- package/lib/components/button/src/button.vue.d.ts +8 -0
- package/lib/components/calendar/index.d.ts +28 -0
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +192 -9
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar.vue.d.ts +28 -0
- package/lib/components/calendar/src/calendar2.js +9 -192
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table.js +151 -30
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue.d.ts +8 -0
- package/lib/components/calendar/src/date-table2.js +30 -151
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/card/index.d.ts +4 -0
- package/lib/components/card/src/card.vue.d.ts +4 -0
- package/lib/components/carousel/index.d.ts +16 -0
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +148 -7
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item.vue.d.ts +4 -0
- package/lib/components/carousel/src/carousel-item2.js +7 -148
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +8 -0
- package/lib/components/cascader/index.d.ts +48 -0
- package/lib/components/cascader/src/index.js +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +24 -0
- package/lib/components/cascader-panel/index.d.ts +8 -0
- package/lib/components/cascader-panel/src/index.vue.d.ts +4 -0
- package/lib/components/cascader-panel/src/menu.vue.d.ts +4 -0
- package/lib/components/cascader-panel/src/node-content.d.ts +4 -0
- package/lib/components/cascader-panel/src/node.vue.d.ts +4 -0
- package/lib/components/check-tag/index.d.ts +4 -0
- package/lib/components/check-tag/src/check-tag.vue.d.ts +4 -0
- package/lib/components/checkbox/index.d.ts +12 -0
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +4 -0
- package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -0
- package/lib/components/collapse/index.d.ts +28 -0
- package/lib/components/collapse/src/collapse-item.vue.d.ts +12 -0
- package/lib/components/collapse/src/collapse.vue.d.ts +4 -0
- package/lib/components/collapse-transition/index.d.ts +8 -0
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +4 -0
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +30 -9
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +9 -30
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +8 -0
- package/lib/components/color-picker/src/index.vue.d.ts +4 -0
- package/lib/components/container/index.d.ts +36 -0
- package/lib/components/container/src/aside.vue.d.ts +4 -0
- package/lib/components/container/src/container.vue.d.ts +4 -0
- package/lib/components/container/src/footer.vue.d.ts +4 -0
- package/lib/components/container/src/header.vue.d.ts +4 -0
- package/lib/components/container/src/main.vue.d.ts +4 -0
- package/lib/components/descriptions/index.d.ts +4 -0
- package/lib/components/descriptions/src/index.vue.d.ts +4 -0
- package/lib/components/dialog/index.d.ts +12 -0
- package/lib/components/dialog/src/dialog-content.js +78 -33
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +8 -0
- package/lib/components/dialog/src/dialog-content2.js +33 -78
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +12 -0
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/divider/index.d.ts +4 -0
- package/lib/components/divider/src/divider.vue.d.ts +4 -0
- package/lib/components/drawer/index.d.ts +4 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +4 -0
- package/lib/components/dropdown/index.d.ts +4 -0
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +4 -0
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +109 -109
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +4 -0
- package/lib/components/dropdown/src/dropdown2.js +109 -109
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/empty/index.d.ts +4 -0
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +56 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty.vue.d.ts +4 -0
- package/lib/components/empty/src/empty2.js +11 -56
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/form/index.d.ts +12 -0
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form-item.vue.d.ts +4 -0
- package/lib/components/form/src/form.js +45 -40
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +4 -0
- package/lib/components/form/src/form2.js +40 -45
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/icon/index.d.ts +4 -0
- package/lib/components/icon/src/icon.vue.d.ts +4 -0
- package/lib/components/image/index.d.ts +12 -0
- package/lib/components/image/src/image.vue.d.ts +12 -0
- package/lib/components/image-viewer/index.d.ts +8 -0
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +8 -0
- package/lib/components/index.js +25 -25
- package/lib/components/input/index.d.ts +8 -0
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +84 -294
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +8 -0
- package/lib/components/input/src/input2.js +294 -84
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +20 -0
- package/lib/components/input-number/src/input-number.vue.d.ts +20 -0
- package/lib/components/link/index.d.ts +8 -0
- package/lib/components/link/src/link.vue.d.ts +8 -0
- package/lib/components/menu/index.d.ts +26 -4
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-collapse-transition.js +52 -2
- package/lib/components/menu/src/menu-collapse-transition.js.map +1 -1
- package/lib/components/menu/src/menu-collapse-transition.vue.d.ts +4 -1
- package/lib/components/menu/src/menu-item-group.vue.d.ts +4 -1
- package/lib/components/menu/src/menu-item-group2.js +2 -23
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/menu/src/menu-item.js +100 -15
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item.vue.d.ts +9 -1
- package/lib/components/menu/src/menu-item2.js +16 -73
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/menu/src/menu.js +6 -5
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.js +11 -17
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/menu/src/types.d.ts +1 -0
- package/lib/components/menu/src/use-menu-css-var.d.ts +1 -7
- package/lib/components/menu/src/use-menu-css-var.js +12 -8
- package/lib/components/menu/src/use-menu-css-var.js.map +1 -1
- package/lib/components/menu/src/use-menu.d.ts +1 -2
- package/lib/components/menu/src/use-menu.js +0 -23
- package/lib/components/menu/src/use-menu.js.map +1 -1
- package/lib/components/menu/src/utils/menu-bar.js.map +1 -1
- package/lib/components/menu/src/utils/menu-item.js.map +1 -1
- package/lib/components/menu/src/utils/submenu.js.map +1 -1
- package/lib/components/page-header/index.d.ts +8 -0
- package/lib/components/page-header/src/page-header.vue.d.ts +8 -0
- package/lib/components/pagination/src/components/jumper.vue.d.ts +4 -0
- package/lib/components/pagination/src/components/pager.vue.d.ts +8 -0
- package/lib/components/pagination/src/components/sizes.vue.d.ts +4 -0
- package/lib/components/pagination/src/components/total.vue.d.ts +4 -0
- package/lib/components/popconfirm/index.d.ts +4 -0
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +53 -20
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +4 -0
- package/lib/components/popconfirm/src/popconfirm2.js +20 -53
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/index.d.ts +8 -0
- package/lib/components/popover/src/index.vue.d.ts +4 -0
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/arrow.js +7 -31
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow.vue.d.ts +4 -0
- package/lib/components/popper/src/arrow2.js +31 -7
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +65 -52
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content.vue.d.ts +4 -0
- package/lib/components/popper/src/content2.js +52 -65
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/progress/index.d.ts +4 -0
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +230 -57
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress.vue.d.ts +4 -0
- package/lib/components/progress/src/progress2.js +57 -230
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/radio/index.d.ts +20 -0
- package/lib/components/radio/index.js +6 -6
- package/lib/components/radio/src/radio-button.js +80 -9
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button.vue.d.ts +4 -0
- package/lib/components/radio/src/radio-button2.js +9 -80
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group.js +18 -37
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +4 -0
- package/lib/components/radio/src/radio-group2.js +37 -18
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/radio/src/radio.js +64 -73
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +4 -0
- package/lib/components/radio/src/radio2.js +73 -64
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/rate/index.d.ts +8 -0
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +169 -84
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +8 -0
- package/lib/components/rate/src/rate2.js +84 -169
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/result/index.d.ts +4 -0
- package/lib/components/result/src/result.vue.d.ts +4 -0
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/scrollbar/index.d.ts +4 -0
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +42 -112
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +4 -0
- package/lib/components/scrollbar/src/scrollbar2.js +112 -42
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.vue.d.ts +4 -0
- package/lib/components/select/index.d.ts +20 -0
- package/lib/components/select/src/option-group.vue.d.ts +4 -0
- package/lib/components/select/src/option.vue.d.ts +4 -0
- package/lib/components/select/src/select-dropdown.vue.d.ts +4 -0
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select/src/select.vue.d.ts +4 -0
- package/lib/components/select-v2/index.d.ts +16 -0
- package/lib/components/select-v2/src/group-item.vue.d.ts +4 -0
- package/lib/components/select-v2/src/option-item.vue.d.ts +4 -0
- package/lib/components/select-v2/src/select-dropdown.vue.d.ts +4 -0
- package/lib/components/select-v2/src/select.vue.d.ts +8 -0
- package/lib/components/select-v2/src/useSelect.d.ts +8 -0
- package/lib/components/skeleton/index.d.ts +16 -0
- package/lib/components/skeleton/src/skeleton-item.vue.d.ts +4 -0
- package/lib/components/skeleton/src/skeleton.vue.d.ts +8 -0
- package/lib/components/slider/index.d.ts +8 -0
- package/lib/components/slider/src/button.vue.d.ts +4 -0
- package/lib/components/slider/src/index.vue.d.ts +4 -0
- package/lib/components/slider/src/marker.vue.d.ts +4 -0
- package/lib/components/steps/index.d.ts +12 -0
- package/lib/components/steps/src/index.vue.d.ts +4 -0
- package/lib/components/steps/src/item.vue.d.ts +4 -0
- package/lib/components/switch/index.d.ts +4 -0
- package/lib/components/switch/src/switch.vue.d.ts +4 -0
- package/lib/components/table/index.d.ts +4 -0
- package/lib/components/table/src/filter-panel.vue.d.ts +4 -0
- package/lib/components/table/src/table-body/index.d.ts +4 -0
- package/lib/components/table/src/table-footer/index.d.ts +4 -0
- package/lib/components/table/src/table-header/index.d.ts +4 -0
- package/lib/components/table/src/table.vue.d.ts +4 -0
- package/lib/components/tabs/index.d.ts +8 -0
- package/lib/components/tabs/src/tab-bar.vue.d.ts +4 -0
- package/lib/components/tabs/src/tab-pane.vue.d.ts +4 -0
- package/lib/components/tag/index.d.ts +8 -0
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +81 -34
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +8 -0
- package/lib/components/tag/src/tag2.js +34 -81
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/teleport/index.d.ts +4 -0
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +43 -18
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport.vue.d.ts +4 -0
- package/lib/components/teleport/src/teleport2.js +18 -43
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +12 -0
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +4 -0
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +4 -0
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +8 -0
- package/lib/components/time-select/index.d.ts +8 -0
- package/lib/components/time-select/src/time-select.vue.d.ts +4 -0
- package/lib/components/timeline/index.d.ts +8 -0
- package/lib/components/timeline/src/timeline-item.vue.d.ts +4 -0
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/trigger.vue.d.ts +4 -0
- package/lib/components/tooltip-v2/index.d.ts +12 -0
- package/lib/components/tooltip-v2/index.js +3 -3
- package/lib/components/tooltip-v2/src/arrow.js +23 -38
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow.vue.d.ts +4 -0
- package/lib/components/tooltip-v2/src/arrow2.js +38 -23
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.vue.d.ts +4 -0
- package/lib/components/tooltip-v2/src/root.vue.d.ts +4 -0
- package/lib/components/tooltip-v2/src/tooltip.js +73 -20
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +12 -0
- package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/transfer/index.d.ts +40 -0
- package/lib/components/transfer/src/index.vue.d.ts +20 -0
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +4 -0
- package/lib/components/tree/index.d.ts +8 -0
- package/lib/components/tree/src/tree-node.vue.d.ts +4 -0
- package/lib/components/tree/src/tree.vue.d.ts +4 -0
- package/lib/components/tree-select/src/tree-select-option.d.ts +24 -0
- package/lib/components/tree-v2/index.d.ts +4 -0
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +4 -0
- package/lib/components/tree-v2/src/tree.vue.d.ts +4 -0
- package/lib/components/upload/index.d.ts +44 -0
- package/lib/components/upload/src/upload-content.vue.d.ts +8 -0
- package/lib/components/upload/src/upload-dragger.vue.d.ts +4 -0
- package/lib/components/upload/src/upload-list.vue.d.ts +20 -0
- package/lib/components/upload/src/upload.vue.d.ts +44 -0
- package/lib/components/virtual-list/src/builders/build-list.d.ts +4 -0
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -0
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -0
- package/lib/hooks/use-namespace/index.d.ts +4 -0
- package/lib/hooks/use-namespace/index.js +21 -1
- package/lib/hooks/use-namespace/index.js.map +1 -1
- package/lib/index.js +25 -25
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -26,6 +26,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
(name: string, state: boolean | undefined): string;
|
|
27
27
|
(name: string): string;
|
|
28
28
|
};
|
|
29
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
30
|
+
cssVarName: (name: string) => string;
|
|
31
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
32
|
+
cssVarBlockName: (name: string) => string;
|
|
29
33
|
};
|
|
30
34
|
nsIcon: {
|
|
31
35
|
namespace: import("vue").ComputedRef<string>;
|
|
@@ -40,6 +44,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
44
|
(name: string, state: boolean | undefined): string;
|
|
41
45
|
(name: string): string;
|
|
42
46
|
};
|
|
47
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
48
|
+
cssVarName: (name: string) => string;
|
|
49
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
50
|
+
cssVarBlockName: (name: string) => string;
|
|
43
51
|
};
|
|
44
52
|
nsList: {
|
|
45
53
|
namespace: import("vue").ComputedRef<string>;
|
|
@@ -54,6 +62,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
62
|
(name: string, state: boolean | undefined): string;
|
|
55
63
|
(name: string): string;
|
|
56
64
|
};
|
|
65
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
66
|
+
cssVarName: (name: string) => string;
|
|
67
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
68
|
+
cssVarBlockName: (name: string) => string;
|
|
57
69
|
};
|
|
58
70
|
focusing: import("vue").Ref<boolean>;
|
|
59
71
|
PsIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -79,6 +91,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
91
|
(name: string, state: boolean | undefined): string;
|
|
80
92
|
(name: string): string;
|
|
81
93
|
};
|
|
94
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
95
|
+
cssVarName: (name: string) => string;
|
|
96
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
97
|
+
cssVarBlockName: (name: string) => string;
|
|
82
98
|
};
|
|
83
99
|
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
84
100
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -124,6 +140,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
140
|
(name: string, state: boolean | undefined): string;
|
|
125
141
|
(name: string): string;
|
|
126
142
|
};
|
|
143
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
144
|
+
cssVarName: (name: string) => string;
|
|
145
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
146
|
+
cssVarBlockName: (name: string) => string;
|
|
127
147
|
};
|
|
128
148
|
barStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
129
149
|
relativeStrokeWidth: import("vue").ComputedRef<string>;
|
|
@@ -171,6 +171,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
171
171
|
(name: string, state: boolean | undefined): string;
|
|
172
172
|
(name: string): string;
|
|
173
173
|
};
|
|
174
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
175
|
+
cssVarName: (name: string) => string;
|
|
176
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
177
|
+
cssVarBlockName: (name: string) => string;
|
|
174
178
|
};
|
|
175
179
|
requests: import("vue").ShallowRef<Record<string, XMLHttpRequest | Promise<unknown>>>;
|
|
176
180
|
inputRef: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
@@ -197,6 +201,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
197
201
|
(name: string, state: boolean | undefined): string;
|
|
198
202
|
(name: string): string;
|
|
199
203
|
};
|
|
204
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
205
|
+
cssVarName: (name: string) => string;
|
|
206
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
207
|
+
cssVarBlockName: (name: string) => string;
|
|
200
208
|
};
|
|
201
209
|
dragover: import("vue").Ref<boolean>;
|
|
202
210
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -297,6 +305,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
305
|
(name: string, state: boolean | undefined): string;
|
|
298
306
|
(name: string): string;
|
|
299
307
|
};
|
|
308
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
309
|
+
cssVarName: (name: string) => string;
|
|
310
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
311
|
+
cssVarBlockName: (name: string) => string;
|
|
300
312
|
};
|
|
301
313
|
requests: import("vue").ShallowRef<Record<string, XMLHttpRequest | Promise<unknown>>>;
|
|
302
314
|
inputRef: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
@@ -323,6 +335,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
323
335
|
(name: string, state: boolean | undefined): string;
|
|
324
336
|
(name: string): string;
|
|
325
337
|
};
|
|
338
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
339
|
+
cssVarName: (name: string) => string;
|
|
340
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
341
|
+
cssVarBlockName: (name: string) => string;
|
|
326
342
|
};
|
|
327
343
|
dragover: import("vue").Ref<boolean>;
|
|
328
344
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -394,6 +410,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
394
410
|
(name: string, state: boolean | undefined): string;
|
|
395
411
|
(name: string): string;
|
|
396
412
|
};
|
|
413
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
414
|
+
cssVarName: (name: string) => string;
|
|
415
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
416
|
+
cssVarBlockName: (name: string) => string;
|
|
397
417
|
};
|
|
398
418
|
nsIcon: {
|
|
399
419
|
namespace: import("vue").ComputedRef<string>;
|
|
@@ -408,6 +428,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
408
428
|
(name: string, state: boolean | undefined): string;
|
|
409
429
|
(name: string): string;
|
|
410
430
|
};
|
|
431
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
432
|
+
cssVarName: (name: string) => string;
|
|
433
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
434
|
+
cssVarBlockName: (name: string) => string;
|
|
411
435
|
};
|
|
412
436
|
nsList: {
|
|
413
437
|
namespace: import("vue").ComputedRef<string>;
|
|
@@ -422,6 +446,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
422
446
|
(name: string, state: boolean | undefined): string;
|
|
423
447
|
(name: string): string;
|
|
424
448
|
};
|
|
449
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
450
|
+
cssVarName: (name: string) => string;
|
|
451
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
452
|
+
cssVarBlockName: (name: string) => string;
|
|
425
453
|
};
|
|
426
454
|
focusing: import("vue").Ref<boolean>;
|
|
427
455
|
PsIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -447,6 +475,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
447
475
|
(name: string, state: boolean | undefined): string;
|
|
448
476
|
(name: string): string;
|
|
449
477
|
};
|
|
478
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
479
|
+
cssVarName: (name: string) => string;
|
|
480
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
481
|
+
cssVarBlockName: (name: string) => string;
|
|
450
482
|
};
|
|
451
483
|
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
452
484
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -492,6 +524,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
492
524
|
(name: string, state: boolean | undefined): string;
|
|
493
525
|
(name: string): string;
|
|
494
526
|
};
|
|
527
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
528
|
+
cssVarName: (name: string) => string;
|
|
529
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
530
|
+
cssVarBlockName: (name: string) => string;
|
|
495
531
|
};
|
|
496
532
|
barStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
497
533
|
relativeStrokeWidth: import("vue").ComputedRef<string>;
|
|
@@ -608,6 +644,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
608
644
|
(name: string, state: boolean | undefined): string;
|
|
609
645
|
(name: string): string;
|
|
610
646
|
};
|
|
647
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
648
|
+
cssVarName: (name: string) => string;
|
|
649
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
650
|
+
cssVarBlockName: (name: string) => string;
|
|
611
651
|
};
|
|
612
652
|
requests: import("vue").ShallowRef<Record<string, XMLHttpRequest | Promise<unknown>>>;
|
|
613
653
|
inputRef: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
@@ -634,6 +674,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
634
674
|
(name: string, state: boolean | undefined): string;
|
|
635
675
|
(name: string): string;
|
|
636
676
|
};
|
|
677
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
678
|
+
cssVarName: (name: string) => string;
|
|
679
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
680
|
+
cssVarBlockName: (name: string) => string;
|
|
637
681
|
};
|
|
638
682
|
dragover: import("vue").Ref<boolean>;
|
|
639
683
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -33,6 +33,10 @@ declare const createList: ({ name, getOffset, getItemSize, getItemOffset, getEst
|
|
|
33
33
|
(name: string, state: boolean | undefined): string;
|
|
34
34
|
(name: string): string;
|
|
35
35
|
};
|
|
36
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
37
|
+
cssVarName: (name: string) => string;
|
|
38
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
39
|
+
cssVarBlockName: (name: string) => string;
|
|
36
40
|
};
|
|
37
41
|
clientSize: import("vue").ComputedRef<string | number | undefined>;
|
|
38
42
|
estimatedTotalSize: import("vue").ComputedRef<number>;
|
|
@@ -31,6 +31,10 @@ declare const DynamicSizeList: import("vue").DefineComponent<{
|
|
|
31
31
|
(name: string, state: boolean | undefined): string;
|
|
32
32
|
(name: string): string;
|
|
33
33
|
};
|
|
34
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
35
|
+
cssVarName: (name: string) => string;
|
|
36
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
37
|
+
cssVarBlockName: (name: string) => string;
|
|
34
38
|
};
|
|
35
39
|
clientSize: import("vue").ComputedRef<string | number | undefined>;
|
|
36
40
|
estimatedTotalSize: import("vue").ComputedRef<number>;
|
|
@@ -30,6 +30,10 @@ declare const FixedSizeList: import("vue").DefineComponent<{
|
|
|
30
30
|
(name: string, state: boolean | undefined): string;
|
|
31
31
|
(name: string): string;
|
|
32
32
|
};
|
|
33
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
34
|
+
cssVarName: (name: string) => string;
|
|
35
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
36
|
+
cssVarBlockName: (name: string) => string;
|
|
33
37
|
};
|
|
34
38
|
clientSize: import("vue").ComputedRef<string | number | undefined>;
|
|
35
39
|
estimatedTotalSize: import("vue").ComputedRef<number>;
|
|
@@ -11,5 +11,9 @@ export declare const useNamespace: (block: string) => {
|
|
|
11
11
|
(name: string, state: boolean | undefined): string;
|
|
12
12
|
(name: string): string;
|
|
13
13
|
};
|
|
14
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
15
|
+
cssVarName: (name: string) => string;
|
|
16
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
17
|
+
cssVarBlockName: (name: string) => string;
|
|
14
18
|
};
|
|
15
19
|
export declare type UseNamespaceReturn = ReturnType<typeof useNamespace>;
|
|
@@ -30,6 +30,22 @@ const useNamespace = (block) => {
|
|
|
30
30
|
const state = args.length >= 1 ? args[0] : true;
|
|
31
31
|
return name && state ? `${statePrefix}${name}` : "";
|
|
32
32
|
};
|
|
33
|
+
const cssVar = (object) => {
|
|
34
|
+
const styles = {};
|
|
35
|
+
for (const key in object) {
|
|
36
|
+
styles[`--${namespace.value}-${key}`] = object[key];
|
|
37
|
+
}
|
|
38
|
+
return styles;
|
|
39
|
+
};
|
|
40
|
+
const cssVarBlock = (object) => {
|
|
41
|
+
const styles = {};
|
|
42
|
+
for (const key in object) {
|
|
43
|
+
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
44
|
+
}
|
|
45
|
+
return styles;
|
|
46
|
+
};
|
|
47
|
+
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
48
|
+
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
33
49
|
return {
|
|
34
50
|
namespace,
|
|
35
51
|
b,
|
|
@@ -39,7 +55,11 @@ const useNamespace = (block) => {
|
|
|
39
55
|
em,
|
|
40
56
|
bm,
|
|
41
57
|
bem,
|
|
42
|
-
is
|
|
58
|
+
is,
|
|
59
|
+
cssVar,
|
|
60
|
+
cssVarName,
|
|
61
|
+
cssVarBlock,
|
|
62
|
+
cssVarBlockName
|
|
43
63
|
};
|
|
44
64
|
};
|
|
45
65
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, unref } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst defaultNamespace = 'el'\nconst statePrefix = 'is-'\n\nconst _bem = (\n namespace: string,\n block: string,\n blockSuffix: string,\n element: string,\n modifier: string\n) => {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const useNamespace = (block: string) => {\n const globalConfig = useGlobalConfig('namespace')\n const namespace = computed(() => globalConfig.value || defaultNamespace)\n const b = (blockSuffix = '') =>\n _bem(unref(namespace), block, blockSuffix, '', '')\n const e = (element?: string) =>\n element ? _bem(unref(namespace), block, '', element, '') : ''\n const m = (modifier?: string) =>\n modifier ? _bem(unref(namespace), block, '', '', modifier) : ''\n const be = (blockSuffix?: string, element?: string) =>\n blockSuffix && element\n ? _bem(unref(namespace), block, blockSuffix, element, '')\n : ''\n const em = (element?: string, modifier?: string) =>\n element && modifier\n ? _bem(unref(namespace), block, '', element, modifier)\n : ''\n const bm = (blockSuffix?: string, modifier?: string) =>\n blockSuffix && modifier\n ? _bem(unref(namespace), block, blockSuffix, '', modifier)\n : ''\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier\n ? _bem(unref(namespace), block, blockSuffix, element, modifier)\n : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${statePrefix}${name}` : ''\n }\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n }\n}\n\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>\n"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, unref } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst defaultNamespace = 'el'\nconst statePrefix = 'is-'\n\nconst _bem = (\n namespace: string,\n block: string,\n blockSuffix: string,\n element: string,\n modifier: string\n) => {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const useNamespace = (block: string) => {\n const globalConfig = useGlobalConfig('namespace')\n const namespace = computed(() => globalConfig.value || defaultNamespace)\n const b = (blockSuffix = '') =>\n _bem(unref(namespace), block, blockSuffix, '', '')\n const e = (element?: string) =>\n element ? _bem(unref(namespace), block, '', element, '') : ''\n const m = (modifier?: string) =>\n modifier ? _bem(unref(namespace), block, '', '', modifier) : ''\n const be = (blockSuffix?: string, element?: string) =>\n blockSuffix && element\n ? _bem(unref(namespace), block, blockSuffix, element, '')\n : ''\n const em = (element?: string, modifier?: string) =>\n element && modifier\n ? _bem(unref(namespace), block, '', element, modifier)\n : ''\n const bm = (blockSuffix?: string, modifier?: string) =>\n blockSuffix && modifier\n ? _bem(unref(namespace), block, blockSuffix, '', modifier)\n : ''\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier\n ? _bem(unref(namespace), block, blockSuffix, element, modifier)\n : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${statePrefix}${name}` : ''\n }\n\n // for css var\n // --el-xxx: value;\n const cssVar = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n styles[`--${namespace.value}-${key}`] = object[key]\n }\n return styles\n }\n // with block\n const cssVarBlock = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n styles[`--${namespace.value}-${block}-${key}`] = object[key]\n }\n return styles\n }\n\n const cssVarName = (name: string) => `--${namespace.value}-${name}`\n const cssVarBlockName = (name: string) =>\n `--${namespace.value}-${block}-${name}`\n\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n // css\n cssVar,\n cssVarName,\n cssVarBlock,\n cssVarBlockName,\n }\n}\n\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>\n"],"names":[],"mappings":"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"}
|
package/es/index.mjs
CHANGED
|
@@ -7,29 +7,29 @@ import './hooks/index.mjs';
|
|
|
7
7
|
import './tokens/index.mjs';
|
|
8
8
|
export { makeInstaller } from './make-installer.mjs';
|
|
9
9
|
export { default as dayjs } from 'dayjs';
|
|
10
|
-
export { affixProps } from './components/affix/src/
|
|
10
|
+
export { affixProps } from './components/affix/src/affix.mjs';
|
|
11
11
|
export { PsAffix } from './components/affix/index.mjs';
|
|
12
|
-
export { alertEffects, alertProps } from './components/alert/src/
|
|
12
|
+
export { alertEffects, alertProps } from './components/alert/src/alert2.mjs';
|
|
13
13
|
export { PsAlert } from './components/alert/index.mjs';
|
|
14
|
-
export { autocompleteProps } from './components/autocomplete/src/
|
|
14
|
+
export { autocompleteProps } from './components/autocomplete/src/autocomplete2.mjs';
|
|
15
15
|
export { PsAutocomplete } from './components/autocomplete/index.mjs';
|
|
16
|
-
export { avatarProps } from './components/avatar/src/
|
|
16
|
+
export { avatarProps } from './components/avatar/src/avatar2.mjs';
|
|
17
17
|
export { PsAvatar } from './components/avatar/index.mjs';
|
|
18
18
|
export { backtopProps } from './components/backtop/src/backtop.mjs';
|
|
19
19
|
export { PsBacktop } from './components/backtop/index.mjs';
|
|
20
20
|
export { badgeProps } from './components/badge/src/badge2.mjs';
|
|
21
21
|
export { PsBadge } from './components/badge/index.mjs';
|
|
22
|
-
export { breadcrumbProps } from './components/breadcrumb/src/
|
|
23
|
-
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-
|
|
22
|
+
export { breadcrumbProps } from './components/breadcrumb/src/breadcrumb2.mjs';
|
|
23
|
+
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-item.mjs';
|
|
24
24
|
export { PsBreadcrumb, PsBreadcrumbItem } from './components/breadcrumb/index.mjs';
|
|
25
25
|
export { buttonNativeTypes, buttonProps, buttonTypes } from './components/button/src/button.mjs';
|
|
26
26
|
export { PsButton, PsButtonGroup } from './components/button/index.mjs';
|
|
27
|
-
export { calendarProps } from './components/calendar/src/
|
|
27
|
+
export { calendarProps } from './components/calendar/src/calendar2.mjs';
|
|
28
28
|
export { PsCalendar } from './components/calendar/index.mjs';
|
|
29
29
|
export { cardProps } from './components/card/src/card.mjs';
|
|
30
30
|
export { PsCard } from './components/card/index.mjs';
|
|
31
31
|
export { carouselProps } from './components/carousel/src/carousel2.mjs';
|
|
32
|
-
export { carouselItemProps } from './components/carousel/src/carousel-
|
|
32
|
+
export { carouselItemProps } from './components/carousel/src/carousel-item2.mjs';
|
|
33
33
|
export { PsCarousel, PsCarouselItem } from './components/carousel/index.mjs';
|
|
34
34
|
export { PsCascader } from './components/cascader/index.mjs';
|
|
35
35
|
export { CASCADER_PANEL_INJECTION_KEY, ExpandTrigger } from './components/cascader-panel/src/types.mjs';
|
|
@@ -57,12 +57,12 @@ export { dividerProps } from './components/divider/src/divider.mjs';
|
|
|
57
57
|
export { PsDivider } from './components/divider/index.mjs';
|
|
58
58
|
export { drawerProps } from './components/drawer/src/drawer2.mjs';
|
|
59
59
|
export { PsDrawer } from './components/drawer/index.mjs';
|
|
60
|
-
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, PsCollection, PsCollectionItem, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/
|
|
60
|
+
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, PsCollection, PsCollectionItem, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/dropdown2.mjs';
|
|
61
61
|
export { DROPDOWN_INJECTION_KEY } from './components/dropdown/src/tokens.mjs';
|
|
62
62
|
export { PsDropdown, PsDropdownItem, PsDropdownMenu } from './components/dropdown/index.mjs';
|
|
63
|
-
export { emptyProps } from './components/empty/src/
|
|
63
|
+
export { emptyProps } from './components/empty/src/empty2.mjs';
|
|
64
64
|
export { PsEmpty } from './components/empty/index.mjs';
|
|
65
|
-
export { formProps } from './components/form/src/
|
|
65
|
+
export { formProps } from './components/form/src/form2.mjs';
|
|
66
66
|
export { formItemProps, formItemValidateStates } from './components/form/src/form-item.mjs';
|
|
67
67
|
export { PsForm, PsFormItem } from './components/form/index.mjs';
|
|
68
68
|
export { iconProps } from './components/icon/src/icon2.mjs';
|
|
@@ -71,14 +71,14 @@ export { imageProps } from './components/image/src/image2.mjs';
|
|
|
71
71
|
export { PsImage } from './components/image/index.mjs';
|
|
72
72
|
export { imageViewerProps } from './components/image-viewer/src/image-viewer.mjs';
|
|
73
73
|
export { PsImageViewer } from './components/image-viewer/index.mjs';
|
|
74
|
-
export { inputProps } from './components/input/src/
|
|
74
|
+
export { inputProps } from './components/input/src/input.mjs';
|
|
75
75
|
export { PsInput } from './components/input/index.mjs';
|
|
76
76
|
export { inputNumberProps } from './components/input-number/src/input-number.mjs';
|
|
77
77
|
export { PsInputNumber } from './components/input-number/index.mjs';
|
|
78
78
|
export { linkProps } from './components/link/src/link2.mjs';
|
|
79
79
|
export { PsLink } from './components/link/index.mjs';
|
|
80
80
|
export { menuProps } from './components/menu/src/menu.mjs';
|
|
81
|
-
export { menuItemEmits, menuItemProps } from './components/menu/src/menu-
|
|
81
|
+
export { menuItemEmits, menuItemProps } from './components/menu/src/menu-item2.mjs';
|
|
82
82
|
export { menuItemGroupProps } from './components/menu/src/menu-item-group.mjs';
|
|
83
83
|
export { subMenuProps } from './components/menu/src/sub-menu.mjs';
|
|
84
84
|
export { PsMenu, PsMenuItem, PsMenuItemGroup, PsSubMenu } from './components/menu/index.mjs';
|
|
@@ -88,31 +88,31 @@ export { pageHeaderProps } from './components/page-header/src/page-header.mjs';
|
|
|
88
88
|
export { PsPageHeader } from './components/page-header/index.mjs';
|
|
89
89
|
export { paginationProps } from './components/pagination/src/pagination.mjs';
|
|
90
90
|
export { PsPagination } from './components/pagination/index.mjs';
|
|
91
|
-
export { popconfirmProps } from './components/popconfirm/src/
|
|
91
|
+
export { popconfirmProps } from './components/popconfirm/src/popconfirm.mjs';
|
|
92
92
|
export { PsPopconfirm } from './components/popconfirm/index.mjs';
|
|
93
93
|
export { useDeprecateAppendToBody } from './components/popper/src/deprecation.mjs';
|
|
94
94
|
export { Effect, usePopperProps } from './components/popper/src/popper.mjs';
|
|
95
95
|
export { usePopperTriggerProps } from './components/popper/src/trigger.mjs';
|
|
96
|
-
export { usePopperContentProps, usePopperCoreConfigProps } from './components/popper/src/
|
|
97
|
-
export { usePopperArrowProps } from './components/popper/src/
|
|
98
|
-
export { default as PsPopperArrow } from './components/popper/src/
|
|
96
|
+
export { usePopperContentProps, usePopperCoreConfigProps } from './components/popper/src/content.mjs';
|
|
97
|
+
export { usePopperArrowProps } from './components/popper/src/arrow.mjs';
|
|
98
|
+
export { default as PsPopperArrow } from './components/popper/src/arrow2.mjs';
|
|
99
99
|
export { default as PsPopperTrigger } from './components/popper/src/trigger2.mjs';
|
|
100
|
-
export { default as PsPopperContent } from './components/popper/src/
|
|
100
|
+
export { default as PsPopperContent } from './components/popper/src/content2.mjs';
|
|
101
101
|
export { PsPopper } from './components/popper/index.mjs';
|
|
102
|
-
export { progressProps } from './components/progress/src/
|
|
102
|
+
export { progressProps } from './components/progress/src/progress2.mjs';
|
|
103
103
|
export { PsProgress } from './components/progress/index.mjs';
|
|
104
|
-
export { radioEmits, radioProps, radioPropsBase, useRadio } from './components/radio/src/
|
|
105
|
-
export { radioGroupProps } from './components/radio/src/radio-
|
|
106
|
-
export { radioButtonProps } from './components/radio/src/radio-
|
|
104
|
+
export { radioEmits, radioProps, radioPropsBase, useRadio } from './components/radio/src/radio.mjs';
|
|
105
|
+
export { radioGroupProps } from './components/radio/src/radio-group.mjs';
|
|
106
|
+
export { radioButtonProps } from './components/radio/src/radio-button2.mjs';
|
|
107
107
|
export { PsRadio, PsRadioButton, PsRadioGroup } from './components/radio/index.mjs';
|
|
108
|
-
export { rateProps } from './components/rate/src/
|
|
108
|
+
export { rateProps } from './components/rate/src/rate2.mjs';
|
|
109
109
|
export { PsRate } from './components/rate/index.mjs';
|
|
110
110
|
export { IconComponentMap, IconMap, resultProps } from './components/result/src/result.mjs';
|
|
111
111
|
export { PsResult } from './components/result/index.mjs';
|
|
112
112
|
export { rowProps } from './components/row/src/row.mjs';
|
|
113
113
|
export { PsRow } from './components/row/index.mjs';
|
|
114
114
|
export { BAR_MAP, renderThumbStyle } from './components/scrollbar/src/util.mjs';
|
|
115
|
-
export { scrollbarProps } from './components/scrollbar/src/
|
|
115
|
+
export { scrollbarProps } from './components/scrollbar/src/scrollbar.mjs';
|
|
116
116
|
export { thumbProps } from './components/scrollbar/src/thumb.mjs';
|
|
117
117
|
export { PsScrollbar } from './components/scrollbar/index.mjs';
|
|
118
118
|
export { selectGroupKey, selectKey } from './components/select/src/token.mjs';
|
|
@@ -135,7 +135,7 @@ export { tabBarProps } from './components/tabs/src/tab-bar2.mjs';
|
|
|
135
135
|
export { tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
|
136
136
|
export { tabPaneProps } from './components/tabs/src/tab-pane.mjs';
|
|
137
137
|
export { PsTabPane, PsTabs } from './components/tabs/index.mjs';
|
|
138
|
-
export { tagEmits, tagProps } from './components/tag/src/
|
|
138
|
+
export { tagEmits, tagProps } from './components/tag/src/tag2.mjs';
|
|
139
139
|
export { PsTag } from './components/tag/index.mjs';
|
|
140
140
|
export { extractDateFormat, extractTimeFormat, rangeArr } from './components/time-picker/src/common/date-utils.mjs';
|
|
141
141
|
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME } from './components/time-picker/src/common/constant.mjs';
|
|
@@ -26,6 +26,10 @@ export declare const PsAffix: import("element-ps/es/utils").SFCWithInstall<impor
|
|
|
26
26
|
(name: string, state: boolean | undefined): string;
|
|
27
27
|
(name: string): string;
|
|
28
28
|
};
|
|
29
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
30
|
+
cssVarName: (name: string) => string;
|
|
31
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
32
|
+
cssVarBlockName: (name: string) => string;
|
|
29
33
|
};
|
|
30
34
|
target: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
31
35
|
root: import("vue").ShallowRef<HTMLDivElement | undefined>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var affix$1 = require('./src/
|
|
7
|
-
var affix = require('./src/
|
|
6
|
+
var affix$1 = require('./src/affix2.js');
|
|
7
|
+
var affix = require('./src/affix.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const PsAffix = install.withInstall(affix$1["default"]);
|
|
@@ -2,91 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var core = require('@vueuse/core');
|
|
7
5
|
require('../../../utils/index.js');
|
|
8
|
-
require('../../../
|
|
9
|
-
var affix = require('./affix2.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
-
var error = require('../../../utils/error.js');
|
|
13
|
-
var scroll = require('../../../utils/dom/scroll.js');
|
|
6
|
+
var props = require('../../../utils/vue/props.js');
|
|
14
7
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top: rootTop,
|
|
33
|
-
bottom: rootBottom,
|
|
34
|
-
update: updateRoot
|
|
35
|
-
} = core.useElementBounding(root);
|
|
36
|
-
const targetRect = core.useElementBounding(target);
|
|
37
|
-
const fixed = vue.ref(false);
|
|
38
|
-
const scrollTop = vue.ref(0);
|
|
39
|
-
const transform = vue.ref(0);
|
|
40
|
-
const rootStyle = vue.computed(() => {
|
|
41
|
-
return {
|
|
42
|
-
height: fixed.value ? `${rootHeight.value}px` : "",
|
|
43
|
-
width: fixed.value ? `${rootWidth.value}px` : ""
|
|
44
|
-
};
|
|
45
|
-
});
|
|
46
|
-
const affixStyle = vue.computed(() => {
|
|
47
|
-
if (!fixed.value)
|
|
48
|
-
return {};
|
|
49
|
-
const offset = props.offset ? `${props.offset}px` : 0;
|
|
50
|
-
return {
|
|
51
|
-
height: `${rootHeight.value}px`,
|
|
52
|
-
width: `${rootWidth.value}px`,
|
|
53
|
-
top: props.position === "top" ? offset : "",
|
|
54
|
-
bottom: props.position === "bottom" ? offset : "",
|
|
55
|
-
transform: transform.value ? `translateY(${transform.value}px)` : "",
|
|
56
|
-
zIndex: props.zIndex
|
|
57
|
-
};
|
|
58
|
-
});
|
|
59
|
-
vue.onMounted(() => {
|
|
60
|
-
var _a;
|
|
61
|
-
if (props.target) {
|
|
62
|
-
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
63
|
-
if (!target.value)
|
|
64
|
-
error.throwError(COMPONENT_NAME, `Target is not existed: ${props.target}`);
|
|
65
|
-
} else {
|
|
66
|
-
target.value = document.documentElement;
|
|
67
|
-
}
|
|
68
|
-
scrollContainer.value = scroll.getScrollContainer(root.value, true);
|
|
69
|
-
updateRoot();
|
|
70
|
-
});
|
|
71
|
-
expose({});
|
|
72
|
-
return (_ctx, _cache) => {
|
|
73
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
74
|
-
ref_key: "root",
|
|
75
|
-
ref: root,
|
|
76
|
-
class: vue.normalizeClass(vue.unref(ns).b()),
|
|
77
|
-
style: vue.normalizeStyle(vue.unref(rootStyle))
|
|
78
|
-
}, [
|
|
79
|
-
vue.createElementVNode("div", {
|
|
80
|
-
class: vue.normalizeClass({ [vue.unref(ns).m("fixed")]: fixed.value }),
|
|
81
|
-
style: vue.normalizeStyle(vue.unref(affixStyle))
|
|
82
|
-
}, [
|
|
83
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
84
|
-
], 6)
|
|
85
|
-
], 6);
|
|
86
|
-
};
|
|
8
|
+
const affixProps = props.buildProps({
|
|
9
|
+
zIndex: {
|
|
10
|
+
type: props.definePropType([Number, String]),
|
|
11
|
+
default: 100
|
|
12
|
+
},
|
|
13
|
+
target: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
offset: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0
|
|
20
|
+
},
|
|
21
|
+
position: {
|
|
22
|
+
type: String,
|
|
23
|
+
values: ["top", "bottom"],
|
|
24
|
+
default: "top"
|
|
87
25
|
}
|
|
88
26
|
});
|
|
89
|
-
var Affix = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/affix/src/affix.vue"]]);
|
|
90
27
|
|
|
91
|
-
exports
|
|
28
|
+
exports.affixProps = affixProps;
|
|
92
29
|
//# sourceMappingURL=affix.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"affix.js","sources":["../../../../../../packages/components/affix/src/affix.
|
|
1
|
+
{"version":3,"file":"affix.js","sources":["../../../../../../packages/components/affix/src/affix.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-ps/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ZIndexProperty } from 'csstype'\nimport type Affix from './affix.vue'\n\nexport const affixProps = buildProps({\n zIndex: {\n type: definePropType<ZIndexProperty>([Number, String]),\n default: 100,\n },\n target: {\n type: String,\n default: '',\n },\n offset: {\n type: Number,\n default: 0,\n },\n position: {\n type: String,\n values: ['top', 'bottom'],\n default: 'top',\n },\n} as const)\nexport type AffixProps = ExtractPropTypes<typeof affixProps>\n\nexport type AffixInstance = InstanceType<typeof Affix>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,UAAU,GAAGA,gBAAU,CAAC;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,oBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -27,6 +27,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
(name: string, state: boolean | undefined): string;
|
|
28
28
|
(name: string): string;
|
|
29
29
|
};
|
|
30
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
31
|
+
cssVarName: (name: string) => string;
|
|
32
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
33
|
+
cssVarBlockName: (name: string) => string;
|
|
30
34
|
};
|
|
31
35
|
target: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
32
36
|
root: import("vue").ShallowRef<HTMLDivElement | undefined>;
|