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
@@ -0,0 +1,297 @@
|
|
1
|
+
import { nextTick } from 'vue';
|
2
|
+
type __VLS_Props = {
|
3
|
+
type?: 'year' | 'month' | 'week' | 'time' | 'date';
|
4
|
+
};
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: {
|
8
|
+
prefix?(_: {}): any;
|
9
|
+
'suffix-icon'?(_: {}): any;
|
10
|
+
content?(_: {}): any;
|
11
|
+
};
|
12
|
+
refs: {
|
13
|
+
inputRef: ({
|
14
|
+
$: import('vue').ComponentInternalInstance;
|
15
|
+
$data: {};
|
16
|
+
$props: {
|
17
|
+
readonly modelValue?: string | undefined;
|
18
|
+
readonly defaultValue?: string | undefined;
|
19
|
+
readonly size?: import('../..').Size | undefined;
|
20
|
+
readonly allowClear?: boolean | undefined;
|
21
|
+
readonly disabled?: boolean | undefined;
|
22
|
+
readonly readonly?: boolean | undefined;
|
23
|
+
readonly error?: boolean | undefined;
|
24
|
+
readonly placeholder?: string | undefined;
|
25
|
+
readonly maxLength?: import('../../Input').MaxLength | undefined;
|
26
|
+
readonly wordLength?: import('../../Input').WordLength | undefined;
|
27
|
+
readonly wordSlice?: import('../../Input').WordSlice | undefined;
|
28
|
+
readonly showWordLimit?: boolean | undefined;
|
29
|
+
readonly inputAttrs?: import('../..').RecordType | undefined;
|
30
|
+
readonly showInput?: boolean | undefined;
|
31
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
32
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
33
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
34
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
35
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
36
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
37
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
38
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
40
|
+
$attrs: {
|
41
|
+
[x: string]: unknown;
|
42
|
+
};
|
43
|
+
$refs: {
|
44
|
+
[x: string]: unknown;
|
45
|
+
} & {
|
46
|
+
inputRef: HTMLInputElement;
|
47
|
+
};
|
48
|
+
$slots: Readonly<{
|
49
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
50
|
+
}>;
|
51
|
+
$root: import('vue').ComponentPublicInstance | null;
|
52
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
53
|
+
$host: Element | null;
|
54
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
55
|
+
$el: HTMLDivElement;
|
56
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../Input').InputProps> & Readonly<{
|
57
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
58
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
59
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
60
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
61
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
62
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
63
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
64
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
65
|
+
}>, {
|
66
|
+
focus(): void;
|
67
|
+
blur(): void;
|
68
|
+
getInputRef(): HTMLInputElement;
|
69
|
+
setCursor?: () => void;
|
70
|
+
recordCursor?: () => void;
|
71
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
72
|
+
change: (value: string, ev: Event) => any;
|
73
|
+
focus: (ev: FocusEvent) => any;
|
74
|
+
clear: (ev: MouseEvent) => any;
|
75
|
+
blur: (ev: FocusEvent) => any;
|
76
|
+
input: (value: string, ev: Event) => any;
|
77
|
+
keydown: (ev: KeyboardEvent) => any;
|
78
|
+
"update:modelValue": (value: string) => any;
|
79
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
80
|
+
}, string, {
|
81
|
+
error: boolean;
|
82
|
+
size: import('../..').Size;
|
83
|
+
disabled: boolean;
|
84
|
+
placeholder: string;
|
85
|
+
modelValue: string;
|
86
|
+
defaultValue: string;
|
87
|
+
maxLength: import('../../Input').MaxLength;
|
88
|
+
showWordLimit: boolean;
|
89
|
+
allowClear: boolean;
|
90
|
+
readonly: boolean;
|
91
|
+
wordLength: import('../../Input').WordLength;
|
92
|
+
wordSlice: import('../../Input').WordSlice;
|
93
|
+
inputAttrs: import('../..').RecordType;
|
94
|
+
showInput: boolean;
|
95
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
96
|
+
beforeCreate?: (() => void) | (() => void)[];
|
97
|
+
created?: (() => void) | (() => void)[];
|
98
|
+
beforeMount?: (() => void) | (() => void)[];
|
99
|
+
mounted?: (() => void) | (() => void)[];
|
100
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
101
|
+
updated?: (() => void) | (() => void)[];
|
102
|
+
activated?: (() => void) | (() => void)[];
|
103
|
+
deactivated?: (() => void) | (() => void)[];
|
104
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
105
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
106
|
+
destroyed?: (() => void) | (() => void)[];
|
107
|
+
unmounted?: (() => void) | (() => void)[];
|
108
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
109
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
110
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
111
|
+
};
|
112
|
+
$forceUpdate: () => void;
|
113
|
+
$nextTick: typeof nextTick;
|
114
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
115
|
+
} & Readonly<{
|
116
|
+
error: boolean;
|
117
|
+
size: import('../..').Size;
|
118
|
+
disabled: boolean;
|
119
|
+
placeholder: string;
|
120
|
+
modelValue: string;
|
121
|
+
defaultValue: string;
|
122
|
+
maxLength: import('../../Input').MaxLength;
|
123
|
+
showWordLimit: boolean;
|
124
|
+
allowClear: boolean;
|
125
|
+
readonly: boolean;
|
126
|
+
wordLength: import('../../Input').WordLength;
|
127
|
+
wordSlice: import('../../Input').WordSlice;
|
128
|
+
inputAttrs: import('../..').RecordType;
|
129
|
+
showInput: boolean;
|
130
|
+
}> & Omit<Readonly<import('../../Input').InputProps> & Readonly<{
|
131
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
132
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
133
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
134
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
135
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
136
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
137
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
138
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
139
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
140
|
+
focus(): void;
|
141
|
+
blur(): void;
|
142
|
+
getInputRef(): HTMLInputElement;
|
143
|
+
setCursor?: () => void;
|
144
|
+
recordCursor?: () => void;
|
145
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
146
|
+
$slots: any;
|
147
|
+
}) | null;
|
148
|
+
};
|
149
|
+
rootEl: any;
|
150
|
+
};
|
151
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
152
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
153
|
+
type: "year" | "month" | "week" | "time" | "date";
|
154
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
155
|
+
inputRef: ({
|
156
|
+
$: import('vue').ComponentInternalInstance;
|
157
|
+
$data: {};
|
158
|
+
$props: {
|
159
|
+
readonly modelValue?: string | undefined;
|
160
|
+
readonly defaultValue?: string | undefined;
|
161
|
+
readonly size?: import('../..').Size | undefined;
|
162
|
+
readonly allowClear?: boolean | undefined;
|
163
|
+
readonly disabled?: boolean | undefined;
|
164
|
+
readonly readonly?: boolean | undefined;
|
165
|
+
readonly error?: boolean | undefined;
|
166
|
+
readonly placeholder?: string | undefined;
|
167
|
+
readonly maxLength?: import('../../Input').MaxLength | undefined;
|
168
|
+
readonly wordLength?: import('../../Input').WordLength | undefined;
|
169
|
+
readonly wordSlice?: import('../../Input').WordSlice | undefined;
|
170
|
+
readonly showWordLimit?: boolean | undefined;
|
171
|
+
readonly inputAttrs?: import('../..').RecordType | undefined;
|
172
|
+
readonly showInput?: boolean | undefined;
|
173
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
174
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
175
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
176
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
177
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
178
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
179
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
180
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
181
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
182
|
+
$attrs: {
|
183
|
+
[x: string]: unknown;
|
184
|
+
};
|
185
|
+
$refs: {
|
186
|
+
[x: string]: unknown;
|
187
|
+
} & {
|
188
|
+
inputRef: HTMLInputElement;
|
189
|
+
};
|
190
|
+
$slots: Readonly<{
|
191
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
192
|
+
}>;
|
193
|
+
$root: import('vue').ComponentPublicInstance | null;
|
194
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
195
|
+
$host: Element | null;
|
196
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
197
|
+
$el: HTMLDivElement;
|
198
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../Input').InputProps> & Readonly<{
|
199
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
200
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
201
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
202
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
203
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
204
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
205
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
206
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
207
|
+
}>, {
|
208
|
+
focus(): void;
|
209
|
+
blur(): void;
|
210
|
+
getInputRef(): HTMLInputElement;
|
211
|
+
setCursor?: () => void;
|
212
|
+
recordCursor?: () => void;
|
213
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
214
|
+
change: (value: string, ev: Event) => any;
|
215
|
+
focus: (ev: FocusEvent) => any;
|
216
|
+
clear: (ev: MouseEvent) => any;
|
217
|
+
blur: (ev: FocusEvent) => any;
|
218
|
+
input: (value: string, ev: Event) => any;
|
219
|
+
keydown: (ev: KeyboardEvent) => any;
|
220
|
+
"update:modelValue": (value: string) => any;
|
221
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
222
|
+
}, string, {
|
223
|
+
error: boolean;
|
224
|
+
size: import('../..').Size;
|
225
|
+
disabled: boolean;
|
226
|
+
placeholder: string;
|
227
|
+
modelValue: string;
|
228
|
+
defaultValue: string;
|
229
|
+
maxLength: import('../../Input').MaxLength;
|
230
|
+
showWordLimit: boolean;
|
231
|
+
allowClear: boolean;
|
232
|
+
readonly: boolean;
|
233
|
+
wordLength: import('../../Input').WordLength;
|
234
|
+
wordSlice: import('../../Input').WordSlice;
|
235
|
+
inputAttrs: import('../..').RecordType;
|
236
|
+
showInput: boolean;
|
237
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
238
|
+
beforeCreate?: (() => void) | (() => void)[];
|
239
|
+
created?: (() => void) | (() => void)[];
|
240
|
+
beforeMount?: (() => void) | (() => void)[];
|
241
|
+
mounted?: (() => void) | (() => void)[];
|
242
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
243
|
+
updated?: (() => void) | (() => void)[];
|
244
|
+
activated?: (() => void) | (() => void)[];
|
245
|
+
deactivated?: (() => void) | (() => void)[];
|
246
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
247
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
248
|
+
destroyed?: (() => void) | (() => void)[];
|
249
|
+
unmounted?: (() => void) | (() => void)[];
|
250
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
251
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
252
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
253
|
+
};
|
254
|
+
$forceUpdate: () => void;
|
255
|
+
$nextTick: typeof nextTick;
|
256
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
257
|
+
} & Readonly<{
|
258
|
+
error: boolean;
|
259
|
+
size: import('../..').Size;
|
260
|
+
disabled: boolean;
|
261
|
+
placeholder: string;
|
262
|
+
modelValue: string;
|
263
|
+
defaultValue: string;
|
264
|
+
maxLength: import('../../Input').MaxLength;
|
265
|
+
showWordLimit: boolean;
|
266
|
+
allowClear: boolean;
|
267
|
+
readonly: boolean;
|
268
|
+
wordLength: import('../../Input').WordLength;
|
269
|
+
wordSlice: import('../../Input').WordSlice;
|
270
|
+
inputAttrs: import('../..').RecordType;
|
271
|
+
showInput: boolean;
|
272
|
+
}> & Omit<Readonly<import('../../Input').InputProps> & Readonly<{
|
273
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
274
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
275
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
276
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
277
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
278
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
279
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
280
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
281
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
282
|
+
focus(): void;
|
283
|
+
blur(): void;
|
284
|
+
getInputRef(): HTMLInputElement;
|
285
|
+
setCursor?: () => void;
|
286
|
+
recordCursor?: () => void;
|
287
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
288
|
+
$slots: any;
|
289
|
+
}) | null;
|
290
|
+
}, any>;
|
291
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
292
|
+
export default _default;
|
293
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
294
|
+
new (): {
|
295
|
+
$slots: S;
|
296
|
+
};
|
297
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./PickerInput.vue2.js";
|
2
|
+
/* empty css */
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const PickerInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f7eea5c"]]);
|
5
|
+
export {
|
6
|
+
PickerInput as default
|
7
|
+
};
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import { defineComponent, toRefs, computed, ref, watch, nextTick, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode, normalizeClass, normalizeStyle, createSlots, createElementVNode, createCommentVNode, renderSlot, withModifiers } from "vue";
|
2
|
+
import _sfc_main$2 from "../../_shared/components/IconButton/index.vue.js";
|
3
|
+
/* empty css */
|
4
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
5
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
6
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
7
|
+
import "../../_shared/utils/dom.js";
|
8
|
+
import { useI18n } from "../../_shared/utils/locale.js";
|
9
|
+
import "../../_shared/utils/time.js";
|
10
|
+
/* empty css */
|
11
|
+
/* empty css */
|
12
|
+
import _sfc_main$1 from "../../_shared/icons/IconCalendar.vue2.js";
|
13
|
+
import usePickerInputContext from "../hooks/useContext.js";
|
14
|
+
import Input from "../../Input/index.js";
|
15
|
+
import Trigger from "../../Trigger/index.js";
|
16
|
+
const _hoisted_1 = { class: "yc-picker-suffix-icon" };
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
18
|
+
...{
|
19
|
+
inheritAttrs: false
|
20
|
+
},
|
21
|
+
__name: "PickerInput",
|
22
|
+
props: {
|
23
|
+
type: { default: "date" }
|
24
|
+
},
|
25
|
+
setup(__props) {
|
26
|
+
const $props = __props;
|
27
|
+
const { props, computedVisible, formatValue, showClearBtn, onClear } = usePickerInputContext().inject();
|
28
|
+
const {
|
29
|
+
popupContainer,
|
30
|
+
unmountOnClose,
|
31
|
+
readonly,
|
32
|
+
disabled,
|
33
|
+
position,
|
34
|
+
triggerProps,
|
35
|
+
size,
|
36
|
+
error,
|
37
|
+
disabledInput,
|
38
|
+
locale,
|
39
|
+
placeholder: _placeholder
|
40
|
+
} = toRefs(props);
|
41
|
+
const { t } = useI18n();
|
42
|
+
const placeholder = computed(() => {
|
43
|
+
var _a;
|
44
|
+
const key = `datePicker.placeholder.${$props.type}`;
|
45
|
+
return _placeholder.value || ((_a = locale.value) == null ? void 0 : _a[key]) || t(key);
|
46
|
+
});
|
47
|
+
const inputRef = ref();
|
48
|
+
watch(
|
49
|
+
() => computedVisible.value,
|
50
|
+
async (val) => {
|
51
|
+
var _a;
|
52
|
+
if (val) return;
|
53
|
+
await nextTick();
|
54
|
+
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
55
|
+
}
|
56
|
+
);
|
57
|
+
return (_ctx, _cache) => {
|
58
|
+
return openBlock(), createBlock(unref(Trigger), mergeProps({
|
59
|
+
"popup-visible": unref(computedVisible),
|
60
|
+
"onUpdate:popupVisible": _cache[0] || (_cache[0] = ($event) => isRef(computedVisible) ? computedVisible.value = $event : null),
|
61
|
+
"popup-offset": 4,
|
62
|
+
"popup-container": unref(popupContainer),
|
63
|
+
"unmount-on-close": unref(unmountOnClose),
|
64
|
+
disabled: unref(disabled) || unref(readonly),
|
65
|
+
position: unref(position),
|
66
|
+
"prevent-focus": "",
|
67
|
+
trigger: "click",
|
68
|
+
"animation-name": "slide-dynamic-origin",
|
69
|
+
"need-transform-origin": ""
|
70
|
+
}, unref(triggerProps)), {
|
71
|
+
content: withCtx(() => [
|
72
|
+
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
73
|
+
]),
|
74
|
+
default: withCtx(() => [
|
75
|
+
createVNode(unref(Input), {
|
76
|
+
"model-value": unref(formatValue),
|
77
|
+
placeholder: placeholder.value,
|
78
|
+
disabled: unref(disabled),
|
79
|
+
error: unref(error),
|
80
|
+
size: unref(size),
|
81
|
+
readonly: unref(readonly) || unref(disabledInput) || true,
|
82
|
+
style: normalizeStyle(_ctx.$attrs.style),
|
83
|
+
class: normalizeClass([
|
84
|
+
_ctx.$attrs.class,
|
85
|
+
{
|
86
|
+
"yc-picker-allow-clear": unref(showClearBtn)
|
87
|
+
}
|
88
|
+
]),
|
89
|
+
ref_key: "inputRef",
|
90
|
+
ref: inputRef
|
91
|
+
}, createSlots({
|
92
|
+
suffix: withCtx(() => [
|
93
|
+
createElementVNode("div", _hoisted_1, [
|
94
|
+
renderSlot(_ctx.$slots, "suffix-icon", {}, () => [
|
95
|
+
createVNode(unref(_sfc_main$1))
|
96
|
+
], true)
|
97
|
+
]),
|
98
|
+
unref(showClearBtn) ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
99
|
+
key: 0,
|
100
|
+
onClick: withModifiers(unref(onClear), ["stop"])
|
101
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
102
|
+
]),
|
103
|
+
_: 2
|
104
|
+
}, [
|
105
|
+
_ctx.$slots.prefix ? {
|
106
|
+
name: "prefix",
|
107
|
+
fn: withCtx(() => [
|
108
|
+
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
109
|
+
]),
|
110
|
+
key: "0"
|
111
|
+
} : void 0
|
112
|
+
]), 1032, ["model-value", "placeholder", "disabled", "error", "size", "readonly", "style", "class"])
|
113
|
+
]),
|
114
|
+
_: 3
|
115
|
+
}, 16, ["popup-visible", "popup-container", "unmount-on-close", "disabled", "position"]);
|
116
|
+
};
|
117
|
+
}
|
118
|
+
});
|
119
|
+
export {
|
120
|
+
_sfc_main as default
|
121
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { ShortcutsPosition, ShortcutType } from '../type';
|
2
|
+
type __VLS_Props = {
|
3
|
+
locale: Record<string, any>;
|
4
|
+
shortcutsPosition: ShortcutsPosition;
|
5
|
+
shortcuts: ShortcutType[];
|
6
|
+
previewShortcut: boolean;
|
7
|
+
confirmBtnDisabled: boolean;
|
8
|
+
showConfirmBtn: boolean;
|
9
|
+
};
|
10
|
+
declare function __VLS_template(): {
|
11
|
+
attrs: Partial<{}>;
|
12
|
+
slots: {
|
13
|
+
default?(_: {}): any;
|
14
|
+
extra?(_: {}): any;
|
15
|
+
};
|
16
|
+
refs: {};
|
17
|
+
rootEl: HTMLDivElement;
|
18
|
+
};
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
21
|
+
confirm: (ev: MouseEvent) => any;
|
22
|
+
"shortcut-select": (shortcut: ShortcutType, hover: boolean) => any;
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
24
|
+
onConfirm?: ((ev: MouseEvent) => any) | undefined;
|
25
|
+
"onShortcut-select"?: ((shortcut: ShortcutType, hover: boolean) => any) | undefined;
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
28
|
+
export default _default;
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
30
|
+
new (): {
|
31
|
+
$slots: S;
|
32
|
+
};
|
33
|
+
};
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createVNode, createBlock, createCommentVNode, createElementVNode, unref, withCtx, Fragment, renderList, resolveDynamicComponent, renderSlot, createTextVNode, toDisplayString } from "vue";
|
2
|
+
import { createReusableTemplate } from "../../node_modules/@vueuse/core/index.js";
|
3
|
+
import "../../node_modules/b-tween/dist/b-tween.es.js";
|
4
|
+
import "../../node_modules/dayjs/dayjs.min.js";
|
5
|
+
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
6
|
+
import "../../_shared/utils/dom.js";
|
7
|
+
import { useI18n } from "../../_shared/utils/locale.js";
|
8
|
+
import "../../_shared/utils/time.js";
|
9
|
+
import { getSlotFunction } from "../../_shared/utils/vue-utils.js";
|
10
|
+
import Button from "../../Button/index.js";
|
11
|
+
const _hoisted_1 = { class: "yc-picker-panel-wrapper" };
|
12
|
+
const _hoisted_2 = { class: "yc-picker-footer" };
|
13
|
+
const _hoisted_3 = {
|
14
|
+
key: 0,
|
15
|
+
class: "yc-picker-footer-extra-wrapper"
|
16
|
+
};
|
17
|
+
const _hoisted_4 = {
|
18
|
+
key: 1,
|
19
|
+
class: "yc-picker-footer-btn-wrapper"
|
20
|
+
};
|
21
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
22
|
+
__name: "PickerPanel",
|
23
|
+
props: {
|
24
|
+
locale: {},
|
25
|
+
shortcutsPosition: {},
|
26
|
+
shortcuts: {},
|
27
|
+
previewShortcut: { type: Boolean },
|
28
|
+
confirmBtnDisabled: { type: Boolean },
|
29
|
+
showConfirmBtn: { type: Boolean }
|
30
|
+
},
|
31
|
+
emits: ["confirm", "shortcut-select"],
|
32
|
+
setup(__props) {
|
33
|
+
const props = __props;
|
34
|
+
const { define: DefineShortcuts, reuse: ReuseShortcuts } = createReusableTemplate();
|
35
|
+
const { t } = useI18n();
|
36
|
+
const getOkText = () => {
|
37
|
+
var _a;
|
38
|
+
const key = "datePicker.ok";
|
39
|
+
return ((_a = props.locale) == null ? void 0 : _a[key]) || t(key);
|
40
|
+
};
|
41
|
+
return (_ctx, _cache) => {
|
42
|
+
var _a, _b;
|
43
|
+
return openBlock(), createElementBlock("div", {
|
44
|
+
class: normalizeClass([
|
45
|
+
"yc-picker-container",
|
46
|
+
`yc-picker-container-shortcuts-${_ctx.shortcutsPosition}`
|
47
|
+
])
|
48
|
+
}, [
|
49
|
+
createVNode(unref(DefineShortcuts), null, {
|
50
|
+
default: withCtx(() => [
|
51
|
+
createElementVNode("div", {
|
52
|
+
class: normalizeClass([
|
53
|
+
"yc-picker-shortcuts",
|
54
|
+
`yc-picker-shortcuts-${_ctx.shortcutsPosition}`
|
55
|
+
])
|
56
|
+
}, [
|
57
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.shortcuts, (v, i) => {
|
58
|
+
return openBlock(), createBlock(unref(Button), {
|
59
|
+
key: i,
|
60
|
+
size: "mini",
|
61
|
+
onClick: ($event) => _ctx.$emit("shortcut-select", v, false),
|
62
|
+
onMouseenter: ($event) => _ctx.previewShortcut && _ctx.$emit("shortcut-select", v, true)
|
63
|
+
}, {
|
64
|
+
default: withCtx(() => [
|
65
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(getSlotFunction)(v.label))))
|
66
|
+
]),
|
67
|
+
_: 2
|
68
|
+
}, 1032, ["onClick", "onMouseenter"]);
|
69
|
+
}), 128))
|
70
|
+
], 2)
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
}),
|
74
|
+
["left", "right"].includes(_ctx.shortcutsPosition) && ((_a = _ctx.shortcuts) == null ? void 0 : _a.length) ? (openBlock(), createBlock(unref(ReuseShortcuts), { key: 0 })) : createCommentVNode("", true),
|
75
|
+
createElementVNode("div", _hoisted_1, [
|
76
|
+
renderSlot(_ctx.$slots, "default"),
|
77
|
+
createElementVNode("div", _hoisted_2, [
|
78
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
79
|
+
renderSlot(_ctx.$slots, "extra")
|
80
|
+
])) : createCommentVNode("", true),
|
81
|
+
_ctx.showConfirmBtn || _ctx.shortcutsPosition == "bottom" && ((_b = _ctx.shortcuts) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
82
|
+
_ctx.shortcutsPosition == "bottom" ? (openBlock(), createBlock(unref(ReuseShortcuts), { key: 0 })) : createCommentVNode("", true),
|
83
|
+
_ctx.showConfirmBtn ? (openBlock(), createBlock(unref(Button), {
|
84
|
+
key: 1,
|
85
|
+
disabled: _ctx.confirmBtnDisabled,
|
86
|
+
type: "primary",
|
87
|
+
size: "mini",
|
88
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("confirm", $event))
|
89
|
+
}, {
|
90
|
+
default: withCtx(() => [
|
91
|
+
createTextVNode(toDisplayString(getOkText()), 1)
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
}, 8, ["disabled"])) : createCommentVNode("", true)
|
95
|
+
])) : createCommentVNode("", true)
|
96
|
+
])
|
97
|
+
])
|
98
|
+
], 2);
|
99
|
+
};
|
100
|
+
}
|
101
|
+
});
|
102
|
+
export {
|
103
|
+
_sfc_main as default
|
104
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { RecordType } from '../../_shared/type';
|
3
|
+
import { DatePickerValue } from '../type';
|
4
|
+
export interface PickerInputContext {
|
5
|
+
props: RecordType;
|
6
|
+
computedVisible: Ref<boolean>;
|
7
|
+
formatValue: Ref<string>;
|
8
|
+
showClearBtn: Ref<boolean>;
|
9
|
+
onClear: () => void;
|
10
|
+
}
|
11
|
+
export default function usePickerInputContext(): {
|
12
|
+
provide: (context: {
|
13
|
+
computedValue: Ref<DatePickerValue | DatePickerValue[]>;
|
14
|
+
computedVisible: Ref<boolean>;
|
15
|
+
formatValue: Ref<string>;
|
16
|
+
emits: (...args: any) => void;
|
17
|
+
}, props: RecordType) => void;
|
18
|
+
inject: () => PickerInputContext;
|
19
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { toRefs, provide, computed, inject, ref } from "vue";
|
2
|
+
const PICKER_TRIGGER_CONTEXT = "picker--context";
|
3
|
+
function usePickerInputContext() {
|
4
|
+
const provide$1 = (context, props) => {
|
5
|
+
const { computedVisible, computedValue, formatValue, emits } = context;
|
6
|
+
const { allowClear, disabled } = toRefs(props);
|
7
|
+
provide(PICKER_TRIGGER_CONTEXT, {
|
8
|
+
computedVisible,
|
9
|
+
formatValue,
|
10
|
+
props,
|
11
|
+
showClearBtn: computed(() => {
|
12
|
+
return !!computedValue.value && allowClear.value && !disabled.value;
|
13
|
+
}),
|
14
|
+
onClear: () => {
|
15
|
+
computedValue.value = "";
|
16
|
+
emits("clear");
|
17
|
+
}
|
18
|
+
});
|
19
|
+
};
|
20
|
+
const inject$1 = () => {
|
21
|
+
return inject(PICKER_TRIGGER_CONTEXT, {
|
22
|
+
computedVisible: ref(false),
|
23
|
+
formatValue: ref(""),
|
24
|
+
showClearBtn: ref(false),
|
25
|
+
props: ref({}),
|
26
|
+
onClear: () => {
|
27
|
+
}
|
28
|
+
});
|
29
|
+
};
|
30
|
+
return {
|
31
|
+
provide: provide$1,
|
32
|
+
inject: inject$1
|
33
|
+
};
|
34
|
+
}
|
35
|
+
export {
|
36
|
+
usePickerInputContext as default
|
37
|
+
};
|