yc-design-vue 2.2.1 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/dist/lang-es/zh-cn.js +26 -26
- package/dist/style.css +1 -1
- package/es/Alert/index.vue.js +3 -3
- package/es/Anchor/hooks/useContext.d.ts +1 -1
- package/es/Anchor/hooks/useContext.js +5 -9
- package/es/Avatar/Avatar.vue.js +2 -2
- package/es/BackTop/index.vue.js +2 -2
- package/es/Breadcrumb/BreadcrumbItem.vue.js +2 -2
- package/es/Breadcrumb/BreadcrumbMore.vue.js +2 -2
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -2
- package/es/Calendar/Calendar.vue.js +3 -3
- package/es/Carousel/CarouselArrow.vue.js +2 -2
- package/es/Carousel/hooks/useContext.d.ts +11 -2
- package/es/Carousel/hooks/useContext.js +4 -4
- package/es/Cascader/Cascader.vue.d.ts +2 -1
- package/es/Cascader/Cascader.vue.js +5 -3
- package/es/Cascader/CascaderDataPanel.vue.d.ts +33 -0
- package/es/Cascader/CascaderDataPanel.vue.js +48 -0
- package/es/Cascader/CascaderDataPanel.vue2.js +4 -0
- package/es/Cascader/CascaderIcon.vue.js +3 -3
- package/es/Cascader/CascaderOption.vue.js +2 -2
- package/es/Cascader/CascaderPanel.vue.js +8 -2
- package/es/Cascader/hooks/useContext.d.ts +69 -8
- package/es/Cascader/hooks/useContext.js +5 -13
- package/es/Cascader/index.css +1 -1
- package/es/Cascader/index.d.ts +9 -3
- package/es/Cascader/index.js +3 -0
- package/es/Cascader/type.d.ts +9 -0
- package/es/Checkbox/Checkbox.vue.js +3 -3
- package/es/Collapse/CollapseItem.vue.js +4 -4
- package/es/ColorPicker/hooks/useContext.d.ts +12 -1
- package/es/ColorPicker/hooks/useContext.js +5 -5
- 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 +64 -0
- package/es/DatePicker/YcMonthPicker.vue.js +234 -0
- package/es/DatePicker/YcMonthPicker.vue3.js +5 -0
- package/es/DatePicker/YcWeekPicker.vue.d.ts +65 -0
- package/es/DatePicker/YcWeekPicker.vue.js +7 -0
- package/es/DatePicker/YcWeekPicker.vue2.js +319 -0
- package/es/DatePicker/YcYearPicker.vue.d.ts +63 -0
- package/es/DatePicker/YcYearPicker.vue.js +200 -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 +125 -0
- package/es/DatePicker/component/PickerPanel.vue.d.ts +33 -0
- package/es/DatePicker/component/PickerPanel.vue.js +108 -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 +221 -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/Drawer/Drawer.vue.js +3 -3
- package/es/Drawer/DrawerService.vue.js +1 -1
- package/es/Dropdown/DropdownButton.vue.js +2 -2
- package/es/Dropdown/Dsubmenu.vue.js +2 -2
- package/es/Empty/index.vue.js +2 -2
- package/es/Grid/hooks/useContext.d.ts +6 -2
- package/es/Grid/hooks/useContext.js +5 -7
- package/es/Image/Image.vue.js +2 -2
- package/es/Image/ImagePreview.vue.js +2 -2
- package/es/Image/ImagePreviewArrow.vue.js +2 -2
- package/es/Image/ImagePreviewToolbar.vue.js +2 -2
- package/es/Input/Input.vue.js +3 -3
- package/es/Input/InputPassword.vue.js +3 -3
- package/es/Input/InputSearch.vue.js +3 -3
- package/es/InputNumber/InputOperaBtn.vue.js +2 -2
- package/es/InputTag/index.vue.js +3 -3
- package/es/Layout/LayoutSider.vue.js +2 -2
- package/es/Link/index.vue.js +2 -2
- package/es/Menu/Menu.vue.js +2 -2
- package/es/Menu/MenuEllipsis.vue.js +2 -2
- package/es/Menu/SubMenu.vue.js +3 -3
- package/es/Menu/hooks/useContext.d.ts +17 -2
- package/es/Menu/hooks/useContext.js +5 -7
- package/es/Message/Message.vue.js +4 -4
- package/es/Modal/Modal.vue.js +3 -3
- package/es/Modal/ModalService.vue.js +2 -2
- package/es/Notification/Notification.vue.js +5 -5
- package/es/PageHeader/index.vue.js +3 -3
- package/es/Pagination/PaginationItem.vue.js +2 -2
- package/es/Progress/ProgressCircle.vue.js +3 -3
- package/es/Radio/Radio.vue.js +3 -3
- package/es/Rate/index.vue.js +2 -2
- package/es/ResizeBox/index.vue.js +2 -2
- package/es/Select/SelectIcon.vue.js +3 -3
- package/es/Select/hooks/useContext.d.ts +2 -2
- package/es/Select/hooks/useSelectOptions.d.ts +2 -2
- package/es/Slider/hooks/useContext.d.ts +12 -6
- package/es/Slider/hooks/useContext.js +5 -12
- package/es/Spin/index.vue.js +2 -2
- package/es/Split/index.vue.js +2 -2
- package/es/Statistic/Statistic.vue.js +3 -3
- package/es/Steps/Step.vue.js +2 -2
- package/es/Steps/hooks/useContext.d.ts +9 -1
- package/es/Steps/hooks/useContext.js +3 -6
- package/es/Tabs/TabButton.vue.js +3 -3
- package/es/Tabs/Tabs.vue.js +2 -2
- package/es/Tabs/hooks/useContext.d.ts +9 -2
- package/es/Tabs/hooks/useContext.js +5 -9
- package/es/Tag/index.vue.js +3 -3
- package/es/Textarea/index.vue.js +3 -3
- package/es/TimePicker/TimePicker.vue.js +4 -4
- package/es/TimePicker/hooks/useContext.d.ts +17 -7
- package/es/TimePicker/hooks/useContext.js +4 -9
- package/es/Timeline/hooks/useContext.d.ts +4 -2
- package/es/Timeline/hooks/useContext.js +3 -6
- package/es/Transfer/Transfer.vue.js +2 -2
- package/es/Transfer/TransferPanel.vue.js +3 -3
- package/es/Transfer/hooks/useContext.d.ts +1 -6
- package/es/Transfer/hooks/useContext.js +3 -7
- package/es/Trigger/index.vue.js +2 -2
- package/es/Typography/TypographyBase.vue.js +2 -2
- package/es/Upload/Upload.vue.js +6 -4
- package/es/Upload/UploadButton.vue.js +2 -2
- package/es/Upload/UploadDrag.vue.js +2 -2
- package/es/Upload/UploadFileList.vue.js +129 -5
- package/es/Upload/UploadFileList.vue3.js +5 -0
- package/es/Upload/UploadPictureCard.vue.js +135 -5
- package/es/Upload/UploadPictureCard.vue3.js +5 -0
- package/es/_shared/components/ExpandTransition/index.vue3.js +2 -2
- package/es/_shared/components/IconButton/{index.vue2.js → index.vue.js} +2 -2
- package/es/_shared/components/IconButton/index.vue3.js +2 -2
- package/es/_shared/constants/index.js +2 -2
- package/es/_shared/icons/IconArrowDown.vue.js +2 -2
- package/es/_shared/icons/IconArrowRight.vue.js +2 -2
- 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 +31 -0
- package/es/_shared/icons/IconCheck.vue.js +2 -2
- package/es/_shared/icons/IconCheckboxChecked.vue.js +2 -2
- package/es/_shared/icons/IconClose.vue.js +2 -2
- package/es/_shared/icons/IconCopy.vue2.js +2 -2
- package/es/_shared/icons/IconDelete.vue2.js +2 -2
- package/es/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
- package/es/_shared/icons/IconDoubleLeft.vue.js +31 -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 +31 -0
- package/es/_shared/icons/IconDoubleRight.vue2.js +4 -0
- package/es/_shared/icons/IconDragDot.vue.js +2 -2
- package/es/_shared/icons/IconEdit.vue2.js +2 -2
- package/es/_shared/icons/IconEmpty.vue.js +2 -2
- package/es/_shared/icons/IconError.vue.js +2 -2
- package/es/_shared/icons/IconExclamation.vue.js +1 -39
- package/es/_shared/icons/IconExclamation.vue2.js +39 -1
- package/es/_shared/icons/IconEyeClose.vue.js +2 -2
- package/es/_shared/icons/IconEyeOpen.vue.js +2 -2
- package/es/_shared/icons/IconFaceSmile.vue.js +2 -2
- package/es/_shared/icons/IconFile.vue2.js +2 -2
- package/es/_shared/icons/IconFullScreen.vue2.js +2 -2
- package/es/_shared/icons/IconImageClose.vue.js +2 -2
- package/es/_shared/icons/IconInfo.vue.js +2 -2
- package/es/_shared/icons/IconInfoLine.vue.js +2 -2
- package/es/_shared/icons/IconLink.vue.js +2 -2
- package/es/_shared/icons/IconLoading.vue.js +2 -2
- package/es/_shared/icons/IconMenuFold.vue.js +2 -2
- package/es/_shared/icons/IconMenuUnfold.vue.js +2 -2
- package/es/_shared/icons/IconMinus.vue2.js +2 -2
- package/es/_shared/icons/IconMore.vue.js +2 -2
- package/es/_shared/icons/IconOriginSize.vue2.js +2 -2
- package/es/_shared/icons/IconPlus.vue.js +2 -2
- package/es/_shared/icons/IconRight.vue.js +2 -2
- package/es/_shared/icons/IconRotateLeft.vue2.js +2 -2
- package/es/_shared/icons/IconRotateRight.vue2.js +2 -2
- package/es/_shared/icons/IconSearch.vue.js +2 -2
- package/es/_shared/icons/IconSeparator.vue2.js +2 -2
- package/es/_shared/icons/IconStar.vue.js +2 -2
- package/es/_shared/icons/IconSuccess.vue.js +2 -2
- package/es/_shared/icons/IconTime.vue.js +2 -2
- package/es/_shared/icons/IconToTop.vue.js +2 -2
- package/es/_shared/icons/IconUpload.vue2.js +2 -2
- package/es/_shared/icons/IconWarning.vue.js +2 -2
- package/es/_shared/icons/IconZoomIn.vue2.js +2 -2
- package/es/_shared/icons/IconZoomOut.vue2.js +2 -2
- package/es/_shared/icons/index.d.ts +3 -0
- package/es/_shared/type/index.d.ts +1 -1
- package/es/_shared/utils/hooks.js +1 -1
- package/es/_shared/utils/time.d.ts +0 -1
- package/es/_shared/utils/time.js +0 -4
- package/es/_shared/utils/vue-utils.d.ts +1 -1
- package/es/_virtual/isoWeek.js +4 -0
- package/es/index.d.ts +295 -1
- package/es/index.js +50 -39
- 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/Alert/index.vue.js +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/BackTop/index.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/Calendar/Calendar.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.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.d.ts +2 -1
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/CascaderDataPanel.vue.d.ts +33 -0
- package/lib/Cascader/CascaderDataPanel.vue.js +1 -0
- package/lib/Cascader/CascaderDataPanel.vue2.js +1 -0
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/CascaderPanel.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/Cascader/index.d.ts +9 -3
- package/lib/Cascader/index.js +1 -1
- package/lib/Cascader/type.d.ts +9 -0
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +12 -1
- package/lib/ColorPicker/hooks/useContext.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 +64 -0
- package/lib/DatePicker/YcMonthPicker.vue.js +1 -0
- package/lib/DatePicker/YcMonthPicker.vue3.js +1 -0
- package/lib/DatePicker/YcWeekPicker.vue.d.ts +65 -0
- package/lib/DatePicker/YcWeekPicker.vue.js +1 -0
- package/lib/DatePicker/YcWeekPicker.vue2.js +1 -0
- package/lib/DatePicker/YcYearPicker.vue.d.ts +63 -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/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Empty/index.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/ImagePreviewToolbar.vue.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/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.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/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +2 -2
- package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
- package/lib/Slider/hooks/useContext.d.ts +12 -6
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.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/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +9 -2
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +17 -7
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/Timeline/hooks/useContext.d.ts +4 -2
- package/lib/Timeline/hooks/useContext.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/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/_shared/components/ExpandTransition/index.vue3.js +1 -1
- package/lib/_shared/components/IconButton/{index.vue2.js → index.vue.js} +1 -1
- package/lib/_shared/components/IconButton/index.vue3.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.vue2.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.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.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/hooks.js +1 -1
- package/lib/_shared/utils/time.d.ts +0 -1
- 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 +295 -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
- /package/es/_shared/components/ExpandTransition/{index.vue.js → index.vue2.js} +0 -0
- /package/lib/_shared/components/ExpandTransition/{index.vue.js → index.vue2.js} +0 -0
package/es/Alert/index.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, ref, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, normalizeClass, createElementVNode, renderSlot, resolveDynamicComponent, unref, createTextVNode, toDisplayString, createVNode } from "vue";
|
2
2
|
import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
|
3
|
-
import _sfc_main$1 from "../_shared/components/IconButton/index.
|
4
|
-
/* empty css
|
3
|
+
import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
|
4
|
+
/* empty css */
|
5
5
|
import "../node_modules/b-tween/dist/b-tween.es.js";
|
6
6
|
import "../node_modules/dayjs/dayjs.min.js";
|
7
7
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
@@ -12,7 +12,7 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
|
12
12
|
import "../_shared/utils/dom.js";
|
13
13
|
import "../_shared/utils/locale.js";
|
14
14
|
import "../_shared/utils/time.js";
|
15
|
-
/* empty css
|
15
|
+
/* empty css */
|
16
16
|
/* empty css */
|
17
17
|
const _hoisted_1 = {
|
18
18
|
key: 0,
|
@@ -11,11 +11,11 @@ type AnchorContext = {
|
|
11
11
|
export default function useAnchorContext(): {
|
12
12
|
provide: (props: RecordType, listRef: Ref<HTMLDivElement | undefined>) => {
|
13
13
|
hrefs: import('vue').ComputedRef<any[]>;
|
14
|
-
curHref: Ref<string, string>;
|
15
14
|
changeHash: Ref<boolean, boolean>;
|
16
15
|
smooth: Ref<boolean, boolean>;
|
17
16
|
boundary: Ref<number | "center" | "end" | "start" | "nearest", number | "center" | "end" | "start" | "nearest">;
|
18
17
|
lineLess: Ref<boolean, boolean>;
|
18
|
+
curHref: Ref<string, string>;
|
19
19
|
scrollContainer: import('vue').ComputedRef<HTMLElement | undefined>;
|
20
20
|
};
|
21
21
|
inject: () => AnchorContext;
|
@@ -39,22 +39,18 @@ function useAnchorContext() {
|
|
39
39
|
const scrollContainer = computed(() => {
|
40
40
|
return isUndefined(_scrollContainer.value) ? findFirstScrollableParent(listRef.value) : getElement(_scrollContainer.value);
|
41
41
|
});
|
42
|
-
|
42
|
+
const context = {
|
43
43
|
changeHash,
|
44
44
|
smooth,
|
45
45
|
boundary,
|
46
46
|
lineLess,
|
47
47
|
curHref,
|
48
48
|
scrollContainer
|
49
|
-
}
|
49
|
+
};
|
50
|
+
provide(ANCHOR_CONTEXT_KEY, context);
|
50
51
|
return {
|
51
|
-
|
52
|
-
|
53
|
-
changeHash,
|
54
|
-
smooth,
|
55
|
-
boundary,
|
56
|
-
lineLess,
|
57
|
-
scrollContainer
|
52
|
+
...context,
|
53
|
+
hrefs
|
58
54
|
};
|
59
55
|
};
|
60
56
|
const inject$1 = () => {
|
package/es/Avatar/Avatar.vue.js
CHANGED
@@ -10,8 +10,8 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
|
10
10
|
import { valueToPx } from "../_shared/utils/dom.js";
|
11
11
|
import "../_shared/utils/locale.js";
|
12
12
|
import "../_shared/utils/time.js";
|
13
|
-
/* empty css
|
14
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
|
+
/* empty css */
|
15
15
|
/* empty css */
|
16
16
|
import _sfc_main$1 from "../_shared/icons/IconImageClose.vue.js";
|
17
17
|
import useAvatarContext from "./hooks/useContext.js";
|
package/es/BackTop/index.vue.js
CHANGED
@@ -11,8 +11,8 @@ import { findFirstScrollableParent, getElement } from "../_shared/utils/dom.js";
|
|
11
11
|
import { isUndefined } from "../_shared/utils/is.js";
|
12
12
|
import "../_shared/utils/locale.js";
|
13
13
|
import "../_shared/utils/time.js";
|
14
|
-
/* empty css
|
15
|
-
/* empty css
|
14
|
+
/* empty css */
|
15
|
+
/* empty css */
|
16
16
|
/* empty css */
|
17
17
|
import _sfc_main$1 from "../_shared/icons/IconToTop.vue.js";
|
18
18
|
import Button from "../Button/index.js";
|
@@ -10,8 +10,8 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
|
10
10
|
import "../_shared/utils/dom.js";
|
11
11
|
import "../_shared/utils/locale.js";
|
12
12
|
import "../_shared/utils/time.js";
|
13
|
-
/* empty css
|
14
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
|
+
/* empty css */
|
15
15
|
/* empty css */
|
16
16
|
import Dropdown from "../Dropdown/index.js";
|
17
17
|
import _sfc_main$2 from "../Dropdown/Doption.vue.js";
|
@@ -9,8 +9,8 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
|
9
9
|
import "../_shared/utils/dom.js";
|
10
10
|
import "../_shared/utils/locale.js";
|
11
11
|
import "../_shared/utils/time.js";
|
12
|
-
/* empty css
|
13
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
14
|
/* empty css */
|
15
15
|
import _sfc_main$2 from "../_shared/icons/IconMore.vue.js";
|
16
16
|
import _sfc_main$1 from "./BreadcrumbItem.vue.js";
|
@@ -10,8 +10,8 @@ import "../_shared/utils/dom.js";
|
|
10
10
|
import { isUndefined } from "../_shared/utils/is.js";
|
11
11
|
import "../_shared/utils/locale.js";
|
12
12
|
import "../_shared/utils/time.js";
|
13
|
-
/* empty css
|
14
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
|
+
/* empty css */
|
15
15
|
/* empty css */
|
16
16
|
import _sfc_main$1 from "../_shared/icons/IconSeparator.vue2.js";
|
17
17
|
const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
|
@@ -10,9 +10,9 @@ import "../_shared/utils/dom.js";
|
|
10
10
|
import { useControlValue } from "../_shared/utils/hooks.js";
|
11
11
|
import { useI18n } from "../_shared/utils/locale.js";
|
12
12
|
import "../_shared/utils/time.js";
|
13
|
-
import _sfc_main$1 from "../_shared/components/IconButton/index.
|
14
|
-
/* empty css
|
15
|
-
/* empty css
|
13
|
+
import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
|
14
|
+
/* empty css */
|
15
|
+
/* empty css */
|
16
16
|
/* empty css */
|
17
17
|
import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
|
18
18
|
import Button from "../Button/index.js";
|
@@ -9,8 +9,8 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
|
9
9
|
import "../_shared/utils/dom.js";
|
10
10
|
import "../_shared/utils/locale.js";
|
11
11
|
import "../_shared/utils/time.js";
|
12
|
-
/* empty css
|
13
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
14
|
/* empty css */
|
15
15
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
16
16
|
import useCarouselContext from "./hooks/useContext.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
|
};
|
@@ -66,7 +66,7 @@ function useCarouselContext() {
|
|
66
66
|
await sleep(moveSpeed.value);
|
67
67
|
flag = false;
|
68
68
|
};
|
69
|
-
|
69
|
+
const context = {
|
70
70
|
length,
|
71
71
|
computedCurrent,
|
72
72
|
transitionTimingFunction,
|
@@ -78,11 +78,11 @@ function useCarouselContext() {
|
|
78
78
|
moveType,
|
79
79
|
preIndex,
|
80
80
|
getValidIndex
|
81
|
-
}
|
81
|
+
};
|
82
|
+
provide(CAROUSEL_CONTEXT_KEY, context);
|
82
83
|
return {
|
84
|
+
...context,
|
83
85
|
carouselItems,
|
84
|
-
computedCurrent,
|
85
|
-
length,
|
86
86
|
autoPlay,
|
87
87
|
slideTo
|
88
88
|
};
|
@@ -196,11 +196,12 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
196
196
|
triggerProps: import('../Trigger').TriggerProps;
|
197
197
|
searchDelay: number;
|
198
198
|
tagNowrap: boolean;
|
199
|
+
hideTrigger: boolean;
|
199
200
|
pathMode: boolean;
|
200
201
|
expandTrigger: import('..').EventTrigger;
|
202
|
+
loadMore: import('./type').LoadMore;
|
201
203
|
expandChild: boolean;
|
202
204
|
searchOptionOnlyLabel: boolean;
|
203
|
-
loadMore: import('./type').LoadMore;
|
204
205
|
fallback: boolean | import('..').FallBack<CascaderOptionValue | CascaderOptionValue[], string>;
|
205
206
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
206
207
|
inputRef: ({
|
@@ -63,7 +63,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
63
|
valueKey: { default: "value" },
|
64
64
|
fallback: { type: [Boolean, Function], default: true },
|
65
65
|
expandChild: { type: Boolean, default: false },
|
66
|
-
tagNowrap: { type: Boolean, default: false }
|
66
|
+
tagNowrap: { type: Boolean, default: false },
|
67
|
+
hideTrigger: { type: Boolean, default: false }
|
67
68
|
},
|
68
69
|
emits: ["update:modelValue", "update:inputValue", "update:popupVisible", "change", "input-value-change", "clear", "search", "popup-visible-change", "focus", "blur"],
|
69
70
|
setup(__props, { emit: __emit }) {
|
@@ -156,7 +157,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
156
157
|
}
|
157
158
|
};
|
158
159
|
return (_ctx, _cache) => {
|
159
|
-
return openBlock(), createBlock(unref(Trigger), mergeProps({
|
160
|
+
return !_ctx.hideTrigger ? (openBlock(), createBlock(unref(Trigger), mergeProps({
|
161
|
+
key: 0,
|
160
162
|
"popup-visible": unref(computedVisible),
|
161
163
|
"onUpdate:popupVisible": _cache[11] || (_cache[11] = ($event) => isRef(computedVisible) ? computedVisible.value = $event : null),
|
162
164
|
"popup-offset": 4,
|
@@ -286,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
286
288
|
];
|
287
289
|
}),
|
288
290
|
_: 3
|
289
|
-
}, 16, ["popup-visible", "popup-container", "disabled"]);
|
291
|
+
}, 16, ["popup-visible", "popup-container", "disabled"])) : (openBlock(), createBlock(_sfc_main$3, { key: 1 }));
|
290
292
|
};
|
291
293
|
}
|
292
294
|
});
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { CascaderPanelProps } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: any;
|
5
|
+
refs: {};
|
6
|
+
rootEl: any;
|
7
|
+
};
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<CascaderPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
10
|
+
change: (value: import('./type').CascaderValue) => any;
|
11
|
+
"update:modelValue": (value: import('./type').CascaderValue) => any;
|
12
|
+
}, string, import('vue').PublicProps, Readonly<CascaderPanelProps> & Readonly<{
|
13
|
+
onChange?: ((value: import('./type').CascaderValue) => any) | undefined;
|
14
|
+
"onUpdate:modelValue"?: ((value: import('./type').CascaderValue) => any) | undefined;
|
15
|
+
}>, {
|
16
|
+
multiple: boolean;
|
17
|
+
modelValue: import('./type').CascaderValue;
|
18
|
+
defaultValue: import('./type').CascaderValue;
|
19
|
+
options: import('./type').CascaderOption[];
|
20
|
+
fieldNames: Record<string, string>;
|
21
|
+
valueKey: string;
|
22
|
+
pathMode: boolean;
|
23
|
+
expandTrigger: import('..').EventTrigger;
|
24
|
+
loadMore: import('./type').LoadMore;
|
25
|
+
expandChild: boolean;
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
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,48 @@
|
|
1
|
+
import { defineComponent, useSlots, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot } from "vue";
|
2
|
+
import _sfc_main$1 from "./Cascader.vue.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
...{
|
6
|
+
name: "CascaderPanel"
|
7
|
+
},
|
8
|
+
__name: "CascaderDataPanel",
|
9
|
+
props: {
|
10
|
+
pathMode: { type: Boolean, default: false },
|
11
|
+
multiple: { type: Boolean, default: false },
|
12
|
+
modelValue: { default: void 0 },
|
13
|
+
defaultValue: { default: (props) => {
|
14
|
+
return props.multiple ? [] : "";
|
15
|
+
} },
|
16
|
+
options: { default: () => [] },
|
17
|
+
expandTrigger: { default: "click" },
|
18
|
+
loadMore: { type: Function, default: void 0 },
|
19
|
+
fieldNames: { default: () => {
|
20
|
+
return {};
|
21
|
+
} },
|
22
|
+
valueKey: { default: "value" },
|
23
|
+
expandChild: { type: Boolean, default: false }
|
24
|
+
},
|
25
|
+
emits: ["update:modelValue", "change"],
|
26
|
+
setup(__props) {
|
27
|
+
const $slots = useSlots();
|
28
|
+
const props = __props;
|
29
|
+
return (_ctx, _cache) => {
|
30
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps(props, {
|
31
|
+
"hide-trigger": "",
|
32
|
+
onChange: _cache[0] || (_cache[0] = (v) => _ctx.$emit("change", v)),
|
33
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (v) => _ctx.$emit("update:modelValue", v))
|
34
|
+
}), createSlots({ _: 2 }, [
|
35
|
+
$slots.empty ? {
|
36
|
+
name: "empty",
|
37
|
+
fn: withCtx(() => [
|
38
|
+
renderSlot(_ctx.$slots, "empty")
|
39
|
+
]),
|
40
|
+
key: "0"
|
41
|
+
} : void 0
|
42
|
+
]), 1040);
|
43
|
+
};
|
44
|
+
}
|
45
|
+
});
|
46
|
+
export {
|
47
|
+
_sfc_main as default
|
48
|
+
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent, resolveComponent, createBlock, createElementBlock, openBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createElementVNode, createCommentVNode, withModifiers } from "vue";
|
2
2
|
import useCascaderContext from "./hooks/useContext.js";
|
3
3
|
import _sfc_main$1 from "../_shared/icons/IconArrowDown.vue.js";
|
4
|
-
import _sfc_main$2 from "../_shared/components/IconButton/index.
|
5
|
-
/* empty css
|
4
|
+
import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
|
5
|
+
/* empty css */
|
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";
|
@@ -13,7 +13,7 @@ import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
|
13
13
|
import "../_shared/utils/dom.js";
|
14
14
|
import "../_shared/utils/locale.js";
|
15
15
|
import "../_shared/utils/time.js";
|
16
|
-
/* empty css
|
16
|
+
/* empty css */
|
17
17
|
/* empty css */
|
18
18
|
import Spin from "../Spin/index.js";
|
19
19
|
const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
|
@@ -10,8 +10,8 @@ import { sleep } from "../_shared/utils/dom.js";
|
|
10
10
|
import { isFunction } from "../_shared/utils/is.js";
|
11
11
|
import "../_shared/utils/locale.js";
|
12
12
|
import "../_shared/utils/time.js";
|
13
|
-
/* empty css
|
14
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
|
+
/* empty css */
|
15
15
|
/* empty css */
|
16
16
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
17
17
|
import _sfc_main$2 from "../_shared/icons/IconLoading.vue.js";
|
@@ -6,6 +6,10 @@ import Scrollbar from "../Scrollbar/index.js";
|
|
6
6
|
import Spin from "../Spin/index.js";
|
7
7
|
import Empty from "../Empty/index.js";
|
8
8
|
const _hoisted_1 = {
|
9
|
+
key: 1,
|
10
|
+
class: "yc-cascader-empty"
|
11
|
+
};
|
12
|
+
const _hoisted_2 = {
|
9
13
|
role: "menu",
|
10
14
|
class: "yc-cascader-list"
|
11
15
|
};
|
@@ -23,7 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
27
|
unref(loading) ? (openBlock(), createBlock(unref(Spin), {
|
24
28
|
key: 0,
|
25
29
|
loading: unref(loading)
|
26
|
-
}, null, 8, ["loading"])) : !unref(options).length ? (openBlock(),
|
30
|
+
}, null, 8, ["loading"])) : !unref(options).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
31
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(slots).empty || unref(Empty))))
|
32
|
+
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(unref(maxLevel), (i) => {
|
27
33
|
return withDirectives((openBlock(), createElementBlock("div", {
|
28
34
|
key: i,
|
29
35
|
style: normalizeStyle({
|
@@ -33,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
39
|
}, [
|
34
40
|
createVNode(unref(Scrollbar), { class: "yc-cascader-column-content" }, {
|
35
41
|
default: withCtx(() => [
|
36
|
-
createElementVNode("ul",
|
42
|
+
createElementVNode("ul", _hoisted_2, [
|
37
43
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(findOptions)(
|
38
44
|
unref(options),
|
39
45
|
i,
|
@@ -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
|
};
|
@@ -259,7 +259,7 @@ function useCascaderContext() {
|
|
259
259
|
deep: true
|
260
260
|
}
|
261
261
|
);
|
262
|
-
|
262
|
+
const context = {
|
263
263
|
computedValue,
|
264
264
|
computedInputValue,
|
265
265
|
options,
|
@@ -278,26 +278,18 @@ function useCascaderContext() {
|
|
278
278
|
getValueKey,
|
279
279
|
getOption,
|
280
280
|
loadMore
|
281
|
-
}
|
281
|
+
};
|
282
|
+
provide(CASCADER_CONTEXT_KEY, context);
|
282
283
|
return {
|
283
|
-
|
284
|
-
computedInputValue,
|
284
|
+
...context,
|
285
285
|
computedVisible,
|
286
|
-
options,
|
287
286
|
optionMap,
|
288
287
|
selectOptions,
|
289
|
-
curLevel,
|
290
|
-
curPath,
|
291
|
-
multiple,
|
292
|
-
pathMode,
|
293
288
|
disabled,
|
294
289
|
allowClear,
|
295
290
|
allowSearch,
|
296
291
|
searchDelay,
|
297
|
-
|
298
|
-
getValue,
|
299
|
-
getValueKey,
|
300
|
-
getOption
|
292
|
+
getValue
|
301
293
|
};
|
302
294
|
};
|
303
295
|
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-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}
|
package/es/Cascader/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { App } from 'vue';
|
2
2
|
import { default as _Cascader } from './Cascader.vue';
|
3
|
+
import { default as _CascaderPanel } from './CascaderDataPanel.vue';
|
3
4
|
export type CascaderInstance = InstanceType<typeof _Cascader>;
|
4
5
|
export * from './type';
|
5
6
|
declare const Cascader: {
|
@@ -50,11 +51,12 @@ declare const Cascader: {
|
|
50
51
|
triggerProps: import('..').TriggerProps;
|
51
52
|
searchDelay: number;
|
52
53
|
tagNowrap: boolean;
|
54
|
+
hideTrigger: boolean;
|
53
55
|
pathMode: boolean;
|
54
56
|
expandTrigger: import('..').EventTrigger;
|
57
|
+
loadMore: import('./type').LoadMore;
|
55
58
|
expandChild: boolean;
|
56
59
|
searchOptionOnlyLabel: boolean;
|
57
|
-
loadMore: import('./type').LoadMore;
|
58
60
|
fallback: boolean | import('..').FallBack<import('./type').CascaderOptionValue | import('./type').CascaderOptionValue[], string>;
|
59
61
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
60
62
|
inputRef: ({
|
@@ -235,11 +237,12 @@ declare const Cascader: {
|
|
235
237
|
triggerProps: import('..').TriggerProps;
|
236
238
|
searchDelay: number;
|
237
239
|
tagNowrap: boolean;
|
240
|
+
hideTrigger: boolean;
|
238
241
|
pathMode: boolean;
|
239
242
|
expandTrigger: import('..').EventTrigger;
|
243
|
+
loadMore: import('./type').LoadMore;
|
240
244
|
expandChild: boolean;
|
241
245
|
searchOptionOnlyLabel: boolean;
|
242
|
-
loadMore: import('./type').LoadMore;
|
243
246
|
fallback: boolean | import('..').FallBack<import('./type').CascaderOptionValue | import('./type').CascaderOptionValue[], string>;
|
244
247
|
}>;
|
245
248
|
__isFragment?: never;
|
@@ -292,11 +295,12 @@ declare const Cascader: {
|
|
292
295
|
triggerProps: import('..').TriggerProps;
|
293
296
|
searchDelay: number;
|
294
297
|
tagNowrap: boolean;
|
298
|
+
hideTrigger: boolean;
|
295
299
|
pathMode: boolean;
|
296
300
|
expandTrigger: import('..').EventTrigger;
|
301
|
+
loadMore: import('./type').LoadMore;
|
297
302
|
expandChild: boolean;
|
298
303
|
searchOptionOnlyLabel: boolean;
|
299
|
-
loadMore: import('./type').LoadMore;
|
300
304
|
fallback: boolean | import('..').FallBack<import('./type').CascaderOptionValue | import('./type').CascaderOptionValue[], string>;
|
301
305
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
302
306
|
$slots: {
|
@@ -310,9 +314,11 @@ declare const Cascader: {
|
|
310
314
|
}) & {
|
311
315
|
install: (app: App) => void;
|
312
316
|
};
|
317
|
+
export { _CascaderPanel as CascaderPanel };
|
313
318
|
declare module 'vue' {
|
314
319
|
interface GlobalComponents {
|
315
320
|
YcCascader: typeof Cascader;
|
321
|
+
YcCascaderPanel: typeof _CascaderPanel;
|
316
322
|
}
|
317
323
|
}
|
318
324
|
export default Cascader;
|
package/es/Cascader/index.js
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
import _sfc_main from "./Cascader.vue.js";
|
2
2
|
/* empty css */
|
3
|
+
import _sfc_main$1 from "./CascaderDataPanel.vue.js";
|
3
4
|
const Cascader = Object.assign(_sfc_main, {
|
4
5
|
install: (app) => {
|
5
6
|
app.component("Yc" + _sfc_main.name, _sfc_main);
|
7
|
+
app.component("Yc" + _sfc_main$1.name, _sfc_main$1);
|
6
8
|
}
|
7
9
|
});
|
8
10
|
export {
|
11
|
+
_sfc_main$1 as CascaderPanel,
|
9
12
|
Cascader as default
|
10
13
|
};
|
package/es/Cascader/type.d.ts
CHANGED
@@ -33,6 +33,7 @@ export interface CascaderProps {
|
|
33
33
|
fallback?: boolean | FallBack<CascaderOptionValue | CascaderOptionValue[], string>;
|
34
34
|
expandChild?: boolean;
|
35
35
|
tagNowrap?: boolean;
|
36
|
+
hideTrigger?: boolean;
|
36
37
|
}
|
37
38
|
export interface CascaderEmits {
|
38
39
|
(e: 'update:modelValue', value: CascaderValue): void;
|
@@ -59,6 +60,14 @@ export interface CascaderSlots {
|
|
59
60
|
data: CascaderOption;
|
60
61
|
}) => VNode[];
|
61
62
|
}
|
63
|
+
export type CascaderPanelProps = Pick<CascaderProps, 'pathMode' | 'multiple' | 'modelValue' | 'defaultValue' | 'options' | 'expandTrigger' | 'loadMore' | 'fieldNames' | 'valueKey' | 'expandChild'>;
|
64
|
+
export type CascaderPanelEmits = {
|
65
|
+
(e: 'update:modelValue', value: CascaderValue): void;
|
66
|
+
(e: 'change', value: CascaderValue): void;
|
67
|
+
};
|
68
|
+
export type CascaderPanelSlots = {
|
69
|
+
empty?: () => VNode[];
|
70
|
+
};
|
62
71
|
export type CascaderValue = CascaderOptionValue | CascaderOptionValue[] | CascaderOptionValue[][];
|
63
72
|
export type CascaderOptionValue = string | number | Record<string, any>;
|
64
73
|
export type CascaderOption = {
|