@rhino-design/vue 0.2.1 → 0.2.3
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/README.md +4 -6
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/alignment-pattern.js +4 -0
- package/dist/_virtual/browser.js +4 -0
- package/dist/_virtual/canvas.js +4 -0
- package/dist/_virtual/dijkstra.js +4 -0
- package/dist/_virtual/error-correction-code.js +4 -0
- package/dist/_virtual/error-correction-level.js +4 -0
- package/dist/_virtual/finder-pattern.js +4 -0
- package/dist/_virtual/format-info.js +4 -0
- package/dist/_virtual/galois-field.js +4 -0
- package/dist/_virtual/mask-pattern.js +4 -0
- package/dist/_virtual/mode.js +4 -0
- package/dist/_virtual/polynomial.js +4 -0
- package/dist/_virtual/qrcode.js +4 -0
- package/dist/_virtual/regex.js +4 -0
- package/dist/_virtual/segments.js +4 -0
- package/dist/_virtual/svg-tag.js +4 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/_virtual/utils2.js +4 -0
- package/dist/_virtual/version-check.js +4 -0
- package/dist/_virtual/version.js +4 -0
- package/dist/arco.less +14834 -0
- package/dist/components/XAffix.vue.d.ts +1 -1
- package/dist/components/XAffix.vue.js +7 -0
- package/dist/components/XAffix.vue2.js +181 -0
- package/dist/components/XAlert.vue.js +106 -0
- package/dist/components/XAlert.vue2.js +4 -0
- package/dist/components/XAnchor.vue.d.ts +2 -2
- package/dist/components/XAnchor.vue.js +9 -0
- package/dist/components/XAnchor.vue2.js +204 -0
- package/dist/components/XAnchorLink.vue.js +7 -0
- package/dist/components/XAnchorLink.vue2.js +44 -0
- package/dist/components/XApp.vue.js +12 -0
- package/dist/components/XAutoComplete.vue.d.ts +649 -15
- package/dist/components/XAutoComplete.vue.js +399 -0
- package/dist/components/XAutoComplete.vue2.js +4 -0
- package/dist/components/XAvatar.vue.d.ts +2 -2
- package/dist/components/XAvatar.vue.js +166 -0
- package/dist/components/XAvatar.vue2.js +4 -0
- package/dist/components/XAvatarGroup.vue.js +27 -0
- package/dist/components/XAvatarGroup.vue2.js +4 -0
- package/dist/components/XBackTop.vue.d.ts +23 -7
- package/dist/components/XBackTop.vue.js +118 -0
- package/dist/components/XBackTop.vue2.js +4 -0
- package/dist/components/XBadge.vue.d.ts +3 -3
- package/dist/components/XBadge.vue.js +64 -0
- package/dist/components/XBadge.vue2.js +4 -0
- package/dist/components/XBaseMenu.vue.d.ts +5 -5
- package/dist/components/XBaseMenu.vue.js +37 -0
- package/dist/components/XBaseMenu.vue2.js +334 -0
- package/dist/components/XBreadcrumb.vue.d.ts +31 -6
- package/dist/components/XBreadcrumb.vue.js +97 -0
- package/dist/components/XBreadcrumb.vue2.js +4 -0
- package/dist/components/XBreadcrumbItem.vue.d.ts +21 -6
- package/dist/components/XBreadcrumbItem.vue.js +136 -0
- package/dist/components/XBreadcrumbItem.vue2.js +4 -0
- package/dist/components/XButton.vue.d.ts +4 -4
- package/dist/components/XButton.vue.js +7 -0
- package/dist/components/XButton.vue2.js +142 -0
- package/dist/components/XButtonG.vue.d.ts +2 -2
- package/dist/components/XButtonG.vue.js +7 -0
- package/dist/components/XButtonG.vue2.js +67 -0
- package/dist/components/XButtonGroup.vue.d.ts +1 -1
- package/dist/components/XButtonGroup.vue.js +39 -0
- package/dist/components/XButtonGroup.vue3.js +5 -0
- package/dist/components/XCalendar.vue.d.ts +5 -2
- package/dist/components/XCalendar.vue.js +309 -0
- package/dist/components/XCalendar.vue2.js +4 -0
- package/dist/components/XCard.vue.d.ts +1 -1
- package/dist/components/XCard.vue.js +80 -0
- package/dist/components/XCard.vue2.js +4 -0
- package/dist/components/XCarousel.vue.d.ts +2 -2
- package/dist/components/XCarousel.vue.js +7 -0
- package/dist/components/XCarousel.vue2.js +150 -0
- package/dist/components/XCarouselItem.vue.js +7 -0
- package/dist/components/XCarouselItem.vue2.js +112 -0
- package/dist/components/XCascader.vue.d.ts +19 -19
- package/dist/components/XCascader.vue.js +1015 -0
- package/dist/components/XCascader.vue2.js +4 -0
- package/dist/components/XCascaderPanel.vue.d.ts +6 -6
- package/dist/components/XCascaderPanel.vue.js +466 -0
- package/dist/components/XCascaderPanel.vue2.js +4 -0
- package/dist/components/XChatInput.vue.d.ts +5 -5
- package/dist/components/XChatInput.vue.js +7 -0
- package/dist/components/XChatInput.vue2.js +454 -0
- package/dist/components/XCheckbox.vue.d.ts +14 -8
- package/dist/components/XCheckbox.vue.js +154 -0
- package/dist/components/XCheckbox.vue2.js +4 -0
- package/dist/components/XCheckboxGroup.vue.d.ts +36 -13
- package/dist/components/XCheckboxGroup.vue.js +87 -0
- package/dist/components/XCheckboxGroup.vue2.js +4 -0
- package/dist/components/XCollapse.vue.d.ts +14 -7
- package/dist/components/XCollapse.vue.js +54 -0
- package/dist/components/XCollapse.vue2.js +4 -0
- package/dist/components/XCollapseItem.vue.d.ts +16 -4
- package/dist/components/XCollapseItem.vue.js +152 -0
- package/dist/components/XCollapseItem.vue2.js +4 -0
- package/dist/components/XColorGroup.vue.d.ts +1 -1
- package/dist/components/XColorGroup.vue.js +7 -0
- package/dist/components/XColorGroup.vue2.js +306 -0
- package/dist/components/XColorPicker.vue.js +62 -0
- package/dist/components/XColorPicker.vue2.js +4 -0
- package/dist/components/XComment.vue.js +129 -0
- package/dist/components/XComment.vue2.js +4 -0
- package/dist/components/XCompact.vue.js +17 -0
- package/dist/components/XCompact.vue2.js +4 -0
- package/dist/components/XConfigProvider.vue.d.ts +17 -4
- package/dist/components/XConfigProvider.vue.js +78 -0
- package/dist/components/XConfigProvider.vue2.js +4 -0
- package/dist/components/XCountdown.vue.d.ts +2 -2
- package/dist/components/XCountdown.vue.js +7 -0
- package/dist/components/XCountdown.vue2.js +104 -0
- package/dist/components/XCropper.vue.d.ts +2 -2
- package/dist/components/XCropper.vue.js +7 -0
- package/dist/components/XCropper.vue2.js +525 -0
- package/dist/components/XDatePicker.vue.d.ts +17 -17
- package/dist/components/XDatePicker.vue.js +1798 -0
- package/dist/components/XDatePicker.vue2.js +4 -0
- package/dist/components/XDescriptions.vue.d.ts +4 -4
- package/dist/components/XDescriptions.vue.js +260 -0
- package/dist/components/XDescriptions.vue2.js +4 -0
- package/dist/components/XDescriptionsItem.vue.d.ts +2 -1
- package/dist/components/XDescriptionsItem.vue.js +21 -0
- package/dist/components/XDescriptionsItem.vue2.js +4 -0
- package/dist/components/XDgroup.vue.d.ts +21 -0
- package/dist/components/XDgroup.vue.js +21 -0
- package/dist/components/XDgroup.vue2.js +4 -0
- package/dist/components/XDivider.vue.js +54 -0
- package/dist/components/XDivider.vue2.js +4 -0
- package/dist/components/XDoption.vue.d.ts +38 -0
- package/dist/components/XDoption.vue.js +59 -0
- package/dist/components/XDoption.vue2.js +4 -0
- package/dist/components/XDrawer.vue.d.ts +7 -7
- package/dist/components/XDrawer.vue.js +7 -0
- package/dist/components/XDrawer.vue2.js +320 -0
- package/dist/components/XDrawerService.d.ts +2 -0
- package/dist/components/XDrawerService.js +97 -0
- package/dist/components/XDropdown.vue.d.ts +43 -17
- package/dist/components/XDropdown.vue.js +127 -0
- package/dist/components/XDropdown.vue2.js +4 -0
- package/dist/components/XDropdownButton.vue.d.ts +65 -0
- package/dist/components/XDropdownButton.vue.js +84 -0
- package/dist/components/XDropdownButton.vue2.js +4 -0
- package/dist/components/XDropdownItem.vue.d.ts +29 -0
- package/dist/components/XDropdownItem.vue.js +47 -0
- package/dist/components/XDropdownItem.vue2.js +4 -0
- package/dist/components/XDropdownPanel.vue.d.ts +33 -0
- package/dist/components/XDropdownPanel.vue.js +58 -0
- package/dist/components/XDropdownPanel.vue2.js +4 -0
- package/dist/components/XDsubmenu.vue.d.ts +48 -0
- package/dist/components/XDsubmenu.vue.js +82 -0
- package/dist/components/XDsubmenu.vue2.js +4 -0
- package/dist/components/XEmpty.vue.d.ts +2 -2
- package/dist/components/XEmpty.vue.js +54 -0
- package/dist/components/XEmpty.vue2.js +4 -0
- package/dist/components/XFlex.vue.js +7 -0
- package/dist/components/XFlex.vue2.js +122 -0
- package/dist/components/XFloatButton.vue.js +28 -0
- package/dist/components/XFloatButton.vue2.js +4 -0
- package/dist/components/XFloatButtonGroup.vue.js +17 -0
- package/dist/components/XFloatButtonGroup.vue2.js +4 -0
- package/dist/components/XForm.vue.d.ts +2 -2
- package/dist/components/XForm.vue.js +156 -0
- package/dist/components/XForm.vue2.js +4 -0
- package/dist/components/XFormItem.vue.d.ts +21 -5
- package/dist/components/XFormItem.vue.js +425 -0
- package/dist/components/XFormItem.vue2.js +4 -0
- package/dist/components/XGrid.vue.d.ts +1 -1
- package/dist/components/XGrid.vue.js +7 -0
- package/dist/components/XGrid.vue2.js +88 -0
- package/dist/components/XGridItem.vue.d.ts +3 -3
- package/dist/components/XGridItem.vue.js +8 -0
- package/dist/components/XGridItem.vue2.js +112 -0
- package/dist/components/XGridLayout.vue.js +7 -0
- package/dist/components/XGridLayout.vue2.js +66 -0
- package/dist/components/XGridLayoutItem.vue.d.ts +1 -1
- package/dist/components/XGridLayoutItem.vue.js +7 -0
- package/dist/components/XGridLayoutItem.vue2.js +56 -0
- package/dist/components/XIcon.d.ts +1 -1
- package/dist/components/XIcon.js +5 -0
- package/dist/components/XIconLite.d.ts +1 -1
- package/dist/components/XIconLite.js +8 -0
- package/dist/components/XImage.vue.d.ts +7 -3
- package/dist/components/XImage.vue.js +7 -0
- package/dist/components/XImage.vue2.js +241 -0
- package/dist/components/XImageGroup.vue.js +7 -0
- package/dist/components/XImageGroup.vue2.js +22 -0
- package/dist/components/XInput.vue.d.ts +5 -5
- package/dist/components/XInput.vue.js +7 -0
- package/dist/components/XInput.vue2.js +537 -0
- package/dist/components/XInputComposite.vue.d.ts +12 -12
- package/dist/components/XInputComposite.vue.js +7 -0
- package/dist/components/XInputComposite.vue2.js +176 -0
- package/dist/components/XInputGroup.vue.js +19 -0
- package/dist/components/XInputGroup.vue3.js +5 -0
- package/dist/components/XInputNumber.vue.d.ts +9 -9
- package/dist/components/XInputNumber.vue.js +7 -0
- package/dist/components/XInputNumber.vue2.js +344 -0
- package/dist/components/XInputPassword.vue.d.ts +24 -24
- package/dist/components/XInputPassword.vue.js +7 -0
- package/dist/components/XInputPassword.vue2.js +125 -0
- package/dist/components/XInputSearch.vue.d.ts +26 -26
- package/dist/components/XInputSearch.vue.js +7 -0
- package/dist/components/XInputSearch.vue2.js +154 -0
- package/dist/components/XInputTag.vue.d.ts +10 -10
- package/dist/components/XInputTag.vue.js +367 -0
- package/dist/components/XInputTag.vue2.js +4 -0
- package/dist/components/XLayout.vue.js +22 -0
- package/dist/components/XLayout.vue2.js +4 -0
- package/dist/components/XLayoutContent.vue.js +13 -0
- package/dist/components/XLayoutContent.vue2.js +4 -0
- package/dist/components/XLayoutFooter.vue.js +22 -0
- package/dist/components/XLayoutFooter.vue2.js +4 -0
- package/dist/components/XLayoutHeader.vue.js +128 -0
- package/dist/components/XLayoutHeader.vue2.js +4 -0
- package/dist/components/XLayoutSider.vue.js +108 -0
- package/dist/components/XLayoutSider.vue2.js +4 -0
- package/dist/components/XLink.vue.d.ts +1 -1
- package/dist/components/XLink.vue.js +21 -0
- package/dist/components/XLink.vue2.js +4 -0
- package/dist/components/XList.vue.d.ts +8 -5
- package/dist/components/XList.vue.js +295 -0
- package/dist/components/XList.vue2.js +4 -0
- package/dist/components/XListItem.vue.d.ts +2 -3
- package/dist/components/XListItem.vue.js +53 -0
- package/dist/components/XListItem.vue2.js +4 -0
- package/dist/components/XListItemMeta.vue.js +43 -0
- package/dist/components/XListItemMeta.vue2.js +4 -0
- package/dist/components/XMention.vue.d.ts +899 -0
- package/dist/components/XMention.vue.js +456 -0
- package/dist/components/XMention.vue2.js +4 -0
- package/dist/components/XMentions.vue.js +16 -0
- package/dist/components/XMentions.vue2.js +4 -0
- package/dist/components/XMenu.vue.d.ts +7 -7
- package/dist/components/XMenu.vue.js +57 -0
- package/dist/components/XMenu.vue2.js +123 -0
- package/dist/components/XMenuIndent.vue.js +19 -0
- package/dist/components/XMenuIndent.vue2.js +21 -0
- package/dist/components/XMenuItem.vue.d.ts +43 -43
- package/dist/components/XMenuItem.vue.js +71 -0
- package/dist/components/XMenuItem.vue2.js +92 -0
- package/dist/components/XMenuItemGroup.vue.js +27 -0
- package/dist/components/XMenuItemGroup.vue2.js +26 -0
- package/dist/components/XMenuOverflowWrap.vue.js +116 -0
- package/dist/components/XMenuOverflowWrap.vue2.js +4 -0
- package/dist/components/XMessage.vue.d.ts +1 -1
- package/dist/components/XMessage.vue.js +7 -0
- package/dist/components/XMessage.vue2.js +89 -0
- package/dist/components/XMessageList.d.ts +1 -1
- package/dist/components/XMessageList.js +61 -0
- package/dist/components/XMessageService.d.ts +2 -0
- package/dist/components/XMessageService.js +118 -0
- package/dist/components/XModal.vue.d.ts +8 -8
- package/dist/components/XModal.vue.js +7 -0
- package/dist/components/XModal.vue2.js +364 -0
- package/dist/components/XModalService.d.ts +2 -0
- package/dist/components/XModalService.js +157 -0
- package/dist/components/XNotification.vue.d.ts +31 -20
- package/dist/components/XNotification.vue.js +7 -0
- package/dist/components/XNotification.vue2.js +107 -0
- package/dist/components/XNotificationList.d.ts +39 -0
- package/dist/components/XNotificationList.js +70 -0
- package/dist/components/XNotificationService.d.ts +54 -15
- package/dist/components/XNotificationService.js +119 -0
- package/dist/components/XOptgroup.vue.d.ts +1 -0
- package/dist/components/XOptgroup.vue.js +14 -0
- package/dist/components/XOptgroup.vue2.js +4 -0
- package/dist/components/XOption.vue.d.ts +1 -0
- package/dist/components/XOption.vue.js +21 -0
- package/dist/components/XOption.vue2.js +4 -0
- package/dist/components/XOverflowList.vue.d.ts +38 -8
- package/dist/components/XOverflowList.vue.js +149 -0
- package/dist/components/XOverflowList.vue2.js +4 -0
- package/dist/components/XPageHeader.vue.d.ts +11 -5
- package/dist/components/XPageHeader.vue.js +84 -0
- package/dist/components/XPageHeader.vue2.js +4 -0
- package/dist/components/XPagination.vue.js +121 -0
- package/dist/components/XPagination.vue2.js +4 -0
- package/dist/components/XPopconfirm.vue.d.ts +82 -77
- package/dist/components/XPopconfirm.vue.js +90 -0
- package/dist/components/XPopconfirm.vue2.js +4 -0
- package/dist/components/XPopover.vue.d.ts +3 -3
- package/dist/components/XPopover.vue.js +53 -0
- package/dist/components/XPopover.vue2.js +4 -0
- package/dist/components/XProgress.vue.d.ts +2 -2
- package/dist/components/XProgress.vue.js +263 -0
- package/dist/components/XProgress.vue2.js +4 -0
- package/dist/components/XQRCode.vue.d.ts +3 -3
- package/dist/components/XQRCode.vue.js +141 -0
- package/dist/components/XQRCode.vue2.js +4 -0
- package/dist/components/XRadio.vue.d.ts +1 -1
- package/dist/components/XRadio.vue.js +138 -0
- package/dist/components/XRadio.vue2.js +4 -0
- package/dist/components/XRadioButton.vue.d.ts +1 -1
- package/dist/components/XRadioButton.vue.js +41 -0
- package/dist/components/XRadioButton.vue2.js +4 -0
- package/dist/components/XRadioGroup.vue.d.ts +3 -3
- package/dist/components/XRadioGroup.vue.js +168 -0
- package/dist/components/XRadioGroup.vue2.js +4 -0
- package/dist/components/XRate.vue.d.ts +3 -3
- package/dist/components/XRate.vue.js +145 -0
- package/dist/components/XRate.vue2.js +4 -0
- package/dist/components/XResizeBox.vue.d.ts +41 -9
- package/dist/components/XResizeBox.vue.js +184 -0
- package/dist/components/XResizeBox.vue2.js +4 -0
- package/dist/components/XResult.vue.js +78 -0
- package/dist/components/XResult.vue2.js +4 -0
- package/dist/components/XRichTextEditor.vue.d.ts +2 -2
- package/dist/components/XRichTextEditor.vue.js +7 -0
- package/dist/components/XRichTextEditor.vue2.js +742 -0
- package/dist/components/XScrollbar.vue.d.ts +176 -5
- package/dist/components/XScrollbar.vue.js +190 -0
- package/dist/components/XScrollbar.vue2.js +4 -0
- package/dist/components/XScrollbarThumb.vue.d.ts +22 -0
- package/dist/components/XScrollbarThumb.vue.js +97 -0
- package/dist/components/XScrollbarThumb.vue2.js +4 -0
- package/dist/components/XSegmented.vue.js +7 -0
- package/dist/components/XSegmented.vue2.js +71 -0
- package/dist/components/XSelect.vue.d.ts +27 -27
- package/dist/components/XSelect.vue.js +858 -0
- package/dist/components/XSelect.vue2.js +4 -0
- package/dist/components/XSkeleton.vue.d.ts +100 -29
- package/dist/components/XSkeleton.vue.js +37 -0
- package/dist/components/XSkeleton.vue2.js +59 -0
- package/dist/components/XSkeletonLine.vue.d.ts +15 -0
- package/dist/components/XSkeletonLine.vue.js +36 -0
- package/dist/components/XSkeletonLine.vue2.js +4 -0
- package/dist/components/XSkeletonShape.vue.d.ts +9 -0
- package/dist/components/XSkeletonShape.vue.js +21 -0
- package/dist/components/XSkeletonShape.vue2.js +4 -0
- package/dist/components/XSlider.vue.d.ts +86 -86
- package/dist/components/XSlider.vue.js +402 -0
- package/dist/components/XSlider.vue2.js +4 -0
- package/dist/components/XSpace.vue.d.ts +59 -28
- package/dist/components/XSpace.vue.js +125 -0
- package/dist/components/XSpace.vue2.js +4 -0
- package/dist/components/XSpin.vue.js +54 -0
- package/dist/components/XSpin.vue2.js +4 -0
- package/dist/components/XSplit.vue.d.ts +3 -3
- package/dist/components/XSplit.vue.js +7 -0
- package/dist/components/XSplit.vue2.js +126 -0
- package/dist/components/XStatistic.vue.d.ts +5 -5
- package/dist/components/XStatistic.vue.js +7 -0
- package/dist/components/XStatistic.vue2.js +176 -0
- package/dist/components/XStep.vue.d.ts +3 -3
- package/dist/components/XStep.vue.js +91 -0
- package/dist/components/XStep.vue2.js +4 -0
- package/dist/components/XSteps.vue.d.ts +2 -2
- package/dist/components/XSteps.vue.js +73 -0
- package/dist/components/XSteps.vue2.js +4 -0
- package/dist/components/XSubMenu.vue.d.ts +30 -30
- package/dist/components/XSubMenu.vue.js +109 -0
- package/dist/components/XSubMenu.vue2.js +69 -0
- package/dist/components/XSubMenuInline.vue.js +74 -0
- package/dist/components/XSubMenuInline.vue2.js +56 -0
- package/dist/components/XSubMenuPop.vue.d.ts +29 -29
- package/dist/components/XSubMenuPop.vue.js +91 -0
- package/dist/components/XSubMenuPop.vue2.js +113 -0
- package/dist/components/XSwitch.vue.d.ts +5 -5
- package/dist/components/XSwitch.vue.js +133 -0
- package/dist/components/XSwitch.vue2.js +4 -0
- package/dist/components/XTabPane.vue.d.ts +4 -4
- package/dist/components/XTabPane.vue.js +59 -0
- package/dist/components/XTabPane.vue2.js +4 -0
- package/dist/components/XTable.vue.d.ts +5 -5
- package/dist/components/XTable.vue.js +7 -0
- package/dist/components/XTable.vue2.js +1059 -0
- package/dist/components/XTableFilter.vue.js +7 -0
- package/dist/components/XTableFilter.vue2.js +141 -0
- package/dist/components/XTabs.vue.d.ts +53 -25
- package/dist/components/XTabs.vue.js +402 -0
- package/dist/components/XTabs.vue2.js +4 -0
- package/dist/components/XTag.vue.d.ts +5 -3
- package/dist/components/XTag.vue.js +126 -0
- package/dist/components/XTag.vue2.js +4 -0
- package/dist/components/XTextarea.vue.d.ts +9 -9
- package/dist/components/XTextarea.vue.js +261 -0
- package/dist/components/XTextarea.vue2.js +4 -0
- package/dist/components/XTimePicker.vue.d.ts +13 -13
- package/dist/components/XTimePicker.vue.js +827 -0
- package/dist/components/XTimePicker.vue2.js +4 -0
- package/dist/components/XTimeline.vue.d.ts +2 -2
- package/dist/components/XTimeline.vue.js +84 -0
- package/dist/components/XTimeline.vue2.js +4 -0
- package/dist/components/XTimelineItem.vue.d.ts +3 -3
- package/dist/components/XTimelineItem.vue.js +202 -0
- package/dist/components/XTimelineItem.vue2.js +4 -0
- package/dist/components/XTooltip.vue.d.ts +76 -76
- package/dist/components/XTooltip.vue.js +78 -0
- package/dist/components/XTooltip.vue2.js +4 -0
- package/dist/components/XTour.vue.js +120 -0
- package/dist/components/XTour.vue2.js +4 -0
- package/dist/components/XTr.vue.js +12 -0
- package/dist/components/XTransfer.vue.js +128 -0
- package/dist/components/XTransfer.vue2.js +4 -0
- package/dist/components/XTree.vue.d.ts +3 -1
- package/dist/components/XTree.vue.js +7 -0
- package/dist/components/XTree.vue2.js +601 -0
- package/dist/components/XTreeNode.vue.js +7 -0
- package/dist/components/XTreeNode.vue2.js +314 -0
- package/dist/components/XTreeSelect.vue.d.ts +175 -29
- package/dist/components/XTreeSelect.vue.js +7 -0
- package/dist/components/XTreeSelect.vue2.js +715 -0
- package/dist/components/XTrigger.vue.d.ts +6 -6
- package/dist/components/XTrigger.vue.js +492 -0
- package/dist/components/XTrigger.vue2.js +4 -0
- package/dist/components/XTypography.vue.d.ts +4 -4
- package/dist/components/XTypography.vue.js +51 -0
- package/dist/components/XTypography.vue2.js +126 -0
- package/dist/components/XTypographyParagraph.vue.d.ts +2 -2
- package/dist/components/XTypographyParagraph.vue.js +83 -0
- package/dist/components/XTypographyParagraph.vue2.js +4 -0
- package/dist/components/XTypographyText.vue.d.ts +3 -3
- package/dist/components/XTypographyText.vue.js +76 -0
- package/dist/components/XTypographyText.vue2.js +4 -0
- package/dist/components/XTypographyTitle.vue.d.ts +2 -2
- package/dist/components/XTypographyTitle.vue.js +77 -0
- package/dist/components/XTypographyTitle.vue2.js +4 -0
- package/dist/components/XUpload.vue.d.ts +7 -5
- package/dist/components/XUpload.vue.js +7 -0
- package/dist/components/XUpload.vue2.js +1060 -0
- package/dist/components/XVerificationCode.vue.d.ts +3 -3
- package/dist/components/XVerificationCode.vue.js +149 -0
- package/dist/components/XVerificationCode.vue2.js +4 -0
- package/dist/components/XWatermark.vue.d.ts +30 -4
- package/dist/components/XWatermark.vue.js +204 -0
- package/dist/components/XWatermark.vue2.js +4 -0
- package/dist/components/index.d.ts +504 -1
- package/dist/components/index.js +308 -0
- package/dist/components/result-assets/result-403.svg.js +4 -0
- package/dist/components/result-assets/result-404.svg.js +4 -0
- package/dist/components/result-assets/result-500.svg.js +4 -0
- package/dist/components/statistic-utils.js +81 -0
- package/dist/components/timelineContext.js +4 -0
- package/dist/components/x-breadcrumb-context.d.ts +9 -0
- package/dist/components/x-breadcrumb-context.js +4 -0
- package/dist/components/x-checkbox-context.d.ts +19 -0
- package/dist/components/x-checkbox-context.js +4 -0
- package/dist/components/x-dropdown-context.d.ts +7 -0
- package/dist/components/x-dropdown-context.js +4 -0
- package/dist/components/x-icon-shared.d.ts +1 -1
- package/dist/components/x-icon-shared.js +151 -0
- package/dist/components/x-list-shared.d.ts +20 -8
- package/dist/components/x-radio-context.js +4 -0
- package/dist/components/x-scrollbar-types.d.ts +5 -0
- package/dist/composables/collapse.d.ts +8 -5
- package/dist/composables/collapse.js +9 -0
- package/dist/composables/config-provider.d.ts +29 -0
- package/dist/composables/config-provider.js +48 -0
- package/dist/composables/config.js +39 -0
- package/dist/composables/form.js +397 -0
- package/dist/composables/i18n.d.ts +4 -2
- package/dist/composables/i18n.js +257 -0
- package/dist/composables/menu-context.js +6 -0
- package/dist/composables/menu-hooks/use-level.js +25 -0
- package/dist/composables/menu-hooks/use-menu-context.js +8 -0
- package/dist/composables/menu-hooks/use-menu-data-collector.js +63 -0
- package/dist/composables/menu-hooks/use-menu-open-state.js +120 -0
- package/dist/composables/menu-hooks/use-menu.js +19 -0
- package/dist/composables/popup.js +177 -0
- package/dist/composables/scrollbar-visibility.d.ts +1 -0
- package/dist/composables/scrollbar-visibility.js +96 -0
- package/dist/composables/steps.d.ts +1 -0
- package/dist/composables/steps.js +9 -0
- package/dist/composables/tabs.d.ts +19 -8
- package/dist/composables/tabs.js +10 -0
- package/dist/composables/theme-context.d.ts +9 -0
- package/dist/composables/theme-context.js +24 -0
- package/dist/composables/theme.js +53 -0
- package/dist/composables/useMergeState.js +27 -0
- package/dist/composables/useResponsive.js +36 -0
- package/dist/iconfont/generated/icons/guanbi.js +7 -0
- package/dist/iconfont/generated/icons/shijian.js +7 -0
- package/dist/iconfont/internal-icons.js +71 -0
- package/dist/index.cjs +10 -11
- package/dist/index.css +14834 -0
- package/dist/index.js +382 -27802
- package/dist/index.less +14834 -0
- package/dist/install.js +39 -0
- package/dist/locales/ar-EG.js +5 -0
- package/dist/locales/da-DK.d.ts +381 -0
- package/dist/locales/da-DK.js +5 -0
- package/dist/locales/de-DE.js +5 -0
- package/dist/locales/en-US.js +312 -0
- package/dist/locales/es-ES.js +5 -0
- package/dist/locales/fr-FR.js +5 -0
- package/dist/locales/id-ID.js +5 -0
- package/dist/locales/it-IT.js +5 -0
- package/dist/locales/ja-JP.js +5 -0
- package/dist/locales/km-KH.js +5 -0
- package/dist/locales/ko-KR.js +5 -0
- package/dist/locales/ms-MY.js +5 -0
- package/dist/locales/nl-NL.d.ts +381 -0
- package/dist/locales/nl-NL.js +5 -0
- package/dist/locales/pt-PT.js +5 -0
- package/dist/locales/ru-RU.js +5 -0
- package/dist/locales/th-TH.js +5 -0
- package/dist/locales/vi-VN.js +5 -0
- package/dist/locales/zh-CN.js +312 -0
- package/dist/locales/zh-TW.js +5 -0
- package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
- package/dist/node_modules/qrcode/lib/browser.js +45 -0
- package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
- package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
- package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
- package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
- package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
- package/dist/node_modules/qrcode/lib/core/byte-data.js +23 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
- package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
- package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
- package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
- package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
- package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
- package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
- package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
- package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
- package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
- package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
- package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
- package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
- package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
- package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
- package/dist/node_modules/qrcode/lib/core/version.js +74 -0
- package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
- package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
- package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
- package/dist/style.css +14834 -1
- package/dist/style.less +14834 -0
- package/package.json +12 -4
- package/dist/components/__tests__/XAffix.test.d.ts +0 -1
- package/dist/components/__tests__/XButton.test.d.ts +0 -1
- package/dist/components/__tests__/XCard.test.d.ts +0 -1
- package/dist/components/__tests__/XCarousel.test.d.ts +0 -1
- package/dist/components/__tests__/XCascader.test.d.ts +0 -1
- package/dist/components/__tests__/XCropper.test.d.ts +0 -1
- package/dist/components/__tests__/XMention.test.d.ts +0 -1
- package/dist/components/__tests__/XMenuAccordion.test.d.ts +0 -1
- package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
- package/dist/components/__tests__/XSwitch.test.d.ts +0 -1
- package/dist/components/__tests__/XTable.test.d.ts +0 -1
- package/dist/components/__tests__/XTag.test.d.ts +0 -1
- package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
- package/dist/components/__tests__/XTree.test.d.ts +0 -1
- package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
- package/dist/favicon.ico +0 -1
- package/dist/favicon.svg +0 -5
- package/dist/images/carousel-0.png +0 -0
- package/dist/images/carousel-2.png +0 -0
- package/dist/images/carousel-3.png +0 -0
- package/dist/images/image-1.png +0 -0
- package/dist/img/avatar-1.jpg +0 -0
- package/dist/img/avatar.jpg +0 -0
- package/dist/img/avatar0.jpg +0 -0
- package/dist/img/avatar1.jpg +0 -0
- package/dist/img/image-1.png +0 -0
- package/dist/img/image-2.png +0 -0
- package/dist/img/image-3.png +0 -0
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,827 @@
|
|
|
1
|
+
import { defineComponent as Lt, computed as u, ref as h, watch as ye, nextTick as Z, openBlock as c, createBlock as Ye, mergeProps as Wt, withCtx as ce, createElementVNode as g, createElementBlock as m, Fragment as de, renderList as me, normalizeClass as ee, toDisplayString as K, createCommentVNode as P, renderSlot as _e, createTextVNode as Ge, unref as N, createVNode as ke } from "vue";
|
|
2
|
+
import Je from "./XButton.vue.js";
|
|
3
|
+
import Qe from "./XIcon.js";
|
|
4
|
+
import "./XIconLite.js";
|
|
5
|
+
import Xt from "./XTrigger.vue.js";
|
|
6
|
+
import Ze from "../iconfont/generated/icons/guanbi.js";
|
|
7
|
+
import et from "../iconfont/generated/icons/shijian.js";
|
|
8
|
+
import { useXConfig as Kt, sizeClass as Ut } from "../composables/config.js";
|
|
9
|
+
import { useXFormField as jt } from "../composables/form.js";
|
|
10
|
+
import { useXI18n as qt } from "../composables/i18n.js";
|
|
11
|
+
import { XIconRegistry as fe } from "./x-icon-shared.js";
|
|
12
|
+
const Yt = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "x-time-picker__prefix"
|
|
15
|
+
}, Gt = ["id", "value", "placeholder", "disabled", "readonly"], Jt = {
|
|
16
|
+
key: 2,
|
|
17
|
+
class: "x-time-picker__range-wrap"
|
|
18
|
+
}, Qt = ["id", "value", "placeholder", "disabled", "readonly"], Zt = ["value", "placeholder", "disabled", "readonly"], en = { class: "x-time-picker__suffix" }, tn = { class: "x-time-picker__dropdown" }, nn = ["onClick"], ln = { class: "x-time-picker__cell-inner" }, on = ["onClick"], un = { class: "x-time-picker__cell-inner" }, rn = ["onClick"], an = { class: "x-time-picker__cell-inner" }, sn = ["onClick"], cn = { class: "x-time-picker__cell-inner" }, dn = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "x-time-picker__footer-extra-wrapper"
|
|
21
|
+
}, mn = {
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "x-time-picker__footer-btn-wrapper"
|
|
24
|
+
}, Cn = /* @__PURE__ */ Lt({
|
|
25
|
+
__name: "XTimePicker",
|
|
26
|
+
props: {
|
|
27
|
+
type: { default: "time" },
|
|
28
|
+
modelValue: { default: void 0 },
|
|
29
|
+
defaultValue: { default: void 0 },
|
|
30
|
+
disabled: { type: Boolean, default: !1 },
|
|
31
|
+
allowClear: { type: Boolean, default: !0 },
|
|
32
|
+
readonly: { type: Boolean, default: !1 },
|
|
33
|
+
error: { type: Boolean, default: !1 },
|
|
34
|
+
format: { default: "HH:mm:ss" },
|
|
35
|
+
placeholder: { default: void 0 },
|
|
36
|
+
size: { default: void 0 },
|
|
37
|
+
popupContainer: { default: "body" },
|
|
38
|
+
use12Hours: { type: Boolean, default: !1 },
|
|
39
|
+
step: { default: void 0 },
|
|
40
|
+
disabledHours: { type: Function, default: void 0 },
|
|
41
|
+
disabledMinutes: { type: Function, default: void 0 },
|
|
42
|
+
disabledSeconds: { type: Function, default: void 0 },
|
|
43
|
+
hideDisabledOptions: { type: Boolean, default: !1 },
|
|
44
|
+
disableConfirm: { type: Boolean, default: !1 },
|
|
45
|
+
position: { default: "bl" },
|
|
46
|
+
popupVisible: { type: Boolean, default: void 0 },
|
|
47
|
+
defaultPopupVisible: { type: Boolean, default: !1 },
|
|
48
|
+
triggerProps: { default: () => ({}) },
|
|
49
|
+
unmountOnClose: { type: Boolean, default: !1 },
|
|
50
|
+
open: { type: Boolean, default: void 0 },
|
|
51
|
+
defaultOpen: { type: Boolean, default: void 0 },
|
|
52
|
+
hourStep: { default: void 0 },
|
|
53
|
+
minuteStep: { default: void 0 },
|
|
54
|
+
secondStep: { default: void 0 },
|
|
55
|
+
showNowButton: { type: Boolean, default: void 0 }
|
|
56
|
+
},
|
|
57
|
+
emits: ["change", "select", "update:modelValue", "clear", "popup-visible-change", "popupVisibleChange", "update:popupVisible", "update:open", "focus", "blur"],
|
|
58
|
+
setup(x, { emit: tt }) {
|
|
59
|
+
const U = /HH|hh|mm|ss|SSS|SS|S|H|h|m|s|A|a/g;
|
|
60
|
+
fe.has("shijian") || fe.register("shijian", {
|
|
61
|
+
viewBox: et.viewBox,
|
|
62
|
+
content: et.content
|
|
63
|
+
}), fe.has("guanbi") || fe.register("guanbi", {
|
|
64
|
+
viewBox: Ze.viewBox,
|
|
65
|
+
content: Ze.content
|
|
66
|
+
});
|
|
67
|
+
function M(e) {
|
|
68
|
+
return `${e}`.padStart(2, "0");
|
|
69
|
+
}
|
|
70
|
+
function xe(e) {
|
|
71
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
72
|
+
}
|
|
73
|
+
function D(e) {
|
|
74
|
+
if (e)
|
|
75
|
+
return {
|
|
76
|
+
hour24: e.hour24,
|
|
77
|
+
minute: e.minute,
|
|
78
|
+
second: e.second,
|
|
79
|
+
millisecond: e.millisecond
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function $(e) {
|
|
83
|
+
return [D(e[0]), D(e[1])];
|
|
84
|
+
}
|
|
85
|
+
function Se(e) {
|
|
86
|
+
return e.hour24 * 3600 + e.minute * 60 + e.second;
|
|
87
|
+
}
|
|
88
|
+
function te(e) {
|
|
89
|
+
return !!(e[0] && e[1]);
|
|
90
|
+
}
|
|
91
|
+
function nt(e) {
|
|
92
|
+
return !e[0] || !e[1] || Se(e[0]) <= Se(e[1]) ? $(e) : [D(e[1]), D(e[0])];
|
|
93
|
+
}
|
|
94
|
+
function Ce(e) {
|
|
95
|
+
const n = [];
|
|
96
|
+
let t = !1, o;
|
|
97
|
+
for (U.lastIndex = 0; o = U.exec(e); ) {
|
|
98
|
+
const i = o[0], r = i === "A" || i === "a" ? i : i.charAt(0);
|
|
99
|
+
n.includes(r) || n.push(r), (i === "A" || i === "a") && (t = !0);
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
list: n,
|
|
103
|
+
use12Hours: t
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function lt(e, n) {
|
|
107
|
+
const t = e == null ? void 0 : e.trim();
|
|
108
|
+
return !t || !Ce(t).list.length ? n ? "hh:mm:ss a" : "HH:mm:ss" : t;
|
|
109
|
+
}
|
|
110
|
+
function F(e, n, t) {
|
|
111
|
+
const o = {
|
|
112
|
+
HH: "(\\d{2})",
|
|
113
|
+
H: "(\\d{1,2})",
|
|
114
|
+
hh: "(\\d{2})",
|
|
115
|
+
h: "(\\d{1,2})",
|
|
116
|
+
mm: "(\\d{2})",
|
|
117
|
+
m: "(\\d{1,2})",
|
|
118
|
+
ss: "(\\d{2})",
|
|
119
|
+
s: "(\\d{1,2})",
|
|
120
|
+
SSS: "(\\d{3})",
|
|
121
|
+
SS: "(\\d{2})",
|
|
122
|
+
S: "(\\d{1})",
|
|
123
|
+
A: "([AP]M)",
|
|
124
|
+
a: "([ap]m)"
|
|
125
|
+
}, i = [];
|
|
126
|
+
let r = "^", a = 0;
|
|
127
|
+
U.lastIndex = 0;
|
|
128
|
+
let k;
|
|
129
|
+
for (; k = U.exec(n); ) {
|
|
130
|
+
const d = k[0];
|
|
131
|
+
r += xe(n.slice(a, k.index)), r += o[d], i.push(d), a = k.index + d.length;
|
|
132
|
+
}
|
|
133
|
+
r += xe(n.slice(a)), r += "$";
|
|
134
|
+
const V = new RegExp(r, "i").exec(e.trim());
|
|
135
|
+
if (!V)
|
|
136
|
+
return;
|
|
137
|
+
let w, W, ae = 0, se = 0, X = 0, je;
|
|
138
|
+
if (i.forEach((d, Et) => {
|
|
139
|
+
const qe = V[Et + 1], A = Number(qe);
|
|
140
|
+
if (d === "HH" || d === "H") {
|
|
141
|
+
w = A;
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (d === "hh" || d === "h") {
|
|
145
|
+
W = A;
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (d === "mm" || d === "m") {
|
|
149
|
+
ae = A;
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (d === "ss" || d === "s") {
|
|
153
|
+
se = A;
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
if (d === "SSS") {
|
|
157
|
+
X = A;
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (d === "SS") {
|
|
161
|
+
X = A * 10;
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (d === "S") {
|
|
165
|
+
X = A * 100;
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
if (d === "A" || d === "a") {
|
|
169
|
+
const be = qe.toLowerCase();
|
|
170
|
+
(be === "am" || be === "pm") && (je = be);
|
|
171
|
+
}
|
|
172
|
+
}), !(ae < 0 || ae > 59 || se < 0 || se > 59 || X < 0 || X > 999)) {
|
|
173
|
+
if (w === void 0)
|
|
174
|
+
if (W === void 0)
|
|
175
|
+
w = 0;
|
|
176
|
+
else {
|
|
177
|
+
if (W < 1 || W > 12)
|
|
178
|
+
return;
|
|
179
|
+
w = (je ?? "am") === "pm" ? W % 12 + 12 : W % 12;
|
|
180
|
+
}
|
|
181
|
+
if (!(w < 0 || w > 23))
|
|
182
|
+
return {
|
|
183
|
+
hour24: w,
|
|
184
|
+
minute: ae,
|
|
185
|
+
second: se,
|
|
186
|
+
millisecond: X
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
function T(e, n, t) {
|
|
191
|
+
if (!(e == null || e === "")) {
|
|
192
|
+
if (e instanceof Date && !Number.isNaN(e.getTime()))
|
|
193
|
+
return {
|
|
194
|
+
hour24: e.getHours(),
|
|
195
|
+
minute: e.getMinutes(),
|
|
196
|
+
second: e.getSeconds(),
|
|
197
|
+
millisecond: e.getMilliseconds()
|
|
198
|
+
};
|
|
199
|
+
if (typeof e == "number") {
|
|
200
|
+
const o = new Date(e);
|
|
201
|
+
return Number.isNaN(o.getTime()) ? void 0 : {
|
|
202
|
+
hour24: o.getHours(),
|
|
203
|
+
minute: o.getMinutes(),
|
|
204
|
+
second: o.getSeconds(),
|
|
205
|
+
millisecond: o.getMilliseconds()
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
if (typeof e == "string")
|
|
209
|
+
return F(e, n, t) ?? F(e, "HH:mm:ss", !1) ?? F(e, "HH:mm", !1) ?? F(e, "hh:mm:ss A", !0) ?? F(e, "hh:mm:ss a", !0) ?? F(e, "h:mm:ss A", !0) ?? F(e, "h:mm A", !0);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function R(e, n) {
|
|
213
|
+
if (!e) return;
|
|
214
|
+
const t = e.hour24 % 12 === 0 ? 12 : e.hour24 % 12, o = e.hour24 >= 12 ? "pm" : "am";
|
|
215
|
+
return n.replace(U, (i) => {
|
|
216
|
+
switch (i) {
|
|
217
|
+
case "HH":
|
|
218
|
+
return M(e.hour24);
|
|
219
|
+
case "H":
|
|
220
|
+
return `${e.hour24}`;
|
|
221
|
+
case "hh":
|
|
222
|
+
return M(t);
|
|
223
|
+
case "h":
|
|
224
|
+
return `${t}`;
|
|
225
|
+
case "mm":
|
|
226
|
+
return M(e.minute);
|
|
227
|
+
case "m":
|
|
228
|
+
return `${e.minute}`;
|
|
229
|
+
case "ss":
|
|
230
|
+
return M(e.second);
|
|
231
|
+
case "s":
|
|
232
|
+
return `${e.second}`;
|
|
233
|
+
case "SSS":
|
|
234
|
+
return `${e.millisecond}`.padStart(3, "0");
|
|
235
|
+
case "SS":
|
|
236
|
+
return `${Math.floor(e.millisecond / 10)}`.padStart(2, "0");
|
|
237
|
+
case "S":
|
|
238
|
+
return `${Math.floor(e.millisecond / 100)}`;
|
|
239
|
+
case "A":
|
|
240
|
+
return o.toUpperCase();
|
|
241
|
+
case "a":
|
|
242
|
+
return o;
|
|
243
|
+
default:
|
|
244
|
+
return i;
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
function O(e) {
|
|
249
|
+
if (!e) return;
|
|
250
|
+
const n = /* @__PURE__ */ new Date();
|
|
251
|
+
return n.setHours(e.hour24, e.minute, e.second, e.millisecond), n;
|
|
252
|
+
}
|
|
253
|
+
function Ve(e, n, t) {
|
|
254
|
+
return Array.isArray(e) ? [
|
|
255
|
+
T(e[0], n, t),
|
|
256
|
+
T(e[1], n, t)
|
|
257
|
+
] : e == null || e === "" ? [void 0, void 0] : [T(e, n, t), void 0];
|
|
258
|
+
}
|
|
259
|
+
const l = x, p = tt, ot = Kt(), s = jt(), { t: j } = qt(), it = u(() => l.type === "time-range" || l.type === "range" ? "time-range" : "time"), B = u(() => it.value === "time-range"), Be = u(() => lt(l.format, l.use12Hours)), z = u(() => Ce(Be.value)), v = u(() => Be.value), y = u(() => !!(l.use12Hours || z.value.use12Hours)), ut = u(() => l.size ?? ot.size.value), f = u(() => !!(l.disabled || s != null && s.disabled.value)), rt = u(() => !!(l.error || s != null && s.error.value)), at = u(() => l.showNowButton ?? !0), ne = u(() => {
|
|
260
|
+
var e, n, t;
|
|
261
|
+
return {
|
|
262
|
+
hour: Math.max(1, ((e = l.step) == null ? void 0 : e.hour) ?? l.hourStep ?? 1),
|
|
263
|
+
minute: Math.max(1, ((n = l.step) == null ? void 0 : n.minute) ?? l.minuteStep ?? 1),
|
|
264
|
+
second: Math.max(1, ((t = l.step) == null ? void 0 : t.second) ?? l.secondStep ?? 1)
|
|
265
|
+
};
|
|
266
|
+
}), st = u(() => typeof l.placeholder == "string" ? l.placeholder : Array.isArray(l.placeholder) ? l.placeholder[0] ?? l.placeholder[1] ?? j("timePicker.placeholder", void 0, "请选择时间") : j("timePicker.placeholder", void 0, "请选择时间")), He = u(() => {
|
|
267
|
+
const e = j("timePicker.placeholder", void 0, "请选择时间");
|
|
268
|
+
return Array.isArray(l.placeholder) ? [l.placeholder[0] ?? e, l.placeholder[1] ?? e] : typeof l.placeholder == "string" ? [l.placeholder, l.placeholder] : [e, e];
|
|
269
|
+
}), ct = u(() => T(l.modelValue, v.value, y.value)), dt = u(() => Ve(l.modelValue, v.value, y.value)), we = h(T(l.defaultValue, v.value, y.value)), Re = h(
|
|
270
|
+
Ve(l.defaultValue, v.value, y.value)
|
|
271
|
+
), le = u(() => l.modelValue !== void 0), q = u(() => le.value ? ct.value : we.value), E = u(() => le.value ? dt.value : Re.value), _ = h(D(q.value)), S = h($(E.value)), oe = h(void 0), Y = h([void 0, void 0]), C = h(0), Pe = h(!!(l.defaultOpen ?? l.defaultPopupVisible)), Me = u(() => l.popupVisible !== void 0 || l.open !== void 0), b = u(() => Me.value ? !!(l.popupVisible ?? l.open) : Pe.value), mt = u(() => ({
|
|
272
|
+
top: "top",
|
|
273
|
+
tl: "top-start",
|
|
274
|
+
tr: "top-end",
|
|
275
|
+
bottom: "bottom",
|
|
276
|
+
bl: "bottom-start",
|
|
277
|
+
br: "bottom-end"
|
|
278
|
+
})[l.position]), De = h(null), $e = h(null), Ie = h(null), Fe = h(null), Te = h(null), Ae = h(null), Ne = h(null), H = u(() => B.value ? S.value[C.value] : _.value), ft = u(() => {
|
|
279
|
+
const e = H.value;
|
|
280
|
+
if (e)
|
|
281
|
+
return y.value ? e.hour24 % 12 === 0 ? 12 : e.hour24 % 12 : e.hour24;
|
|
282
|
+
}), pe = u(() => {
|
|
283
|
+
const e = H.value;
|
|
284
|
+
return e && e.hour24 >= 12 ? "pm" : "am";
|
|
285
|
+
}), pt = u(() => z.value.list.includes("H") || z.value.list.includes("h")), vt = u(() => z.value.list.includes("m")), ht = u(() => z.value.list.includes("s")), gt = u(() => y.value), Oe = u(() => z.value.list.includes("A"));
|
|
286
|
+
function ve(e) {
|
|
287
|
+
if (e)
|
|
288
|
+
return y.value ? e.hour24 % 12 === 0 ? 12 : e.hour24 % 12 : e.hour24;
|
|
289
|
+
}
|
|
290
|
+
function L(e) {
|
|
291
|
+
var a, k, V;
|
|
292
|
+
if (!e) return !1;
|
|
293
|
+
const n = ve(e), t = y.value ? e.hour24 % 12 === 0 ? 12 : e.hour24 % 12 : e.hour24, o = ((a = l.disabledHours) == null ? void 0 : a.call(l)) ?? [], i = ((k = l.disabledMinutes) == null ? void 0 : k.call(l, n)) ?? [], r = ((V = l.disabledSeconds) == null ? void 0 : V.call(l, n, e.minute)) ?? [];
|
|
294
|
+
return o.includes(t) || i.includes(e.minute) || r.includes(e.second);
|
|
295
|
+
}
|
|
296
|
+
function bt(e) {
|
|
297
|
+
return e ? D(e) : {
|
|
298
|
+
hour24: 0,
|
|
299
|
+
minute: 0,
|
|
300
|
+
second: 0,
|
|
301
|
+
millisecond: 0
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function ze(e, n, t) {
|
|
305
|
+
const o = bt(e);
|
|
306
|
+
if (n === "hour") {
|
|
307
|
+
const r = Number(t);
|
|
308
|
+
if (y.value) {
|
|
309
|
+
const a = r % 12;
|
|
310
|
+
o.hour24 = pe.value === "pm" ? a + 12 : a;
|
|
311
|
+
} else
|
|
312
|
+
o.hour24 = r;
|
|
313
|
+
return o;
|
|
314
|
+
}
|
|
315
|
+
if (n === "minute")
|
|
316
|
+
return o.minute = Number(t), o;
|
|
317
|
+
if (n === "second")
|
|
318
|
+
return o.second = Number(t), o;
|
|
319
|
+
const i = o.hour24 % 12;
|
|
320
|
+
return o.hour24 = t === "pm" ? i + 12 : i, o;
|
|
321
|
+
}
|
|
322
|
+
function yt() {
|
|
323
|
+
var o;
|
|
324
|
+
const e = [], n = ((o = l.disabledHours) == null ? void 0 : o.call(l)) ?? [], t = ft.value;
|
|
325
|
+
if (y.value) {
|
|
326
|
+
for (let i = 0; i < 12; i += ne.value.hour) {
|
|
327
|
+
const r = i === 0 ? 12 : i, a = {
|
|
328
|
+
label: M(r),
|
|
329
|
+
value: r,
|
|
330
|
+
selected: t === r,
|
|
331
|
+
disabled: f.value || n.includes(r)
|
|
332
|
+
};
|
|
333
|
+
(!l.hideDisabledOptions || !a.disabled) && e.push(a);
|
|
334
|
+
}
|
|
335
|
+
return e;
|
|
336
|
+
}
|
|
337
|
+
for (let i = 0; i < 24; i += ne.value.hour) {
|
|
338
|
+
const r = {
|
|
339
|
+
label: M(i),
|
|
340
|
+
value: i,
|
|
341
|
+
selected: t === i,
|
|
342
|
+
disabled: f.value || n.includes(i)
|
|
343
|
+
};
|
|
344
|
+
(!l.hideDisabledOptions || !r.disabled) && e.push(r);
|
|
345
|
+
}
|
|
346
|
+
return e;
|
|
347
|
+
}
|
|
348
|
+
function _t() {
|
|
349
|
+
var i, r;
|
|
350
|
+
const e = ve(H.value), n = ((i = l.disabledMinutes) == null ? void 0 : i.call(l, e)) ?? [], t = (r = H.value) == null ? void 0 : r.minute, o = [];
|
|
351
|
+
for (let a = 0; a < 60; a += ne.value.minute) {
|
|
352
|
+
const k = {
|
|
353
|
+
label: M(a),
|
|
354
|
+
value: a,
|
|
355
|
+
selected: t === a,
|
|
356
|
+
disabled: f.value || n.includes(a)
|
|
357
|
+
};
|
|
358
|
+
(!l.hideDisabledOptions || !k.disabled) && o.push(k);
|
|
359
|
+
}
|
|
360
|
+
return o;
|
|
361
|
+
}
|
|
362
|
+
function kt() {
|
|
363
|
+
var r, a, k;
|
|
364
|
+
const e = ve(H.value), n = (r = H.value) == null ? void 0 : r.minute, t = ((a = l.disabledSeconds) == null ? void 0 : a.call(l, e, n)) ?? [], o = (k = H.value) == null ? void 0 : k.second, i = [];
|
|
365
|
+
for (let V = 0; V < 60; V += ne.value.second) {
|
|
366
|
+
const w = {
|
|
367
|
+
label: M(V),
|
|
368
|
+
value: V,
|
|
369
|
+
selected: o === V,
|
|
370
|
+
disabled: f.value || t.includes(V)
|
|
371
|
+
};
|
|
372
|
+
(!l.hideDisabledOptions || !w.disabled) && i.push(w);
|
|
373
|
+
}
|
|
374
|
+
return i;
|
|
375
|
+
}
|
|
376
|
+
const xt = u(() => yt()), St = u(() => _t()), Ct = u(() => kt()), Vt = u(() => [
|
|
377
|
+
{
|
|
378
|
+
label: Oe.value ? "AM" : "am",
|
|
379
|
+
value: "am",
|
|
380
|
+
selected: pe.value === "am",
|
|
381
|
+
disabled: f.value
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
label: Oe.value ? "PM" : "pm",
|
|
385
|
+
value: "pm",
|
|
386
|
+
selected: pe.value === "pm",
|
|
387
|
+
disabled: f.value
|
|
388
|
+
}
|
|
389
|
+
]), Bt = u(() => B.value ? !!(E.value[0] || E.value[1]) : !!q.value), Ht = u(() => {
|
|
390
|
+
if (oe.value !== void 0)
|
|
391
|
+
return oe.value;
|
|
392
|
+
const e = b.value ? _.value : q.value;
|
|
393
|
+
return R(e, v.value) ?? "";
|
|
394
|
+
}), Ee = u(() => {
|
|
395
|
+
const e = b.value ? S.value : E.value;
|
|
396
|
+
return [
|
|
397
|
+
Y.value[0] ?? R(e[0], v.value) ?? "",
|
|
398
|
+
Y.value[1] ?? R(e[1], v.value) ?? ""
|
|
399
|
+
];
|
|
400
|
+
}), wt = u(() => {
|
|
401
|
+
const e = B.value ? S.value[C.value] : _.value;
|
|
402
|
+
return !e || L(e);
|
|
403
|
+
});
|
|
404
|
+
function he() {
|
|
405
|
+
oe.value = void 0, Y.value = [void 0, void 0];
|
|
406
|
+
}
|
|
407
|
+
function G(e = C.value) {
|
|
408
|
+
var n, t, o;
|
|
409
|
+
if (B.value) {
|
|
410
|
+
e === 0 ? (n = $e.value) == null || n.focus() : (t = Ie.value) == null || t.focus();
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
(o = De.value) == null || o.focus();
|
|
414
|
+
}
|
|
415
|
+
function Rt(e) {
|
|
416
|
+
p("update:popupVisible", e), p("update:open", e), p("popup-visible-change", e), p("popupVisibleChange", e);
|
|
417
|
+
}
|
|
418
|
+
function I(e) {
|
|
419
|
+
e && (f.value || l.readonly) || e !== b.value && (Me.value || (Pe.value = e), Rt(e), e && Z(() => {
|
|
420
|
+
G();
|
|
421
|
+
}));
|
|
422
|
+
}
|
|
423
|
+
function Le(e) {
|
|
424
|
+
const n = R(e, v.value), t = O(e);
|
|
425
|
+
n === void 0 || t === void 0 || p("select", n, t);
|
|
426
|
+
}
|
|
427
|
+
function Pt(e) {
|
|
428
|
+
const n = [
|
|
429
|
+
R(e[0], v.value),
|
|
430
|
+
R(e[1], v.value)
|
|
431
|
+
], t = [
|
|
432
|
+
O(e[0]),
|
|
433
|
+
O(e[1])
|
|
434
|
+
];
|
|
435
|
+
p("select", n, t);
|
|
436
|
+
}
|
|
437
|
+
function J(e, n) {
|
|
438
|
+
if (L(e))
|
|
439
|
+
return;
|
|
440
|
+
const t = R(e, v.value), o = O(e);
|
|
441
|
+
le.value || (we.value = D(e)), p("update:modelValue", t), p("change", t, o), s == null || s.notifyChange(), n || I(!1);
|
|
442
|
+
}
|
|
443
|
+
function Q(e, n) {
|
|
444
|
+
if (e[0] && L(e[0]) || e[1] && L(e[1]))
|
|
445
|
+
return;
|
|
446
|
+
const t = nt(e), o = [
|
|
447
|
+
R(t[0], v.value),
|
|
448
|
+
R(t[1], v.value)
|
|
449
|
+
], i = o[0] || o[1] ? o : void 0, r = i ? [O(t[0]), O(t[1])] : void 0;
|
|
450
|
+
le.value || (Re.value = $(t)), p("update:modelValue", i), p("change", i, r), s == null || s.notifyChange(), n || I(!1);
|
|
451
|
+
}
|
|
452
|
+
function ie(e, n) {
|
|
453
|
+
if (n.disabled) return;
|
|
454
|
+
if (B.value) {
|
|
455
|
+
const o = $(S.value), i = o[C.value];
|
|
456
|
+
o[C.value] = ze(i, e, n.value), S.value = o, Pt(o), l.disableConfirm && te(o) && Q(o, !0);
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
const t = ze(_.value, e, n.value);
|
|
460
|
+
_.value = t, Le(t), l.disableConfirm && J(t, !0);
|
|
461
|
+
}
|
|
462
|
+
function Mt() {
|
|
463
|
+
if (B.value) {
|
|
464
|
+
const e = $(S.value);
|
|
465
|
+
if (!e[C.value])
|
|
466
|
+
return;
|
|
467
|
+
if (te(e)) {
|
|
468
|
+
Q(e, !1);
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
C.value = (C.value + 1) % 2, Z(() => {
|
|
472
|
+
G();
|
|
473
|
+
});
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
_.value && J(_.value, !1);
|
|
477
|
+
}
|
|
478
|
+
function Dt() {
|
|
479
|
+
const e = /* @__PURE__ */ new Date(), n = {
|
|
480
|
+
hour24: e.getHours(),
|
|
481
|
+
minute: e.getMinutes(),
|
|
482
|
+
second: e.getSeconds(),
|
|
483
|
+
millisecond: e.getMilliseconds()
|
|
484
|
+
};
|
|
485
|
+
_.value = n, Le(n);
|
|
486
|
+
}
|
|
487
|
+
function $t(e) {
|
|
488
|
+
e.stopPropagation(), B.value ? (S.value = [void 0, void 0], Q([void 0, void 0], !0)) : (_.value = void 0, J(void 0, !1)), he(), p("clear");
|
|
489
|
+
}
|
|
490
|
+
function ge() {
|
|
491
|
+
_.value = D(q.value), S.value = $(E.value);
|
|
492
|
+
}
|
|
493
|
+
function It() {
|
|
494
|
+
f.value || l.readonly || b.value || I(!0);
|
|
495
|
+
}
|
|
496
|
+
function Ft(e) {
|
|
497
|
+
p("focus", e), s == null || s.notifyFocus(e), b.value || I(!0);
|
|
498
|
+
}
|
|
499
|
+
function Tt(e) {
|
|
500
|
+
p("blur", e), s == null || s.notifyBlur(e);
|
|
501
|
+
}
|
|
502
|
+
function We(e, n) {
|
|
503
|
+
C.value = e, p("focus", n), s == null || s.notifyFocus(n), b.value || I(!0);
|
|
504
|
+
}
|
|
505
|
+
function Xe(e) {
|
|
506
|
+
p("blur", e), s == null || s.notifyBlur(e);
|
|
507
|
+
}
|
|
508
|
+
function At(e) {
|
|
509
|
+
if (l.readonly || f.value) return;
|
|
510
|
+
const t = e.target.value;
|
|
511
|
+
oe.value = t, b.value || I(!0);
|
|
512
|
+
const o = T(t, v.value, y.value);
|
|
513
|
+
!o || L(o) || (_.value = o, l.disableConfirm && J(o, !0));
|
|
514
|
+
}
|
|
515
|
+
function Ke(e, n) {
|
|
516
|
+
if (l.readonly || f.value) return;
|
|
517
|
+
const o = n.target.value, i = [...Y.value];
|
|
518
|
+
i[e] = o, Y.value = i, b.value || I(!0);
|
|
519
|
+
const r = T(o, v.value, y.value);
|
|
520
|
+
if (!r || L(r))
|
|
521
|
+
return;
|
|
522
|
+
const a = $(S.value);
|
|
523
|
+
a[e] = r, S.value = a, l.disableConfirm && te(a) && Q(a, !0);
|
|
524
|
+
}
|
|
525
|
+
function Nt(e) {
|
|
526
|
+
e.key === "Enter" && (e.preventDefault(), _.value && J(_.value, !1));
|
|
527
|
+
}
|
|
528
|
+
function Ue(e) {
|
|
529
|
+
if (e.key === "Enter") {
|
|
530
|
+
if (e.preventDefault(), te(S.value)) {
|
|
531
|
+
Q(S.value, !1);
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
C.value = (C.value + 1) % 2, Z(() => {
|
|
535
|
+
G();
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
function Ot() {
|
|
540
|
+
G();
|
|
541
|
+
}
|
|
542
|
+
function zt(e) {
|
|
543
|
+
const n = e.target;
|
|
544
|
+
n != null && n.closest(".x-time-picker__column") || (e.preventDefault(), e.stopPropagation());
|
|
545
|
+
}
|
|
546
|
+
function ue(e) {
|
|
547
|
+
const n = e.currentTarget;
|
|
548
|
+
if (!n) return;
|
|
549
|
+
const t = n.scrollHeight - n.clientHeight;
|
|
550
|
+
if (t <= 0) {
|
|
551
|
+
e.preventDefault(), e.stopPropagation();
|
|
552
|
+
return;
|
|
553
|
+
}
|
|
554
|
+
const o = Math.max(0, Math.min(t, n.scrollTop + e.deltaY));
|
|
555
|
+
n.scrollTop = o, e.preventDefault(), e.stopPropagation();
|
|
556
|
+
}
|
|
557
|
+
function re(e) {
|
|
558
|
+
if (!e) return;
|
|
559
|
+
const n = e.querySelector(".x-time-picker__cell-selected");
|
|
560
|
+
n && (e.scrollTop = n.offsetTop);
|
|
561
|
+
}
|
|
562
|
+
return ye(
|
|
563
|
+
b,
|
|
564
|
+
(e) => {
|
|
565
|
+
if (e) {
|
|
566
|
+
ge(), he(), Z(() => {
|
|
567
|
+
G();
|
|
568
|
+
});
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
he(), ge();
|
|
572
|
+
},
|
|
573
|
+
{ immediate: !0 }
|
|
574
|
+
), ye(
|
|
575
|
+
[q, E],
|
|
576
|
+
() => {
|
|
577
|
+
b.value || ge();
|
|
578
|
+
},
|
|
579
|
+
{ deep: !0 }
|
|
580
|
+
), ye(
|
|
581
|
+
[
|
|
582
|
+
b,
|
|
583
|
+
() => {
|
|
584
|
+
var e;
|
|
585
|
+
return (e = H.value) == null ? void 0 : e.hour24;
|
|
586
|
+
},
|
|
587
|
+
() => {
|
|
588
|
+
var e;
|
|
589
|
+
return (e = H.value) == null ? void 0 : e.minute;
|
|
590
|
+
},
|
|
591
|
+
() => {
|
|
592
|
+
var e;
|
|
593
|
+
return (e = H.value) == null ? void 0 : e.second;
|
|
594
|
+
},
|
|
595
|
+
C,
|
|
596
|
+
y
|
|
597
|
+
],
|
|
598
|
+
() => {
|
|
599
|
+
b.value && Z(() => {
|
|
600
|
+
re(Fe.value), re(Te.value), re(Ae.value), re(Ne.value);
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
), (e, n) => (c(), Ye(Xt, Wt(x.triggerProps, {
|
|
604
|
+
"popup-visible": b.value,
|
|
605
|
+
trigger: [],
|
|
606
|
+
position: mt.value,
|
|
607
|
+
disabled: f.value || x.readonly,
|
|
608
|
+
"popup-offset": 4,
|
|
609
|
+
"click-to-close": !1,
|
|
610
|
+
"prevent-focus": !0,
|
|
611
|
+
"auto-fit-transform-origin": !0,
|
|
612
|
+
"unmount-on-close": x.unmountOnClose,
|
|
613
|
+
"popup-container": x.popupContainer,
|
|
614
|
+
"content-class": "x-time-picker__panel",
|
|
615
|
+
"onUpdate:popupVisible": I
|
|
616
|
+
}), {
|
|
617
|
+
default: ce(() => {
|
|
618
|
+
var t, o;
|
|
619
|
+
return [
|
|
620
|
+
g("div", {
|
|
621
|
+
class: ee(["x-time-picker", [
|
|
622
|
+
N(Ut)(ut.value),
|
|
623
|
+
{
|
|
624
|
+
"is-open": b.value,
|
|
625
|
+
"is-disabled": f.value,
|
|
626
|
+
"is-error": rt.value,
|
|
627
|
+
"is-readonly": x.readonly,
|
|
628
|
+
"is-range": B.value
|
|
629
|
+
}
|
|
630
|
+
]]),
|
|
631
|
+
onClick: It
|
|
632
|
+
}, [
|
|
633
|
+
e.$slots.prefix ? (c(), m("span", Yt, [
|
|
634
|
+
_e(e.$slots, "prefix")
|
|
635
|
+
])) : P("", !0),
|
|
636
|
+
B.value ? (c(), m("div", Jt, [
|
|
637
|
+
g("input", {
|
|
638
|
+
ref_key: "rangeStartInputRef",
|
|
639
|
+
ref: $e,
|
|
640
|
+
id: (o = N(s)) == null ? void 0 : o.id,
|
|
641
|
+
class: "x-time-picker__inner x-time-picker__inner--range",
|
|
642
|
+
type: "text",
|
|
643
|
+
value: Ee.value[0],
|
|
644
|
+
placeholder: He.value[0],
|
|
645
|
+
disabled: f.value,
|
|
646
|
+
readonly: x.readonly,
|
|
647
|
+
onFocus: n[0] || (n[0] = (i) => We(0, i)),
|
|
648
|
+
onBlur: Xe,
|
|
649
|
+
onInput: n[1] || (n[1] = (i) => Ke(0, i)),
|
|
650
|
+
onKeydown: Ue
|
|
651
|
+
}, null, 40, Qt),
|
|
652
|
+
n[4] || (n[4] = g("span", { class: "x-time-picker__range-separator" }, "-", -1)),
|
|
653
|
+
g("input", {
|
|
654
|
+
ref_key: "rangeEndInputRef",
|
|
655
|
+
ref: Ie,
|
|
656
|
+
class: "x-time-picker__inner x-time-picker__inner--range",
|
|
657
|
+
type: "text",
|
|
658
|
+
value: Ee.value[1],
|
|
659
|
+
placeholder: He.value[1],
|
|
660
|
+
disabled: f.value,
|
|
661
|
+
readonly: x.readonly,
|
|
662
|
+
onFocus: n[2] || (n[2] = (i) => We(1, i)),
|
|
663
|
+
onBlur: Xe,
|
|
664
|
+
onInput: n[3] || (n[3] = (i) => Ke(1, i)),
|
|
665
|
+
onKeydown: Ue
|
|
666
|
+
}, null, 40, Zt)
|
|
667
|
+
])) : (c(), m("input", {
|
|
668
|
+
key: 1,
|
|
669
|
+
ref_key: "singleInputRef",
|
|
670
|
+
ref: De,
|
|
671
|
+
id: (t = N(s)) == null ? void 0 : t.id,
|
|
672
|
+
class: "x-time-picker__inner",
|
|
673
|
+
type: "text",
|
|
674
|
+
value: Ht.value,
|
|
675
|
+
placeholder: st.value,
|
|
676
|
+
disabled: f.value,
|
|
677
|
+
readonly: x.readonly,
|
|
678
|
+
onFocus: Ft,
|
|
679
|
+
onBlur: Tt,
|
|
680
|
+
onInput: At,
|
|
681
|
+
onKeydown: Nt
|
|
682
|
+
}, null, 40, Gt)),
|
|
683
|
+
x.allowClear && Bt.value && !f.value && !x.readonly ? (c(), m("button", {
|
|
684
|
+
key: 3,
|
|
685
|
+
type: "button",
|
|
686
|
+
class: "x-time-picker__clear",
|
|
687
|
+
onClick: $t
|
|
688
|
+
}, [
|
|
689
|
+
ke(N(Qe), {
|
|
690
|
+
name: "guanbi",
|
|
691
|
+
size: 12
|
|
692
|
+
})
|
|
693
|
+
])) : P("", !0),
|
|
694
|
+
g("span", en, [
|
|
695
|
+
_e(e.$slots, "suffix-icon", {}, () => [
|
|
696
|
+
ke(N(Qe), {
|
|
697
|
+
name: "shijian",
|
|
698
|
+
size: 14
|
|
699
|
+
})
|
|
700
|
+
])
|
|
701
|
+
])
|
|
702
|
+
], 2)
|
|
703
|
+
];
|
|
704
|
+
}),
|
|
705
|
+
content: ce(() => [
|
|
706
|
+
g("div", {
|
|
707
|
+
class: "x-time-picker__container",
|
|
708
|
+
onClick: Ot,
|
|
709
|
+
onWheel: zt
|
|
710
|
+
}, [
|
|
711
|
+
g("div", tn, [
|
|
712
|
+
pt.value ? (c(), m("div", {
|
|
713
|
+
key: 0,
|
|
714
|
+
ref_key: "hourColumnRef",
|
|
715
|
+
ref: Fe,
|
|
716
|
+
class: "x-time-picker__column",
|
|
717
|
+
onWheel: ue
|
|
718
|
+
}, [
|
|
719
|
+
g("ul", null, [
|
|
720
|
+
(c(!0), m(de, null, me(xt.value, (t) => (c(), m("li", {
|
|
721
|
+
key: `hour-${t.value}`,
|
|
722
|
+
class: ee(["x-time-picker__cell", {
|
|
723
|
+
"x-time-picker__cell-selected": t.selected,
|
|
724
|
+
"x-time-picker__cell-disabled": t.disabled
|
|
725
|
+
}]),
|
|
726
|
+
onClick: (o) => ie("hour", t)
|
|
727
|
+
}, [
|
|
728
|
+
g("div", ln, K(t.label), 1)
|
|
729
|
+
], 10, nn))), 128))
|
|
730
|
+
])
|
|
731
|
+
], 544)) : P("", !0),
|
|
732
|
+
vt.value ? (c(), m("div", {
|
|
733
|
+
key: 1,
|
|
734
|
+
ref_key: "minuteColumnRef",
|
|
735
|
+
ref: Te,
|
|
736
|
+
class: "x-time-picker__column",
|
|
737
|
+
onWheel: ue
|
|
738
|
+
}, [
|
|
739
|
+
g("ul", null, [
|
|
740
|
+
(c(!0), m(de, null, me(St.value, (t) => (c(), m("li", {
|
|
741
|
+
key: `minute-${t.value}`,
|
|
742
|
+
class: ee(["x-time-picker__cell", {
|
|
743
|
+
"x-time-picker__cell-selected": t.selected,
|
|
744
|
+
"x-time-picker__cell-disabled": t.disabled
|
|
745
|
+
}]),
|
|
746
|
+
onClick: (o) => ie("minute", t)
|
|
747
|
+
}, [
|
|
748
|
+
g("div", un, K(t.label), 1)
|
|
749
|
+
], 10, on))), 128))
|
|
750
|
+
])
|
|
751
|
+
], 544)) : P("", !0),
|
|
752
|
+
ht.value ? (c(), m("div", {
|
|
753
|
+
key: 2,
|
|
754
|
+
ref_key: "secondColumnRef",
|
|
755
|
+
ref: Ae,
|
|
756
|
+
class: "x-time-picker__column",
|
|
757
|
+
onWheel: ue
|
|
758
|
+
}, [
|
|
759
|
+
g("ul", null, [
|
|
760
|
+
(c(!0), m(de, null, me(Ct.value, (t) => (c(), m("li", {
|
|
761
|
+
key: `second-${t.value}`,
|
|
762
|
+
class: ee(["x-time-picker__cell", {
|
|
763
|
+
"x-time-picker__cell-selected": t.selected,
|
|
764
|
+
"x-time-picker__cell-disabled": t.disabled
|
|
765
|
+
}]),
|
|
766
|
+
onClick: (o) => ie("second", t)
|
|
767
|
+
}, [
|
|
768
|
+
g("div", an, K(t.label), 1)
|
|
769
|
+
], 10, rn))), 128))
|
|
770
|
+
])
|
|
771
|
+
], 544)) : P("", !0),
|
|
772
|
+
gt.value ? (c(), m("div", {
|
|
773
|
+
key: 3,
|
|
774
|
+
ref_key: "ampmColumnRef",
|
|
775
|
+
ref: Ne,
|
|
776
|
+
class: "x-time-picker__column",
|
|
777
|
+
onWheel: ue
|
|
778
|
+
}, [
|
|
779
|
+
g("ul", null, [
|
|
780
|
+
(c(!0), m(de, null, me(Vt.value, (t) => (c(), m("li", {
|
|
781
|
+
key: `ampm-${t.value}`,
|
|
782
|
+
class: ee(["x-time-picker__cell", {
|
|
783
|
+
"x-time-picker__cell-selected": t.selected,
|
|
784
|
+
"x-time-picker__cell-disabled": t.disabled
|
|
785
|
+
}]),
|
|
786
|
+
onClick: (o) => ie("ampm", t)
|
|
787
|
+
}, [
|
|
788
|
+
g("div", cn, K(t.label), 1)
|
|
789
|
+
], 10, sn))), 128))
|
|
790
|
+
])
|
|
791
|
+
], 544)) : P("", !0)
|
|
792
|
+
]),
|
|
793
|
+
e.$slots.extra ? (c(), m("div", dn, [
|
|
794
|
+
_e(e.$slots, "extra")
|
|
795
|
+
])) : P("", !0),
|
|
796
|
+
x.disableConfirm ? P("", !0) : (c(), m("div", mn, [
|
|
797
|
+
!B.value && at.value ? (c(), Ye(Je, {
|
|
798
|
+
key: 0,
|
|
799
|
+
size: "mini",
|
|
800
|
+
onClick: Dt
|
|
801
|
+
}, {
|
|
802
|
+
default: ce(() => [
|
|
803
|
+
Ge(K(N(j)("timePicker.nowButton", void 0, "此刻")), 1)
|
|
804
|
+
]),
|
|
805
|
+
_: 1
|
|
806
|
+
})) : P("", !0),
|
|
807
|
+
ke(Je, {
|
|
808
|
+
type: "primary",
|
|
809
|
+
size: "mini",
|
|
810
|
+
disabled: wt.value,
|
|
811
|
+
onClick: Mt
|
|
812
|
+
}, {
|
|
813
|
+
default: ce(() => [
|
|
814
|
+
Ge(K(N(j)("common.confirm", void 0, "确定")), 1)
|
|
815
|
+
]),
|
|
816
|
+
_: 1
|
|
817
|
+
}, 8, ["disabled"])
|
|
818
|
+
]))
|
|
819
|
+
], 32)
|
|
820
|
+
]),
|
|
821
|
+
_: 3
|
|
822
|
+
}, 16, ["popup-visible", "position", "disabled", "unmount-on-close", "popup-container"]));
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
export {
|
|
826
|
+
Cn as default
|
|
827
|
+
};
|