@rhino-design/vue 0.2.2 → 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 +1 -1
- 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.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.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.js +399 -0
- package/dist/components/XAutoComplete.vue2.js +4 -0
- 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.js +118 -0
- package/dist/components/XBackTop.vue2.js +4 -0
- package/dist/components/XBadge.vue.js +64 -0
- package/dist/components/XBadge.vue2.js +4 -0
- package/dist/components/XBaseMenu.vue.js +37 -0
- package/dist/components/XBaseMenu.vue2.js +334 -0
- package/dist/components/XBreadcrumb.vue.d.ts +12 -7
- package/dist/components/XBreadcrumb.vue.js +97 -0
- package/dist/components/XBreadcrumb.vue2.js +4 -0
- package/dist/components/XBreadcrumbItem.vue.d.ts +7 -4
- package/dist/components/XBreadcrumbItem.vue.js +136 -0
- package/dist/components/XBreadcrumbItem.vue2.js +4 -0
- package/dist/components/XButton.vue.js +7 -0
- package/dist/components/XButton.vue2.js +142 -0
- package/dist/components/XButtonG.vue.js +7 -0
- package/dist/components/XButtonG.vue2.js +67 -0
- package/dist/components/XButtonGroup.vue.js +39 -0
- package/dist/components/XButtonGroup.vue3.js +5 -0
- package/dist/components/XCalendar.vue.js +309 -0
- package/dist/components/XCalendar.vue2.js +4 -0
- package/dist/components/XCard.vue.js +80 -0
- package/dist/components/XCard.vue2.js +4 -0
- 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.js +1015 -0
- package/dist/components/XCascader.vue2.js +4 -0
- package/dist/components/XCascaderPanel.vue.js +466 -0
- package/dist/components/XCascaderPanel.vue2.js +4 -0
- package/dist/components/XChatInput.vue.js +7 -0
- package/dist/components/XChatInput.vue2.js +454 -0
- package/dist/components/XCheckbox.vue.js +154 -0
- package/dist/components/XCheckbox.vue2.js +4 -0
- package/dist/components/XCheckboxGroup.vue.js +87 -0
- package/dist/components/XCheckboxGroup.vue2.js +4 -0
- package/dist/components/XCollapse.vue.js +54 -0
- package/dist/components/XCollapse.vue2.js +4 -0
- package/dist/components/XCollapseItem.vue.js +152 -0
- package/dist/components/XCollapseItem.vue2.js +4 -0
- 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.js +78 -0
- package/dist/components/XConfigProvider.vue2.js +4 -0
- package/dist/components/XCountdown.vue.js +7 -0
- package/dist/components/XCountdown.vue2.js +104 -0
- package/dist/components/XCropper.vue.js +7 -0
- package/dist/components/XCropper.vue2.js +525 -0
- package/dist/components/XDatePicker.vue.js +1798 -0
- package/dist/components/XDatePicker.vue2.js +4 -0
- package/dist/components/XDescriptions.vue.js +260 -0
- package/dist/components/XDescriptions.vue2.js +4 -0
- package/dist/components/XDescriptionsItem.vue.js +21 -0
- package/dist/components/XDescriptionsItem.vue2.js +4 -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.js +59 -0
- package/dist/components/XDoption.vue2.js +4 -0
- 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 +8 -7
- package/dist/components/XDropdown.vue.js +127 -0
- package/dist/components/XDropdown.vue2.js +4 -0
- package/dist/components/XDropdownButton.vue.js +84 -0
- package/dist/components/XDropdownButton.vue2.js +4 -0
- package/dist/components/XDropdownItem.vue.js +47 -0
- package/dist/components/XDropdownItem.vue2.js +4 -0
- package/dist/components/XDropdownPanel.vue.js +58 -0
- package/dist/components/XDropdownPanel.vue2.js +4 -0
- package/dist/components/XDsubmenu.vue.js +82 -0
- package/dist/components/XDsubmenu.vue2.js +4 -0
- 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.js +156 -0
- package/dist/components/XForm.vue2.js +4 -0
- package/dist/components/XFormItem.vue.js +425 -0
- package/dist/components/XFormItem.vue2.js +4 -0
- package/dist/components/XGrid.vue.js +7 -0
- package/dist/components/XGrid.vue2.js +88 -0
- 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.js +7 -0
- package/dist/components/XGridLayoutItem.vue2.js +56 -0
- package/dist/components/XIcon.js +5 -0
- package/dist/components/XIconLite.js +8 -0
- 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.js +7 -0
- package/dist/components/XInput.vue2.js +537 -0
- 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.js +7 -0
- package/dist/components/XInputNumber.vue2.js +344 -0
- package/dist/components/XInputPassword.vue.js +7 -0
- package/dist/components/XInputPassword.vue2.js +125 -0
- package/dist/components/XInputSearch.vue.js +7 -0
- package/dist/components/XInputSearch.vue2.js +154 -0
- 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.js +21 -0
- package/dist/components/XLink.vue2.js +4 -0
- package/dist/components/XList.vue.js +295 -0
- package/dist/components/XList.vue2.js +4 -0
- 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.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.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.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.js +7 -0
- package/dist/components/XMessage.vue2.js +89 -0
- package/dist/components/XMessageList.js +61 -0
- package/dist/components/XMessageService.js +118 -0
- package/dist/components/XModal.vue.js +7 -0
- package/dist/components/XModal.vue2.js +364 -0
- package/dist/components/XModalService.js +157 -0
- package/dist/components/XNotification.vue.js +7 -0
- package/dist/components/XNotification.vue2.js +107 -0
- package/dist/components/XNotificationList.js +70 -0
- package/dist/components/XNotificationService.js +119 -0
- package/dist/components/XOptgroup.vue.js +14 -0
- package/dist/components/XOptgroup.vue2.js +4 -0
- package/dist/components/XOption.vue.js +21 -0
- package/dist/components/XOption.vue2.js +4 -0
- package/dist/components/XOverflowList.vue.js +149 -0
- package/dist/components/XOverflowList.vue2.js +4 -0
- 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.js +90 -0
- package/dist/components/XPopconfirm.vue2.js +4 -0
- package/dist/components/XPopover.vue.js +53 -0
- package/dist/components/XPopover.vue2.js +4 -0
- package/dist/components/XProgress.vue.js +263 -0
- package/dist/components/XProgress.vue2.js +4 -0
- package/dist/components/XQRCode.vue.js +141 -0
- package/dist/components/XQRCode.vue2.js +4 -0
- package/dist/components/XRadio.vue.js +138 -0
- package/dist/components/XRadio.vue2.js +4 -0
- package/dist/components/XRadioButton.vue.js +41 -0
- package/dist/components/XRadioButton.vue2.js +4 -0
- package/dist/components/XRadioGroup.vue.js +168 -0
- package/dist/components/XRadioGroup.vue2.js +4 -0
- package/dist/components/XRate.vue.js +145 -0
- package/dist/components/XRate.vue2.js +4 -0
- 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.js +7 -0
- package/dist/components/XRichTextEditor.vue2.js +742 -0
- package/dist/components/XScrollbar.vue.d.ts +192 -0
- package/dist/components/XScrollbar.vue.js +190 -0
- package/dist/components/XScrollbar.vue2.js +4 -0
- package/dist/components/XScrollbarThumb.vue.d.ts +2 -6
- 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.js +858 -0
- package/dist/components/XSelect.vue2.js +4 -0
- package/dist/components/XSkeleton.vue.js +37 -0
- package/dist/components/XSkeleton.vue2.js +59 -0
- package/dist/components/XSkeletonLine.vue.js +36 -0
- package/dist/components/XSkeletonLine.vue2.js +4 -0
- package/dist/components/XSkeletonShape.vue.js +21 -0
- package/dist/components/XSkeletonShape.vue2.js +4 -0
- package/dist/components/XSlider.vue.js +402 -0
- package/dist/components/XSlider.vue2.js +4 -0
- 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.js +7 -0
- package/dist/components/XSplit.vue2.js +126 -0
- package/dist/components/XStatistic.vue.js +7 -0
- package/dist/components/XStatistic.vue2.js +176 -0
- package/dist/components/XStep.vue.js +91 -0
- package/dist/components/XStep.vue2.js +4 -0
- package/dist/components/XSteps.vue.js +73 -0
- package/dist/components/XSteps.vue2.js +4 -0
- 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.js +91 -0
- package/dist/components/XSubMenuPop.vue2.js +113 -0
- package/dist/components/XSwitch.vue.js +133 -0
- package/dist/components/XSwitch.vue2.js +4 -0
- package/dist/components/XTabPane.vue.js +59 -0
- package/dist/components/XTabPane.vue2.js +4 -0
- 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.js +402 -0
- package/dist/components/XTabs.vue2.js +4 -0
- package/dist/components/XTag.vue.js +126 -0
- package/dist/components/XTag.vue2.js +4 -0
- package/dist/components/XTextarea.vue.js +261 -0
- package/dist/components/XTextarea.vue2.js +4 -0
- package/dist/components/XTimePicker.vue.js +827 -0
- package/dist/components/XTimePicker.vue2.js +4 -0
- package/dist/components/XTimeline.vue.js +84 -0
- package/dist/components/XTimeline.vue2.js +4 -0
- package/dist/components/XTimelineItem.vue.js +202 -0
- package/dist/components/XTimelineItem.vue2.js +4 -0
- 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.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.js +7 -0
- package/dist/components/XTreeSelect.vue2.js +715 -0
- package/dist/components/XTrigger.vue.js +492 -0
- package/dist/components/XTrigger.vue2.js +4 -0
- package/dist/components/XTypography.vue.js +51 -0
- package/dist/components/XTypography.vue2.js +126 -0
- package/dist/components/XTypographyParagraph.vue.js +83 -0
- package/dist/components/XTypographyParagraph.vue2.js +4 -0
- package/dist/components/XTypographyText.vue.js +76 -0
- package/dist/components/XTypographyText.vue2.js +4 -0
- package/dist/components/XTypographyTitle.vue.js +77 -0
- package/dist/components/XTypographyTitle.vue2.js +4 -0
- package/dist/components/XUpload.vue.js +7 -0
- package/dist/components/XUpload.vue2.js +1060 -0
- package/dist/components/XVerificationCode.vue.js +149 -0
- package/dist/components/XVerificationCode.vue2.js +4 -0
- package/dist/components/XWatermark.vue.js +204 -0
- package/dist/components/XWatermark.vue2.js +4 -0
- package/dist/components/index.d.ts +10 -6
- 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.js +4 -0
- package/dist/components/x-checkbox-context.js +4 -0
- package/dist/components/x-dropdown-context.js +4 -0
- package/dist/components/x-icon-shared.js +151 -0
- package/dist/components/x-radio-context.js +4 -0
- package/dist/components/x-scrollbar-types.d.ts +5 -0
- package/dist/composables/collapse.js +9 -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.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.js +96 -0
- package/dist/composables/steps.js +9 -0
- package/dist/composables/tabs.js +10 -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 +1 -2
- package/dist/index.css +14834 -0
- package/dist/index.js +382 -31255
- 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.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.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/XRangePicker.vue.d.ts +0 -45
- package/dist/components/__tests__/XAffix.test.d.ts +0 -1
- package/dist/components/__tests__/XAutoComplete.test.d.ts +0 -1
- package/dist/components/__tests__/XBackTop.test.d.ts +0 -1
- package/dist/components/__tests__/XBreadcrumb.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__/XCheckbox.test.d.ts +0 -1
- package/dist/components/__tests__/XCollapse.test.d.ts +0 -1
- package/dist/components/__tests__/XComplexTriggerTheme.test.d.ts +0 -1
- package/dist/components/__tests__/XCropper.test.d.ts +0 -1
- package/dist/components/__tests__/XDropdown.test.d.ts +0 -1
- package/dist/components/__tests__/XImage.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__/XOverflowList.test.d.ts +0 -1
- package/dist/components/__tests__/XOverlayServiceTheme.test.d.ts +0 -1
- package/dist/components/__tests__/XPageHeader.test.d.ts +0 -1
- package/dist/components/__tests__/XRadioGroup.test.d.ts +0 -1
- package/dist/components/__tests__/XResizeBox.test.d.ts +0 -1
- package/dist/components/__tests__/XSkeleton.test.d.ts +0 -1
- package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
- package/dist/components/__tests__/XSteps.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__/XTabs.test.d.ts +0 -1
- package/dist/components/__tests__/XTag.test.d.ts +0 -1
- package/dist/components/__tests__/XThemeAttrAllComponentsSmoke.test.d.ts +0 -1
- package/dist/components/__tests__/XThemeAttrsForwarding.test.d.ts +0 -1
- package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
- package/dist/components/__tests__/XTour.test.d.ts +0 -1
- package/dist/components/__tests__/XTree.test.d.ts +0 -1
- package/dist/components/__tests__/XTreeSelect.test.d.ts +0 -1
- package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
- package/dist/components/__tests__/XTriggerWrappersTheme.test.d.ts +0 -1
- package/dist/components/__tests__/XWatermark.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,128 @@
|
|
|
1
|
+
import { defineComponent as E, ref as w, computed as n, onMounted as O, nextTick as L, onUnmounted as V, openBlock as x, createElementBlock as h, normalizeStyle as M, normalizeClass as R, renderSlot as z, Fragment as H, renderList as W, createCommentVNode as X } from "vue";
|
|
2
|
+
const D = /* @__PURE__ */ E({
|
|
3
|
+
name: "XHeader",
|
|
4
|
+
__name: "XLayoutHeader",
|
|
5
|
+
props: {
|
|
6
|
+
height: { default: 64 },
|
|
7
|
+
flex: { type: Boolean, default: !1 },
|
|
8
|
+
axis: {},
|
|
9
|
+
vertical: { type: Boolean },
|
|
10
|
+
wrap: { type: [Boolean, String], default: !1 },
|
|
11
|
+
gap: {},
|
|
12
|
+
rowGap: {},
|
|
13
|
+
columnGap: {},
|
|
14
|
+
justify: {},
|
|
15
|
+
align: {},
|
|
16
|
+
alignContent: {},
|
|
17
|
+
center: { type: Boolean },
|
|
18
|
+
between: { type: Boolean },
|
|
19
|
+
around: { type: Boolean },
|
|
20
|
+
evenly: { type: Boolean },
|
|
21
|
+
start: { type: Boolean },
|
|
22
|
+
end: { type: Boolean },
|
|
23
|
+
cols: {},
|
|
24
|
+
fillEmpty: { type: Boolean },
|
|
25
|
+
noShrink: { type: Boolean },
|
|
26
|
+
noOverflow: { type: Boolean, default: !0 }
|
|
27
|
+
},
|
|
28
|
+
setup(c) {
|
|
29
|
+
const e = c, o = w(), d = w(0), i = {
|
|
30
|
+
sm: 576,
|
|
31
|
+
md: 768,
|
|
32
|
+
lg: 992,
|
|
33
|
+
xl: 1200,
|
|
34
|
+
xxl: 1600
|
|
35
|
+
}, B = () => {
|
|
36
|
+
const t = window.innerWidth;
|
|
37
|
+
return t >= i.xxl ? "xxl" : t >= i.xl ? "xl" : t >= i.lg ? "lg" : t >= i.md ? "md" : t >= i.sm ? "sm" : "xs";
|
|
38
|
+
}, l = n(() => {
|
|
39
|
+
if (!e.cols) return 0;
|
|
40
|
+
if (typeof e.cols == "number") return e.cols;
|
|
41
|
+
const t = B(), r = e.cols, a = ["xxl", "xl", "lg", "md", "sm", "xs"], f = a.indexOf(t);
|
|
42
|
+
for (let p = f; p < a.length; p++) {
|
|
43
|
+
const g = a[p];
|
|
44
|
+
if (r[g] !== void 0)
|
|
45
|
+
return r[g];
|
|
46
|
+
}
|
|
47
|
+
return 0;
|
|
48
|
+
}), y = n(() => {
|
|
49
|
+
if (!l.value || !e.fillEmpty) return 0;
|
|
50
|
+
const t = d.value % l.value;
|
|
51
|
+
return t === 0 ? 0 : l.value - t;
|
|
52
|
+
}), m = (t) => Array.from(t.children).filter(
|
|
53
|
+
(r) => !r.classList.contains("x-header__empty")
|
|
54
|
+
).length;
|
|
55
|
+
let s = null;
|
|
56
|
+
O(() => {
|
|
57
|
+
e.flex && e.fillEmpty && l.value > 0 && L(() => {
|
|
58
|
+
o.value && (d.value = m(o.value), s = new MutationObserver(() => {
|
|
59
|
+
d.value = o.value ? m(o.value) : 0;
|
|
60
|
+
}), s.observe(o.value, { childList: !0 }));
|
|
61
|
+
});
|
|
62
|
+
}), V(() => {
|
|
63
|
+
s == null || s.disconnect();
|
|
64
|
+
});
|
|
65
|
+
const v = {
|
|
66
|
+
small: "8px",
|
|
67
|
+
middle: "16px",
|
|
68
|
+
large: "24px"
|
|
69
|
+
}, u = (t) => t === void 0 ? "0" : typeof t == "number" ? `${t}px` : t in v ? v[t] : t, C = n(() => e.justify ? e.justify : e.center ? "center" : e.between ? "space-between" : e.around ? "space-around" : e.evenly ? "space-evenly" : e.start ? "flex-start" : e.end ? "flex-end" : "start"), k = n(() => {
|
|
70
|
+
if (e.align) return e.align;
|
|
71
|
+
if ((e.axis === "y" || e.axis === "vertical") && (e.center || e.start || e.end)) {
|
|
72
|
+
if (e.center) return "center";
|
|
73
|
+
if (e.start) return "flex-start";
|
|
74
|
+
if (e.end) return "flex-end";
|
|
75
|
+
}
|
|
76
|
+
return !e.axis && e.center ? "center" : "stretch";
|
|
77
|
+
}), b = n(() => !!(e.vertical || e.axis === "y" || e.axis === "vertical")), G = n(() => ({
|
|
78
|
+
height: typeof e.height == "number" ? `${e.height}px` : e.height
|
|
79
|
+
})), S = n(() => {
|
|
80
|
+
if (!e.flex) return {};
|
|
81
|
+
const t = u(e.gap), r = e.rowGap ? u(e.rowGap) : t, a = e.columnGap ? u(e.columnGap) : t, f = {
|
|
82
|
+
display: "flex",
|
|
83
|
+
flexDirection: b.value ? "column" : "row",
|
|
84
|
+
flexWrap: typeof e.wrap == "string" ? e.wrap : e.wrap ? "wrap" : "nowrap",
|
|
85
|
+
justifyContent: C.value,
|
|
86
|
+
alignItems: k.value,
|
|
87
|
+
rowGap: r,
|
|
88
|
+
columnGap: a
|
|
89
|
+
};
|
|
90
|
+
return e.alignContent && (f.alignContent = e.alignContent), f;
|
|
91
|
+
}), $ = n(() => {
|
|
92
|
+
if (!e.flex) return {};
|
|
93
|
+
const t = {};
|
|
94
|
+
if (e.noShrink && (t["--x-header-child-shrink"] = "0"), e.noOverflow && (t["--x-header-child-min-width"] = "0", t["--x-header-child-overflow"] = "hidden"), l.value > 0) {
|
|
95
|
+
const r = u(e.gap);
|
|
96
|
+
t["--x-header-child-width"] = `calc((100% - ${l.value - 1} * ${r}) / ${l.value})`, t["--x-header-child-flex"] = "0 0 var(--x-header-child-width)";
|
|
97
|
+
}
|
|
98
|
+
return t;
|
|
99
|
+
}), _ = n(() => ({
|
|
100
|
+
...G.value,
|
|
101
|
+
...S.value,
|
|
102
|
+
...$.value
|
|
103
|
+
})), j = n(() => [
|
|
104
|
+
"x-header",
|
|
105
|
+
"x-layout-header",
|
|
106
|
+
e.flex && "x-header--flex",
|
|
107
|
+
e.flex && e.noShrink && "x-header--no-shrink",
|
|
108
|
+
e.flex && e.noOverflow && "x-header--no-overflow",
|
|
109
|
+
e.flex && l.value > 0 && "x-header--has-cols"
|
|
110
|
+
]);
|
|
111
|
+
return (t, r) => (x(), h("header", {
|
|
112
|
+
ref_key: "containerRef",
|
|
113
|
+
ref: o,
|
|
114
|
+
class: R(j.value),
|
|
115
|
+
style: M(_.value)
|
|
116
|
+
}, [
|
|
117
|
+
z(t.$slots, "default"),
|
|
118
|
+
c.flex && c.fillEmpty && y.value > 0 ? (x(!0), h(H, { key: 0 }, W(y.value, (a) => (x(), h("div", {
|
|
119
|
+
key: `empty-${a}`,
|
|
120
|
+
class: "x-header__empty",
|
|
121
|
+
"aria-hidden": "true"
|
|
122
|
+
}))), 128)) : X("", !0)
|
|
123
|
+
], 6));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
export {
|
|
127
|
+
D as default
|
|
128
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as N, ref as i, computed as o, onMounted as V, onUnmounted as A, openBlock as f, createElementBlock as h, normalizeStyle as I, normalizeClass as Q, createElementVNode as L, renderSlot as M, createCommentVNode as w, createVNode as U, unref as j } from "vue";
|
|
2
|
+
import q from "./XIcon.js";
|
|
3
|
+
const F = { class: "x-sider__inner" }, G = { class: "x-sider__trigger-default" }, K = /* @__PURE__ */ N({
|
|
4
|
+
name: "XSider",
|
|
5
|
+
__name: "XLayoutSider",
|
|
6
|
+
props: {
|
|
7
|
+
width: { default: 200 },
|
|
8
|
+
collapsed: { type: Boolean },
|
|
9
|
+
collapsedWidth: { default: 48 },
|
|
10
|
+
bordered: { type: Boolean, default: !0 },
|
|
11
|
+
collapsible: { type: Boolean, default: !1 },
|
|
12
|
+
hideTrigger: { type: Boolean, default: !1 },
|
|
13
|
+
breakpoint: {},
|
|
14
|
+
resizeDirections: {},
|
|
15
|
+
reverseArrow: { type: Boolean, default: !1 },
|
|
16
|
+
defaultCollapsed: { type: Boolean, default: !1 }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:collapsed", "collapse"],
|
|
19
|
+
setup(v, { emit: R }) {
|
|
20
|
+
const l = v, y = R, z = i(l.defaultCollapsed), b = o(() => l.collapsed !== void 0), a = o(() => b.value ? l.collapsed : z.value), T = i(!1), _ = {
|
|
21
|
+
xs: "(max-width: 479px)",
|
|
22
|
+
sm: "(max-width: 575px)",
|
|
23
|
+
md: "(max-width: 767px)",
|
|
24
|
+
lg: "(max-width: 991px)",
|
|
25
|
+
xl: "(max-width: 1199px)",
|
|
26
|
+
xxl: "(max-width: 1599px)"
|
|
27
|
+
};
|
|
28
|
+
let r = null, d = null;
|
|
29
|
+
V(() => {
|
|
30
|
+
l.breakpoint && _[l.breakpoint] && (r = window.matchMedia(_[l.breakpoint]), d = (e) => {
|
|
31
|
+
const t = ("matches" in e, e.matches);
|
|
32
|
+
T.value = t, t !== a.value && k(t, "responsive");
|
|
33
|
+
}, d(r), r.addEventListener("change", d));
|
|
34
|
+
}), A(() => {
|
|
35
|
+
r && d && r.removeEventListener("change", d);
|
|
36
|
+
});
|
|
37
|
+
const k = (e, t = "clickTrigger") => {
|
|
38
|
+
b.value || (z.value = e), y("update:collapsed", e), y("collapse", e, t);
|
|
39
|
+
}, X = () => {
|
|
40
|
+
k(!a.value, "clickTrigger");
|
|
41
|
+
}, $ = o(() => {
|
|
42
|
+
if (u.value && n.value !== null)
|
|
43
|
+
return {
|
|
44
|
+
width: `${n.value}px`,
|
|
45
|
+
flexBasis: `${n.value}px`
|
|
46
|
+
};
|
|
47
|
+
const e = a.value ? l.collapsedWidth : l.width;
|
|
48
|
+
return {
|
|
49
|
+
width: typeof e == "number" ? `${e}px` : e,
|
|
50
|
+
flexBasis: typeof e == "number" ? `${e}px` : e
|
|
51
|
+
};
|
|
52
|
+
}), C = o(() => l.collapsible && !l.hideTrigger), S = o(() => l.reverseArrow ? !a.value : a.value), g = o(() => l.resizeDirections && l.resizeDirections.length > 0), u = i(!1), c = i(null), B = i(0), p = i(0), n = i(null), E = (e, t) => {
|
|
53
|
+
g.value && (e.preventDefault(), u.value = !0, c.value = t, B.value = e.clientX, p.value = typeof l.width == "number" ? l.width : parseInt(l.width) || 200, n.value = p.value, document.addEventListener("mousemove", W), document.addEventListener("mouseup", D));
|
|
54
|
+
}, W = (e) => {
|
|
55
|
+
if (!u.value || !c.value) return;
|
|
56
|
+
const t = e.clientX - B.value;
|
|
57
|
+
let s = p.value;
|
|
58
|
+
c.value === "right" ? s = p.value + t : c.value === "left" && (s = p.value - t);
|
|
59
|
+
const m = typeof l.collapsedWidth == "number" ? l.collapsedWidth : 48;
|
|
60
|
+
s = Math.max(m, s), n.value = s;
|
|
61
|
+
}, D = () => {
|
|
62
|
+
u.value = !1, c.value = null, n.value = null, document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", D);
|
|
63
|
+
};
|
|
64
|
+
return (e, t) => {
|
|
65
|
+
var s, m;
|
|
66
|
+
return f(), h("aside", {
|
|
67
|
+
class: Q(["x-sider x-layout-sider", {
|
|
68
|
+
"is-bordered": v.bordered,
|
|
69
|
+
"is-collapsed": a.value,
|
|
70
|
+
"is-resizing": u.value,
|
|
71
|
+
"has-trigger": C.value
|
|
72
|
+
}]),
|
|
73
|
+
style: I($.value)
|
|
74
|
+
}, [
|
|
75
|
+
L("div", F, [
|
|
76
|
+
M(e.$slots, "default")
|
|
77
|
+
]),
|
|
78
|
+
g.value && ((s = v.resizeDirections) != null && s.includes("right")) ? (f(), h("div", {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "x-sider__resize-handle x-sider__resize-handle--right",
|
|
81
|
+
onMousedown: t[0] || (t[0] = (x) => E(x, "right"))
|
|
82
|
+
}, null, 32)) : w("", !0),
|
|
83
|
+
g.value && ((m = v.resizeDirections) != null && m.includes("left")) ? (f(), h("div", {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: "x-sider__resize-handle x-sider__resize-handle--left",
|
|
86
|
+
onMousedown: t[1] || (t[1] = (x) => E(x, "left"))
|
|
87
|
+
}, null, 32)) : w("", !0),
|
|
88
|
+
C.value ? (f(), h("div", {
|
|
89
|
+
key: 2,
|
|
90
|
+
class: "x-sider__trigger",
|
|
91
|
+
onClick: X
|
|
92
|
+
}, [
|
|
93
|
+
M(e.$slots, "trigger", { collapsed: a.value }, () => [
|
|
94
|
+
L("div", G, [
|
|
95
|
+
U(j(q), {
|
|
96
|
+
class: "x-sider__trigger-icon",
|
|
97
|
+
name: S.value ? "gengduo" : "fanhui"
|
|
98
|
+
}, null, 8, ["name"])
|
|
99
|
+
])
|
|
100
|
+
])
|
|
101
|
+
])) : w("", !0)
|
|
102
|
+
], 6);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
K as default
|
|
108
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as t, createElementBlock as a, normalizeClass as d, renderSlot as i } from "vue";
|
|
2
|
+
const r = ["href"], f = /* @__PURE__ */ n({
|
|
3
|
+
__name: "XLink",
|
|
4
|
+
props: {
|
|
5
|
+
href: { default: "#" },
|
|
6
|
+
type: { default: "primary" },
|
|
7
|
+
disabled: { type: Boolean },
|
|
8
|
+
underline: { type: Boolean, default: !0 }
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (l, o) => (t(), a("a", {
|
|
12
|
+
class: d(["x-link", [`x-link--${e.type}`, { "is-disabled": e.disabled, "is-underline": e.underline }]]),
|
|
13
|
+
href: e.disabled ? void 0 : e.href
|
|
14
|
+
}, [
|
|
15
|
+
i(l.$slots, "default")
|
|
16
|
+
], 10, r));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
f as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { defineComponent as me, useSlots as ye, ref as b, computed as r, onMounted as Pe, nextTick as xe, openBlock as i, createElementBlock as s, createVNode as be, withCtx as B, createElementVNode as c, normalizeStyle as M, normalizeClass as Y, renderSlot as m, createCommentVNode as p, Fragment as g, createBlock as h, renderList as q, mergeProps as ke, isVNode as S, resolveDynamicComponent as I, toDisplayString as Q, unref as W, Comment as _e, Text as Se } from "vue";
|
|
2
|
+
import ze from "./XEmpty.vue.js";
|
|
3
|
+
import Te from "./XGrid.vue.js";
|
|
4
|
+
import Ce from "./XGridItem.vue.js";
|
|
5
|
+
import $e from "./XPagination.vue.js";
|
|
6
|
+
import we from "./XSpin.vue.js";
|
|
7
|
+
import { useXConfigProviderSlotRender as He } from "../composables/config-provider.js";
|
|
8
|
+
const Be = { class: "x-list-wrapper" }, Me = { class: "x-list__content-wrapper" }, Ie = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "x-list__header"
|
|
11
|
+
}, Ee = { class: "x-list-item" }, Le = { class: "x-list-item__main" }, Ve = { class: "x-list-item__content" }, Ne = { class: "x-list-item" }, Oe = { class: "x-list-item__main" }, je = { class: "x-list-item__content" }, Re = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "x-list-item x-list__scroll-loading"
|
|
14
|
+
}, Xe = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "x-list__footer"
|
|
17
|
+
}, Ye = /* @__PURE__ */ me({
|
|
18
|
+
__name: "XList",
|
|
19
|
+
props: {
|
|
20
|
+
bordered: { type: Boolean, default: !0 },
|
|
21
|
+
size: { default: "medium" },
|
|
22
|
+
split: { type: Boolean, default: !0 },
|
|
23
|
+
loading: { type: Boolean, default: !1 },
|
|
24
|
+
hoverable: { type: Boolean, default: !1 },
|
|
25
|
+
data: { default: () => [] },
|
|
26
|
+
dataSource: { default: () => [] },
|
|
27
|
+
paginationProps: { default: void 0 },
|
|
28
|
+
gridProps: { default: void 0 },
|
|
29
|
+
maxHeight: { default: 0 },
|
|
30
|
+
bottomOffset: { default: 0 },
|
|
31
|
+
virtualListProps: { default: void 0 },
|
|
32
|
+
scrollbar: { type: [Boolean, Object], default: !0 }
|
|
33
|
+
},
|
|
34
|
+
emits: ["scroll", "reach-bottom", "page-change", "page-size-change"],
|
|
35
|
+
setup(n, { expose: Z, emit: ee }) {
|
|
36
|
+
var J, K;
|
|
37
|
+
const l = n, y = ee, k = ye(), z = b(null), E = b(0), L = b(0), T = b(((J = l.paginationProps) == null ? void 0 : J.defaultCurrent) ?? 1), C = b(((K = l.paginationProps) == null ? void 0 : K.defaultPageSize) ?? 10), V = r(() => {
|
|
38
|
+
var e;
|
|
39
|
+
return ((e = l.paginationProps) == null ? void 0 : e.current) ?? T.value;
|
|
40
|
+
}), _ = r(() => {
|
|
41
|
+
var e;
|
|
42
|
+
return ((e = l.paginationProps) == null ? void 0 : e.pageSize) ?? C.value;
|
|
43
|
+
}), N = r(() => !!l.paginationProps), O = He(
|
|
44
|
+
"empty",
|
|
45
|
+
r(() => ({ component: "list" }))
|
|
46
|
+
), te = r(() => [
|
|
47
|
+
"x-list",
|
|
48
|
+
`x-list--${l.size}`,
|
|
49
|
+
{
|
|
50
|
+
"x-list--bordered": l.bordered,
|
|
51
|
+
"x-list--split": l.split,
|
|
52
|
+
"x-list--hover": l.hoverable,
|
|
53
|
+
"x-list--scrollbar-hidden": l.scrollbar === !1
|
|
54
|
+
}
|
|
55
|
+
]), oe = r(() => [
|
|
56
|
+
"x-list__content",
|
|
57
|
+
{
|
|
58
|
+
"x-list__content--virtual": $.value
|
|
59
|
+
}
|
|
60
|
+
]), le = r(() => {
|
|
61
|
+
const e = l.gridProps;
|
|
62
|
+
if (!e) return {};
|
|
63
|
+
const { gutter: t, ...o } = e;
|
|
64
|
+
return o;
|
|
65
|
+
});
|
|
66
|
+
function j(e) {
|
|
67
|
+
if (!(e == null || e === "" || e === 0))
|
|
68
|
+
return typeof e == "number" ? `${e}px` : e;
|
|
69
|
+
}
|
|
70
|
+
function re(e) {
|
|
71
|
+
if (typeof e == "number") return e;
|
|
72
|
+
if (typeof e == "string") {
|
|
73
|
+
const t = e.trim().match(/^(\d+(?:\.\d+)?)px?$/);
|
|
74
|
+
if (t) return Number(t[1]);
|
|
75
|
+
}
|
|
76
|
+
return 0;
|
|
77
|
+
}
|
|
78
|
+
const ae = r(() => {
|
|
79
|
+
var a;
|
|
80
|
+
const e = {}, t = j((a = l.virtualListProps) == null ? void 0 : a.height), o = j(l.maxHeight);
|
|
81
|
+
if (t ? e.height = t : o && (e.maxHeight = o), Object.keys(e).length > 0)
|
|
82
|
+
return e.overflowY = "auto", e;
|
|
83
|
+
});
|
|
84
|
+
function ie(e) {
|
|
85
|
+
const t = [], o = (a) => {
|
|
86
|
+
if (a && a.type !== _e && !(a.type === Se && typeof a.children == "string" && a.children.trim() === "")) {
|
|
87
|
+
if (a.type === g && Array.isArray(a.children)) {
|
|
88
|
+
a.children.forEach((v) => {
|
|
89
|
+
S(v) && o(v);
|
|
90
|
+
});
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
t.push(a);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
return (e ?? []).forEach((a) => o(a)), t;
|
|
97
|
+
}
|
|
98
|
+
const R = r(() => {
|
|
99
|
+
var e;
|
|
100
|
+
return ie((e = k.default) == null ? void 0 : e.call(k));
|
|
101
|
+
}), P = r(() => R.value.length > 0 ? R.value : l.data.length > 0 ? l.data : l.dataSource.length > 0 ? l.dataSource : []), u = r(() => {
|
|
102
|
+
if (!N.value)
|
|
103
|
+
return P.value;
|
|
104
|
+
if (P.value.length > _.value) {
|
|
105
|
+
const e = Math.max(0, (V.value - 1) * _.value);
|
|
106
|
+
return P.value.slice(e, e + _.value);
|
|
107
|
+
}
|
|
108
|
+
return P.value;
|
|
109
|
+
}), se = r(() => {
|
|
110
|
+
var e;
|
|
111
|
+
return ((e = l.paginationProps) == null ? void 0 : e.total) ?? P.value.length;
|
|
112
|
+
}), $ = r(() => !!l.virtualListProps && !l.gridProps), X = r(() => {
|
|
113
|
+
var e;
|
|
114
|
+
return re(((e = l.virtualListProps) == null ? void 0 : e.height) ?? l.maxHeight);
|
|
115
|
+
}), ne = r(() => {
|
|
116
|
+
var e;
|
|
117
|
+
return ((e = l.virtualListProps) == null ? void 0 : e.threshold) ?? 0;
|
|
118
|
+
}), D = r(() => {
|
|
119
|
+
var e;
|
|
120
|
+
return ((e = l.virtualListProps) == null ? void 0 : e.buffer) ?? 10;
|
|
121
|
+
}), f = r(() => {
|
|
122
|
+
var e;
|
|
123
|
+
return ((e = l.virtualListProps) == null ? void 0 : e.estimatedSize) ?? 30;
|
|
124
|
+
}), d = r(() => !!($.value && X.value > 0 && u.value.length > ne.value && f.value > 0)), ue = r(() => d.value ? Math.ceil(X.value / f.value) + D.value * 3 : u.value.length), x = r(() => d.value ? Math.max(0, Math.floor(L.value / f.value) - D.value) : 0), A = r(() => d.value ? Math.min(u.value.length, x.value + ue.value) : u.value.length), ce = r(() => d.value ? u.value.slice(x.value, A.value) : u.value), G = r(() => d.value ? x.value * f.value : 0), U = r(() => d.value ? Math.max(0, (u.value.length - A.value) * f.value) : 0), F = r(() => u.value.length > 0), de = r(() => !F.value && !k["scroll-loading"]);
|
|
125
|
+
function w(e, t) {
|
|
126
|
+
if (S(e))
|
|
127
|
+
return e.key ?? t;
|
|
128
|
+
if (e && typeof e == "object") {
|
|
129
|
+
const o = e;
|
|
130
|
+
if (typeof o.key == "string" || typeof o.key == "number")
|
|
131
|
+
return o.key;
|
|
132
|
+
if (typeof o.id == "string" || typeof o.id == "number")
|
|
133
|
+
return o.id;
|
|
134
|
+
}
|
|
135
|
+
return t;
|
|
136
|
+
}
|
|
137
|
+
function fe(e) {
|
|
138
|
+
const t = e.target;
|
|
139
|
+
L.value = t.scrollTop;
|
|
140
|
+
const o = Math.floor(t.scrollHeight - (t.scrollTop + t.offsetHeight));
|
|
141
|
+
t.scrollTop > E.value && o <= l.bottomOffset && y("reach-bottom"), y("scroll", e), E.value = t.scrollTop;
|
|
142
|
+
}
|
|
143
|
+
function ve(e) {
|
|
144
|
+
T.value = e, y("page-change", e);
|
|
145
|
+
}
|
|
146
|
+
function pe(e) {
|
|
147
|
+
C.value = e, y("page-size-change", e);
|
|
148
|
+
}
|
|
149
|
+
function ge(e) {
|
|
150
|
+
return typeof e.index == "number" ? e.index : e.key === void 0 || e.key === null ? -1 : u.value.findIndex((t, o) => w(t, o) === e.key);
|
|
151
|
+
}
|
|
152
|
+
function he(e) {
|
|
153
|
+
if (!$.value) return;
|
|
154
|
+
const t = z.value;
|
|
155
|
+
if (!t) return;
|
|
156
|
+
const o = ge(e);
|
|
157
|
+
if (o < 0) return;
|
|
158
|
+
const a = e.align ?? "auto", v = o * f.value, H = v + f.value;
|
|
159
|
+
if (a === "top") {
|
|
160
|
+
t.scrollTop = v;
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (a === "bottom") {
|
|
164
|
+
t.scrollTop = Math.max(0, H - t.clientHeight);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
v < t.scrollTop ? t.scrollTop = v : H > t.scrollTop + t.clientHeight && (t.scrollTop = H - t.clientHeight);
|
|
168
|
+
}
|
|
169
|
+
return Z({
|
|
170
|
+
scrollIntoView: he
|
|
171
|
+
}), Pe(() => {
|
|
172
|
+
xe(() => {
|
|
173
|
+
const e = z.value;
|
|
174
|
+
if (!e) return;
|
|
175
|
+
Math.floor(e.scrollHeight - (e.scrollTop + e.offsetHeight)) <= l.bottomOffset && y("reach-bottom");
|
|
176
|
+
});
|
|
177
|
+
}), (e, t) => (i(), s("div", Be, [
|
|
178
|
+
be(we, {
|
|
179
|
+
class: "x-list-spin",
|
|
180
|
+
loading: n.loading
|
|
181
|
+
}, {
|
|
182
|
+
default: B(() => [
|
|
183
|
+
c("div", {
|
|
184
|
+
ref_key: "listRef",
|
|
185
|
+
ref: z,
|
|
186
|
+
class: Y(te.value),
|
|
187
|
+
style: M(ae.value),
|
|
188
|
+
onScroll: fe
|
|
189
|
+
}, [
|
|
190
|
+
c("div", Me, [
|
|
191
|
+
e.$slots.header ? (i(), s("div", Ie, [
|
|
192
|
+
m(e.$slots, "header")
|
|
193
|
+
])) : p("", !0),
|
|
194
|
+
c("div", {
|
|
195
|
+
role: "list",
|
|
196
|
+
class: Y(oe.value)
|
|
197
|
+
}, [
|
|
198
|
+
F.value ? (i(), s(g, { key: 0 }, [
|
|
199
|
+
n.gridProps ? (i(), h(Te, {
|
|
200
|
+
key: 0,
|
|
201
|
+
class: "x-list-row",
|
|
202
|
+
gutter: n.gridProps.gutter ?? 0
|
|
203
|
+
}, {
|
|
204
|
+
default: B(() => [
|
|
205
|
+
(i(!0), s(g, null, q(u.value, (o, a) => (i(), h(Ce, ke({
|
|
206
|
+
key: String(w(o, a)),
|
|
207
|
+
class: "x-list-col"
|
|
208
|
+
}, { ref_for: !0 }, le.value), {
|
|
209
|
+
default: B(() => [
|
|
210
|
+
S(o) ? (i(), h(I(o), { key: 0 })) : m(e.$slots, "item", {
|
|
211
|
+
key: 1,
|
|
212
|
+
item: o,
|
|
213
|
+
index: a
|
|
214
|
+
}, () => [
|
|
215
|
+
c("div", Ee, [
|
|
216
|
+
c("div", Le, [
|
|
217
|
+
c("div", Ve, Q(o), 1)
|
|
218
|
+
])
|
|
219
|
+
])
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1040))), 128))
|
|
224
|
+
]),
|
|
225
|
+
_: 3
|
|
226
|
+
}, 8, ["gutter"])) : (i(), s(g, { key: 1 }, [
|
|
227
|
+
G.value ? (i(), s("div", {
|
|
228
|
+
key: 0,
|
|
229
|
+
class: "x-list__spacer",
|
|
230
|
+
style: M({ height: `${G.value}px` }),
|
|
231
|
+
"aria-hidden": "true"
|
|
232
|
+
}, null, 4)) : p("", !0),
|
|
233
|
+
(i(!0), s(g, null, q(ce.value, (o, a) => (i(), s(g, {
|
|
234
|
+
key: String(w(o, (d.value ? x.value : 0) + a))
|
|
235
|
+
}, [
|
|
236
|
+
S(o) ? (i(), h(I(o), { key: 0 })) : m(e.$slots, "item", {
|
|
237
|
+
key: 1,
|
|
238
|
+
item: o,
|
|
239
|
+
index: (d.value ? x.value : 0) + a
|
|
240
|
+
}, () => [
|
|
241
|
+
c("div", Ne, [
|
|
242
|
+
c("div", Oe, [
|
|
243
|
+
c("div", je, Q(o), 1)
|
|
244
|
+
])
|
|
245
|
+
])
|
|
246
|
+
])
|
|
247
|
+
], 64))), 128)),
|
|
248
|
+
U.value ? (i(), s("div", {
|
|
249
|
+
key: 1,
|
|
250
|
+
class: "x-list__spacer",
|
|
251
|
+
style: M({ height: `${U.value}px` }),
|
|
252
|
+
"aria-hidden": "true"
|
|
253
|
+
}, null, 4)) : p("", !0)
|
|
254
|
+
], 64))
|
|
255
|
+
], 64)) : de.value ? (i(), s(g, { key: 1 }, [
|
|
256
|
+
e.$slots.empty ? m(e.$slots, "empty", { key: 0 }) : W(O) ? (i(), h(I(W(O)), { key: 1 })) : (i(), h(ze, {
|
|
257
|
+
key: 2,
|
|
258
|
+
"in-config-provider": ""
|
|
259
|
+
}))
|
|
260
|
+
], 64)) : p("", !0),
|
|
261
|
+
e.$slots["scroll-loading"] ? (i(), s("div", Re, [
|
|
262
|
+
m(e.$slots, "scroll-loading")
|
|
263
|
+
])) : p("", !0)
|
|
264
|
+
], 2),
|
|
265
|
+
e.$slots.footer ? (i(), s("div", Xe, [
|
|
266
|
+
m(e.$slots, "footer")
|
|
267
|
+
])) : p("", !0)
|
|
268
|
+
])
|
|
269
|
+
], 38),
|
|
270
|
+
N.value && n.paginationProps ? (i(), h($e, {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: "x-list__pagination",
|
|
273
|
+
current: V.value,
|
|
274
|
+
total: se.value,
|
|
275
|
+
"page-size": _.value,
|
|
276
|
+
"page-size-options": n.paginationProps.pageSizeOptions,
|
|
277
|
+
"show-total": n.paginationProps.showTotal,
|
|
278
|
+
"show-jumper": n.paginationProps.showJumper,
|
|
279
|
+
"show-page-size": n.paginationProps.showPageSize,
|
|
280
|
+
simple: n.paginationProps.simple,
|
|
281
|
+
size: n.paginationProps.size,
|
|
282
|
+
"onUpdate:current": t[0] || (t[0] = (o) => T.value = o),
|
|
283
|
+
"onUpdate:pageSize": t[1] || (t[1] = (o) => C.value = o),
|
|
284
|
+
onChange: ve,
|
|
285
|
+
onPageSizeChange: pe
|
|
286
|
+
}, null, 8, ["current", "total", "page-size", "page-size-options", "show-total", "show-jumper", "show-page-size", "simple", "size"])) : p("", !0)
|
|
287
|
+
]),
|
|
288
|
+
_: 3
|
|
289
|
+
}, 8, ["loading"])
|
|
290
|
+
]));
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
export {
|
|
294
|
+
Ye as default
|
|
295
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as x, useSlots as f, computed as _, Comment as k, Text as $, openBlock as t, createElementBlock as e, createElementVNode as d, renderSlot as c, Fragment as h, renderList as v, createBlock as y, resolveDynamicComponent as p, createCommentVNode as r } from "vue";
|
|
2
|
+
const L = {
|
|
3
|
+
role: "listitem",
|
|
4
|
+
class: "x-list-item"
|
|
5
|
+
}, C = { class: "x-list-item__main" }, g = { class: "x-list-item__content" }, z = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "x-list-item__action"
|
|
8
|
+
}, B = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "x-list-item__action"
|
|
11
|
+
}, N = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "x-list-item__extra"
|
|
14
|
+
}, S = /* @__PURE__ */ x({
|
|
15
|
+
__name: "XListItem",
|
|
16
|
+
props: {
|
|
17
|
+
actionLayout: { default: "horizontal" }
|
|
18
|
+
},
|
|
19
|
+
setup(m) {
|
|
20
|
+
const s = f(), l = _(() => {
|
|
21
|
+
var o;
|
|
22
|
+
return (((o = s.actions) == null ? void 0 : o.call(s)) ?? []).filter((i) => i.type !== k && !(i.type === $ && typeof i.children == "string" && i.children.trim() === ""));
|
|
23
|
+
}), u = _(() => l.value.length > 0);
|
|
24
|
+
return (o, i) => (t(), e("div", L, [
|
|
25
|
+
d("div", C, [
|
|
26
|
+
c(o.$slots, "meta"),
|
|
27
|
+
d("div", g, [
|
|
28
|
+
c(o.$slots, "default")
|
|
29
|
+
]),
|
|
30
|
+
u.value && m.actionLayout === "vertical" ? (t(), e("ul", z, [
|
|
31
|
+
(t(!0), e(h, null, v(l.value, (n, a) => (t(), e("li", {
|
|
32
|
+
key: `x-list-item-action-vertical-${a}`
|
|
33
|
+
}, [
|
|
34
|
+
(t(), y(p(n)))
|
|
35
|
+
]))), 128))
|
|
36
|
+
])) : r("", !0)
|
|
37
|
+
]),
|
|
38
|
+
u.value && m.actionLayout === "horizontal" ? (t(), e("ul", B, [
|
|
39
|
+
(t(!0), e(h, null, v(l.value, (n, a) => (t(), e("li", {
|
|
40
|
+
key: `x-list-item-action-horizontal-${a}`
|
|
41
|
+
}, [
|
|
42
|
+
(t(), y(p(n)))
|
|
43
|
+
]))), 128))
|
|
44
|
+
])) : r("", !0),
|
|
45
|
+
o.$slots.extra ? (t(), e("div", N, [
|
|
46
|
+
c(o.$slots, "extra")
|
|
47
|
+
])) : r("", !0)
|
|
48
|
+
]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
S as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as m, useSlots as u, computed as p, openBlock as s, createElementBlock as i, renderSlot as l, createCommentVNode as o, createTextVNode as d, toDisplayString as c } from "vue";
|
|
2
|
+
const v = { class: "x-list-item-meta" }, _ = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "x-list-item-meta__avatar"
|
|
5
|
+
}, h = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "x-list-item-meta__content"
|
|
8
|
+
}, f = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "x-list-item-meta__title"
|
|
11
|
+
}, k = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "x-list-item-meta__description"
|
|
14
|
+
}, B = /* @__PURE__ */ m({
|
|
15
|
+
__name: "XListItemMeta",
|
|
16
|
+
props: {
|
|
17
|
+
title: { default: void 0 },
|
|
18
|
+
description: { default: void 0 }
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
const a = e, n = u(), r = p(() => !!(a.title || a.description || n.title || n.description));
|
|
22
|
+
return (t, $) => (s(), i("div", v, [
|
|
23
|
+
t.$slots.avatar ? (s(), i("div", _, [
|
|
24
|
+
l(t.$slots, "avatar")
|
|
25
|
+
])) : o("", !0),
|
|
26
|
+
r.value ? (s(), i("div", h, [
|
|
27
|
+
t.$slots.title || e.title ? (s(), i("div", f, [
|
|
28
|
+
l(t.$slots, "title", {}, () => [
|
|
29
|
+
d(c(e.title), 1)
|
|
30
|
+
])
|
|
31
|
+
])) : o("", !0),
|
|
32
|
+
t.$slots.description || e.description ? (s(), i("div", k, [
|
|
33
|
+
l(t.$slots, "description", {}, () => [
|
|
34
|
+
d(c(e.description), 1)
|
|
35
|
+
])
|
|
36
|
+
])) : o("", !0)
|
|
37
|
+
])) : o("", !0)
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
B as default
|
|
43
|
+
};
|