@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
|
@@ -31,8 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<AffixProps, {
|
|
|
31
31
|
}, string, import('vue').PublicProps, Readonly<AffixProps> & Readonly<{
|
|
32
32
|
onChange?: ((fixed: boolean) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
offsetTop: number;
|
|
35
34
|
disabled: boolean;
|
|
35
|
+
offsetTop: number;
|
|
36
36
|
zIndex: number | string;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
38
|
wrapperRef: HTMLDivElement;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { defineComponent as X, ref as x, computed as j, watch as I, nextTick as G, onMounted as J, onUnmounted as K, openBlock as M, createElementBlock as k, mergeProps as Q, normalizeStyle as _, createCommentVNode as Y, createElementVNode as Z, normalizeClass as ee, renderSlot as te, isRef as ne } from "vue";
|
|
2
|
+
const oe = /* @__PURE__ */ X({
|
|
3
|
+
__name: "XAffix",
|
|
4
|
+
props: {
|
|
5
|
+
offsetTop: { default: 0 },
|
|
6
|
+
offsetBottom: {},
|
|
7
|
+
target: {},
|
|
8
|
+
targetContainer: {},
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
zIndex: { default: 100 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["change"],
|
|
13
|
+
setup(F, { expose: A, emit: O }) {
|
|
14
|
+
const n = F, D = O, h = x(null), c = x(null), m = x(!1), g = x({}), y = x({}), H = j(() => ({
|
|
15
|
+
"x-affix": !0,
|
|
16
|
+
"x-affix--fixed": m.value
|
|
17
|
+
}));
|
|
18
|
+
let o = window, s = window, d = null, p = null, v = 0, R = !1;
|
|
19
|
+
function B(t) {
|
|
20
|
+
return typeof window < "u" && t === window;
|
|
21
|
+
}
|
|
22
|
+
function z(t) {
|
|
23
|
+
const e = typeof t == "function" ? t() : t;
|
|
24
|
+
return ne(e) ? e.value : e;
|
|
25
|
+
}
|
|
26
|
+
function E(t) {
|
|
27
|
+
if (typeof window > "u" || typeof document > "u")
|
|
28
|
+
return;
|
|
29
|
+
const e = z(t);
|
|
30
|
+
if (e)
|
|
31
|
+
return typeof e == "string" ? document.querySelector(e) ?? void 0 : e;
|
|
32
|
+
}
|
|
33
|
+
function N(t) {
|
|
34
|
+
if (B(t))
|
|
35
|
+
return {
|
|
36
|
+
top: 0,
|
|
37
|
+
bottom: window.innerHeight
|
|
38
|
+
};
|
|
39
|
+
const e = t.getBoundingClientRect();
|
|
40
|
+
return {
|
|
41
|
+
top: e.top,
|
|
42
|
+
bottom: e.bottom
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function $(t) {
|
|
46
|
+
t !== m.value && (m.value = t, D("change", t));
|
|
47
|
+
}
|
|
48
|
+
function P() {
|
|
49
|
+
g.value = {}, y.value = {}, $(!1);
|
|
50
|
+
}
|
|
51
|
+
function q() {
|
|
52
|
+
const t = h.value, e = c.value;
|
|
53
|
+
if (!t || !e)
|
|
54
|
+
return {
|
|
55
|
+
width: 0,
|
|
56
|
+
height: 0
|
|
57
|
+
};
|
|
58
|
+
const f = t.getBoundingClientRect();
|
|
59
|
+
let l = f.width || t.offsetWidth, w = f.height || t.offsetHeight;
|
|
60
|
+
const a = window.getComputedStyle(t).display.startsWith("inline");
|
|
61
|
+
if (m.value && a) {
|
|
62
|
+
const r = e.style.width, u = e.style.maxWidth;
|
|
63
|
+
e.style.width = "max-content", e.style.maxWidth = "none";
|
|
64
|
+
const b = e.getBoundingClientRect();
|
|
65
|
+
b.width > 0 && (l = b.width), b.height > 0 && (w = b.height), e.style.width = r, e.style.maxWidth = u;
|
|
66
|
+
} else {
|
|
67
|
+
const r = e.getBoundingClientRect();
|
|
68
|
+
!l && r.width > 0 && (l = r.width), !w && r.height > 0 && (w = r.height);
|
|
69
|
+
}
|
|
70
|
+
return { width: l, height: w };
|
|
71
|
+
}
|
|
72
|
+
function L() {
|
|
73
|
+
const t = h.value;
|
|
74
|
+
if (!t || typeof window > "u") return;
|
|
75
|
+
if (n.disabled) {
|
|
76
|
+
P();
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const e = N(o), f = t.getBoundingClientRect(), { width: l, height: w } = q(), W = n.offsetBottom === void 0;
|
|
80
|
+
let a = !1, r = {};
|
|
81
|
+
if (W) {
|
|
82
|
+
const u = n.offsetTop ?? 0;
|
|
83
|
+
a = f.top <= e.top + u, a && (r = {
|
|
84
|
+
position: "fixed",
|
|
85
|
+
top: `${e.top + u}px`,
|
|
86
|
+
left: `${f.left}px`,
|
|
87
|
+
width: `${l}px`,
|
|
88
|
+
zIndex: n.zIndex
|
|
89
|
+
});
|
|
90
|
+
} else {
|
|
91
|
+
const u = n.offsetBottom ?? 0;
|
|
92
|
+
a = e.bottom - f.bottom <= u, a && (r = {
|
|
93
|
+
position: "fixed",
|
|
94
|
+
bottom: `${window.innerHeight - e.bottom + u}px`,
|
|
95
|
+
left: `${f.left}px`,
|
|
96
|
+
width: `${l}px`,
|
|
97
|
+
zIndex: n.zIndex
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if ($(a), !a) {
|
|
101
|
+
g.value = {}, y.value = {};
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
g.value = {
|
|
105
|
+
width: `${l}px`,
|
|
106
|
+
height: `${w}px`
|
|
107
|
+
}, y.value = r;
|
|
108
|
+
}
|
|
109
|
+
function i() {
|
|
110
|
+
typeof window > "u" || (cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
111
|
+
v = 0, L();
|
|
112
|
+
}));
|
|
113
|
+
}
|
|
114
|
+
function S() {
|
|
115
|
+
o == null || o.removeEventListener("scroll", i), s == null || s.removeEventListener("scroll", i), window.removeEventListener("resize", i), window.removeEventListener("scroll", i, !0);
|
|
116
|
+
}
|
|
117
|
+
function U() {
|
|
118
|
+
o.addEventListener("scroll", i, { passive: !0 }), s !== o && s.addEventListener("scroll", i, { passive: !0 }), window.addEventListener("resize", i, { passive: !0 }), window.addEventListener("scroll", i, { passive: !0, capture: !0 });
|
|
119
|
+
}
|
|
120
|
+
function C() {
|
|
121
|
+
d == null || d.disconnect(), d = null, p == null || p.disconnect(), p = null;
|
|
122
|
+
}
|
|
123
|
+
function V() {
|
|
124
|
+
C(), typeof ResizeObserver < "u" && (d = new ResizeObserver(() => {
|
|
125
|
+
i();
|
|
126
|
+
}), h.value && d.observe(h.value), c.value && d.observe(c.value), B(o) || d.observe(o), s !== o && !B(s) && d.observe(s)), typeof MutationObserver < "u" && c.value && (p = new MutationObserver(() => {
|
|
127
|
+
i();
|
|
128
|
+
}), p.observe(c.value, {
|
|
129
|
+
childList: !0,
|
|
130
|
+
subtree: !0,
|
|
131
|
+
characterData: !0,
|
|
132
|
+
attributes: !0
|
|
133
|
+
}));
|
|
134
|
+
}
|
|
135
|
+
function T() {
|
|
136
|
+
!R || typeof window > "u" || (S(), C(), o = E(n.target) ?? window, s = E(n.targetContainer) ?? window, U(), V(), i());
|
|
137
|
+
}
|
|
138
|
+
return A({
|
|
139
|
+
updatePosition: L,
|
|
140
|
+
scheduleUpdate: i
|
|
141
|
+
}), I(
|
|
142
|
+
() => [z(n.target), z(n.targetContainer)],
|
|
143
|
+
() => {
|
|
144
|
+
G(() => {
|
|
145
|
+
T();
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
), I(
|
|
149
|
+
() => [n.offsetTop, n.offsetBottom, n.disabled, n.zIndex],
|
|
150
|
+
() => {
|
|
151
|
+
i();
|
|
152
|
+
}
|
|
153
|
+
), J(() => {
|
|
154
|
+
R = !0, T();
|
|
155
|
+
}), K(() => {
|
|
156
|
+
R = !1, S(), C(), v && (cancelAnimationFrame(v), v = 0);
|
|
157
|
+
}), (t, e) => (M(), k("div", Q({
|
|
158
|
+
ref_key: "wrapperRef",
|
|
159
|
+
ref: h,
|
|
160
|
+
class: "x-affix-wrapper"
|
|
161
|
+
}, t.$attrs), [
|
|
162
|
+
m.value ? (M(), k("div", {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "x-affix-placeholder",
|
|
165
|
+
style: _(g.value),
|
|
166
|
+
"aria-hidden": "true"
|
|
167
|
+
}, null, 4)) : Y("", !0),
|
|
168
|
+
Z("div", {
|
|
169
|
+
ref_key: "affixRef",
|
|
170
|
+
ref: c,
|
|
171
|
+
class: ee(H.value),
|
|
172
|
+
style: _(y.value)
|
|
173
|
+
}, [
|
|
174
|
+
te(t.$slots, "default", {}, void 0, !0)
|
|
175
|
+
], 6)
|
|
176
|
+
], 16));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
export {
|
|
180
|
+
oe as default
|
|
181
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as B, getCurrentInstance as z, useAttrs as L, ref as I, computed as a, openBlock as s, createBlock as S, Transition as T, withCtx as $, createElementBlock as l, mergeProps as A, unref as u, renderSlot as n, createVNode as p, createCommentVNode as r, createElementVNode as C, createTextVNode as N, toDisplayString as V } from "vue";
|
|
2
|
+
import w from "./XIcon.js";
|
|
3
|
+
const Z = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "x-alert__icon"
|
|
6
|
+
}, D = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "x-alert__status-svg",
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
}, E = ["innerHTML"], H = { class: "x-alert__body" }, P = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "x-alert__title"
|
|
13
|
+
}, X = { class: "x-alert__content" }, G = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "x-alert__action"
|
|
16
|
+
}, j = /* @__PURE__ */ B({
|
|
17
|
+
__name: "XAlert",
|
|
18
|
+
props: {
|
|
19
|
+
type: { default: "info" },
|
|
20
|
+
showIcon: { type: Boolean, default: !0 },
|
|
21
|
+
closable: { type: Boolean, default: !1 },
|
|
22
|
+
title: { default: "" },
|
|
23
|
+
banner: { type: Boolean, default: !1 },
|
|
24
|
+
center: { type: Boolean, default: !1 }
|
|
25
|
+
},
|
|
26
|
+
emits: ["close", "afterClose"],
|
|
27
|
+
setup(c, { emit: _ }) {
|
|
28
|
+
const g = {
|
|
29
|
+
info: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="info"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M512 672.5c-17.7 0-32-14.3-32-32v-416c0-17.7 14.3-32 32-32s32 14.3 32 32v416c0 17.7-14.3 32-32 32zM512 801c-17.7 0-32-14.3-32-32v-1c0-17.7 14.3-32 32-32s32 14.3 32 32v1c0 17.7-14.3 32-32 32z"></path></svg>',
|
|
30
|
+
success: '<svg role="img" aria-label="success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8.00016 14C11.3139 14 14.0002 11.3137 14.0002 8.00004C14.0002 4.68633 11.3139 2.00004 8.00016 2.00004C4.68646 2.00004 2.00016 4.68633 2.00016 8.00004C2.00016 11.3137 4.68645 14 8.00016 14ZM15.3335 8.00004C15.3335 12.0501 12.0503 15.3334 8.00016 15.3334C3.95008 15.3334 0.66683 12.0501 0.666831 8.00004C0.666831 3.94995 3.95008 0.666707 8.00016 0.666707C12.0503 0.666708 15.3335 3.94995 15.3335 8.00004ZM7.3335 10.6095L4.72402 8.00004L5.66683 7.05723L7.3335 8.7239L10.6668 5.39057L11.6096 6.33337L7.3335 10.6095Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" fill-opacity="0.9"></path></svg>',
|
|
31
|
+
warning: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="warning"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M512 672.5c-17.7 0-32-14.3-32-32v-416c0-17.7 14.3-32 32-32s32 14.3 32 32v416c0 17.7-14.3 32-32 32zM512 801c-17.7 0-32-14.3-32-32v-1c0-17.7 14.3-32 32-32s32 14.3 32 32v1c0 17.7-14.3 32-32 32z"></path></svg>',
|
|
32
|
+
error: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="error"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M562.9 517.7l145.1 145c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-145-145.1c-3.1-3.1-8.2-3.1-11.3 0L361.3 708c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l145.1-145.1c3.1-3.1 3.1-8.2 0-11.3L316 361.3c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l145.1 145.1c3.1 3.1 8.2 3.1 11.3 0l145-145.1c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-145.1 145a8.15 8.15 0 0 0 0 11.4z"></path></svg>'
|
|
33
|
+
}, e = c, d = _, o = z(), m = L(), v = I(!0), h = a(() => !!(e.title || o != null && o.slots.title)), x = a(() => [
|
|
34
|
+
"x-alert",
|
|
35
|
+
`x-alert--${e.type}`,
|
|
36
|
+
{
|
|
37
|
+
"x-alert--with-title": h.value,
|
|
38
|
+
"x-alert--banner": e.banner,
|
|
39
|
+
"x-alert--center": e.center
|
|
40
|
+
}
|
|
41
|
+
]), i = a(() => e.type !== "normal"), y = a(() => e.showIcon && (i.value || !!(o != null && o.slots.icon))), k = a(() => i.value && e.type === "warning"), f = a(() => i.value ? g[e.type] : "");
|
|
42
|
+
function b(t) {
|
|
43
|
+
v.value = !1, d("close", t);
|
|
44
|
+
}
|
|
45
|
+
function M() {
|
|
46
|
+
d("afterClose");
|
|
47
|
+
}
|
|
48
|
+
return (t, O) => (s(), S(T, {
|
|
49
|
+
name: "x-fade",
|
|
50
|
+
onAfterLeave: M
|
|
51
|
+
}, {
|
|
52
|
+
default: $(() => [
|
|
53
|
+
v.value ? (s(), l("div", A({
|
|
54
|
+
key: 0,
|
|
55
|
+
role: "alert",
|
|
56
|
+
class: x.value
|
|
57
|
+
}, u(m)), [
|
|
58
|
+
y.value ? (s(), l("div", Z, [
|
|
59
|
+
n(t.$slots, "icon", {}, () => [
|
|
60
|
+
k.value ? (s(), l("span", D, [
|
|
61
|
+
p(u(w), { name: "warning" })
|
|
62
|
+
])) : f.value ? (s(), l("span", {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: "x-alert__status-svg",
|
|
65
|
+
"aria-hidden": "true",
|
|
66
|
+
innerHTML: f.value
|
|
67
|
+
}, null, 8, E)) : r("", !0)
|
|
68
|
+
])
|
|
69
|
+
])) : r("", !0),
|
|
70
|
+
C("div", H, [
|
|
71
|
+
h.value ? (s(), l("div", P, [
|
|
72
|
+
n(t.$slots, "title", {}, () => [
|
|
73
|
+
N(V(c.title), 1)
|
|
74
|
+
])
|
|
75
|
+
])) : r("", !0),
|
|
76
|
+
C("div", X, [
|
|
77
|
+
n(t.$slots, "default")
|
|
78
|
+
])
|
|
79
|
+
]),
|
|
80
|
+
t.$slots.action ? (s(), l("div", G, [
|
|
81
|
+
n(t.$slots, "action")
|
|
82
|
+
])) : r("", !0),
|
|
83
|
+
c.closable ? (s(), l("div", {
|
|
84
|
+
key: 2,
|
|
85
|
+
tabindex: "-1",
|
|
86
|
+
role: "button",
|
|
87
|
+
"aria-label": "Close",
|
|
88
|
+
class: "x-alert__close-btn",
|
|
89
|
+
onClick: b
|
|
90
|
+
}, [
|
|
91
|
+
n(t.$slots, "close-element", {}, () => [
|
|
92
|
+
p(u(w), {
|
|
93
|
+
name: "guanbi",
|
|
94
|
+
size: 12
|
|
95
|
+
})
|
|
96
|
+
])
|
|
97
|
+
])) : r("", !0)
|
|
98
|
+
], 16)) : r("", !0)
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
j as default
|
|
106
|
+
};
|
|
@@ -18,8 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
18
18
|
changeHash?: boolean;
|
|
19
19
|
smooth?: boolean;
|
|
20
20
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
-
change: (href: string) => any;
|
|
22
21
|
select: (href: string, preHash: string) => any;
|
|
22
|
+
change: (href: string) => any;
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<{
|
|
24
24
|
boundary?: "start" | "end" | "center" | "nearest" | number;
|
|
25
25
|
lineLess?: boolean;
|
|
@@ -28,8 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
28
28
|
changeHash?: boolean;
|
|
29
29
|
smooth?: boolean;
|
|
30
30
|
}> & Readonly<{
|
|
31
|
-
onChange?: ((href: string) => any) | undefined;
|
|
32
31
|
onSelect?: ((href: string, preHash: string) => any) | undefined;
|
|
32
|
+
onChange?: ((href: string) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
smooth: boolean;
|
|
35
35
|
boundary: "start" | "end" | "center" | "nearest" | number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import o from "./XAnchor.vue2.js";
|
|
2
|
+
import { anchorKey as f } from "./XAnchor.vue2.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0a36d1be"]]);
|
|
6
|
+
export {
|
|
7
|
+
f as anchorKey,
|
|
8
|
+
m as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { defineComponent as Z, ref as s, provide as ee, watch as I, nextTick as C, onMounted as te, onUnmounted as ne, openBlock as q, createElementBlock as z, normalizeClass as oe, createCommentVNode as ie, createElementVNode as re, renderSlot as ce } from "vue";
|
|
2
|
+
const le = { class: "x-anchor__list" }, se = Symbol.for("rhino.design.vue.anchor"), ue = /* @__PURE__ */ Z({
|
|
3
|
+
__name: "XAnchor",
|
|
4
|
+
props: {
|
|
5
|
+
boundary: { default: "start" },
|
|
6
|
+
lineLess: { type: Boolean, default: !1 },
|
|
7
|
+
scrollContainer: {},
|
|
8
|
+
target: {},
|
|
9
|
+
changeHash: { type: Boolean, default: !0 },
|
|
10
|
+
smooth: { type: Boolean, default: !0 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["select", "change"],
|
|
13
|
+
setup(b, { emit: F }) {
|
|
14
|
+
const n = b, M = F, T = s(), R = s(), f = s(""), c = /* @__PURE__ */ new Map(), w = s([]), k = s(0), S = /* @__PURE__ */ new Map(), L = s(!1);
|
|
15
|
+
let h, m = 0, g = null, v = null;
|
|
16
|
+
const B = s(window), x = s(document.documentElement);
|
|
17
|
+
function E(e) {
|
|
18
|
+
return e === window;
|
|
19
|
+
}
|
|
20
|
+
function $() {
|
|
21
|
+
const e = n.target || n.scrollContainer;
|
|
22
|
+
return e ? typeof e == "string" ? document.querySelector(e) || window : e : window;
|
|
23
|
+
}
|
|
24
|
+
function A() {
|
|
25
|
+
const e = $(), t = v !== e;
|
|
26
|
+
B.value = e, x.value = E(e) ? document.documentElement : e, t && G(e);
|
|
27
|
+
}
|
|
28
|
+
function N(e, t) {
|
|
29
|
+
!e || !t || (c.has(e) || (w.value = [...w.value, e]), c.set(e, t), k.value += 1);
|
|
30
|
+
}
|
|
31
|
+
function D(e) {
|
|
32
|
+
c.has(e) && (c.delete(e), w.value = w.value.filter((t) => t !== e), S.delete(e), k.value += 1);
|
|
33
|
+
}
|
|
34
|
+
function K(e) {
|
|
35
|
+
!e || f.value === e || (f.value = e, M("change", e));
|
|
36
|
+
}
|
|
37
|
+
function V(e) {
|
|
38
|
+
if (!e || !e.startsWith("#"))
|
|
39
|
+
return null;
|
|
40
|
+
const t = S.get(e);
|
|
41
|
+
if (t && document.contains(t))
|
|
42
|
+
return t;
|
|
43
|
+
let o = e.slice(1);
|
|
44
|
+
try {
|
|
45
|
+
o = decodeURIComponent(o);
|
|
46
|
+
} catch {
|
|
47
|
+
o = e.slice(1);
|
|
48
|
+
}
|
|
49
|
+
const r = document.getElementById(o);
|
|
50
|
+
return S.set(e, r), r;
|
|
51
|
+
}
|
|
52
|
+
function W(e) {
|
|
53
|
+
const t = V(e);
|
|
54
|
+
if (!t)
|
|
55
|
+
return;
|
|
56
|
+
const o = B.value, r = E(o);
|
|
57
|
+
if (typeof n.boundary == "number") {
|
|
58
|
+
const l = n.boundary;
|
|
59
|
+
if (r) {
|
|
60
|
+
const y = t.getBoundingClientRect().top + window.scrollY - l;
|
|
61
|
+
window.scrollTo({
|
|
62
|
+
top: y,
|
|
63
|
+
behavior: n.smooth ? "smooth" : "auto"
|
|
64
|
+
});
|
|
65
|
+
} else {
|
|
66
|
+
const y = o, J = y.getBoundingClientRect(), P = t.getBoundingClientRect(), Q = y.scrollTop + P.top - J.top - l;
|
|
67
|
+
y.scrollTo({
|
|
68
|
+
top: Q,
|
|
69
|
+
behavior: n.smooth ? "smooth" : "auto"
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (r) {
|
|
75
|
+
t.scrollIntoView({
|
|
76
|
+
block: n.boundary,
|
|
77
|
+
behavior: n.smooth ? "smooth" : "auto"
|
|
78
|
+
});
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const i = o, _ = i.getBoundingClientRect(), a = t.getBoundingClientRect(), u = i.scrollTop + a.top - _.top;
|
|
82
|
+
let d = u;
|
|
83
|
+
if (n.boundary === "center")
|
|
84
|
+
d -= (i.clientHeight - a.height) / 2;
|
|
85
|
+
else if (n.boundary === "end")
|
|
86
|
+
d -= i.clientHeight - a.height;
|
|
87
|
+
else if (n.boundary === "nearest") {
|
|
88
|
+
const l = u - (i.clientHeight - a.height);
|
|
89
|
+
d = Math.abs(i.scrollTop - u) <= Math.abs(i.scrollTop - l) ? u : l;
|
|
90
|
+
}
|
|
91
|
+
i.scrollTo({
|
|
92
|
+
top: d,
|
|
93
|
+
behavior: n.smooth ? "smooth" : "auto"
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function O() {
|
|
97
|
+
L.value = !0, h && clearTimeout(h), h = setTimeout(() => {
|
|
98
|
+
L.value = !1;
|
|
99
|
+
}, n.smooth ? 320 : 80);
|
|
100
|
+
}
|
|
101
|
+
function U() {
|
|
102
|
+
if (n.lineLess || !R.value)
|
|
103
|
+
return;
|
|
104
|
+
const e = c.get(f.value);
|
|
105
|
+
e && (R.value.style.top = `${e.offsetTop}px`);
|
|
106
|
+
}
|
|
107
|
+
function H(e) {
|
|
108
|
+
if (!c.has(e) && T.value) {
|
|
109
|
+
const t = T.value.querySelector(
|
|
110
|
+
`a[href="${CSS.escape(e)}"]`
|
|
111
|
+
);
|
|
112
|
+
if (t) {
|
|
113
|
+
const o = t.closest("li");
|
|
114
|
+
o && c.set(e, o);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
K(e);
|
|
118
|
+
}
|
|
119
|
+
function X(e, t) {
|
|
120
|
+
e.preventDefault();
|
|
121
|
+
const o = f.value;
|
|
122
|
+
O(), W(t), H(t), n.changeHash && window.location.hash !== t && ((window.location.hash || "").startsWith("#/") || window.history.pushState(null, "", t)), M("select", t, o);
|
|
123
|
+
}
|
|
124
|
+
function Y() {
|
|
125
|
+
const e = B.value, t = x.value;
|
|
126
|
+
if (!e || !t)
|
|
127
|
+
return;
|
|
128
|
+
const o = typeof n.boundary == "number" ? n.boundary : 0, r = E(e), i = t.getBoundingClientRect(), _ = r ? window.innerHeight : t.clientHeight;
|
|
129
|
+
for (const a of w.value) {
|
|
130
|
+
const u = V(a);
|
|
131
|
+
if (!u)
|
|
132
|
+
continue;
|
|
133
|
+
const { top: d } = u.getBoundingClientRect(), l = r ? d - o : d - i.top - o;
|
|
134
|
+
if (l >= 0 && l <= _ / 2)
|
|
135
|
+
return a;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function j() {
|
|
139
|
+
if (L.value)
|
|
140
|
+
return;
|
|
141
|
+
const e = Y();
|
|
142
|
+
e && H(e);
|
|
143
|
+
}
|
|
144
|
+
function p() {
|
|
145
|
+
m || (m = requestAnimationFrame(() => {
|
|
146
|
+
m = 0, j();
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
function G(e) {
|
|
150
|
+
g && v && v.removeEventListener("scroll", g), g = () => {
|
|
151
|
+
p();
|
|
152
|
+
}, v = e, e.addEventListener("scroll", g, { passive: !0 });
|
|
153
|
+
}
|
|
154
|
+
return ee(se, {
|
|
155
|
+
currentLink: f,
|
|
156
|
+
addLink: N,
|
|
157
|
+
removeLink: D,
|
|
158
|
+
handleClick: X
|
|
159
|
+
}), I(f, () => {
|
|
160
|
+
C(() => {
|
|
161
|
+
U();
|
|
162
|
+
});
|
|
163
|
+
}), I(
|
|
164
|
+
() => [n.target, n.scrollContainer],
|
|
165
|
+
() => {
|
|
166
|
+
C(() => {
|
|
167
|
+
A(), p();
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
), I(
|
|
171
|
+
() => [n.boundary, k.value],
|
|
172
|
+
() => {
|
|
173
|
+
C(() => {
|
|
174
|
+
p(), U();
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
), te(() => {
|
|
178
|
+
A(), window.addEventListener("resize", p, { passive: !0 }), C(() => {
|
|
179
|
+
const e = decodeURIComponent(window.location.hash || "");
|
|
180
|
+
c.has(e) ? (W(e), H(e)) : p();
|
|
181
|
+
});
|
|
182
|
+
}), ne(() => {
|
|
183
|
+
v && g && v.removeEventListener("scroll", g), window.removeEventListener("resize", p), m && (cancelAnimationFrame(m), m = 0), h && (clearTimeout(h), h = void 0);
|
|
184
|
+
}), (e, t) => (q(), z("div", {
|
|
185
|
+
ref_key: "anchorRef",
|
|
186
|
+
ref: T,
|
|
187
|
+
class: oe(["x-anchor", { "x-anchor--line-less": b.lineLess }])
|
|
188
|
+
}, [
|
|
189
|
+
b.lineLess ? ie("", !0) : (q(), z("div", {
|
|
190
|
+
key: 0,
|
|
191
|
+
ref_key: "lineSliderRef",
|
|
192
|
+
ref: R,
|
|
193
|
+
class: "x-anchor__line-slider"
|
|
194
|
+
}, null, 512)),
|
|
195
|
+
re("ul", le, [
|
|
196
|
+
ce(e.$slots, "default", {}, void 0, !0)
|
|
197
|
+
])
|
|
198
|
+
], 2));
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
export {
|
|
202
|
+
se as anchorKey,
|
|
203
|
+
ue as default
|
|
204
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as h, useSlots as d, inject as k, ref as m, computed as _, onMounted as v, onUnmounted as p, openBlock as i, createElementBlock as l, normalizeClass as x, createElementVNode as C, createTextVNode as y, toDisplayString as L, renderSlot as s, createCommentVNode as c, unref as b } from "vue";
|
|
2
|
+
import { anchorKey as A } from "./XAnchor.vue2.js";
|
|
3
|
+
const N = ["href"], S = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "x-anchor__sublist"
|
|
6
|
+
}, E = /* @__PURE__ */ h({
|
|
7
|
+
__name: "XAnchorLink",
|
|
8
|
+
props: {
|
|
9
|
+
href: {},
|
|
10
|
+
title: {}
|
|
11
|
+
},
|
|
12
|
+
setup(n) {
|
|
13
|
+
const t = n, a = d(), e = k(A), r = m();
|
|
14
|
+
e || console.warn("[XAnchorLink] must be used inside XAnchor");
|
|
15
|
+
const u = _(() => e ? e.currentLink.value === t.href : !1);
|
|
16
|
+
function f(o) {
|
|
17
|
+
e && e.handleClick(o, t.href);
|
|
18
|
+
}
|
|
19
|
+
return v(() => {
|
|
20
|
+
e && t.href && r.value && e.addLink(t.href, r.value);
|
|
21
|
+
}), p(() => {
|
|
22
|
+
e && e.removeLink(t.href);
|
|
23
|
+
}), (o, V) => (i(), l("li", {
|
|
24
|
+
ref_key: "linkRef",
|
|
25
|
+
ref: r,
|
|
26
|
+
class: x(["x-anchor__link-item", { "x-anchor__link-item--active": u.value }])
|
|
27
|
+
}, [
|
|
28
|
+
C("a", {
|
|
29
|
+
class: "x-anchor__link",
|
|
30
|
+
href: n.href,
|
|
31
|
+
onClick: f
|
|
32
|
+
}, [
|
|
33
|
+
y(L(n.title) + " ", 1),
|
|
34
|
+
n.title ? c("", !0) : s(o.$slots, "default", { key: 0 }, void 0, !0)
|
|
35
|
+
], 8, N),
|
|
36
|
+
b(a).sublist ? (i(), l("ul", S, [
|
|
37
|
+
s(o.$slots, "sublist", {}, void 0, !0)
|
|
38
|
+
])) : c("", !0)
|
|
39
|
+
], 2));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
E as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
|
+
import c from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const n = {}, s = { class: "x-app" };
|
|
4
|
+
function p(e, _) {
|
|
5
|
+
return o(), t("div", s, [
|
|
6
|
+
r(e.$slots, "default")
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
const l = /* @__PURE__ */ c(n, [["render", p]]);
|
|
10
|
+
export {
|
|
11
|
+
l as default
|
|
12
|
+
};
|