@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,1015 @@
|
|
|
1
|
+
import { defineComponent as Ya, useSlots as Za, ref as S, computed as r, watch as _e, nextTick as Fe, onBeforeUnmount as el, openBlock as s, createBlock as L, mergeProps as al, withCtx as va, createElementVNode as T, createElementBlock as u, createVNode as M, unref as v, renderSlot as w, resolveDynamicComponent as fa, normalizeClass as J, Fragment as X, renderList as ie, withModifiers as Q, createCommentVNode as h, createTextVNode as ce, toDisplayString as Y, normalizeStyle as be } from "vue";
|
|
2
|
+
import pa from "./XEmpty.vue.js";
|
|
3
|
+
import y from "./XIcon.js";
|
|
4
|
+
import ll from "./XTrigger.vue.js";
|
|
5
|
+
import { useXConfig as tl, sizeClass as nl } from "../composables/config.js";
|
|
6
|
+
import { useXConfigProviderSlotRender as sl } from "../composables/config-provider.js";
|
|
7
|
+
import { useXFormField as ul } from "../composables/form.js";
|
|
8
|
+
import { useXI18n as ol } from "../composables/i18n.js";
|
|
9
|
+
const rl = ["tabindex"], il = { class: "x-cascader__control" }, cl = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "x-cascader__prefix"
|
|
12
|
+
}, dl = { class: "x-cascader__value" }, vl = { class: "x-cascader__tag-text" }, fl = ["onClick"], pl = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "x-cascader__tag x-cascader__tag--rest"
|
|
15
|
+
}, hl = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "x-cascader__search-icon"
|
|
18
|
+
}, yl = ["value", "disabled", "placeholder"], gl = {
|
|
19
|
+
key: 3,
|
|
20
|
+
class: "x-cascader__display is-placeholder"
|
|
21
|
+
}, ml = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "x-cascader__search-icon"
|
|
24
|
+
}, kl = ["value", "disabled", "placeholder"], _l = { class: "x-cascader__suffix" }, bl = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "x-cascader__loading-icon"
|
|
27
|
+
}, xl = {
|
|
28
|
+
key: 2,
|
|
29
|
+
class: "x-cascader__arrow"
|
|
30
|
+
}, Cl = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "x-cascader__search-panel"
|
|
33
|
+
}, Ml = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "x-cascader__state"
|
|
36
|
+
}, wl = {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "x-cascader__state"
|
|
39
|
+
}, Ll = ["onClick", "onMouseenter"], Vl = {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "x-cascader__checkmark"
|
|
42
|
+
}, Bl = { class: "x-cascader__label" }, Ol = {
|
|
43
|
+
key: 1,
|
|
44
|
+
class: "x-cascader__check-icon"
|
|
45
|
+
}, Sl = ["onScroll"], Tl = ["onClick", "onMouseenter"], zl = {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "x-cascader__checkmark"
|
|
48
|
+
}, Kl = { class: "x-cascader__label" }, Pl = {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "x-cascader__loading"
|
|
51
|
+
}, Il = ["onClick"], $l = {
|
|
52
|
+
key: 3,
|
|
53
|
+
class: "x-cascader__check-icon"
|
|
54
|
+
}, Al = {
|
|
55
|
+
key: 1,
|
|
56
|
+
class: "x-cascader__column-scroll"
|
|
57
|
+
}, El = ["onClick", "onMouseenter"], Dl = {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "x-cascader__checkmark"
|
|
60
|
+
}, Fl = { class: "x-cascader__label" }, Nl = {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: "x-cascader__loading"
|
|
63
|
+
}, Rl = ["onClick"], Xl = {
|
|
64
|
+
key: 3,
|
|
65
|
+
class: "x-cascader__check-icon"
|
|
66
|
+
}, jl = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "x-cascader__state"
|
|
69
|
+
}, ha = "__x_cas__", et = /* @__PURE__ */ Ya({
|
|
70
|
+
__name: "XCascader",
|
|
71
|
+
props: {
|
|
72
|
+
modelValue: {},
|
|
73
|
+
defaultValue: {},
|
|
74
|
+
options: { default: () => [] },
|
|
75
|
+
placeholder: { default: "请选择" },
|
|
76
|
+
disabled: { type: Boolean, default: !1 },
|
|
77
|
+
error: { type: Boolean, default: !1 },
|
|
78
|
+
size: { default: void 0 },
|
|
79
|
+
allowClear: { type: Boolean },
|
|
80
|
+
allowSearch: { type: Boolean, default: void 0 },
|
|
81
|
+
inputValue: {},
|
|
82
|
+
defaultInputValue: { default: "" },
|
|
83
|
+
popupVisible: { type: Boolean, default: void 0 },
|
|
84
|
+
defaultPopupVisible: { type: Boolean, default: !1 },
|
|
85
|
+
expandTrigger: { default: "click" },
|
|
86
|
+
formatLabel: {},
|
|
87
|
+
multiple: { type: Boolean, default: !1 },
|
|
88
|
+
checkStrictly: { type: Boolean, default: !1 },
|
|
89
|
+
pathMode: { type: Boolean, default: !1 },
|
|
90
|
+
fallback: { type: [Boolean, Function], default: !0 },
|
|
91
|
+
loadMore: {},
|
|
92
|
+
loading: { type: Boolean, default: !1 },
|
|
93
|
+
fieldNames: { default: void 0 },
|
|
94
|
+
valueKey: { default: "value" },
|
|
95
|
+
expandChild: { type: Boolean, default: !1 },
|
|
96
|
+
virtualListProps: { default: void 0 },
|
|
97
|
+
maxTagCount: { default: 0 },
|
|
98
|
+
tagNowrap: { type: Boolean, default: !1 },
|
|
99
|
+
searchOptionOnlyLabel: { type: Boolean, default: !1 },
|
|
100
|
+
searchDelay: { default: 500 },
|
|
101
|
+
filterOption: { type: Function, default: void 0 },
|
|
102
|
+
popupContainer: { default: "body" },
|
|
103
|
+
triggerProps: { default: () => ({}) },
|
|
104
|
+
open: { type: Boolean, default: void 0 },
|
|
105
|
+
defaultOpen: { type: Boolean, default: !1 },
|
|
106
|
+
filterable: { type: Boolean, default: void 0 },
|
|
107
|
+
clearable: { type: Boolean, default: void 0 },
|
|
108
|
+
changeOnSelect: { type: Boolean, default: !1 },
|
|
109
|
+
align: { default: "left" }
|
|
110
|
+
},
|
|
111
|
+
emits: ["update:modelValue", "change", "update:popupVisible", "popupVisibleChange", "popup-visible-change", "update:open", "update:inputValue", "inputValueChange", "input-value-change", "clear", "search", "focus", "blur"],
|
|
112
|
+
setup(x, { expose: ya, emit: ga }) {
|
|
113
|
+
const ma = {
|
|
114
|
+
label: "label",
|
|
115
|
+
value: "value",
|
|
116
|
+
disabled: "disabled",
|
|
117
|
+
children: "children",
|
|
118
|
+
isLeaf: "isLeaf"
|
|
119
|
+
}, n = x, g = ga;
|
|
120
|
+
function xe(e) {
|
|
121
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
122
|
+
}
|
|
123
|
+
function ka(e) {
|
|
124
|
+
return e == null || e === "";
|
|
125
|
+
}
|
|
126
|
+
function de(e, a) {
|
|
127
|
+
return xe(e) ? String(e[a] ?? "") : String(e ?? "");
|
|
128
|
+
}
|
|
129
|
+
function Ce(e, a) {
|
|
130
|
+
return e.map((t) => {
|
|
131
|
+
const l = xe(t) ? t : {}, o = l[a.children], d = Array.isArray(o) ? Ce(o, a) : void 0;
|
|
132
|
+
return {
|
|
133
|
+
label: String(l[a.label] ?? l[a.value] ?? ""),
|
|
134
|
+
value: l[a.value],
|
|
135
|
+
disabled: !!l[a.disabled],
|
|
136
|
+
isLeaf: l[a.isLeaf],
|
|
137
|
+
children: d,
|
|
138
|
+
...l
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function Ne(e) {
|
|
143
|
+
return e.path.map((a) => a.label).join(" / ");
|
|
144
|
+
}
|
|
145
|
+
function _a(e, a, t) {
|
|
146
|
+
return Array.isArray(e) ? !a && e.length > 0 && !Array.isArray(e[0]) ? [e] : e : ka(e) ? [] : [e];
|
|
147
|
+
}
|
|
148
|
+
function ba(e, a, {
|
|
149
|
+
checkStrictly: t,
|
|
150
|
+
enabledLazyLoad: l,
|
|
151
|
+
valueKey: o
|
|
152
|
+
}) {
|
|
153
|
+
const d = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), R = [];
|
|
154
|
+
let Ie = 1;
|
|
155
|
+
const $e = (Ga, me, Ae = 1) => {
|
|
156
|
+
Ie = Math.max(Ie, Ae);
|
|
157
|
+
const ca = (me == null ? void 0 : me.path) ?? [];
|
|
158
|
+
return Ga.map((A, Ja) => {
|
|
159
|
+
var da;
|
|
160
|
+
const Qa = xe(A) ? A : {}, Ee = A.value, c = {
|
|
161
|
+
raw: Qa,
|
|
162
|
+
key: "",
|
|
163
|
+
valueKey: de(Ee, o),
|
|
164
|
+
value: Ee,
|
|
165
|
+
label: String(A.label ?? Ee ?? ""),
|
|
166
|
+
disabled: !!A.disabled,
|
|
167
|
+
selectionDisabled: !1,
|
|
168
|
+
isLeaf: A.isLeaf === !0,
|
|
169
|
+
parent: me,
|
|
170
|
+
children: void 0,
|
|
171
|
+
path: [],
|
|
172
|
+
pathValue: [],
|
|
173
|
+
level: ca.length,
|
|
174
|
+
index: Ja,
|
|
175
|
+
totalLeafOptions: void 0
|
|
176
|
+
}, De = [...ca, c];
|
|
177
|
+
c.path = De, c.pathValue = De.map((G) => G.value), c.key = De.map((G) => G.valueKey).join(ha);
|
|
178
|
+
const ke = a[c.key];
|
|
179
|
+
return (da = A.children) != null && da.length ? (c.isLeaf = !1, c.children = $e(A.children, c, Ae + 1)) : l && A.isLeaf !== !0 ? (c.isLeaf = !1, ke != null && ke.length && (c.children = $e(ke, c, Ae + 1))) : c.isLeaf = !0, c.children && !c.disabled && (c.totalLeafOptions = c.children.reduce((G, re) => typeof re.totalLeafOptions == "number" ? G + re.totalLeafOptions : re.disabled || re.selectionDisabled ? G : G + (re.isLeaf ? 1 : 0), 0), c.totalLeafOptions === 0 && !t && (c.selectionDisabled = !0)), d.set(c.key, c), i.has(c.valueKey) || i.set(c.valueKey, c), (c.isLeaf || t) && (O.set(c.key, c), $.has(c.valueKey) || $.set(c.valueKey, c.key), R.push(c)), c;
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
return {
|
|
183
|
+
optionInfos: $e(e),
|
|
184
|
+
optionMap: d,
|
|
185
|
+
leafOptionMap: O,
|
|
186
|
+
optionValueMap: i,
|
|
187
|
+
leafOptionValueMap: $,
|
|
188
|
+
leafOptions: R,
|
|
189
|
+
totalLevel: Ie
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
const xa = tl(), f = ul(), { t: Me } = ol(), Ca = Za(), ee = S(null), Re = S(n.defaultValue ?? (n.multiple ? [] : n.pathMode ? void 0 : "")), Xe = S(n.defaultInputValue), je = S(!!(n.defaultPopupVisible ?? n.defaultOpen)), we = S([]), E = S(), ve = S({}), j = S(/* @__PURE__ */ new Set()), Le = S({}), z = S(null);
|
|
193
|
+
let Z = null;
|
|
194
|
+
const He = r(() => ({
|
|
195
|
+
...ma,
|
|
196
|
+
...n.fieldNames ?? {}
|
|
197
|
+
})), Ma = r(() => n.size ?? xa.size.value), V = r(() => !!(n.disabled || f != null && f.disabled.value)), Ve = r(() => n.placeholder === "请选择" ? Me("cascader.placeholder", void 0, "请选择") : n.placeholder), wa = r(() => Me("cascader.searchPlaceholder", void 0, "搜索路径")), Ue = r(() => Me("cascader.emptyText", void 0, "暂无匹配项")), fe = sl(
|
|
198
|
+
"empty",
|
|
199
|
+
r(() => ({ component: "cascader" }))
|
|
200
|
+
), k = r(() => n.allowSearch ?? n.filterable ?? n.multiple), La = r(() => n.allowClear ?? n.clearable ?? !1), p = r(() => !!n.multiple), C = r(() => !!n.checkStrictly), H = r(() => !!n.pathMode), Va = r(() => {
|
|
201
|
+
var e;
|
|
202
|
+
return ["x-cascader__panel", (e = n.triggerProps) == null ? void 0 : e.contentClass];
|
|
203
|
+
}), We = r(() => n.popupVisible !== void 0 || n.open !== void 0), _ = r(() => We.value ? !!(n.popupVisible ?? n.open) : je.value), qe = r(() => n.inputValue !== void 0), D = r(() => qe.value ? String(n.inputValue ?? "") : Xe.value), Ge = r(() => n.modelValue !== void 0), Ba = r(() => Ge.value ? n.modelValue : Re.value), Oa = r(() => Ce(n.options, He.value)), m = r(() => ba(Oa.value, ve.value, {
|
|
204
|
+
checkStrictly: C.value,
|
|
205
|
+
enabledLazyLoad: !!n.loadMore,
|
|
206
|
+
valueKey: n.valueKey
|
|
207
|
+
})), U = r(() => C.value ? m.value.optionMap : m.value.leafOptionMap);
|
|
208
|
+
function Be(e) {
|
|
209
|
+
var t;
|
|
210
|
+
if (Array.isArray(e))
|
|
211
|
+
return e.map((l) => de(l, n.valueKey)).join(ha);
|
|
212
|
+
const a = de(e, n.valueKey);
|
|
213
|
+
return C.value ? ((t = m.value.optionValueMap.get(a)) == null ? void 0 : t.key) ?? a : m.value.leafOptionValueMap.get(a) ?? a;
|
|
214
|
+
}
|
|
215
|
+
const b = r(() => {
|
|
216
|
+
const e = /* @__PURE__ */ new Map();
|
|
217
|
+
return _a(Ba.value, p.value, H.value).forEach((t) => {
|
|
218
|
+
e.set(Be(t), t);
|
|
219
|
+
}), e;
|
|
220
|
+
}), Je = r(() => b.value.size > 0);
|
|
221
|
+
function Sa(e) {
|
|
222
|
+
return typeof n.fallback == "function" ? n.fallback(e) : Array.isArray(e) ? e.map((a) => String(a)).join(" / ") : String(e);
|
|
223
|
+
}
|
|
224
|
+
const F = r(() => {
|
|
225
|
+
const e = [];
|
|
226
|
+
return b.value.forEach((a, t) => {
|
|
227
|
+
const l = U.value.get(t) ?? m.value.optionMap.get(t);
|
|
228
|
+
if (l) {
|
|
229
|
+
e.push({
|
|
230
|
+
key: t,
|
|
231
|
+
label: n.formatLabel ? n.formatLabel(l.path.map((o) => o.raw)) : Ne(l),
|
|
232
|
+
closable: !l.disabled,
|
|
233
|
+
data: l.raw
|
|
234
|
+
});
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
n.fallback && e.push({
|
|
238
|
+
key: t,
|
|
239
|
+
label: Sa(a),
|
|
240
|
+
closable: !0
|
|
241
|
+
});
|
|
242
|
+
}), e;
|
|
243
|
+
}), pe = r(() => {
|
|
244
|
+
var e;
|
|
245
|
+
return ((e = F.value[0]) == null ? void 0 : e.label) ?? "";
|
|
246
|
+
}), Ta = r(() => La.value && Je.value && !V.value && !n.loading), Oe = r(() => Math.max(Number(n.maxTagCount ?? 0), 0)), Qe = r(() => p.value ? Oe.value === 0 ? F.value : F.value.slice(0, Oe.value) : []), Ye = r(() => !p.value || Oe.value === 0 ? 0 : Math.max(F.value.length - Qe.value.length, 0)), za = r(() => D.value ? D.value : _.value ? "" : pe.value), N = r(() => k.value && D.value.trim().length > 0), ae = r(() => {
|
|
247
|
+
if (!N.value) return [];
|
|
248
|
+
const e = D.value.trim().toLowerCase();
|
|
249
|
+
return (C.value ? Array.from(m.value.optionMap.values()) : m.value.leafOptions).filter((t) => n.filterOption ? n.filterOption(D.value, t.raw) : C.value ? t.label.toLowerCase().includes(e) : t.path.some((l) => l.label.toLowerCase().includes(e)));
|
|
250
|
+
}), W = r(() => E.value ? m.value.optionMap.get(E.value) : void 0), le = r(() => {
|
|
251
|
+
var e, a, t;
|
|
252
|
+
return N.value ? ae.value.filter((l) => !l.disabled) : (t = (a = (e = W.value) == null ? void 0 : e.parent) == null ? void 0 : a.children) != null && t.length ? W.value.parent.children.filter((l) => !l.disabled) : m.value.optionInfos.filter((l) => !l.disabled);
|
|
253
|
+
});
|
|
254
|
+
function Ze(e) {
|
|
255
|
+
const a = le.value;
|
|
256
|
+
if (!a.length) return;
|
|
257
|
+
if (!E.value)
|
|
258
|
+
return e === "next" ? a[0] : a[a.length - 1];
|
|
259
|
+
const t = a.findIndex((l) => l.key === E.value);
|
|
260
|
+
return t < 0 ? e === "next" ? a[0] : a[a.length - 1] : e === "next" ? a[(t + 1) % a.length] : a[(t - 1 + a.length) % a.length];
|
|
261
|
+
}
|
|
262
|
+
const he = r(() => {
|
|
263
|
+
var a;
|
|
264
|
+
const e = [];
|
|
265
|
+
m.value.optionInfos.length && e.push(m.value.optionInfos);
|
|
266
|
+
for (const t of we.value) {
|
|
267
|
+
const l = m.value.optionMap.get(t);
|
|
268
|
+
(a = l == null ? void 0 : l.children) != null && a.length && e.push(l.children);
|
|
269
|
+
}
|
|
270
|
+
return e;
|
|
271
|
+
}), ea = r(() => !!(n.virtualListProps && Number(n.virtualListProps.height ?? 0) > 0)), aa = r(() => {
|
|
272
|
+
var e;
|
|
273
|
+
return Math.max(Number(((e = n.virtualListProps) == null ? void 0 : e.height) ?? 200), 120);
|
|
274
|
+
}), te = r(() => {
|
|
275
|
+
var e;
|
|
276
|
+
return Math.max(Number(((e = n.virtualListProps) == null ? void 0 : e.itemHeight) ?? 32), 24);
|
|
277
|
+
}), la = r(() => {
|
|
278
|
+
var e;
|
|
279
|
+
return Math.max(Number(((e = n.virtualListProps) == null ? void 0 : e.buffer) ?? 4), 0);
|
|
280
|
+
});
|
|
281
|
+
function Ka(e, a) {
|
|
282
|
+
if (!ea.value)
|
|
283
|
+
return {
|
|
284
|
+
start: 0,
|
|
285
|
+
end: e.length,
|
|
286
|
+
paddingTop: 0,
|
|
287
|
+
paddingBottom: 0,
|
|
288
|
+
items: e
|
|
289
|
+
};
|
|
290
|
+
const t = Le.value[a] ?? 0, l = Math.max(Math.floor(t / te.value) - la.value, 0), o = Math.ceil(aa.value / te.value) + la.value * 2, d = Math.min(l + o, e.length);
|
|
291
|
+
return {
|
|
292
|
+
start: l,
|
|
293
|
+
end: d,
|
|
294
|
+
paddingTop: l * te.value,
|
|
295
|
+
paddingBottom: Math.max((e.length - d) * te.value, 0),
|
|
296
|
+
items: e.slice(l, d)
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
const ne = r(() => he.value.map((e, a) => Ka(e, a)));
|
|
300
|
+
function Pa(e) {
|
|
301
|
+
Z && clearTimeout(Z), Z = setTimeout(() => {
|
|
302
|
+
g("search", e);
|
|
303
|
+
}, Math.max(Number(n.searchDelay ?? 500), 0));
|
|
304
|
+
}
|
|
305
|
+
function q(e, a) {
|
|
306
|
+
e !== D.value && (qe.value || (Xe.value = e), g("update:inputValue", e), g("inputValueChange", e), g("input-value-change", e), k.value && Pa(e), a === "manual" && !_.value && K(!0));
|
|
307
|
+
}
|
|
308
|
+
function K(e) {
|
|
309
|
+
if (!V.value) {
|
|
310
|
+
if (We.value || (je.value = e), g("update:popupVisible", e), g("update:open", e), g("popupVisibleChange", e), g("popup-visible-change", e), e) {
|
|
311
|
+
k.value && Fe(() => {
|
|
312
|
+
var a;
|
|
313
|
+
(a = ee.value) == null || a.focus();
|
|
314
|
+
});
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
D.value && q("", "popupHide");
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function Se(e) {
|
|
321
|
+
var t;
|
|
322
|
+
if (e.disabled || e.selectionDisabled)
|
|
323
|
+
return [];
|
|
324
|
+
if (e.isLeaf)
|
|
325
|
+
return [e];
|
|
326
|
+
const a = [];
|
|
327
|
+
return (t = e.children) == null || t.forEach((l) => {
|
|
328
|
+
a.push(...Se(l));
|
|
329
|
+
}), a;
|
|
330
|
+
}
|
|
331
|
+
function ta(e) {
|
|
332
|
+
return Se(e).map((a) => a.key);
|
|
333
|
+
}
|
|
334
|
+
function ye(e) {
|
|
335
|
+
if (C.value)
|
|
336
|
+
return {
|
|
337
|
+
checked: b.value.has(e.key),
|
|
338
|
+
indeterminate: !1
|
|
339
|
+
};
|
|
340
|
+
if (e.isLeaf)
|
|
341
|
+
return {
|
|
342
|
+
checked: b.value.has(e.key),
|
|
343
|
+
indeterminate: !1
|
|
344
|
+
};
|
|
345
|
+
const a = ta(e);
|
|
346
|
+
if (!a.length)
|
|
347
|
+
return {
|
|
348
|
+
checked: !1,
|
|
349
|
+
indeterminate: !1
|
|
350
|
+
};
|
|
351
|
+
const t = a.reduce((l, o) => l + (b.value.has(o) ? 1 : 0), 0);
|
|
352
|
+
return {
|
|
353
|
+
checked: t > 0 && t >= a.length,
|
|
354
|
+
indeterminate: t > 0 && t < a.length
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
function B(e) {
|
|
358
|
+
E.value = e;
|
|
359
|
+
}
|
|
360
|
+
function Ia(e) {
|
|
361
|
+
var t;
|
|
362
|
+
let a = e;
|
|
363
|
+
if (n.expandChild)
|
|
364
|
+
for (; (t = a == null ? void 0 : a.children) != null && t.length; )
|
|
365
|
+
a = a.children[0];
|
|
366
|
+
return a;
|
|
367
|
+
}
|
|
368
|
+
function se(e) {
|
|
369
|
+
const a = Ia(e ? m.value.optionMap.get(e) : void 0);
|
|
370
|
+
we.value = (a == null ? void 0 : a.path.map((t) => t.key)) ?? [];
|
|
371
|
+
}
|
|
372
|
+
function P(e) {
|
|
373
|
+
const a = p.value ? e : e[0] ?? "";
|
|
374
|
+
Ge.value || (Re.value = a), g("update:modelValue", a);
|
|
375
|
+
const t = [];
|
|
376
|
+
e.forEach((l) => {
|
|
377
|
+
const o = U.value.get(Be(l)) ?? m.value.optionMap.get(Be(l));
|
|
378
|
+
o && o.path.forEach((d) => {
|
|
379
|
+
t.push(d.raw);
|
|
380
|
+
});
|
|
381
|
+
}), g("change", a, t), f == null || f.notifyChange();
|
|
382
|
+
}
|
|
383
|
+
function na(e) {
|
|
384
|
+
P([H.value ? [...e.pathValue] : e.value]), K(!1), q("", "optionChecked");
|
|
385
|
+
}
|
|
386
|
+
function Te(e, a) {
|
|
387
|
+
if (a) {
|
|
388
|
+
const o = new Map(b.value);
|
|
389
|
+
(C.value ? [e] : Se(e)).forEach((O) => {
|
|
390
|
+
o.has(O.key) || o.set(O.key, H.value ? [...O.pathValue] : O.value);
|
|
391
|
+
}), P(Array.from(o.values()));
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
const t = C.value ? [e.key] : ta(e), l = [];
|
|
395
|
+
b.value.forEach((o, d) => {
|
|
396
|
+
t.includes(d) || l.push(o);
|
|
397
|
+
}), P(l);
|
|
398
|
+
}
|
|
399
|
+
function $a(e) {
|
|
400
|
+
var t;
|
|
401
|
+
if (!n.loadMore || e.isLeaf || (t = e.children) != null && t.length || j.value.has(e.key)) return;
|
|
402
|
+
const a = new Set(j.value);
|
|
403
|
+
a.add(e.key), j.value = a, n.loadMore(e.raw, (l) => {
|
|
404
|
+
const o = new Set(j.value);
|
|
405
|
+
if (o.delete(e.key), j.value = o, l != null && l.length) {
|
|
406
|
+
const d = Ce(l, He.value);
|
|
407
|
+
ve.value = {
|
|
408
|
+
...ve.value,
|
|
409
|
+
[e.key]: d
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
function ue(e) {
|
|
415
|
+
e.disabled || n.loading || ($a(e), se(e.key), B(e.key));
|
|
416
|
+
}
|
|
417
|
+
function ze(e) {
|
|
418
|
+
n.expandTrigger !== "hover" || e.disabled || n.loading || (z.value && clearTimeout(z.value), z.value = setTimeout(() => {
|
|
419
|
+
ue(e);
|
|
420
|
+
}, 120));
|
|
421
|
+
}
|
|
422
|
+
function Aa() {
|
|
423
|
+
z.value && (clearTimeout(z.value), z.value = null);
|
|
424
|
+
}
|
|
425
|
+
function ge(e) {
|
|
426
|
+
if (!(e.disabled || n.loading)) {
|
|
427
|
+
if (ue(e), p.value) {
|
|
428
|
+
const { checked: a } = ye(e);
|
|
429
|
+
Te(e, !a);
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
(C.value || e.isLeaf || n.changeOnSelect) && na(e);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
function Ke(e) {
|
|
436
|
+
if (!(e.disabled || n.loading)) {
|
|
437
|
+
if (ue(e), p.value) {
|
|
438
|
+
const { checked: a } = ye(e);
|
|
439
|
+
Te(e, !a), q("", "optionChecked");
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
na(e);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
function Ea() {
|
|
446
|
+
if (!(V.value || n.loading)) {
|
|
447
|
+
if (k.value) {
|
|
448
|
+
K(!0), Fe(() => {
|
|
449
|
+
var e;
|
|
450
|
+
(e = ee.value) == null || e.focus();
|
|
451
|
+
});
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
K(!_.value);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
function Da(e) {
|
|
458
|
+
e !== _.value && K(e);
|
|
459
|
+
}
|
|
460
|
+
function sa(e) {
|
|
461
|
+
const a = e.target.value;
|
|
462
|
+
q(a, "manual"), f == null || f.notifyInput(e);
|
|
463
|
+
}
|
|
464
|
+
function ua(e) {
|
|
465
|
+
g("focus", e), f == null || f.notifyFocus(e);
|
|
466
|
+
}
|
|
467
|
+
function oa(e) {
|
|
468
|
+
g("blur", e), f == null || f.notifyBlur(e);
|
|
469
|
+
}
|
|
470
|
+
function Fa(e) {
|
|
471
|
+
k.value || (g("focus", e), f == null || f.notifyFocus(e));
|
|
472
|
+
}
|
|
473
|
+
function Na(e) {
|
|
474
|
+
k.value || (g("blur", e), f == null || f.notifyBlur(e));
|
|
475
|
+
}
|
|
476
|
+
function ra(e) {
|
|
477
|
+
ia(e);
|
|
478
|
+
}
|
|
479
|
+
function ia(e) {
|
|
480
|
+
var a, t;
|
|
481
|
+
if (!(k.value && e.currentTarget !== e.target) && !(V.value || n.loading)) {
|
|
482
|
+
if (e.key === "ArrowDown") {
|
|
483
|
+
if (e.preventDefault(), !_.value) {
|
|
484
|
+
K(!0);
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
const l = Ze("next");
|
|
488
|
+
l && B(l.key);
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
if (e.key === "ArrowUp") {
|
|
492
|
+
if (e.preventDefault(), !_.value) {
|
|
493
|
+
K(!0);
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
const l = Ze("prev");
|
|
497
|
+
l && B(l.key);
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
if (e.key === "ArrowRight") {
|
|
501
|
+
if (N.value || !_.value) return;
|
|
502
|
+
e.preventDefault();
|
|
503
|
+
const l = W.value;
|
|
504
|
+
(a = l == null ? void 0 : l.children) != null && a.length && (se(l.key), B((t = l.children[0]) == null ? void 0 : t.key));
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
if (e.key === "ArrowLeft") {
|
|
508
|
+
if (N.value || !_.value) return;
|
|
509
|
+
e.preventDefault();
|
|
510
|
+
const l = W.value;
|
|
511
|
+
l != null && l.parent && (se(l.parent.key), B(l.parent.key));
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
if (e.key === "Escape" && _.value) {
|
|
515
|
+
e.preventDefault(), K(!1);
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
if (e.key === "Enter") {
|
|
519
|
+
if (!_.value) {
|
|
520
|
+
e.preventDefault(), K(!0);
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
const l = W.value && !W.value.disabled ? W.value : le.value[0];
|
|
524
|
+
if (!l) return;
|
|
525
|
+
if (e.preventDefault(), N.value) {
|
|
526
|
+
Ke(l);
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
ge(l);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
function Ra(e) {
|
|
534
|
+
if (e.stopPropagation(), p.value) {
|
|
535
|
+
const a = [];
|
|
536
|
+
b.value.forEach((t, l) => {
|
|
537
|
+
const o = U.value.get(l);
|
|
538
|
+
o != null && o.disabled && a.push(H.value ? [...o.pathValue] : o.value);
|
|
539
|
+
}), P(a);
|
|
540
|
+
} else
|
|
541
|
+
P([]);
|
|
542
|
+
q("", "clear"), g("clear");
|
|
543
|
+
}
|
|
544
|
+
function Xa() {
|
|
545
|
+
if (p.value) {
|
|
546
|
+
const e = [];
|
|
547
|
+
b.value.forEach((a, t) => {
|
|
548
|
+
const l = U.value.get(t);
|
|
549
|
+
l != null && l.disabled && e.push(H.value ? [...l.pathValue] : l.value);
|
|
550
|
+
}), P(e);
|
|
551
|
+
} else
|
|
552
|
+
P([]);
|
|
553
|
+
q("", "clear"), g("clear");
|
|
554
|
+
}
|
|
555
|
+
function ja(e, a) {
|
|
556
|
+
if (a.stopPropagation(), !p.value || V.value) return;
|
|
557
|
+
const t = U.value.get(e);
|
|
558
|
+
if (t) {
|
|
559
|
+
Te(t, !1);
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
const l = [];
|
|
563
|
+
b.value.forEach((o, d) => {
|
|
564
|
+
d !== e && l.push(o);
|
|
565
|
+
}), P(l);
|
|
566
|
+
}
|
|
567
|
+
function Ha(e, a) {
|
|
568
|
+
const t = a.target;
|
|
569
|
+
Le.value = {
|
|
570
|
+
...Le.value,
|
|
571
|
+
[e]: t.scrollTop
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function Pe(e) {
|
|
575
|
+
return we.value.includes(e.key) || e.key === E.value;
|
|
576
|
+
}
|
|
577
|
+
function I(e) {
|
|
578
|
+
return ye(e).checked;
|
|
579
|
+
}
|
|
580
|
+
function oe(e) {
|
|
581
|
+
return ye(e).indeterminate;
|
|
582
|
+
}
|
|
583
|
+
function Ua(e) {
|
|
584
|
+
if (!e.length) return;
|
|
585
|
+
const a = e[e.length - 1], t = "option" in a ? a.option : a;
|
|
586
|
+
Ke(t);
|
|
587
|
+
}
|
|
588
|
+
function Wa(e, a) {
|
|
589
|
+
const t = he.value[e] ?? [], l = de(a.value, n.valueKey), o = t.find((d) => d.valueKey === l) ?? Array.from(m.value.optionMap.values()).find((d) => d.valueKey === l);
|
|
590
|
+
o && ge(o);
|
|
591
|
+
}
|
|
592
|
+
function qa(e) {
|
|
593
|
+
const a = e.target.value;
|
|
594
|
+
q(a, "manual"), g("search", a);
|
|
595
|
+
}
|
|
596
|
+
return _e(
|
|
597
|
+
() => n.options,
|
|
598
|
+
() => {
|
|
599
|
+
ve.value = {};
|
|
600
|
+
},
|
|
601
|
+
{ deep: !0 }
|
|
602
|
+
), _e(
|
|
603
|
+
_,
|
|
604
|
+
(e) => {
|
|
605
|
+
if (e) {
|
|
606
|
+
if (b.value.size > 0) {
|
|
607
|
+
const a = Array.from(b.value.keys()), t = a[a.length - 1], l = U.value.get(t) ?? m.value.optionMap.get(t);
|
|
608
|
+
l && (se(l.key), B(l.key));
|
|
609
|
+
} else {
|
|
610
|
+
const a = le.value[0];
|
|
611
|
+
a && B(a.key);
|
|
612
|
+
}
|
|
613
|
+
k.value && Fe(() => {
|
|
614
|
+
var a;
|
|
615
|
+
(a = ee.value) == null || a.focus();
|
|
616
|
+
});
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
b.value.size === 0 && (se(), B());
|
|
620
|
+
},
|
|
621
|
+
{ immediate: !0 }
|
|
622
|
+
), _e(
|
|
623
|
+
[N, ae],
|
|
624
|
+
() => {
|
|
625
|
+
var a, t;
|
|
626
|
+
if (!_.value) return;
|
|
627
|
+
const e = E.value ? m.value.optionMap.get(E.value) : void 0;
|
|
628
|
+
if (N.value) {
|
|
629
|
+
ae.value.some((o) => o.key === (e == null ? void 0 : e.key) && !o.disabled) || B((a = le.value[0]) == null ? void 0 : a.key);
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
(!e || e.disabled) && B((t = le.value[0]) == null ? void 0 : t.key);
|
|
633
|
+
},
|
|
634
|
+
{ deep: !0 }
|
|
635
|
+
), _e(
|
|
636
|
+
[p, H],
|
|
637
|
+
() => {
|
|
638
|
+
const e = [];
|
|
639
|
+
b.value.forEach((a, t) => {
|
|
640
|
+
const l = U.value.get(t);
|
|
641
|
+
l && e.push(H.value ? [...l.pathValue] : l.value);
|
|
642
|
+
}), (e.length > 0 || Je.value) && P(e);
|
|
643
|
+
}
|
|
644
|
+
), el(() => {
|
|
645
|
+
Z && (clearTimeout(Z), Z = null), z.value && (clearTimeout(z.value), z.value = null);
|
|
646
|
+
}), ya({
|
|
647
|
+
handlePick: Wa,
|
|
648
|
+
handleSearch: qa,
|
|
649
|
+
clear: Xa,
|
|
650
|
+
pickSearchResult: Ua
|
|
651
|
+
}), (e, a) => (s(), L(ll, al(x.triggerProps, {
|
|
652
|
+
"popup-visible": _.value,
|
|
653
|
+
trigger: [],
|
|
654
|
+
position: x.align === "center" ? "bottom" : "bottom-start",
|
|
655
|
+
"popup-container": x.popupContainer,
|
|
656
|
+
"click-to-close": !k.value,
|
|
657
|
+
"content-class": Va.value,
|
|
658
|
+
"content-style": { maxWidth: "none", width: "auto", overflow: "visible" },
|
|
659
|
+
"allow-overflow": !0,
|
|
660
|
+
"onUpdate:popupVisible": Da
|
|
661
|
+
}), {
|
|
662
|
+
default: va(() => {
|
|
663
|
+
var t;
|
|
664
|
+
return [
|
|
665
|
+
T("div", {
|
|
666
|
+
class: J(["x-cascader", [
|
|
667
|
+
v(nl)(Ma.value),
|
|
668
|
+
{
|
|
669
|
+
"is-open": _.value,
|
|
670
|
+
"is-disabled": V.value,
|
|
671
|
+
"is-loading": x.loading,
|
|
672
|
+
"is-multiple": x.multiple,
|
|
673
|
+
"is-searchable": k.value,
|
|
674
|
+
"is-error": x.error
|
|
675
|
+
}
|
|
676
|
+
]]),
|
|
677
|
+
tabindex: V.value || k.value ? -1 : 0,
|
|
678
|
+
onClick: Ea,
|
|
679
|
+
onFocus: Fa,
|
|
680
|
+
onBlur: Na,
|
|
681
|
+
onKeydown: ia
|
|
682
|
+
}, [
|
|
683
|
+
T("div", il, [
|
|
684
|
+
e.$slots.prefix ? (s(), u("span", cl, [
|
|
685
|
+
w(e.$slots, "prefix")
|
|
686
|
+
])) : h("", !0),
|
|
687
|
+
T("div", dl, [
|
|
688
|
+
p.value ? (s(), u("div", {
|
|
689
|
+
key: 0,
|
|
690
|
+
class: J(["x-cascader__tags", { "is-nowrap": x.tagNowrap }])
|
|
691
|
+
}, [
|
|
692
|
+
(s(!0), u(X, null, ie(Qe.value, (l) => (s(), u("span", {
|
|
693
|
+
key: l.key,
|
|
694
|
+
class: "x-cascader__tag"
|
|
695
|
+
}, [
|
|
696
|
+
T("span", vl, [
|
|
697
|
+
w(e.$slots, "label", {
|
|
698
|
+
data: l.data
|
|
699
|
+
}, () => [
|
|
700
|
+
ce(Y(l.label), 1)
|
|
701
|
+
])
|
|
702
|
+
]),
|
|
703
|
+
!V.value && l.closable ? (s(), u("button", {
|
|
704
|
+
key: 0,
|
|
705
|
+
type: "button",
|
|
706
|
+
class: "x-cascader__tag-close",
|
|
707
|
+
onClick: (o) => ja(l.key, o)
|
|
708
|
+
}, [
|
|
709
|
+
M(v(y), {
|
|
710
|
+
name: "guanbi",
|
|
711
|
+
size: 10
|
|
712
|
+
})
|
|
713
|
+
], 8, fl)) : h("", !0)
|
|
714
|
+
]))), 128)),
|
|
715
|
+
Ye.value > 0 ? (s(), u("span", pl, "+" + Y(Ye.value), 1)) : h("", !0),
|
|
716
|
+
k.value && e.$slots["search-icon"] ? (s(), u("span", hl, [
|
|
717
|
+
w(e.$slots, "search-icon")
|
|
718
|
+
])) : h("", !0),
|
|
719
|
+
k.value ? (s(), u("input", {
|
|
720
|
+
key: 2,
|
|
721
|
+
ref_key: "searchInputRef",
|
|
722
|
+
ref: ee,
|
|
723
|
+
class: "x-cascader__input x-cascader__input--multiple",
|
|
724
|
+
value: D.value,
|
|
725
|
+
disabled: V.value,
|
|
726
|
+
placeholder: F.value.length ? "" : Ve.value,
|
|
727
|
+
onInput: sa,
|
|
728
|
+
onFocus: ua,
|
|
729
|
+
onBlur: oa,
|
|
730
|
+
onKeydown: ra,
|
|
731
|
+
onClick: a[0] || (a[0] = Q(() => {
|
|
732
|
+
}, ["stop"]))
|
|
733
|
+
}, null, 40, yl)) : F.value.length ? h("", !0) : (s(), u("span", gl, Y(Ve.value), 1))
|
|
734
|
+
], 2)) : (s(), u(X, { key: 1 }, [
|
|
735
|
+
k.value && e.$slots["search-icon"] ? (s(), u("span", ml, [
|
|
736
|
+
w(e.$slots, "search-icon")
|
|
737
|
+
])) : h("", !0),
|
|
738
|
+
k.value ? (s(), u("input", {
|
|
739
|
+
key: 1,
|
|
740
|
+
ref_key: "searchInputRef",
|
|
741
|
+
ref: ee,
|
|
742
|
+
class: "x-cascader__input",
|
|
743
|
+
value: za.value,
|
|
744
|
+
disabled: V.value,
|
|
745
|
+
placeholder: pe.value ? "" : wa.value,
|
|
746
|
+
onInput: sa,
|
|
747
|
+
onFocus: ua,
|
|
748
|
+
onBlur: oa,
|
|
749
|
+
onKeydown: ra,
|
|
750
|
+
onClick: a[1] || (a[1] = Q(() => {
|
|
751
|
+
}, ["stop"]))
|
|
752
|
+
}, null, 40, kl)) : (s(), u("span", {
|
|
753
|
+
key: 2,
|
|
754
|
+
class: J(["x-cascader__display", { "is-placeholder": !pe.value }])
|
|
755
|
+
}, [
|
|
756
|
+
v(Ca).label && ((t = F.value[0]) != null && t.data) ? w(e.$slots, "label", {
|
|
757
|
+
key: 0,
|
|
758
|
+
data: F.value[0].data
|
|
759
|
+
}) : (s(), u(X, { key: 1 }, [
|
|
760
|
+
ce(Y(pe.value || Ve.value), 1)
|
|
761
|
+
], 64))
|
|
762
|
+
], 2))
|
|
763
|
+
], 64))
|
|
764
|
+
]),
|
|
765
|
+
T("span", _l, [
|
|
766
|
+
Ta.value ? (s(), u("button", {
|
|
767
|
+
key: 0,
|
|
768
|
+
type: "button",
|
|
769
|
+
class: "x-cascader__clear",
|
|
770
|
+
onClick: Ra
|
|
771
|
+
}, [
|
|
772
|
+
M(v(y), {
|
|
773
|
+
name: "guanbi",
|
|
774
|
+
size: 12
|
|
775
|
+
})
|
|
776
|
+
])) : x.loading ? (s(), u("span", bl, [
|
|
777
|
+
w(e.$slots, "loading-icon", {}, () => [
|
|
778
|
+
M(v(y), {
|
|
779
|
+
name: "shuaxin",
|
|
780
|
+
size: 14,
|
|
781
|
+
spin: ""
|
|
782
|
+
})
|
|
783
|
+
])
|
|
784
|
+
])) : (s(), u("span", xl, [
|
|
785
|
+
w(e.$slots, "arrow-icon", {}, () => [
|
|
786
|
+
M(v(y), {
|
|
787
|
+
name: _.value ? "xiangshang" : "xiangxia",
|
|
788
|
+
size: 12
|
|
789
|
+
}, null, 8, ["name"])
|
|
790
|
+
])
|
|
791
|
+
]))
|
|
792
|
+
])
|
|
793
|
+
])
|
|
794
|
+
], 42, rl)
|
|
795
|
+
];
|
|
796
|
+
}),
|
|
797
|
+
content: va(() => [
|
|
798
|
+
T("div", {
|
|
799
|
+
class: "x-cascader__dropdown",
|
|
800
|
+
onMouseleave: Aa
|
|
801
|
+
}, [
|
|
802
|
+
N.value ? (s(), u("div", Cl, [
|
|
803
|
+
x.loading ? (s(), u("div", Ml, [
|
|
804
|
+
M(v(y), {
|
|
805
|
+
name: "shuaxin",
|
|
806
|
+
size: 14,
|
|
807
|
+
spin: ""
|
|
808
|
+
})
|
|
809
|
+
])) : ae.value.length ? (s(), u("ul", {
|
|
810
|
+
key: 2,
|
|
811
|
+
class: J(["x-cascader__search-list", { "is-multiple": p.value }])
|
|
812
|
+
}, [
|
|
813
|
+
(s(!0), u(X, null, ie(ae.value, (t) => (s(), u("li", {
|
|
814
|
+
key: t.key
|
|
815
|
+
}, [
|
|
816
|
+
T("button", {
|
|
817
|
+
type: "button",
|
|
818
|
+
class: J(["x-cascader__option x-cascader__search-option", {
|
|
819
|
+
"is-active": Pe(t),
|
|
820
|
+
"is-disabled": t.disabled,
|
|
821
|
+
"is-selected": I(t)
|
|
822
|
+
}]),
|
|
823
|
+
onClick: Q((l) => Ke(t), ["stop"]),
|
|
824
|
+
onMouseenter: (l) => ze(t)
|
|
825
|
+
}, [
|
|
826
|
+
p.value ? (s(), u("span", Vl, [
|
|
827
|
+
I(t) ? (s(), L(v(y), {
|
|
828
|
+
key: 0,
|
|
829
|
+
name: "dui",
|
|
830
|
+
size: 12
|
|
831
|
+
})) : oe(t) ? (s(), L(v(y), {
|
|
832
|
+
key: 1,
|
|
833
|
+
name: "checkbox-indeterminate",
|
|
834
|
+
size: 12
|
|
835
|
+
})) : h("", !0)
|
|
836
|
+
])) : h("", !0),
|
|
837
|
+
T("span", Bl, [
|
|
838
|
+
w(e.$slots, "option", {
|
|
839
|
+
data: t.raw
|
|
840
|
+
}, () => [
|
|
841
|
+
ce(Y(x.searchOptionOnlyLabel ? t.label : Ne(t)), 1)
|
|
842
|
+
])
|
|
843
|
+
]),
|
|
844
|
+
!p.value && C.value && I(t) ? (s(), u("span", Ol, [
|
|
845
|
+
M(v(y), {
|
|
846
|
+
name: "dui",
|
|
847
|
+
size: 12
|
|
848
|
+
})
|
|
849
|
+
])) : h("", !0)
|
|
850
|
+
], 42, Ll)
|
|
851
|
+
]))), 128))
|
|
852
|
+
], 2)) : (s(), u("div", wl, [
|
|
853
|
+
w(e.$slots, "empty", {}, () => [
|
|
854
|
+
v(fe) ? (s(), L(fa(v(fe)), { key: 0 })) : (s(), L(pa, {
|
|
855
|
+
key: 1,
|
|
856
|
+
"in-config-provider": "",
|
|
857
|
+
description: Ue.value
|
|
858
|
+
}, null, 8, ["description"]))
|
|
859
|
+
])
|
|
860
|
+
]))
|
|
861
|
+
])) : (s(), u(X, { key: 1 }, [
|
|
862
|
+
(s(!0), u(X, null, ie(he.value, (t, l) => {
|
|
863
|
+
var o, d, O;
|
|
864
|
+
return s(), u("div", {
|
|
865
|
+
key: l,
|
|
866
|
+
class: "x-cascader__column"
|
|
867
|
+
}, [
|
|
868
|
+
ea.value ? (s(), u("div", {
|
|
869
|
+
key: 0,
|
|
870
|
+
class: "x-cascader__virtual",
|
|
871
|
+
style: be({ height: `${aa.value}px` }),
|
|
872
|
+
onScroll: (i) => Ha(l, i)
|
|
873
|
+
}, [
|
|
874
|
+
(o = ne.value[l]) != null && o.paddingTop ? (s(), u("div", {
|
|
875
|
+
key: 0,
|
|
876
|
+
style: be({ height: `${ne.value[l].paddingTop}px` })
|
|
877
|
+
}, null, 4)) : h("", !0),
|
|
878
|
+
(s(!0), u(X, null, ie((d = ne.value[l]) == null ? void 0 : d.items, (i) => {
|
|
879
|
+
var $;
|
|
880
|
+
return s(), u("button", {
|
|
881
|
+
key: i.key,
|
|
882
|
+
type: "button",
|
|
883
|
+
class: J(["x-cascader__option", {
|
|
884
|
+
"is-active": Pe(i),
|
|
885
|
+
"is-disabled": i.disabled,
|
|
886
|
+
"is-selected": I(i),
|
|
887
|
+
"is-indeterminate": oe(i)
|
|
888
|
+
}]),
|
|
889
|
+
style: be({ minHeight: `${te.value}px` }),
|
|
890
|
+
onClick: Q((R) => ge(i), ["stop"]),
|
|
891
|
+
onMouseenter: (R) => ze(i)
|
|
892
|
+
}, [
|
|
893
|
+
p.value ? (s(), u("span", zl, [
|
|
894
|
+
I(i) ? (s(), L(v(y), {
|
|
895
|
+
key: 0,
|
|
896
|
+
name: "dui",
|
|
897
|
+
size: 12
|
|
898
|
+
})) : oe(i) ? (s(), L(v(y), {
|
|
899
|
+
key: 1,
|
|
900
|
+
name: "checkbox-indeterminate",
|
|
901
|
+
size: 12
|
|
902
|
+
})) : h("", !0)
|
|
903
|
+
])) : h("", !0),
|
|
904
|
+
T("span", Kl, [
|
|
905
|
+
w(e.$slots, "option", {
|
|
906
|
+
data: i.raw
|
|
907
|
+
}, () => [
|
|
908
|
+
ce(Y(i.label), 1)
|
|
909
|
+
])
|
|
910
|
+
]),
|
|
911
|
+
j.value.has(i.key) ? (s(), u("span", Pl, [
|
|
912
|
+
M(v(y), {
|
|
913
|
+
name: "shuaxin",
|
|
914
|
+
size: 12,
|
|
915
|
+
spin: ""
|
|
916
|
+
})
|
|
917
|
+
])) : ($ = i.children) != null && $.length || x.loadMore && !i.isLeaf ? (s(), u("span", {
|
|
918
|
+
key: 2,
|
|
919
|
+
class: "x-cascader__expand-arrow",
|
|
920
|
+
onClick: Q((R) => ue(i), ["stop"])
|
|
921
|
+
}, [
|
|
922
|
+
M(v(y), {
|
|
923
|
+
name: "gengduo",
|
|
924
|
+
size: 12
|
|
925
|
+
})
|
|
926
|
+
], 8, Il)) : !p.value && C.value && I(i) ? (s(), u("span", $l, [
|
|
927
|
+
M(v(y), {
|
|
928
|
+
name: "dui",
|
|
929
|
+
size: 12
|
|
930
|
+
})
|
|
931
|
+
])) : h("", !0)
|
|
932
|
+
], 46, Tl);
|
|
933
|
+
}), 128)),
|
|
934
|
+
(O = ne.value[l]) != null && O.paddingBottom ? (s(), u("div", {
|
|
935
|
+
key: 1,
|
|
936
|
+
style: be({ height: `${ne.value[l].paddingBottom}px` })
|
|
937
|
+
}, null, 4)) : h("", !0)
|
|
938
|
+
], 44, Sl)) : (s(), u("div", Al, [
|
|
939
|
+
(s(!0), u(X, null, ie(t, (i) => {
|
|
940
|
+
var $;
|
|
941
|
+
return s(), u("button", {
|
|
942
|
+
key: i.key,
|
|
943
|
+
type: "button",
|
|
944
|
+
class: J(["x-cascader__option", {
|
|
945
|
+
"is-active": Pe(i),
|
|
946
|
+
"is-disabled": i.disabled,
|
|
947
|
+
"is-selected": I(i),
|
|
948
|
+
"is-indeterminate": oe(i)
|
|
949
|
+
}]),
|
|
950
|
+
onClick: Q((R) => ge(i), ["stop"]),
|
|
951
|
+
onMouseenter: (R) => ze(i)
|
|
952
|
+
}, [
|
|
953
|
+
p.value ? (s(), u("span", Dl, [
|
|
954
|
+
I(i) ? (s(), L(v(y), {
|
|
955
|
+
key: 0,
|
|
956
|
+
name: "dui",
|
|
957
|
+
size: 12
|
|
958
|
+
})) : oe(i) ? (s(), L(v(y), {
|
|
959
|
+
key: 1,
|
|
960
|
+
name: "checkbox-indeterminate",
|
|
961
|
+
size: 12
|
|
962
|
+
})) : h("", !0)
|
|
963
|
+
])) : h("", !0),
|
|
964
|
+
T("span", Fl, [
|
|
965
|
+
w(e.$slots, "option", {
|
|
966
|
+
data: i.raw
|
|
967
|
+
}, () => [
|
|
968
|
+
ce(Y(i.label), 1)
|
|
969
|
+
])
|
|
970
|
+
]),
|
|
971
|
+
j.value.has(i.key) ? (s(), u("span", Nl, [
|
|
972
|
+
M(v(y), {
|
|
973
|
+
name: "shuaxin",
|
|
974
|
+
size: 12,
|
|
975
|
+
spin: ""
|
|
976
|
+
})
|
|
977
|
+
])) : ($ = i.children) != null && $.length || x.loadMore && !i.isLeaf ? (s(), u("span", {
|
|
978
|
+
key: 2,
|
|
979
|
+
class: "x-cascader__expand-arrow",
|
|
980
|
+
onClick: Q((R) => ue(i), ["stop"])
|
|
981
|
+
}, [
|
|
982
|
+
M(v(y), {
|
|
983
|
+
name: "gengduo",
|
|
984
|
+
size: 12
|
|
985
|
+
})
|
|
986
|
+
], 8, Rl)) : !p.value && C.value && I(i) ? (s(), u("span", Xl, [
|
|
987
|
+
M(v(y), {
|
|
988
|
+
name: "dui",
|
|
989
|
+
size: 12
|
|
990
|
+
})
|
|
991
|
+
])) : h("", !0)
|
|
992
|
+
], 42, El);
|
|
993
|
+
}), 128))
|
|
994
|
+
]))
|
|
995
|
+
]);
|
|
996
|
+
}), 128)),
|
|
997
|
+
he.value.length ? h("", !0) : (s(), u("div", jl, [
|
|
998
|
+
w(e.$slots, "empty", {}, () => [
|
|
999
|
+
v(fe) ? (s(), L(fa(v(fe)), { key: 0 })) : (s(), L(pa, {
|
|
1000
|
+
key: 1,
|
|
1001
|
+
"in-config-provider": "",
|
|
1002
|
+
description: Ue.value
|
|
1003
|
+
}, null, 8, ["description"]))
|
|
1004
|
+
])
|
|
1005
|
+
]))
|
|
1006
|
+
], 64))
|
|
1007
|
+
], 32)
|
|
1008
|
+
]),
|
|
1009
|
+
_: 3
|
|
1010
|
+
}, 16, ["popup-visible", "position", "popup-container", "click-to-close", "content-class"]));
|
|
1011
|
+
}
|
|
1012
|
+
});
|
|
1013
|
+
export {
|
|
1014
|
+
et as default
|
|
1015
|
+
};
|