yc-design-vue 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/dist/lang-es/zh-cn.js +26 -26
- package/dist/style.css +1 -1
- package/es/Affix/index.vue.js +0 -4
- package/es/Alert/index.vue.js +0 -4
- package/es/Anchor/Anchor.vue.js +0 -4
- package/es/Anchor/AnchorLink.vue.js +0 -4
- package/es/Anchor/hooks/useContext.d.ts +1 -1
- package/es/Anchor/hooks/useContext.js +5 -13
- package/es/AutoComplete/index.vue.js +0 -4
- package/es/Avatar/Avatar.vue.js +0 -4
- package/es/Avatar/AvatarGroup.vue.js +0 -4
- package/es/BackTop/index.vue.js +0 -4
- package/es/Badge/index.vue.js +0 -4
- package/es/Breadcrumb/Breadcrumb.vue.js +0 -4
- package/es/Breadcrumb/BreadcrumbItem.vue.js +0 -4
- package/es/Breadcrumb/BreadcrumbMore.vue.js +0 -4
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +0 -4
- package/es/Button/hooks/useContext.js +0 -4
- package/es/Calendar/Calendar.vue.js +30 -49
- package/es/Calendar/CalendarMonth.vue.d.ts +4 -6
- package/es/Calendar/CalendarMonth.vue.js +34 -43
- package/es/Calendar/CalendarYear.vue.d.ts +3 -4
- package/es/Calendar/CalendarYear.vue.js +19 -38
- package/es/Calendar/hooks/useCalendar.d.ts +7 -0
- package/es/Calendar/hooks/useCalendar.js +36 -0
- package/es/Card/Card.vue.js +0 -4
- package/es/Card/CardMeta.vue.js +0 -4
- package/es/Carousel/Carousel.vue.js +0 -4
- package/es/Carousel/CarouselArrow.vue.js +0 -4
- package/es/Carousel/CarouselIndicator.vue.js +0 -4
- package/es/Carousel/hooks/useContext.d.ts +11 -2
- package/es/Carousel/hooks/useContext.js +4 -8
- package/es/Cascader/Cascader.vue.js +0 -4
- package/es/Cascader/CascaderIcon.vue.js +0 -4
- package/es/Cascader/CascaderOption.vue.js +0 -4
- package/es/Cascader/hooks/useContext.d.ts +69 -8
- package/es/Cascader/hooks/useContext.js +5 -17
- package/es/Cascader/index.css +1 -1
- package/es/Checkbox/Checkbox.vue.js +0 -4
- package/es/Checkbox/hooks/useContext.js +0 -4
- package/es/Collapse/CollapseItem.vue.js +0 -4
- package/es/Collapse/hooks/useContext.js +0 -4
- package/es/ColorPicker/ColorControl.vue.js +0 -4
- package/es/ColorPicker/ColorInput.vue.js +0 -4
- package/es/ColorPicker/ColorList.vue.js +0 -4
- package/es/ColorPicker/ColorPalette.vue.js +0 -4
- package/es/ColorPicker/ColorPanel.vue.js +0 -4
- package/es/ColorPicker/hooks/useContext.d.ts +12 -1
- package/es/ColorPicker/hooks/useContext.js +5 -9
- package/es/Comment/hooks/useContext.js +0 -4
- package/es/Comment/index.vue.js +0 -4
- package/es/ConfigProvider/index.vue.js +0 -4
- package/es/DatePicker/PickerRange.vue.d.ts +2 -0
- package/es/DatePicker/PickerRange.vue.js +15 -0
- package/es/DatePicker/PickerRange.vue2.js +4 -0
- package/es/DatePicker/YcDatePicker.vue.d.ts +2 -0
- package/es/DatePicker/YcDatePicker.vue.js +15 -0
- package/es/DatePicker/YcDatePicker.vue2.js +4 -0
- package/es/DatePicker/YcMonthPicker.vue.d.ts +66 -0
- package/es/DatePicker/YcMonthPicker.vue.js +230 -0
- package/es/DatePicker/YcMonthPicker.vue3.js +5 -0
- package/es/DatePicker/YcWeekPicker.vue.d.ts +67 -0
- package/es/DatePicker/YcWeekPicker.vue.js +7 -0
- package/es/DatePicker/YcWeekPicker.vue2.js +315 -0
- package/es/DatePicker/YcYearPicker.vue.d.ts +65 -0
- package/es/DatePicker/YcYearPicker.vue.js +196 -0
- package/es/DatePicker/YcYearPicker.vue3.js +5 -0
- package/es/DatePicker/component/PickerCell.vue.d.ts +36 -0
- package/es/DatePicker/component/PickerCell.vue.js +7 -0
- package/es/DatePicker/component/PickerCell.vue2.js +41 -0
- package/es/DatePicker/component/PickerInput.vue.d.ts +297 -0
- package/es/DatePicker/component/PickerInput.vue.js +7 -0
- package/es/DatePicker/component/PickerInput.vue2.js +121 -0
- package/es/DatePicker/component/PickerPanel.vue.d.ts +33 -0
- package/es/DatePicker/component/PickerPanel.vue.js +104 -0
- package/es/DatePicker/component/PickerPanel.vue3.js +5 -0
- package/es/DatePicker/hooks/useContext.d.ts +19 -0
- package/es/DatePicker/hooks/useContext.js +37 -0
- package/es/DatePicker/hooks/userPicker.d.ts +44 -0
- package/es/DatePicker/hooks/userPicker.js +217 -0
- package/es/DatePicker/index.css +3 -0
- package/es/DatePicker/index.d.ts +38 -0
- package/es/DatePicker/index.js +23 -0
- package/es/DatePicker/type.d.ts +104 -0
- package/es/Descriptions/ReuseItem.vue.js +0 -4
- package/es/Descriptions/ReuseTd.vue.js +0 -4
- package/es/Descriptions/hooks/useContext.js +0 -4
- package/es/Divider/index.vue.js +0 -4
- package/es/Drawer/Drawer.vue.js +0 -4
- package/es/Drawer/DrawerService.vue.js +1 -5
- package/es/Dropdown/Dropdown.vue.js +0 -4
- package/es/Dropdown/DropdownButton.vue.js +0 -4
- package/es/Dropdown/Dsubmenu.vue.js +0 -4
- package/es/Dropdown/hooks/useContext.js +0 -4
- package/es/Empty/index.vue.js +0 -4
- package/es/Grid/Grid.vue.js +0 -4
- package/es/Grid/GridCol.vue.js +0 -4
- package/es/Grid/GridItem.vue.js +0 -4
- package/es/Grid/GridRow.vue.js +0 -4
- package/es/Grid/hooks/useContext.d.ts +6 -2
- package/es/Grid/hooks/useContext.js +5 -11
- package/es/Image/Image.vue.js +0 -4
- package/es/Image/ImagePreview.vue.js +0 -4
- package/es/Image/ImagePreviewArrow.vue.js +0 -4
- package/es/Image/ImagePreviewGroup.vue.js +0 -4
- package/es/Image/ImagePreviewToolbar.vue.js +0 -4
- package/es/Image/hooks/useContext.js +0 -4
- package/es/Input/Input.vue.js +0 -4
- package/es/Input/InputPassword.vue.js +0 -4
- package/es/Input/InputSearch.vue.js +0 -4
- package/es/Input/hooks/useLimitedInput.js +0 -4
- package/es/InputNumber/InputNumber.vue.js +0 -4
- package/es/InputNumber/InputOperaBtn.vue.js +0 -4
- package/es/InputTag/index.vue.js +0 -4
- package/es/Layout/Layout.vue.js +0 -4
- package/es/Layout/LayoutSider.vue.js +0 -4
- package/es/Layout/hooks/useSiderContext.js +0 -4
- package/es/Link/index.vue.js +0 -4
- package/es/List/List.vue.js +0 -4
- package/es/List/ListVirtual.vue.js +0 -4
- package/es/List/hooks/useScrollReach.js +0 -4
- package/es/Mention/index.vue.js +0 -4
- package/es/Menu/Menu.vue.js +0 -4
- package/es/Menu/MenuEllipsis.vue.js +0 -4
- package/es/Menu/MenuItem.vue.js +0 -4
- package/es/Menu/MenuItemGroup.vue.js +0 -4
- package/es/Menu/SubMenu.vue.js +0 -4
- package/es/Menu/hooks/useCalcMaxMenuItems.js +0 -4
- package/es/Menu/hooks/useContext.d.ts +17 -2
- package/es/Menu/hooks/useContext.js +5 -11
- package/es/Message/Message.vue.js +1 -5
- package/es/Message/index.js +0 -4
- package/es/Modal/Modal.vue.js +0 -4
- package/es/Modal/ModalService.vue.js +2 -6
- package/es/Modal/hooks/useModalClose.js +0 -4
- package/es/Modal/hooks/useModalDraggable.js +0 -4
- package/es/Modal/hooks/useOnBeforeClose.js +0 -4
- package/es/Notification/Notification.vue.js +2 -6
- package/es/Notification/index.js +0 -4
- package/es/OverflowList/index.vue.js +0 -4
- package/es/PageHeader/index.vue.js +0 -4
- package/es/Pagination/Pagination.vue.js +0 -4
- package/es/Pagination/PaginationItem.vue.js +0 -4
- package/es/Pagination/hooks/useContext.js +0 -4
- package/es/Popconfirm/index.vue.js +0 -4
- package/es/Popover/index.vue.js +0 -4
- package/es/Progress/Progress.vue.js +0 -4
- package/es/Progress/ProgressCircle.vue.js +0 -4
- package/es/Progress/ProgressLine.vue.js +0 -4
- package/es/Progress/ProgressSteps.vue.js +0 -4
- package/es/Radio/Radio.vue.js +0 -4
- package/es/Radio/hooks/useContext.js +0 -4
- package/es/Rate/index.vue.js +0 -4
- package/es/ResizeBox/index.vue.js +0 -4
- package/es/Scrollbar/Scrollbar.vue.js +0 -4
- package/es/Scrollbar/ScrollbarTrack.vue.js +0 -4
- package/es/Select/Option.vue.js +0 -4
- package/es/Select/Select.vue.js +0 -4
- package/es/Select/SelectIcon.vue.js +0 -4
- package/es/Select/SelectRealList.vue.js +0 -4
- package/es/Select/SelectView.vue.js +0 -4
- package/es/Select/SelectVirtualList.vue.js +0 -4
- package/es/Select/hooks/useContext.d.ts +2 -2
- package/es/Select/hooks/useContext.js +0 -4
- package/es/Select/hooks/useSelectHotkeys.js +0 -4
- package/es/Select/hooks/useSelectOptions.d.ts +2 -2
- package/es/Select/hooks/useSelectOptions.js +0 -4
- package/es/Skeleton/SkeletonLine.vue.js +0 -4
- package/es/Skeleton/SkeletonShape.vue.js +0 -4
- package/es/Slider/SliderBtn.vue.js +0 -4
- package/es/Slider/hooks/useContext.d.ts +12 -6
- package/es/Slider/hooks/useContext.js +5 -16
- package/es/Slider/hooks/useSliderDraggable.js +0 -4
- package/es/Space/index.vue.js +0 -4
- package/es/Spin/index.vue.js +0 -4
- package/es/Split/index.vue.js +0 -4
- package/es/Statistic/Countdown.vue.js +0 -4
- package/es/Statistic/Statistic.vue.js +3 -7
- package/es/Steps/Step.vue.js +0 -4
- package/es/Steps/hooks/useContext.d.ts +9 -1
- package/es/Steps/hooks/useContext.js +3 -10
- package/es/Switch/index.vue.js +0 -4
- package/es/Tabs/TabButton.vue.js +0 -4
- package/es/Tabs/TabPane.vue.js +0 -4
- package/es/Tabs/Tabs.vue.js +0 -4
- package/es/Tabs/TabsNavInk.vue.js +0 -4
- package/es/Tabs/TabsTab.vue.js +0 -4
- package/es/Tabs/hooks/useContext.d.ts +9 -2
- package/es/Tabs/hooks/useContext.js +5 -13
- package/es/Tabs/hooks/useTabsScroll.js +0 -4
- package/es/Tag/index.vue.js +0 -4
- package/es/Textarea/hooks/useTextareaHeight.js +0 -4
- package/es/Textarea/index.vue.js +0 -4
- package/es/TimePicker/TimePicker.vue.js +1 -5
- package/es/TimePicker/TimePickerPanel.vue.js +0 -4
- package/es/TimePicker/hooks/useContext.d.ts +17 -7
- package/es/TimePicker/hooks/useContext.js +4 -13
- package/es/Timeline/TimelineItemPending.vue.js +0 -4
- package/es/Timeline/hooks/useContext.d.ts +4 -2
- package/es/Timeline/hooks/useContext.js +3 -10
- package/es/Tooltip/index.vue.js +0 -4
- package/es/Transfer/Transfer.vue.js +0 -4
- package/es/Transfer/TransferPanel.vue.js +1 -5
- package/es/Transfer/hooks/useContext.d.ts +1 -6
- package/es/Transfer/hooks/useContext.js +3 -11
- package/es/Trigger/hooks/useContext.js +0 -4
- package/es/Trigger/hooks/useTriggerPosition.js +0 -4
- package/es/Trigger/hooks/useTriggerVisible.js +0 -4
- package/es/Trigger/index.vue.js +0 -4
- package/es/Typography/TypographyBase.vue.js +2 -6
- package/es/Upload/Upload.vue.js +6 -4
- package/es/Upload/UploadButton.vue.js +0 -4
- package/es/Upload/UploadDrag.vue.js +0 -4
- package/es/Upload/UploadFileList.vue.js +125 -5
- package/es/Upload/UploadFileList.vue3.js +5 -0
- package/es/Upload/UploadPictureCard.vue.js +131 -5
- package/es/Upload/UploadPictureCard.vue3.js +5 -0
- package/es/Upload/hooks/useContext.js +0 -4
- package/es/Upload/hooks/useUpload.js +0 -4
- package/es/VerificationCode/index.vue.js +0 -4
- package/es/Watermark/index.vue.js +0 -4
- package/es/_shared/components/ExpandTransition/index.vue2.js +0 -4
- package/es/_shared/components/Icon/index.vue3.js +0 -4
- package/es/_shared/components/IconButton/index.vue.js +0 -4
- package/es/_shared/constants/index.js +0 -4
- package/es/_shared/icons/IconArrowDown.vue.js +0 -4
- package/es/_shared/icons/IconArrowRight.vue.js +0 -4
- package/es/_shared/icons/IconCalendar.vue.d.ts +2 -0
- package/es/_shared/icons/IconCalendar.vue.js +4 -0
- package/es/_shared/icons/IconCalendar.vue2.js +27 -0
- package/es/_shared/icons/IconCheck.vue.js +0 -4
- package/es/_shared/icons/IconCheckboxChecked.vue.js +0 -4
- package/es/_shared/icons/IconClose.vue.js +0 -4
- package/es/_shared/icons/IconCopy.vue.js +1 -28
- package/es/_shared/icons/IconCopy.vue2.js +24 -1
- package/es/_shared/icons/IconDelete.vue.js +1 -28
- package/es/_shared/icons/IconDelete.vue2.js +24 -1
- package/es/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
- package/es/_shared/icons/IconDoubleLeft.vue.js +27 -0
- package/es/_shared/icons/IconDoubleLeft.vue2.js +4 -0
- package/es/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
- package/es/_shared/icons/IconDoubleRight.vue.js +27 -0
- package/es/_shared/icons/IconDoubleRight.vue2.js +4 -0
- package/es/_shared/icons/IconDragDot.vue.js +0 -4
- package/es/_shared/icons/IconEdit.vue.js +1 -28
- package/es/_shared/icons/IconEdit.vue2.js +24 -1
- package/es/_shared/icons/IconEmpty.vue.js +0 -4
- package/es/_shared/icons/IconError.vue.js +0 -4
- package/es/_shared/icons/IconExclamation.vue2.js +0 -4
- package/es/_shared/icons/IconEyeClose.vue.js +0 -4
- package/es/_shared/icons/IconEyeOpen.vue.js +0 -4
- package/es/_shared/icons/IconFaceSmile.vue.js +0 -4
- package/es/_shared/icons/IconFile.vue2.js +0 -4
- package/es/_shared/icons/IconFullScreen.vue2.js +0 -4
- package/es/_shared/icons/IconImageClose.vue.js +0 -4
- package/es/_shared/icons/IconInfo.vue.js +0 -4
- package/es/_shared/icons/IconInfoLine.vue.js +0 -4
- package/es/_shared/icons/IconLink.vue.js +0 -4
- package/es/_shared/icons/IconLoading.vue.js +0 -4
- package/es/_shared/icons/IconMenuFold.vue.js +0 -4
- package/es/_shared/icons/IconMenuUnfold.vue.js +0 -4
- package/es/_shared/icons/IconMinus.vue2.js +0 -4
- package/es/_shared/icons/IconMore.vue.js +0 -4
- package/es/_shared/icons/IconOriginSize.vue2.js +0 -4
- package/es/_shared/icons/IconPlus.vue.js +0 -4
- package/es/_shared/icons/IconRight.vue.js +0 -4
- package/es/_shared/icons/IconRotateLeft.vue2.js +0 -4
- package/es/_shared/icons/IconRotateRight.vue2.js +0 -4
- package/es/_shared/icons/IconSearch.vue.js +0 -4
- package/es/_shared/icons/IconSeparator.vue2.js +0 -4
- package/es/_shared/icons/IconStar.vue.js +0 -4
- package/es/_shared/icons/IconSuccess.vue.js +0 -4
- package/es/_shared/icons/IconTime.vue.js +0 -4
- package/es/_shared/icons/IconToTop.vue.js +0 -4
- package/es/_shared/icons/IconUpload.vue2.js +0 -4
- package/es/_shared/icons/IconWarning.vue.js +0 -4
- package/es/_shared/icons/IconZoomIn.vue2.js +0 -4
- package/es/_shared/icons/IconZoomOut.vue2.js +0 -4
- package/es/_shared/icons/index.d.ts +3 -0
- package/es/_shared/type/index.d.ts +1 -1
- package/es/_shared/utils/color.js +0 -4
- package/es/_shared/utils/dependencies.d.ts +0 -4
- package/es/_shared/utils/dom.js +0 -4
- package/es/_shared/utils/hooks.js +1 -1
- package/es/_shared/utils/locale.d.ts +0 -5
- package/es/_shared/utils/time.d.ts +0 -9
- package/es/_shared/utils/time.js +0 -30
- package/es/_shared/utils/vue-utils.d.ts +1 -1
- package/es/_virtual/isoWeek.js +4 -0
- package/es/index.d.ts +307 -1
- package/es/index.js +42 -33
- package/es/lang-es/zh-cn.js +26 -26
- package/es/node_modules/dayjs/plugin/isoWeek.js +33 -0
- package/es/src/lang/lang-es/zh-cn.js +26 -26
- package/es/style.css +1 -1
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Anchor/Anchor.vue.js +1 -1
- package/lib/Anchor/AnchorLink.vue.js +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/AutoComplete/index.vue.js +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/hooks/useContext.js +1 -1
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Calendar/CalendarMonth.vue.d.ts +4 -6
- package/lib/Calendar/CalendarMonth.vue.js +1 -1
- package/lib/Calendar/CalendarYear.vue.d.ts +3 -4
- package/lib/Calendar/CalendarYear.vue.js +1 -1
- package/lib/Calendar/hooks/useCalendar.d.ts +7 -0
- package/lib/Calendar/hooks/useCalendar.js +1 -0
- package/lib/Card/Card.vue.js +1 -1
- package/lib/Card/CardMeta.vue.js +1 -1
- package/lib/Carousel/Carousel.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue.js +1 -1
- package/lib/Carousel/hooks/useContext.d.ts +11 -2
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/hooks/useContext.d.ts +69 -8
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.css +1 -1
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorInput.vue.js +1 -1
- package/lib/ColorPicker/ColorList.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/ColorPanel.vue.js +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +12 -1
- package/lib/ColorPicker/hooks/useContext.js +1 -1
- package/lib/Comment/hooks/useContext.js +1 -1
- package/lib/Comment/index.vue.js +1 -1
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/DatePicker/PickerRange.vue.d.ts +2 -0
- package/lib/DatePicker/PickerRange.vue.js +1 -0
- package/lib/DatePicker/PickerRange.vue2.js +1 -0
- package/lib/DatePicker/YcDatePicker.vue.d.ts +2 -0
- package/lib/DatePicker/YcDatePicker.vue.js +1 -0
- package/lib/DatePicker/YcDatePicker.vue2.js +1 -0
- package/lib/DatePicker/YcMonthPicker.vue.d.ts +66 -0
- package/lib/DatePicker/YcMonthPicker.vue.js +1 -0
- package/lib/DatePicker/YcMonthPicker.vue3.js +1 -0
- package/lib/DatePicker/YcWeekPicker.vue.d.ts +67 -0
- package/lib/DatePicker/YcWeekPicker.vue.js +1 -0
- package/lib/DatePicker/YcWeekPicker.vue2.js +1 -0
- package/lib/DatePicker/YcYearPicker.vue.d.ts +65 -0
- package/lib/DatePicker/YcYearPicker.vue.js +1 -0
- package/lib/DatePicker/YcYearPicker.vue3.js +1 -0
- package/lib/DatePicker/component/PickerCell.vue.d.ts +36 -0
- package/lib/DatePicker/component/PickerCell.vue.js +1 -0
- package/lib/DatePicker/component/PickerCell.vue2.js +1 -0
- package/lib/DatePicker/component/PickerInput.vue.d.ts +297 -0
- package/lib/DatePicker/component/PickerInput.vue.js +1 -0
- package/lib/DatePicker/component/PickerInput.vue2.js +1 -0
- package/lib/DatePicker/component/PickerPanel.vue.d.ts +33 -0
- package/lib/DatePicker/component/PickerPanel.vue.js +1 -0
- package/lib/DatePicker/component/PickerPanel.vue3.js +1 -0
- package/lib/DatePicker/hooks/useContext.d.ts +19 -0
- package/lib/DatePicker/hooks/useContext.js +1 -0
- package/lib/DatePicker/hooks/userPicker.d.ts +44 -0
- package/lib/DatePicker/hooks/userPicker.js +1 -0
- package/lib/DatePicker/index.css +3 -0
- package/lib/DatePicker/index.d.ts +38 -0
- package/lib/DatePicker/index.js +1 -0
- package/lib/DatePicker/type.d.ts +104 -0
- package/lib/Descriptions/ReuseItem.vue.js +1 -1
- package/lib/Descriptions/ReuseTd.vue.js +1 -1
- package/lib/Descriptions/hooks/useContext.js +1 -1
- package/lib/Divider/index.vue.js +1 -1
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Grid/Grid.vue.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Grid/GridItem.vue.js +1 -1
- package/lib/Grid/GridRow.vue.js +1 -1
- package/lib/Grid/hooks/useContext.d.ts +6 -2
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue.js +1 -1
- package/lib/Image/ImagePreviewGroup.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Image/hooks/useContext.js +1 -1
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputPassword.vue.js +1 -1
- package/lib/Input/InputSearch.vue.js +1 -1
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/InputNumber/InputNumber.vue.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/List/List.vue.js +1 -1
- package/lib/List/ListVirtual.vue.js +1 -1
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/Mention/index.vue.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/MenuItemGroup.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/hooks/useCalcMaxMenuItems.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +17 -2
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Message/index.js +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Modal/hooks/useModalDraggable.js +1 -1
- package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Notification/index.js +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.vue.js +1 -1
- package/lib/Popover/index.vue.js +1 -1
- package/lib/Progress/Progress.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Progress/ProgressLine.vue.js +1 -1
- package/lib/Progress/ProgressSteps.vue.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Radio/hooks/useContext.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Scrollbar/Scrollbar.vue.js +1 -1
- package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Select.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/SelectRealList.vue.js +1 -1
- package/lib/Select/SelectView.vue.js +1 -1
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +2 -2
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/hooks/useSelectHotkeys.js +1 -1
- package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
- package/lib/Select/hooks/useSelectOptions.js +1 -1
- package/lib/Skeleton/SkeletonLine.vue.js +1 -1
- package/lib/Skeleton/SkeletonShape.vue.js +1 -1
- package/lib/Slider/SliderBtn.vue.js +1 -1
- package/lib/Slider/hooks/useContext.d.ts +12 -6
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Slider/hooks/useSliderDraggable.js +1 -1
- package/lib/Space/index.vue.js +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Statistic/Countdown.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/hooks/useContext.d.ts +9 -1
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Switch/index.vue.js +1 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/TabPane.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/TabsNavInk.vue.js +1 -1
- package/lib/Tabs/TabsTab.vue.js +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +9 -2
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/Tabs/hooks/useTabsScroll.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +17 -7
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/Timeline/TimelineItemPending.vue.js +1 -1
- package/lib/Timeline/hooks/useContext.d.ts +4 -2
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Tooltip/index.vue.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +1 -6
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Upload/Upload.vue.js +1 -1
- package/lib/Upload/UploadButton.vue.js +1 -1
- package/lib/Upload/UploadDrag.vue.js +1 -1
- package/lib/Upload/UploadFileList.vue.js +1 -1
- package/lib/Upload/UploadFileList.vue3.js +1 -0
- package/lib/Upload/UploadPictureCard.vue.js +1 -1
- package/lib/Upload/UploadPictureCard.vue3.js +1 -0
- package/lib/Upload/hooks/useContext.js +1 -1
- package/lib/Upload/hooks/useUpload.js +1 -1
- package/lib/VerificationCode/index.vue.js +1 -1
- package/lib/Watermark/index.vue.js +1 -1
- package/lib/_shared/components/ExpandTransition/index.vue2.js +1 -1
- package/lib/_shared/components/Icon/index.vue3.js +1 -1
- package/lib/_shared/components/IconButton/index.vue.js +1 -1
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
- package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
- package/lib/_shared/icons/IconCalendar.vue.d.ts +2 -0
- package/lib/_shared/icons/IconCalendar.vue.js +1 -0
- package/lib/_shared/icons/IconCalendar.vue2.js +1 -0
- package/lib/_shared/icons/IconCheck.vue.js +1 -1
- package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/lib/_shared/icons/IconClose.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
- package/lib/_shared/icons/IconDoubleLeft.vue.js +1 -0
- package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -0
- package/lib/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
- package/lib/_shared/icons/IconDoubleRight.vue.js +1 -0
- package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -0
- package/lib/_shared/icons/IconDragDot.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEmpty.vue.js +1 -1
- package/lib/_shared/icons/IconError.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/lib/_shared/icons/IconFile.vue2.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconImageClose.vue.js +1 -1
- package/lib/_shared/icons/IconInfo.vue.js +1 -1
- package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
- package/lib/_shared/icons/IconLink.vue.js +1 -1
- package/lib/_shared/icons/IconLoading.vue.js +1 -1
- package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
- package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconMore.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconPlus.vue.js +1 -1
- package/lib/_shared/icons/IconRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconStar.vue.js +1 -1
- package/lib/_shared/icons/IconSuccess.vue.js +1 -1
- package/lib/_shared/icons/IconTime.vue.js +1 -1
- package/lib/_shared/icons/IconToTop.vue.js +1 -1
- package/lib/_shared/icons/IconUpload.vue2.js +1 -1
- package/lib/_shared/icons/IconWarning.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/icons/index.d.ts +3 -0
- package/lib/_shared/type/index.d.ts +1 -1
- package/lib/_shared/utils/color.js +1 -1
- package/lib/_shared/utils/dependencies.d.ts +0 -4
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/hooks.js +1 -1
- package/lib/_shared/utils/locale.d.ts +0 -5
- package/lib/_shared/utils/time.d.ts +0 -9
- package/lib/_shared/utils/time.js +1 -1
- package/lib/_shared/utils/vue-utils.d.ts +1 -1
- package/lib/_virtual/isoWeek.js +1 -0
- package/lib/index.d.ts +307 -1
- package/lib/index.js +1 -1
- package/lib/lang-es/zh-cn.js +26 -26
- package/lib/node_modules/dayjs/plugin/isoWeek.js +1 -0
- package/lib/src/lang/lang-es/zh-cn.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Upload/UploadFileList.vue2.js +0 -131
- package/es/Upload/UploadPictureCard.vue2.js +0 -137
- package/lib/Upload/UploadFileList.vue2.js +0 -1
- package/lib/Upload/UploadPictureCard.vue2.js +0 -1
@@ -1,14 +1,10 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, toDisplayString, createSlots, withCtx, renderSlot } from "vue";
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import { useI18n } from "../_shared/utils/locale.js";
|
11
|
-
import
|
7
|
+
import "../_shared/utils/time.js";
|
12
8
|
import _sfc_main$1 from "./CalendarMonth.vue.js";
|
13
9
|
/* empty css */
|
14
10
|
const _hoisted_1 = { class: "yc-calendar-year" };
|
@@ -17,15 +13,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
13
|
__name: "CalendarYear",
|
18
14
|
props: {
|
19
15
|
computedValue: {},
|
20
|
-
|
16
|
+
curYear: {}
|
21
17
|
},
|
22
18
|
emits: ["cell-click"],
|
23
19
|
setup(__props) {
|
24
|
-
const props = __props;
|
25
|
-
const { computedValue, recordDate } = toRefs(props);
|
26
20
|
const { t } = useI18n();
|
27
|
-
const
|
28
|
-
|
21
|
+
const months = ref([
|
22
|
+
[1, 2, 3],
|
23
|
+
[4, 5, 6],
|
24
|
+
[7, 8, 9],
|
25
|
+
[10, 11, 12]
|
26
|
+
]);
|
27
|
+
const monthHeaders = computed(() => {
|
29
28
|
return [
|
30
29
|
"January",
|
31
30
|
"February",
|
@@ -41,57 +40,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
40
|
"December"
|
42
41
|
].map((v) => t(`calendar.month.short.${v}`));
|
43
42
|
});
|
44
|
-
watch(
|
45
|
-
() => recordDate.value.year,
|
46
|
-
() => {
|
47
|
-
const { year } = recordDate.value;
|
48
|
-
calendar.value = [];
|
49
|
-
const row = [];
|
50
|
-
for (let i = 1; i <= 12; i++) {
|
51
|
-
row.push(generateMonthCalendar(year, i));
|
52
|
-
if (row.length == 4) {
|
53
|
-
calendar.value.push([...row]);
|
54
|
-
row.splice(0);
|
55
|
-
}
|
56
|
-
}
|
57
|
-
},
|
58
|
-
{
|
59
|
-
immediate: true
|
60
|
-
}
|
61
|
-
);
|
62
43
|
return (_ctx, _cache) => {
|
63
44
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
64
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
45
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (row, i) => {
|
65
46
|
return openBlock(), createElementBlock("div", {
|
66
47
|
key: i,
|
67
48
|
class: "yc-calendar-year-row"
|
68
49
|
}, [
|
69
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(row, (
|
50
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(row, (month, i1) => {
|
70
51
|
return openBlock(), createElementBlock("div", {
|
71
52
|
key: i1,
|
72
53
|
class: "yc-calendar-year-cell"
|
73
54
|
}, [
|
74
|
-
createElementVNode("div", _hoisted_2, toDisplayString(
|
55
|
+
createElementVNode("div", _hoisted_2, toDisplayString(monthHeaders.value[i * 4 + i1]), 1),
|
75
56
|
createVNode(_sfc_main$1, {
|
76
|
-
"
|
77
|
-
|
78
|
-
"
|
57
|
+
"cur-year": _ctx.curYear,
|
58
|
+
"cur-month": month - 1,
|
59
|
+
"computed-value": _ctx.computedValue,
|
79
60
|
small: "",
|
80
61
|
class: "yc-calendar-year-cell-body",
|
81
62
|
onCellClick: _cache[0] || (_cache[0] = (v) => _ctx.$emit("cell-click", v))
|
82
63
|
}, createSlots({ _: 2 }, [
|
83
64
|
_ctx.$slots.default ? {
|
84
65
|
name: "default",
|
85
|
-
fn: withCtx(({ year, month, day }) => [
|
66
|
+
fn: withCtx(({ year, month: month2, day }) => [
|
86
67
|
renderSlot(_ctx.$slots, "default", {
|
87
68
|
year,
|
88
|
-
month,
|
69
|
+
month: month2,
|
89
70
|
day
|
90
71
|
})
|
91
72
|
]),
|
92
73
|
key: "0"
|
93
74
|
} : void 0
|
94
|
-
]), 1032, ["
|
75
|
+
]), 1032, ["cur-year", "cur-month", "computed-value"])
|
95
76
|
]);
|
96
77
|
}), 128))
|
97
78
|
]);
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
2
|
+
import dayjs from "../../node_modules/dayjs/dayjs.min.js";
|
3
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
4
|
+
import "../../_shared/utils/dom.js";
|
5
|
+
import "vue";
|
6
|
+
import "../../_shared/utils/locale.js";
|
7
|
+
import "../../_shared/utils/time.js";
|
8
|
+
function useCalendar() {
|
9
|
+
const getDayOfMonth = (year, month, dayStartOfWeek = 0) => {
|
10
|
+
const firstDayOfMonth = dayjs(new Date(year, month, 1));
|
11
|
+
const firstDayOfWeek = firstDayOfMonth.day();
|
12
|
+
const daysFromPrevMonth = (firstDayOfWeek - dayStartOfWeek + 7) % 7;
|
13
|
+
const totalCalendarDays = 42;
|
14
|
+
const calendar = [];
|
15
|
+
for (let i = 0; i < totalCalendarDays; i++) {
|
16
|
+
const dayOffset = i - daysFromPrevMonth;
|
17
|
+
const date = firstDayOfMonth.add(dayOffset, "day");
|
18
|
+
const rowIndex = Math.floor(i / 7);
|
19
|
+
const colIndex = i % 7;
|
20
|
+
if (colIndex === 0) {
|
21
|
+
calendar[rowIndex] = [];
|
22
|
+
}
|
23
|
+
calendar[rowIndex][colIndex] = {
|
24
|
+
label: date.date(),
|
25
|
+
value: date.toDate()
|
26
|
+
};
|
27
|
+
}
|
28
|
+
return calendar;
|
29
|
+
};
|
30
|
+
return {
|
31
|
+
getDayOfMonth
|
32
|
+
};
|
33
|
+
}
|
34
|
+
export {
|
35
|
+
useCalendar as default
|
36
|
+
};
|
package/es/Card/Card.vue.js
CHANGED
@@ -2,10 +2,6 @@ import { defineComponent, useSlots, computed, createElementBlock, openBlock, nor
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
11
7
|
import "../_shared/utils/locale.js";
|
package/es/Card/CardMeta.vue.js
CHANGED
@@ -2,10 +2,6 @@ import { defineComponent, useSlots, createElementBlock, openBlock, createElement
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import "../_shared/utils/locale.js";
|
11
7
|
import "../_shared/utils/time.js";
|
@@ -2,10 +2,6 @@ import { defineComponent, ref, watch, onBeforeUnmount, createElementBlock, openB
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import { isObject } from "../_shared/utils/is.js";
|
11
7
|
import "../_shared/utils/locale.js";
|
@@ -2,10 +2,6 @@ import { defineComponent, toRefs, computed, createElementBlock, openBlock, norma
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import "../_shared/utils/locale.js";
|
11
7
|
import "../_shared/utils/time.js";
|
@@ -2,10 +2,6 @@ import { defineComponent, createElementBlock, openBlock, normalizeClass, createC
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import { valueToPx } from "../_shared/utils/dom.js";
|
10
6
|
import "../_shared/utils/locale.js";
|
11
7
|
import "../_shared/utils/time.js";
|
@@ -18,10 +18,19 @@ type MoveType = 'positive' | 'negative';
|
|
18
18
|
export default function useCarouselContext(): {
|
19
19
|
provide: (props: RecordType, emits: CarouselEmits) => {
|
20
20
|
carouselItems: import('vue').ComputedRef<RecordType[]>;
|
21
|
-
computedCurrent: import('vue').WritableComputedRef<number, number>;
|
22
|
-
length: import('vue').ComputedRef<number>;
|
23
21
|
autoPlay: Ref<import('..').AutoPlay, import('..').AutoPlay>;
|
24
22
|
slideTo: (targetIndex: number) => Promise<void>;
|
23
|
+
length: import('vue').ComputedRef<number>;
|
24
|
+
computedCurrent: import('vue').WritableComputedRef<number, number>;
|
25
|
+
transitionTimingFunction: Ref<string, string>;
|
26
|
+
animationName: Ref<AnimationName, AnimationName>;
|
27
|
+
moveSpeed: Ref<number, number>;
|
28
|
+
direction: Ref<Direction, Direction>;
|
29
|
+
showArrow: Ref<ShowArrow, ShowArrow>;
|
30
|
+
arrowClass: Ref<ClassName, ClassName>;
|
31
|
+
moveType: Ref<MoveType, MoveType>;
|
32
|
+
preIndex: Ref<number, number>;
|
33
|
+
getValidIndex: (val: number) => number;
|
25
34
|
};
|
26
35
|
inject: () => CarouselContext;
|
27
36
|
};
|
@@ -2,10 +2,6 @@ import { toRefs, useSlots, computed, ref, provide, inject } from "vue";
|
|
2
2
|
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import { sleep } from "../../_shared/utils/dom.js";
|
10
6
|
import { useControlValue } from "../../_shared/utils/hooks.js";
|
11
7
|
import "../../_shared/utils/locale.js";
|
@@ -66,7 +62,7 @@ function useCarouselContext() {
|
|
66
62
|
await sleep(moveSpeed.value);
|
67
63
|
flag = false;
|
68
64
|
};
|
69
|
-
|
65
|
+
const context = {
|
70
66
|
length,
|
71
67
|
computedCurrent,
|
72
68
|
transitionTimingFunction,
|
@@ -78,11 +74,11 @@ function useCarouselContext() {
|
|
78
74
|
moveType,
|
79
75
|
preIndex,
|
80
76
|
getValidIndex
|
81
|
-
}
|
77
|
+
};
|
78
|
+
provide(CAROUSEL_CONTEXT_KEY, context);
|
82
79
|
return {
|
80
|
+
...context,
|
83
81
|
carouselItems,
|
84
|
-
computedCurrent,
|
85
|
-
length,
|
86
82
|
autoPlay,
|
87
83
|
slideTo
|
88
84
|
};
|
@@ -2,10 +2,6 @@ import { defineComponent, ref, computed, createBlock, openBlock, unref, mergePro
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import { sleep } from "../_shared/utils/dom.js";
|
10
6
|
import "../_shared/utils/locale.js";
|
11
7
|
import "../_shared/utils/time.js";
|
@@ -6,10 +6,6 @@ import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
|
|
6
6
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
7
7
|
import "../node_modules/dayjs/dayjs.min.js";
|
8
8
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
9
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
10
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
11
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
12
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
13
9
|
import "../_shared/utils/dom.js";
|
14
10
|
import "../_shared/utils/locale.js";
|
15
11
|
import "../_shared/utils/time.js";
|
@@ -2,10 +2,6 @@ import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock,
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import { sleep } from "../_shared/utils/dom.js";
|
10
6
|
import { isFunction } from "../_shared/utils/is.js";
|
11
7
|
import "../_shared/utils/locale.js";
|
@@ -29,24 +29,85 @@ export declare function findOptionByValueAndLevel(options: CascaderOption[], val
|
|
29
29
|
export declare const getLeafNodes: (nodes: CascaderOptionProps[]) => CascaderOptionProps[];
|
30
30
|
export default function useCascaderContext(): {
|
31
31
|
provide: (props: RecordType, emits: CascaderEmits, inputRef: Ref<InputInstance | undefined>) => {
|
32
|
-
computedValue: import('vue').WritableComputedRef<CascaderValue, CascaderValue>;
|
33
|
-
computedInputValue: import('vue').WritableComputedRef<string, string>;
|
34
32
|
computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
35
|
-
options: import('vue').ComputedRef<CascaderOptionProps[]>;
|
36
33
|
optionMap: import('vue').ComputedRef<any>;
|
37
34
|
selectOptions: import('vue').ComputedRef<RecordType[]>;
|
38
|
-
curLevel: Ref<number, number>;
|
39
|
-
curPath: Ref<number[], number[]>;
|
40
|
-
multiple: Ref<boolean, boolean>;
|
41
|
-
pathMode: Ref<boolean, boolean>;
|
42
35
|
disabled: Ref<boolean, boolean>;
|
43
36
|
allowClear: Ref<boolean, boolean>;
|
44
37
|
allowSearch: Ref<boolean, boolean>;
|
45
38
|
searchDelay: Ref<number, number>;
|
46
|
-
loading: Ref<boolean, boolean>;
|
47
39
|
getValue: (value: CascaderOptionValue) => unknown;
|
40
|
+
computedValue: import('vue').WritableComputedRef<CascaderValue, CascaderValue>;
|
41
|
+
computedInputValue: import('vue').WritableComputedRef<string, string>;
|
42
|
+
options: import('vue').ComputedRef<CascaderOptionProps[]>;
|
43
|
+
totalOptions: Ref<{
|
44
|
+
label?: string | undefined;
|
45
|
+
value?: CascaderOptionValue | undefined;
|
46
|
+
render?: import('vue').RenderFunction | undefined;
|
47
|
+
disabled?: boolean | undefined;
|
48
|
+
tagProps?: {
|
49
|
+
color?: string | undefined;
|
50
|
+
size?: Exclude<import('../../_shared/type').Size, "mini"> | undefined;
|
51
|
+
bordered?: boolean | undefined;
|
52
|
+
visible?: boolean | undefined;
|
53
|
+
defaultVisible?: boolean | undefined;
|
54
|
+
loading?: boolean | undefined;
|
55
|
+
closable?: boolean | undefined;
|
56
|
+
checkable?: boolean | undefined;
|
57
|
+
checked?: boolean | undefined;
|
58
|
+
defaultChecked?: boolean | undefined;
|
59
|
+
nowrap?: boolean | undefined;
|
60
|
+
} | undefined;
|
61
|
+
children?: /*elided*/ any[] | undefined;
|
62
|
+
isLeaf?: boolean | undefined;
|
63
|
+
}[], CascaderOption[] | {
|
64
|
+
label?: string | undefined;
|
65
|
+
value?: CascaderOptionValue | undefined;
|
66
|
+
render?: import('vue').RenderFunction | undefined;
|
67
|
+
disabled?: boolean | undefined;
|
68
|
+
tagProps?: {
|
69
|
+
color?: string | undefined;
|
70
|
+
size?: Exclude<import('../../_shared/type').Size, "mini"> | undefined;
|
71
|
+
bordered?: boolean | undefined;
|
72
|
+
visible?: boolean | undefined;
|
73
|
+
defaultVisible?: boolean | undefined;
|
74
|
+
loading?: boolean | undefined;
|
75
|
+
closable?: boolean | undefined;
|
76
|
+
checkable?: boolean | undefined;
|
77
|
+
checked?: boolean | undefined;
|
78
|
+
defaultChecked?: boolean | undefined;
|
79
|
+
nowrap?: boolean | undefined;
|
80
|
+
} | undefined;
|
81
|
+
children?: /*elided*/ any[] | undefined;
|
82
|
+
isLeaf?: boolean | undefined;
|
83
|
+
}[]>;
|
84
|
+
searchOptions: import('vue').ComputedRef<{
|
85
|
+
label: string | undefined;
|
86
|
+
level?: number;
|
87
|
+
index?: number;
|
88
|
+
nodePath?: CascaderOptionProps[];
|
89
|
+
value?: CascaderOptionValue;
|
90
|
+
render?: import('vue').RenderFunction;
|
91
|
+
disabled?: boolean;
|
92
|
+
tagProps?: import('../..').TagProps;
|
93
|
+
children?: CascaderOption[];
|
94
|
+
isLeaf?: boolean;
|
95
|
+
}[]>;
|
96
|
+
curLevel: Ref<number, number>;
|
97
|
+
maxLevel: import('vue').ComputedRef<number>;
|
98
|
+
curPath: Ref<number[], number[]>;
|
99
|
+
expandTrigger: Ref<EventTrigger, EventTrigger>;
|
100
|
+
expandChild: Ref<boolean, boolean>;
|
101
|
+
pathMode: Ref<boolean, boolean>;
|
102
|
+
multiple: Ref<boolean, boolean>;
|
103
|
+
loading: Ref<boolean, boolean>;
|
104
|
+
slots: Readonly<{
|
105
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
106
|
+
}>;
|
107
|
+
blur: () => void;
|
48
108
|
getValueKey: (value: CascaderOptionValue | CascaderOptionValue[]) => string;
|
49
109
|
getOption: (value: CascaderOptionValue | CascaderOptionValue[]) => CascaderOptionProps;
|
110
|
+
loadMore: LoadMore;
|
50
111
|
};
|
51
112
|
inject: () => CascaderContext;
|
52
113
|
};
|
@@ -2,10 +2,6 @@ import { toRefs, ref, computed, useSlots, watch, provide, inject } from "vue";
|
|
2
2
|
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../../_shared/utils/dom.js";
|
10
6
|
import { isBoolean, isFunction, isArray, isObject } from "../../_shared/utils/is.js";
|
11
7
|
import { useControlValue } from "../../_shared/utils/hooks.js";
|
@@ -259,7 +255,7 @@ function useCascaderContext() {
|
|
259
255
|
deep: true
|
260
256
|
}
|
261
257
|
);
|
262
|
-
|
258
|
+
const context = {
|
263
259
|
computedValue,
|
264
260
|
computedInputValue,
|
265
261
|
options,
|
@@ -278,26 +274,18 @@ function useCascaderContext() {
|
|
278
274
|
getValueKey,
|
279
275
|
getOption,
|
280
276
|
loadMore
|
281
|
-
}
|
277
|
+
};
|
278
|
+
provide(CASCADER_CONTEXT_KEY, context);
|
282
279
|
return {
|
283
|
-
|
284
|
-
computedInputValue,
|
280
|
+
...context,
|
285
281
|
computedVisible,
|
286
|
-
options,
|
287
282
|
optionMap,
|
288
283
|
selectOptions,
|
289
|
-
curLevel,
|
290
|
-
curPath,
|
291
|
-
multiple,
|
292
|
-
pathMode,
|
293
284
|
disabled,
|
294
285
|
allowClear,
|
295
286
|
allowSearch,
|
296
287
|
searchDelay,
|
297
|
-
|
298
|
-
getValue,
|
299
|
-
getValueKey,
|
300
|
-
getOption
|
288
|
+
getValue
|
301
289
|
};
|
302
290
|
};
|
303
291
|
const inject$1 = () => {
|
package/es/Cascader/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-cascader-panel{overflow:hidden;height:200px;background-color:var(--color-bg-popup);border-radius:var(--border-radius-medium);border:1px solid var(--color-fill-3);box-shadow:0 4px 10px rgba(0,0,0,0.1);display:inline-flex}.yc-cascader-panel .yc-cascader-panel-column{position:relative;min-width:120px;border-right:1px solid transparent;background-color:var(--color-bg-popup);display:inline-flex;flex-direction:column}.yc-cascader-panel .yc-cascader-panel-column:not(:last-child){border-right-color:var(--color-fill-3)}.yc-cascader-panel .yc-scrollbar .yc-scrollbar-container{max-height:200px;overflow-y:auto}.yc-cascader-panel .yc-spin{height:100%;min-width:120px;display:flex;justify-content:center;align-items:center}.yc-cascader-panel .yc-cascader-empty .yc-empty{min-width:120px}.yc-cascader-search-panel{position:relative;width:100%}.yc-cascader-search-panel .yc-scrollbar{width:100%}.yc-cascader-search-panel .yc-cascader-empty{position:absolute;height:100%;width:100%;display:flex;justify-content:center;align-items:center}.yc-cascader-option{cursor:pointer;position:relative;height:36px;padding-left:12px;min-width:100px;background-color:transparent;color:var(--color-text-1);font-size:14px;line-height:36px;transition:all .2s cubic-bezier(0, 0, 1, 1);display:flex;align-items:center;gap:8px}.yc-cascader-option:not(.yc-cascader-option-disabled):hover{background-color:var(--color-fill-2)}.yc-cascader-option .yc-checkbox{padding-left:0}.yc-cascader-option .yc-cascader-option-label{flex:1;padding-right:34px}.yc-cascader-option .yc-cascader-option-label .yc-icon{position:absolute;top:calc((100% - 12px) / 2);right:10px;color:var(--color-text-2);font-size:12px}.yc-cascader-option-selected{background-color:var(--color-fill-2)}.yc-cascader-option-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.yc-cascader{width:100%;display:inline-flex;align-items:center}.yc-cascader .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-1)}.yc-cascader .yc-input-placeholder{color:var(--color-text-3)}.yc-cascader .yc-cascader-suffix-icon,.yc-cascader .yc-cascader-search-icon,.yc-cascader .yc-cascader-clear-icon,.yc-cascader .yc-spin{font-size:12px;color:inherit;flex-shrink:0}.yc-cascader-allow-search .yc-cascader-search-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-clear-icon,.yc-cascader-allow-search:focus-within .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-search-icon{display:block}.yc-cascader-allow-search .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-cascader-allow-clear .yc-cascader-clear-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-search-icon,.yc-cascader-allow-clear:hover .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-clear-icon{display:flex}
|
1
|
+
.yc-cascader-panel{overflow:hidden;height:200px;background-color:var(--color-bg-popup);border-radius:var(--border-radius-medium);border:1px solid var(--color-fill-3);box-shadow:0 4px 10px rgba(0,0,0,0.1);display:inline-flex}.yc-cascader-panel .yc-cascader-panel-column{position:relative;min-width:120px;border-right:1px solid transparent;background-color:var(--color-bg-popup);display:inline-flex;flex-direction:column}.yc-cascader-panel .yc-cascader-panel-column:not(:last-child){border-right-color:var(--color-fill-3)}.yc-cascader-panel .yc-scrollbar .yc-scrollbar-container{max-height:200px;overflow-y:auto}.yc-cascader-panel .yc-spin{height:100%;min-width:120px;display:flex;justify-content:center;align-items:center}.yc-cascader-panel .yc-cascader-empty .yc-empty{min-width:120px}.yc-cascader-search-panel{position:relative;width:100%}.yc-cascader-search-panel .yc-scrollbar{width:100%}.yc-cascader-search-panel .yc-cascader-empty{position:absolute;height:100%;width:100%;display:flex;justify-content:center;align-items:center}.yc-cascader-option{cursor:pointer;position:relative;height:36px;padding-left:12px;min-width:100px;max-width:100%;background-color:transparent;color:var(--color-text-1);font-size:14px;line-height:36px;transition:all .2s cubic-bezier(0, 0, 1, 1);display:flex;align-items:center;gap:8px}.yc-cascader-option:not(.yc-cascader-option-disabled):hover{background-color:var(--color-fill-2)}.yc-cascader-option .yc-checkbox{padding-left:0}.yc-cascader-option .yc-cascader-option-label{flex:1;padding-right:34px}.yc-cascader-option .yc-cascader-option-label .yc-icon{position:absolute;top:calc((100% - 12px) / 2);right:10px;color:var(--color-text-2);font-size:12px}.yc-cascader-option-selected{background-color:var(--color-fill-2)}.yc-cascader-option-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.yc-cascader{width:100%;display:inline-flex;align-items:center}.yc-cascader .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-1)}.yc-cascader .yc-input-placeholder{color:var(--color-text-3)}.yc-cascader .yc-cascader-suffix-icon,.yc-cascader .yc-cascader-search-icon,.yc-cascader .yc-cascader-clear-icon,.yc-cascader .yc-spin{font-size:12px;color:inherit;flex-shrink:0}.yc-cascader-allow-search .yc-cascader-search-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-clear-icon,.yc-cascader-allow-search:focus-within .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-search-icon{display:block}.yc-cascader-allow-search .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-cascader-allow-clear .yc-cascader-clear-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-search-icon,.yc-cascader-allow-clear:hover .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-clear-icon{display:flex}
|
@@ -2,10 +2,6 @@ import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBl
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import { isUndefined } from "../_shared/utils/is.js";
|
11
7
|
import { useControlValue } from "../_shared/utils/hooks.js";
|
@@ -2,10 +2,6 @@ import { toRefs, computed, provide, ref, inject } from "vue";
|
|
2
2
|
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../../_shared/utils/dom.js";
|
10
6
|
import { isObject } from "../../_shared/utils/is.js";
|
11
7
|
import { useControlValue } from "../../_shared/utils/hooks.js";
|
@@ -7,10 +7,6 @@ import _sfc_main$3 from "../_shared/components/ExpandTransition/index.vue2.js";
|
|
7
7
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
8
8
|
import "../node_modules/dayjs/dayjs.min.js";
|
9
9
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
10
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
11
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
12
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
13
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
14
10
|
import "../_shared/utils/dom.js";
|
15
11
|
import "../_shared/utils/locale.js";
|
16
12
|
import "../_shared/utils/time.js";
|
@@ -2,10 +2,6 @@ import { toRefs, useSlots, provide, inject, ref, computed } from "vue";
|
|
2
2
|
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../../_shared/utils/dom.js";
|
10
6
|
import { useControlValue } from "../../_shared/utils/hooks.js";
|
11
7
|
import "../../_shared/utils/locale.js";
|
@@ -4,10 +4,6 @@ import { useDraggable } from "../node_modules/@vueuse/core/index.js";
|
|
4
4
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
5
5
|
import "../node_modules/dayjs/dayjs.min.js";
|
6
6
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
7
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
8
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
9
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
10
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
11
7
|
import { sleep, valueToPx } from "../_shared/utils/dom.js";
|
12
8
|
import "../_shared/utils/locale.js";
|
13
9
|
import "../_shared/utils/time.js";
|
@@ -3,10 +3,6 @@ import { parseColor } from "../_shared/utils/color.js";
|
|
3
3
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
4
4
|
import "../node_modules/dayjs/dayjs.min.js";
|
5
5
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
7
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
6
|
import "../_shared/utils/dom.js";
|
11
7
|
import "../_shared/utils/locale.js";
|
12
8
|
import "../_shared/utils/time.js";
|
@@ -2,10 +2,6 @@ import { defineComponent, createElementBlock, openBlock, createElementVNode, cre
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import { useI18n } from "../_shared/utils/locale.js";
|
11
7
|
import "../_shared/utils/time.js";
|
@@ -4,10 +4,6 @@ import { useElementBounding, useDraggable } from "../node_modules/@vueuse/core/i
|
|
4
4
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
5
5
|
import "../node_modules/dayjs/dayjs.min.js";
|
6
6
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
7
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
8
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
9
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
10
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
11
7
|
import { sleep, valueToPx } from "../_shared/utils/dom.js";
|
12
8
|
import "../_shared/utils/locale.js";
|
13
9
|
import "../_shared/utils/time.js";
|
@@ -2,10 +2,6 @@ import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, un
|
|
2
2
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
3
|
import "../node_modules/dayjs/dayjs.min.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
5
|
import "../_shared/utils/dom.js";
|
10
6
|
import { useI18n } from "../_shared/utils/locale.js";
|
11
7
|
import "../_shared/utils/time.js";
|
@@ -18,9 +18,20 @@ type ColorPickerContext = {
|
|
18
18
|
};
|
19
19
|
export default function useColorPickerContext(): {
|
20
20
|
provide: (props: RecordType, emits: ColorPickerEmits) => {
|
21
|
-
popupVisible: Ref<boolean, boolean>;
|
22
21
|
size: import('vue').ComputedRef<any>;
|
22
|
+
emits: ColorPickerEmits;
|
23
|
+
popupVisible: Ref<boolean, boolean>;
|
23
24
|
computedColor: import('vue').WritableComputedRef<string, string>;
|
25
|
+
baseColor: Ref<string, string>;
|
26
|
+
alpha: Ref<number, number>;
|
27
|
+
format: Ref<ColorFormat, ColorFormat>;
|
28
|
+
disabled: Ref<boolean, boolean>;
|
29
|
+
disabledAlpha: Ref<boolean, boolean>;
|
30
|
+
showHistory: Ref<boolean, boolean>;
|
31
|
+
showPreset: Ref<boolean, boolean>;
|
32
|
+
hideTrigger: Ref<boolean, boolean>;
|
33
|
+
presetColors: Ref<string[], string[]>;
|
34
|
+
historyColors: Ref<string[], string[]>;
|
24
35
|
};
|
25
36
|
inject: () => ColorPickerContext;
|
26
37
|
};
|
@@ -3,10 +3,6 @@ import { parseColor } from "../../_shared/utils/color.js";
|
|
3
3
|
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
4
|
import "../../node_modules/dayjs/dayjs.min.js";
|
5
5
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
-
import "../../node_modules/dayjs/plugin/duration.js";
|
7
|
-
import "../../node_modules/dayjs/plugin/toObject.js";
|
8
|
-
import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
|
9
|
-
import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
|
10
6
|
import "../../_shared/utils/dom.js";
|
11
7
|
import { getGlobalConfig } from "../../_shared/utils/global-config.js";
|
12
8
|
import { useControlValue } from "../../_shared/utils/hooks.js";
|
@@ -51,7 +47,7 @@ function useColorPickerContext() {
|
|
51
47
|
);
|
52
48
|
const baseColor = ref(computedColor.value);
|
53
49
|
const popupVisible = ref(false);
|
54
|
-
|
50
|
+
const context = {
|
55
51
|
emits,
|
56
52
|
popupVisible,
|
57
53
|
computedColor,
|
@@ -65,11 +61,11 @@ function useColorPickerContext() {
|
|
65
61
|
hideTrigger,
|
66
62
|
presetColors,
|
67
63
|
historyColors
|
68
|
-
}
|
64
|
+
};
|
65
|
+
provide(COLOR_PICKER_CONTEXT_KEY, context);
|
69
66
|
return {
|
70
|
-
|
71
|
-
size
|
72
|
-
computedColor
|
67
|
+
...context,
|
68
|
+
size
|
73
69
|
};
|
74
70
|
};
|
75
71
|
const inject$1 = () => {
|