yc-design-vue 2.0.4 → 2.0.6
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 -0
- package/dist/style.css +1 -0
- package/es/Affix/index.vue.js +1 -1
- package/es/Alert/index.d.ts +3 -3
- package/es/Alert/index.vue.d.ts +1 -1
- package/es/Alert/type.d.ts +2 -2
- package/es/Anchor/Anchor.vue.d.ts +1 -1
- package/es/Anchor/Anchor.vue.js +2 -2
- package/es/Anchor/AnchorLink.vue.js +2 -2
- package/es/Anchor/hooks/useContext.d.ts +3 -3
- package/es/Anchor/hooks/useContext.js +3 -3
- package/es/Anchor/index.d.ts +3 -3
- package/es/Anchor/type.d.ts +3 -2
- package/es/AutoComplete/index.d.ts +40 -31
- package/es/AutoComplete/index.vue.d.ts +72 -54
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/Avatar.vue.js +3 -3
- package/es/Avatar/AvatarGroup.vue.js +2 -2
- package/es/Avatar/hooks/useContext.d.ts +1 -2
- package/es/Avatar/hooks/useContext.js +3 -3
- package/es/Avatar/index.d.ts +3 -3
- package/es/Avatar/type.d.ts +3 -2
- package/es/BackTop/index.vue.js +1 -1
- package/es/Badge/index.d.ts +3 -3
- package/es/Badge/index.vue.d.ts +1 -1
- package/es/Badge/type.d.ts +2 -2
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/es/Button/Button.vue.d.ts +2 -2
- package/es/Button/Button.vue.js +2 -2
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/ButtonGroup.vue.js +2 -2
- package/es/Button/hooks/useContext.d.ts +4 -5
- package/es/Button/hooks/useContext.js +3 -3
- package/es/Button/index.d.ts +9 -9
- package/es/Button/type.d.ts +6 -6
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/Card.vue.js +2 -2
- package/es/Card/CardMeta.vue.js +2 -2
- package/es/Card/hooks/useContext.d.ts +2 -2
- package/es/Card/hooks/useContext.js +3 -3
- package/es/Card/index.d.ts +3 -3
- package/es/Card/type.d.ts +1 -2
- package/es/Carousel/Carousel.vue.d.ts +2 -2
- package/es/Carousel/Carousel.vue.js +2 -2
- package/es/Carousel/CarouselArrow.vue.js +2 -2
- package/es/Carousel/CarouselIndicator.vue.js +2 -2
- package/es/Carousel/CarouselItem.vue.js +2 -2
- package/es/Carousel/hooks/useContext.d.ts +5 -5
- package/es/Carousel/hooks/useContext.js +3 -3
- package/es/Carousel/index.d.ts +6 -6
- package/es/Carousel/type.d.ts +6 -6
- package/es/Cascader/Cascader.vue.d.ts +23 -23
- package/es/Cascader/Cascader.vue.js +2 -2
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +2 -2
- package/es/Cascader/CascaderPanel.vue.js +2 -2
- package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
- package/es/Cascader/hooks/useContext.d.ts +2 -2
- package/es/Cascader/hooks/useContext.js +3 -3
- package/es/Cascader/index.d.ts +26 -26
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Checkbox/CheckboxGroup.vue.js +2 -2
- package/es/Checkbox/hooks/useContext.d.ts +2 -2
- package/es/Checkbox/hooks/useContext.js +3 -3
- package/es/Collapse/Collapse.vue.js +2 -2
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/Collapse/hooks/useContext.d.ts +3 -15
- package/es/Collapse/hooks/useContext.js +3 -4
- package/es/Collapse/type.d.ts +2 -1
- package/es/ColorPicker/ColorControl.vue.js +1 -1
- package/es/ColorPicker/ColorPalette.vue.js +1 -1
- package/es/ColorPicker/ColorPanel.vue.js +2 -2
- package/es/ColorPicker/ColorPicker.vue.js +2 -2
- package/es/ColorPicker/hooks/useContext.d.ts +2 -2
- package/es/ColorPicker/hooks/useContext.js +3 -3
- package/es/Comment/hooks/useContext.d.ts +1 -2
- package/es/Comment/hooks/useContext.js +3 -3
- package/es/Comment/index.vue.js +2 -2
- package/es/Descriptions/Descriptions.vue.d.ts +3 -3
- package/es/Descriptions/Descriptions.vue.js +2 -2
- package/es/Descriptions/ReuseItem.vue.js +2 -2
- package/es/Descriptions/ReuseTd.vue.js +2 -2
- package/es/Descriptions/hooks/useContext.d.ts +3 -3
- package/es/Descriptions/hooks/useContext.js +3 -3
- package/es/Descriptions/index.d.ts +9 -9
- package/es/Descriptions/type.d.ts +7 -6
- package/es/Divider/index.d.ts +6 -6
- package/es/Divider/index.vue.d.ts +2 -2
- package/es/Divider/type.d.ts +4 -3
- package/es/Drawer/Drawer.vue.d.ts +1 -1
- package/es/Drawer/DrawerService.vue.d.ts +1 -1
- package/es/Drawer/index.d.ts +5 -9
- package/es/Drawer/type.d.ts +8 -4
- package/es/Dropdown/Doption.vue.js +2 -2
- package/es/Dropdown/Dropdown.vue.d.ts +3 -3
- package/es/Dropdown/Dropdown.vue.js +2 -2
- package/es/Dropdown/DropdownButton.vue.d.ts +3 -3
- package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/hooks/useContext.d.ts +2 -2
- package/es/Dropdown/hooks/useContext.js +3 -3
- package/es/Dropdown/index.d.ts +19 -19
- package/es/Dropdown/type.d.ts +4 -6
- package/es/Grid/Grid.vue.js +2 -2
- package/es/Grid/GridCol.vue.js +2 -2
- package/es/Grid/GridItem.vue.js +2 -2
- package/es/Grid/GridRow.vue.js +2 -2
- package/es/Grid/hooks/useContext.d.ts +1 -13
- package/es/Grid/hooks/useContext.js +3 -4
- package/es/Image/Image.vue.d.ts +2 -2
- package/es/Image/Image.vue.js +2 -2
- package/es/Image/ImagePreview.vue.js +2 -2
- package/es/Image/ImagePreviewGroup.vue.js +2 -2
- package/es/Image/hooks/useContext.d.ts +2 -2
- package/es/Image/hooks/useContext.js +3 -3
- package/es/Image/index.d.ts +6 -6
- package/es/Image/type.d.ts +3 -2
- package/es/Input/Input.vue.d.ts +3 -3
- package/es/Input/InputSuffix.vue.js +1 -1
- package/es/Input/index.d.ts +8 -8
- package/es/InputNumber/InputNumber.vue.d.ts +20 -20
- package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
- package/es/InputNumber/index.d.ts +19 -19
- package/es/InputNumber/type.d.ts +5 -4
- package/es/InputTag/index.d.ts +20 -11
- package/es/InputTag/index.vue.d.ts +7 -4
- package/es/InputTag/index.vue.js +1 -1
- package/es/InputTag/type.d.ts +2 -1
- package/es/Layout/LayoutSider.vue.d.ts +3 -3
- package/es/Layout/LayoutSider.vue.js +2 -2
- package/es/Layout/hooks/useSiderContext.d.ts +1 -2
- package/es/Layout/hooks/useSiderContext.js +3 -3
- package/es/Layout/index.d.ts +8 -8
- package/es/Layout/type.d.ts +3 -4
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/type.d.ts +2 -2
- package/es/List/List.vue.d.ts +7 -7
- package/es/List/hooks/useScrollReach.js +1 -0
- package/es/List/index.d.ts +6 -6
- package/es/List/type.d.ts +2 -3
- package/es/Mention/index.d.ts +49 -40
- package/es/Mention/index.vue.d.ts +85 -67
- package/es/Mention/type.d.ts +3 -2
- package/es/Menu/Menu.vue.d.ts +2 -2
- package/es/Menu/MenuItem.vue.js +1 -1
- package/es/Menu/hooks/useContext.d.ts +2 -2
- package/es/Menu/hooks/useContext.js +5 -5
- package/es/Menu/index.d.ts +5 -5
- package/es/Menu/type.d.ts +2 -2
- package/es/Message/type.d.ts +3 -3
- package/es/Modal/Modal.vue.d.ts +1 -1
- package/es/Modal/ModalService.vue.d.ts +1 -1
- package/es/Modal/index.d.ts +13 -13
- package/es/Modal/index.js +1 -4
- package/es/Modal/type.d.ts +6 -9
- package/es/Notification/Notification.vue.d.ts +1 -1
- package/es/Notification/index.d.ts +4 -4
- package/es/Notification/type.d.ts +3 -4
- package/es/OverflowList/index.d.ts +3 -3
- package/es/OverflowList/index.vue.d.ts +1 -1
- package/es/OverflowList/index.vue.js +2 -2
- package/es/OverflowList/type.d.ts +3 -2
- package/es/Pagination/Pagination.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +2 -2
- package/es/Pagination/hooks/useContext.d.ts +2 -2
- package/es/Pagination/hooks/useContext.js +3 -3
- package/es/Popconfirm/index.d.ts +8 -8
- package/es/Popconfirm/index.vue.d.ts +3 -3
- package/es/Popconfirm/type.d.ts +2 -3
- package/es/Progress/Progress.vue.d.ts +1 -1
- package/es/Progress/ProgressCircle.vue.d.ts +3 -3
- package/es/Progress/ProgressLine.vue.d.ts +3 -3
- package/es/Progress/index.d.ts +3 -3
- package/es/Progress/type.d.ts +2 -3
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Radio/RadioGroup.vue.js +2 -2
- package/es/Radio/hooks/useContext.d.ts +2 -2
- package/es/Radio/hooks/useContext.js +3 -3
- package/es/Radio/type.d.ts +1 -1
- package/es/ResizeBox/index.d.ts +3 -3
- package/es/ResizeBox/index.vue.d.ts +2 -2
- package/es/ResizeBox/type.d.ts +4 -4
- package/es/Result/index.d.ts +3 -3
- package/es/Result/index.vue.d.ts +1 -1
- package/es/Result/type.d.ts +3 -2
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/Scrollbar.vue.js +2 -2
- package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
- package/es/Scrollbar/hooks/useContext.d.ts +2 -2
- package/es/Scrollbar/hooks/useContext.js +3 -3
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Scrollbar/type.d.ts +2 -1
- package/es/Select/Option.vue.js +2 -2
- package/es/Select/Select.vue.d.ts +45 -27
- package/es/Select/Select.vue.js +2 -2
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Select/SelectRealList.vue.js +2 -2
- package/es/Select/SelectView.vue.js +2 -2
- package/es/Select/SelectVirtualList.vue.js +3 -3
- package/es/Select/hooks/useContext.d.ts +4 -4
- package/es/Select/hooks/useContext.js +3 -3
- package/es/Select/hooks/useSelectOptions.d.ts +2 -2
- package/es/Select/index.d.ts +33 -24
- package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
- package/es/Skeleton/index.d.ts +2 -2
- package/es/Skeleton/type.d.ts +2 -4
- package/es/Slider/Slider.vue.js +2 -2
- package/es/Slider/SliderBtn.vue.js +2 -2
- package/es/Slider/SliderInput.vue.js +2 -2
- package/es/Slider/SliderTicks.vue.js +2 -2
- package/es/Slider/hooks/useContext.d.ts +2 -2
- package/es/Slider/hooks/useContext.js +3 -3
- package/es/Space/index.d.ts +6 -6
- package/es/Space/index.vue.d.ts +2 -2
- package/es/Space/type.d.ts +5 -4
- package/es/Spin/index.vue.js +1 -1
- package/es/Steps/Step.vue.js +2 -2
- package/es/Steps/Steps.vue.js +2 -2
- package/es/Steps/hooks/useContext.d.ts +1 -2
- package/es/Steps/hooks/useContext.js +3 -3
- package/es/Switch/index.d.ts +14 -14
- package/es/Switch/index.vue.d.ts +5 -5
- package/es/Switch/type.d.ts +4 -4
- package/es/Tabs/TabPane.vue.js +2 -2
- package/es/Tabs/Tabs.vue.d.ts +1 -1
- package/es/Tabs/Tabs.vue.js +2 -2
- package/es/Tabs/TabsNavInk.vue.js +2 -2
- package/es/Tabs/TabsTab.vue.js +2 -2
- package/es/Tabs/hooks/useContext.d.ts +6 -6
- package/es/Tabs/hooks/useContext.js +3 -3
- package/es/Tabs/index.d.ts +3 -3
- package/es/Tabs/type.d.ts +2 -3
- package/es/Tag/index.d.ts +3 -3
- package/es/Tag/index.vue.d.ts +1 -1
- package/es/Tag/type.d.ts +1 -2
- package/es/Textarea/hooks/useTextareaHeight.js +1 -1
- package/es/Textarea/index.d.ts +5 -5
- package/es/Textarea/index.vue.d.ts +2 -2
- package/es/Textarea/type.d.ts +2 -2
- package/es/TimePicker/TimePicker.vue.d.ts +5 -5
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/TimePicker/TimePickerPanel.vue.js +2 -2
- package/es/TimePicker/hooks/useContext.d.ts +2 -2
- package/es/TimePicker/hooks/useContext.js +3 -3
- package/es/TimePicker/index.d.ts +13 -13
- package/es/Timeline/Timeline.vue.js +2 -2
- package/es/Timeline/TimelineItem.vue.d.ts +1 -1
- package/es/Timeline/TimelineItem.vue.js +2 -2
- package/es/Timeline/hooks/useContext.d.ts +2 -2
- package/es/Timeline/hooks/useContext.js +3 -3
- package/es/Timeline/index.d.ts +3 -3
- package/es/Timeline/type.d.ts +3 -4
- package/es/Transfer/Transfer.vue.js +2 -2
- package/es/Transfer/TransferPanel.vue.js +3 -3
- package/es/Transfer/hooks/useContext.d.ts +2 -2
- package/es/Transfer/hooks/useContext.js +3 -3
- package/es/Trigger/hooks/useContext.d.ts +2 -3
- package/es/Trigger/hooks/useContext.js +4 -4
- package/es/Trigger/hooks/useTriggerPosition.js +1 -1
- package/es/Trigger/hooks/useTriggerVisible.js +2 -2
- package/es/Typography/TypographyBase.vue.d.ts +17 -17
- package/es/Typography/TypographyBase.vue.js +1 -1
- package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/es/Typography/TypographyTitle.vue.d.ts +1 -1
- package/es/Typography/type.d.ts +5 -4
- package/es/Upload/Upload.vue.d.ts +53 -0
- package/es/Upload/Upload.vue.js +110 -0
- package/es/Upload/Upload.vue3.js +5 -0
- package/es/Upload/UploadButton.vue.d.ts +2 -0
- package/es/Upload/UploadButton.vue.js +39 -0
- package/es/Upload/UploadButton.vue3.js +5 -0
- package/es/Upload/UploadDrag.vue.d.ts +2 -0
- package/es/Upload/UploadDrag.vue.js +37 -0
- package/es/Upload/UploadDrag.vue3.js +5 -0
- package/es/Upload/UploadFileList.vue.d.ts +24 -0
- package/es/Upload/UploadFileList.vue.js +7 -0
- package/es/Upload/UploadFileList.vue2.js +126 -0
- package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
- package/es/Upload/UploadPictureCard.vue.js +7 -0
- package/es/Upload/UploadPictureCard.vue2.js +132 -0
- package/es/Upload/hooks/useContext.d.ts +49 -0
- package/es/Upload/hooks/useContext.js +92 -0
- package/es/Upload/hooks/useUpload.d.ts +47 -0
- package/es/Upload/hooks/useUpload.js +80 -0
- package/es/Upload/index.css +1 -0
- package/es/Upload/index.d.ts +123 -0
- package/es/Upload/index.js +10 -0
- package/es/Upload/type.d.ts +72 -0
- package/es/VerificationCode/index.d.ts +3 -3
- package/es/VerificationCode/index.vue.d.ts +1 -1
- package/es/VerificationCode/type.d.ts +5 -4
- package/es/Watermark/index.vue.js +1 -1
- package/es/_shared/icons/IconDelete.vue.js +19 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -19
- package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
- package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
- package/es/_shared/icons/IconFile.vue.d.ts +2 -0
- package/es/_shared/icons/IconFile.vue.js +22 -0
- package/es/_shared/icons/IconFile.vue2.js +4 -0
- package/es/_shared/icons/IconSeparator.vue.js +1 -19
- package/es/_shared/icons/IconSeparator.vue2.js +19 -1
- package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
- package/es/_shared/icons/IconUpload.vue.js +22 -0
- package/es/_shared/icons/IconUpload.vue2.js +4 -0
- package/es/_shared/icons/index.d.ts +2 -0
- package/es/_shared/type/index.d.ts +3 -1
- package/es/_shared/utils/is.d.ts +0 -15
- package/es/_shared/utils/vue-utils.d.ts +1 -0
- package/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/es/index.d.ts +36 -35
- package/es/index.js +5 -3
- package/es/node_modules/@vueuse/core/index.js +171 -9
- package/es/node_modules/@vueuse/shared/index.js +29 -0
- package/es/style.css +1 -1
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Alert/index.d.ts +3 -3
- package/lib/Alert/index.vue.d.ts +1 -1
- package/lib/Alert/type.d.ts +2 -2
- package/lib/Anchor/Anchor.vue.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +3 -3
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/Anchor/index.d.ts +3 -3
- package/lib/Anchor/type.d.ts +3 -2
- package/lib/AutoComplete/index.d.ts +40 -31
- package/lib/AutoComplete/index.vue.d.ts +72 -54
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/hooks/useContext.d.ts +1 -2
- package/lib/Avatar/hooks/useContext.js +1 -1
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/Avatar/type.d.ts +3 -2
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Badge/index.d.ts +3 -3
- package/lib/Badge/index.vue.d.ts +1 -1
- package/lib/Badge/type.d.ts +2 -2
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/Button.vue.d.ts +2 -2
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/hooks/useContext.d.ts +4 -5
- package/lib/Button/hooks/useContext.js +1 -1
- package/lib/Button/index.d.ts +9 -9
- package/lib/Button/type.d.ts +6 -6
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/hooks/useContext.d.ts +2 -2
- package/lib/Card/hooks/useContext.js +1 -1
- package/lib/Card/index.d.ts +3 -3
- package/lib/Card/type.d.ts +1 -2
- package/lib/Carousel/Carousel.vue.d.ts +2 -2
- package/lib/Carousel/hooks/useContext.d.ts +5 -5
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Carousel/index.d.ts +6 -6
- package/lib/Carousel/type.d.ts +6 -6
- package/lib/Cascader/Cascader.vue.d.ts +23 -23
- package/lib/Cascader/hooks/useContext.d.ts +2 -2
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.d.ts +26 -26
- package/lib/Checkbox/hooks/useContext.d.ts +2 -2
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Collapse/hooks/useContext.d.ts +3 -15
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/Collapse/type.d.ts +2 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
- package/lib/ColorPicker/hooks/useContext.js +1 -1
- package/lib/Comment/hooks/useContext.d.ts +1 -2
- package/lib/Comment/hooks/useContext.js +1 -1
- package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
- package/lib/Descriptions/hooks/useContext.d.ts +3 -3
- package/lib/Descriptions/hooks/useContext.js +1 -1
- package/lib/Descriptions/index.d.ts +9 -9
- package/lib/Descriptions/type.d.ts +7 -6
- package/lib/Divider/index.d.ts +6 -6
- package/lib/Divider/index.vue.d.ts +2 -2
- package/lib/Divider/type.d.ts +4 -3
- package/lib/Drawer/Drawer.vue.d.ts +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +1 -1
- package/lib/Drawer/index.d.ts +5 -9
- package/lib/Drawer/type.d.ts +8 -4
- package/lib/Dropdown/Dropdown.vue.d.ts +3 -3
- package/lib/Dropdown/DropdownButton.vue.d.ts +3 -3
- package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.d.ts +2 -2
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Dropdown/index.d.ts +19 -19
- package/lib/Dropdown/type.d.ts +4 -6
- package/lib/Grid/hooks/useContext.d.ts +1 -13
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Image/Image.vue.d.ts +2 -2
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/hooks/useContext.d.ts +2 -2
- package/lib/Image/hooks/useContext.js +1 -1
- package/lib/Image/index.d.ts +6 -6
- package/lib/Image/type.d.ts +3 -2
- package/lib/Input/Input.vue.d.ts +3 -3
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/index.d.ts +8 -8
- package/lib/InputNumber/InputNumber.vue.d.ts +20 -20
- package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
- package/lib/InputNumber/index.d.ts +19 -19
- package/lib/InputNumber/type.d.ts +5 -4
- package/lib/InputTag/index.d.ts +20 -11
- package/lib/InputTag/index.vue.d.ts +7 -4
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/InputTag/type.d.ts +2 -1
- package/lib/Layout/LayoutSider.vue.d.ts +3 -3
- package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/Layout/index.d.ts +8 -8
- package/lib/Layout/type.d.ts +3 -4
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/type.d.ts +2 -2
- package/lib/List/List.vue.d.ts +7 -7
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/List/index.d.ts +6 -6
- package/lib/List/type.d.ts +2 -3
- package/lib/Mention/index.d.ts +49 -40
- package/lib/Mention/index.vue.d.ts +85 -67
- package/lib/Mention/type.d.ts +3 -2
- package/lib/Menu/Menu.vue.d.ts +2 -2
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +2 -2
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Menu/index.d.ts +5 -5
- package/lib/Menu/type.d.ts +2 -2
- package/lib/Message/type.d.ts +3 -3
- package/lib/Modal/Modal.vue.d.ts +1 -1
- package/lib/Modal/ModalService.vue.d.ts +1 -1
- package/lib/Modal/index.d.ts +13 -13
- package/lib/Modal/index.js +1 -1
- package/lib/Modal/type.d.ts +6 -9
- package/lib/Notification/Notification.vue.d.ts +1 -1
- package/lib/Notification/index.d.ts +4 -4
- package/lib/Notification/type.d.ts +3 -4
- package/lib/OverflowList/index.d.ts +3 -3
- package/lib/OverflowList/index.vue.d.ts +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/OverflowList/type.d.ts +3 -2
- package/lib/Pagination/hooks/useContext.d.ts +2 -2
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.d.ts +8 -8
- package/lib/Popconfirm/index.vue.d.ts +3 -3
- package/lib/Popconfirm/type.d.ts +2 -3
- package/lib/Progress/Progress.vue.d.ts +1 -1
- package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
- package/lib/Progress/ProgressLine.vue.d.ts +3 -3
- package/lib/Progress/index.d.ts +3 -3
- package/lib/Progress/type.d.ts +2 -3
- package/lib/Radio/hooks/useContext.d.ts +2 -2
- package/lib/Radio/hooks/useContext.js +1 -1
- package/lib/Radio/type.d.ts +1 -1
- package/lib/ResizeBox/index.d.ts +3 -3
- package/lib/ResizeBox/index.vue.d.ts +2 -2
- package/lib/ResizeBox/type.d.ts +4 -4
- package/lib/Result/index.d.ts +3 -3
- package/lib/Result/index.vue.d.ts +1 -1
- package/lib/Result/type.d.ts +3 -2
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
- package/lib/Scrollbar/hooks/useContext.js +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Scrollbar/type.d.ts +2 -1
- package/lib/Select/Select.vue.d.ts +45 -27
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +4 -4
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
- package/lib/Select/index.d.ts +33 -24
- package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
- package/lib/Skeleton/index.d.ts +2 -2
- package/lib/Skeleton/type.d.ts +2 -4
- package/lib/Slider/hooks/useContext.d.ts +2 -2
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Space/index.d.ts +6 -6
- package/lib/Space/index.vue.d.ts +2 -2
- package/lib/Space/type.d.ts +5 -4
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Steps/hooks/useContext.d.ts +1 -2
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Switch/index.d.ts +14 -14
- package/lib/Switch/index.vue.d.ts +5 -5
- package/lib/Switch/type.d.ts +4 -4
- package/lib/Tabs/Tabs.vue.d.ts +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +6 -6
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/Tabs/index.d.ts +3 -3
- package/lib/Tabs/type.d.ts +2 -3
- package/lib/Tag/index.d.ts +3 -3
- package/lib/Tag/index.vue.d.ts +1 -1
- package/lib/Tag/type.d.ts +1 -2
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.d.ts +5 -5
- package/lib/Textarea/index.vue.d.ts +2 -2
- package/lib/Textarea/type.d.ts +2 -2
- package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
- package/lib/TimePicker/hooks/useContext.d.ts +2 -2
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/TimePicker/index.d.ts +13 -13
- package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
- package/lib/Timeline/hooks/useContext.d.ts +2 -2
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Timeline/index.d.ts +3 -3
- package/lib/Timeline/type.d.ts +3 -4
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +2 -2
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useContext.d.ts +2 -3
- 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/Typography/TypographyBase.vue.d.ts +17 -17
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
- package/lib/Typography/type.d.ts +5 -4
- package/lib/Upload/Upload.vue.d.ts +53 -0
- package/lib/Upload/Upload.vue.js +1 -0
- package/lib/Upload/Upload.vue3.js +1 -0
- package/lib/Upload/UploadButton.vue.d.ts +2 -0
- package/lib/Upload/UploadButton.vue.js +1 -0
- package/lib/Upload/UploadButton.vue3.js +1 -0
- package/lib/Upload/UploadDrag.vue.d.ts +2 -0
- package/lib/Upload/UploadDrag.vue.js +1 -0
- package/lib/Upload/UploadDrag.vue3.js +1 -0
- package/lib/Upload/UploadFileList.vue.d.ts +24 -0
- package/lib/Upload/UploadFileList.vue.js +1 -0
- package/lib/Upload/UploadFileList.vue2.js +1 -0
- package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
- package/lib/Upload/UploadPictureCard.vue.js +1 -0
- package/lib/Upload/UploadPictureCard.vue2.js +1 -0
- package/lib/Upload/hooks/useContext.d.ts +49 -0
- package/lib/Upload/hooks/useContext.js +1 -0
- package/lib/Upload/hooks/useUpload.d.ts +47 -0
- package/lib/Upload/hooks/useUpload.js +1 -0
- package/lib/Upload/index.css +1 -0
- package/lib/Upload/index.d.ts +123 -0
- package/lib/Upload/index.js +1 -0
- package/lib/Upload/type.d.ts +72 -0
- package/lib/VerificationCode/index.d.ts +3 -3
- package/lib/VerificationCode/index.vue.d.ts +1 -1
- package/lib/VerificationCode/type.d.ts +5 -4
- package/lib/Watermark/index.vue.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/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
- package/lib/_shared/icons/IconFile.vue.js +1 -0
- package/lib/_shared/icons/IconFile.vue2.js +1 -0
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
- package/lib/_shared/icons/IconUpload.vue.js +1 -0
- package/lib/_shared/icons/IconUpload.vue2.js +1 -0
- package/lib/_shared/icons/index.d.ts +2 -0
- package/lib/_shared/type/index.d.ts +3 -1
- package/lib/_shared/utils/is.d.ts +0 -15
- package/lib/_shared/utils/vue-utils.d.ts +1 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/lib/index.d.ts +36 -35
- package/lib/index.js +1 -1
- package/lib/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/@vueuse/shared/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/es/Tag/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ declare const Tag: {
|
|
14
14
|
"update:checked": (value: boolean) => any;
|
15
15
|
check: (value: boolean, ev: MouseEvent) => any;
|
16
16
|
}, import('vue').PublicProps, {
|
17
|
-
size: import('
|
17
|
+
size: Exclude<import('..').Size, "mini">;
|
18
18
|
visible: boolean;
|
19
19
|
color: string;
|
20
20
|
nowrap: boolean;
|
@@ -38,7 +38,7 @@ declare const Tag: {
|
|
38
38
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
39
39
|
onCheck?: ((value: boolean, ev: MouseEvent) => any) | undefined;
|
40
40
|
}>, {}, {}, {}, {}, {
|
41
|
-
size: import('
|
41
|
+
size: Exclude<import('..').Size, "mini">;
|
42
42
|
visible: boolean;
|
43
43
|
color: string;
|
44
44
|
nowrap: boolean;
|
@@ -64,7 +64,7 @@ declare const Tag: {
|
|
64
64
|
"update:checked": (value: boolean) => any;
|
65
65
|
check: (value: boolean, ev: MouseEvent) => any;
|
66
66
|
}, string, {
|
67
|
-
size: import('
|
67
|
+
size: Exclude<import('..').Size, "mini">;
|
68
68
|
visible: boolean;
|
69
69
|
color: string;
|
70
70
|
nowrap: boolean;
|
package/es/Tag/index.vue.d.ts
CHANGED
@@ -17,7 +17,7 @@ declare const __VLS_component: import('vue').DefineComponent<TagProps, {}, {}, {
|
|
17
17
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
18
18
|
onCheck?: ((value: boolean, ev: MouseEvent) => any) | undefined;
|
19
19
|
}>, {
|
20
|
-
size: import('
|
20
|
+
size: Exclude<import('..').Size, "mini">;
|
21
21
|
visible: boolean;
|
22
22
|
color: string;
|
23
23
|
nowrap: boolean;
|
package/es/Tag/type.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { VNode } from 'vue';
|
|
2
2
|
import { Size } from '../_shared/type';
|
3
3
|
export interface TagProps {
|
4
4
|
color?: string;
|
5
|
-
size?:
|
5
|
+
size?: Exclude<Size, 'mini'>;
|
6
6
|
bordered?: boolean;
|
7
7
|
visible?: boolean;
|
8
8
|
defaultVisible?: boolean;
|
@@ -24,4 +24,3 @@ export interface TagSlots {
|
|
24
24
|
icon?: () => VNode[];
|
25
25
|
'close-icon'?: () => VNode[];
|
26
26
|
}
|
27
|
-
export type TagSize = Exclude<Size, 'mini'>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { computed } from "vue";
|
2
|
-
import { useElementSize } from "../../node_modules/@vueuse/core/index.js";
|
3
2
|
import { valueToPx } from "../../_shared/utils/dom.js";
|
3
|
+
import { useElementSize } from "../../node_modules/@vueuse/core/index.js";
|
4
4
|
const useTextareaHeight = (mirrorRef, autoSize) => {
|
5
5
|
if (!autoSize) {
|
6
6
|
return {};
|
package/es/Textarea/index.d.ts
CHANGED
@@ -5,10 +5,10 @@ export * from './type';
|
|
5
5
|
declare const Textarea: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').TextareaProps> & Readonly<{
|
7
7
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
8
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
9
8
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
10
9
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
11
10
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
11
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
12
12
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
13
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
14
14
|
}>, {
|
@@ -18,10 +18,10 @@ declare const Textarea: {
|
|
18
18
|
getMirrorRef(): HTMLDivElement;
|
19
19
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
20
20
|
change: (value: string, ev: Event) => any;
|
21
|
-
focus: (ev: FocusEvent) => any;
|
22
21
|
clear: (ev: MouseEvent) => any;
|
23
22
|
input: (value: string, ev: Event) => any;
|
24
23
|
blur: (ev: FocusEvent) => any;
|
24
|
+
focus: (ev: FocusEvent) => any;
|
25
25
|
keydown: (ev: KeyboardEvent) => any;
|
26
26
|
"update:modelValue": (value: string) => any;
|
27
27
|
}, import('vue').PublicProps, {
|
@@ -51,10 +51,10 @@ declare const Textarea: {
|
|
51
51
|
Defaults: {};
|
52
52
|
}, Readonly<import('./type').TextareaProps> & Readonly<{
|
53
53
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
54
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
55
54
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
56
55
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
57
56
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
57
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
58
58
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
59
59
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
60
60
|
}>, {
|
@@ -83,10 +83,10 @@ declare const Textarea: {
|
|
83
83
|
__isSuspense?: never;
|
84
84
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').TextareaProps> & Readonly<{
|
85
85
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
86
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
87
86
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
88
87
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
89
88
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
89
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
90
90
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
91
91
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
92
92
|
}>, {
|
@@ -96,10 +96,10 @@ declare const Textarea: {
|
|
96
96
|
getMirrorRef(): HTMLDivElement;
|
97
97
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
98
98
|
change: (value: string, ev: Event) => any;
|
99
|
-
focus: (ev: FocusEvent) => any;
|
100
99
|
clear: (ev: MouseEvent) => any;
|
101
100
|
input: (value: string, ev: Event) => any;
|
102
101
|
blur: (ev: FocusEvent) => any;
|
102
|
+
focus: (ev: FocusEvent) => any;
|
103
103
|
keydown: (ev: KeyboardEvent) => any;
|
104
104
|
"update:modelValue": (value: string) => any;
|
105
105
|
}, string, {
|
@@ -6,18 +6,18 @@ declare const _default: import('vue').DefineComponent<TextareaProps, {
|
|
6
6
|
getMirrorRef(): HTMLDivElement;
|
7
7
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
8
8
|
change: (value: string, ev: Event) => any;
|
9
|
-
focus: (ev: FocusEvent) => any;
|
10
9
|
clear: (ev: MouseEvent) => any;
|
11
10
|
input: (value: string, ev: Event) => any;
|
12
11
|
blur: (ev: FocusEvent) => any;
|
12
|
+
focus: (ev: FocusEvent) => any;
|
13
13
|
keydown: (ev: KeyboardEvent) => any;
|
14
14
|
"update:modelValue": (value: string) => any;
|
15
15
|
}, string, import('vue').PublicProps, Readonly<TextareaProps> & Readonly<{
|
16
16
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
17
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
18
17
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
19
18
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
20
19
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
20
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
21
21
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
22
22
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
23
23
|
}>, {
|
package/es/Textarea/type.d.ts
CHANGED
@@ -24,12 +24,12 @@ export interface TextareaEmits {
|
|
24
24
|
(e: 'blur', ev: FocusEvent): void;
|
25
25
|
(e: 'keydown', ev: KeyboardEvent): void;
|
26
26
|
}
|
27
|
-
export
|
27
|
+
export interface TextareaExpose {
|
28
28
|
focus(): void;
|
29
29
|
blur(): void;
|
30
30
|
getInputRef(): HTMLTextAreaElement;
|
31
31
|
getMirrorRef(): HTMLDivElement;
|
32
|
-
}
|
32
|
+
}
|
33
33
|
export type AutoSize = boolean | {
|
34
34
|
minRows?: number;
|
35
35
|
maxRows?: number;
|
@@ -56,22 +56,22 @@ declare function __VLS_template(): {
|
|
56
56
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
57
57
|
declare const __VLS_component: import('vue').DefineComponent<TimePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
58
58
|
change: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
59
|
-
"update:popupVisible": (value: boolean) => any;
|
60
|
-
"popup-visible-change": (value: boolean) => any;
|
61
59
|
clear: () => any;
|
62
60
|
select: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
61
|
+
"update:popupVisible": (value: boolean) => any;
|
62
|
+
"popup-visible-change": (value: boolean) => any;
|
63
63
|
"update:modelValue": (value: import('./type').TimePickerValue) => any;
|
64
64
|
}, string, import('vue').PublicProps, Readonly<TimePickerProps> & Readonly<{
|
65
65
|
onChange?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
66
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
67
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
68
66
|
onClear?: (() => any) | undefined;
|
69
67
|
onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
68
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
69
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
70
70
|
"onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
|
71
71
|
}>, {
|
72
|
+
error: boolean;
|
72
73
|
size: import('..').Size;
|
73
74
|
type: import('./type').TimePickerType;
|
74
|
-
error: boolean;
|
75
75
|
popupContainer: import('..').PopupContainer;
|
76
76
|
popupVisible: boolean;
|
77
77
|
defaultPopupVisible: boolean;
|
@@ -2,7 +2,7 @@ import { defineComponent, useSlots, ref, createBlock, openBlock, unref, mergePro
|
|
2
2
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
3
3
|
import { isArray } from "../_shared/utils/is.js";
|
4
4
|
import { isValidTimeRange } from "../_shared/utils/time.js";
|
5
|
-
import
|
5
|
+
import useTimePickerContext from "./hooks/useContext.js";
|
6
6
|
import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
import "../_shared/utils/dom.js";
|
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
71
71
|
inputRefs,
|
72
72
|
format,
|
73
73
|
placeholder
|
74
|
-
} =
|
74
|
+
} = useTimePickerContext().provide(props, emits);
|
75
75
|
const panelRef = ref();
|
76
76
|
const handleClear = () => {
|
77
77
|
computedValue.value = type.value == "time-range" ? [] : "";
|
@@ -4,7 +4,7 @@ import dayjs from "../node_modules/dayjs/dayjs.min.js";
|
|
4
4
|
import { isUndefined, isArray } from "../_shared/utils/is.js";
|
5
5
|
import { sleep } from "../_shared/utils/dom.js";
|
6
6
|
import { useI18n } from "../_shared/utils/locale.js";
|
7
|
-
import
|
7
|
+
import useTimePickerContext from "./hooks/useContext.js";
|
8
8
|
import Button from "../Button/index.js";
|
9
9
|
import Scrollbar from "../Scrollbar/index.js";
|
10
10
|
const _hoisted_1 = { class: "yc-timepicker-container" };
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
disabledHours,
|
37
37
|
disabledMinutes,
|
38
38
|
disabledSeconds
|
39
|
-
} =
|
39
|
+
} = useTimePickerContext().inject();
|
40
40
|
const { t } = useI18n();
|
41
41
|
const scrollRefs = ref([]);
|
42
42
|
const disabled = computed(() => {
|
@@ -24,7 +24,7 @@ type TimePickerCell = {
|
|
24
24
|
label: string;
|
25
25
|
value: number;
|
26
26
|
};
|
27
|
-
|
27
|
+
export default function useTimePickerContext(): {
|
28
28
|
provide: (props: RecordType, emits: TimePickerEmits) => {
|
29
29
|
computedValue: import('vue').WritableComputedRef<TimePickerValue, TimePickerValue>;
|
30
30
|
computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
@@ -40,4 +40,4 @@ declare const _default: () => {
|
|
40
40
|
};
|
41
41
|
inject: () => TimePickerContext;
|
42
42
|
};
|
43
|
-
export
|
43
|
+
export {};
|
@@ -3,7 +3,7 @@ import { useControlValue } from "../../_shared/utils/control.js";
|
|
3
3
|
import { isArray } from "../../_shared/utils/is.js";
|
4
4
|
import { useI18n } from "../../_shared/utils/locale.js";
|
5
5
|
const TIME_PICKER_CONTEXT_KEY = "time-picker-context";
|
6
|
-
|
6
|
+
function useTimePickerContext() {
|
7
7
|
const provide$1 = (props, emits) => {
|
8
8
|
const {
|
9
9
|
modelValue,
|
@@ -130,7 +130,7 @@ const useContext = () => {
|
|
130
130
|
provide: provide$1,
|
131
131
|
inject: inject$1
|
132
132
|
};
|
133
|
-
}
|
133
|
+
}
|
134
134
|
export {
|
135
|
-
|
135
|
+
useTimePickerContext as default
|
136
136
|
};
|
package/es/TimePicker/index.d.ts
CHANGED
@@ -5,22 +5,22 @@ export * from './type';
|
|
5
5
|
declare const TimePicker: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').TimePickerProps> & Readonly<{
|
7
7
|
onChange?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
8
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
9
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
10
8
|
onClear?: (() => any) | undefined;
|
11
9
|
onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
10
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
11
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
12
12
|
"onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
|
13
13
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
14
14
|
change: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
15
|
-
"update:popupVisible": (value: boolean) => any;
|
16
|
-
"popup-visible-change": (value: boolean) => any;
|
17
15
|
clear: () => any;
|
18
16
|
select: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
17
|
+
"update:popupVisible": (value: boolean) => any;
|
18
|
+
"popup-visible-change": (value: boolean) => any;
|
19
19
|
"update:modelValue": (value: import('./type').TimePickerValue) => any;
|
20
20
|
}, import('vue').PublicProps, {
|
21
|
+
error: boolean;
|
21
22
|
size: import('..').Size;
|
22
23
|
type: import('./type').TimePickerType;
|
23
|
-
error: boolean;
|
24
24
|
popupContainer: import('..').PopupContainer;
|
25
25
|
popupVisible: boolean;
|
26
26
|
defaultPopupVisible: boolean;
|
@@ -95,15 +95,15 @@ declare const TimePicker: {
|
|
95
95
|
Defaults: {};
|
96
96
|
}, Readonly<import('./type').TimePickerProps> & Readonly<{
|
97
97
|
onChange?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
98
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
99
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
100
98
|
onClear?: (() => any) | undefined;
|
101
99
|
onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
100
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
101
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
102
102
|
"onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
|
103
103
|
}>, {}, {}, {}, {}, {
|
104
|
+
error: boolean;
|
104
105
|
size: import('..').Size;
|
105
106
|
type: import('./type').TimePickerType;
|
106
|
-
error: boolean;
|
107
107
|
popupContainer: import('..').PopupContainer;
|
108
108
|
popupVisible: boolean;
|
109
109
|
defaultPopupVisible: boolean;
|
@@ -127,22 +127,22 @@ declare const TimePicker: {
|
|
127
127
|
__isSuspense?: never;
|
128
128
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').TimePickerProps> & Readonly<{
|
129
129
|
onChange?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
130
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
131
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
132
130
|
onClear?: (() => any) | undefined;
|
133
131
|
onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
132
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
133
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
134
134
|
"onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
|
135
135
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
136
136
|
change: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
137
|
-
"update:popupVisible": (value: boolean) => any;
|
138
|
-
"popup-visible-change": (value: boolean) => any;
|
139
137
|
clear: () => any;
|
140
138
|
select: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
139
|
+
"update:popupVisible": (value: boolean) => any;
|
140
|
+
"popup-visible-change": (value: boolean) => any;
|
141
141
|
"update:modelValue": (value: import('./type').TimePickerValue) => any;
|
142
142
|
}, string, {
|
143
|
+
error: boolean;
|
143
144
|
size: import('..').Size;
|
144
145
|
type: import('./type').TimePickerType;
|
145
|
-
error: boolean;
|
146
146
|
popupContainer: import('..').PopupContainer;
|
147
147
|
popupVisible: boolean;
|
148
148
|
defaultPopupVisible: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
2
|
-
import
|
2
|
+
import useTimelineContext from "./hooks/useContext.js";
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
4
|
...{
|
5
5
|
name: "Timeline"
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
},
|
17
17
|
setup(__props) {
|
18
18
|
const props = __props;
|
19
|
-
const { direction, mode, timelineItems } =
|
19
|
+
const { direction, mode, timelineItems } = useTimelineContext().provide(props);
|
20
20
|
const getPoistion = (i) => {
|
21
21
|
if (mode.value != "alternate") {
|
22
22
|
return mode.value;
|
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<TimelineItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
|
10
10
|
label: string;
|
11
|
-
position: import('
|
11
|
+
position: import('..').Position;
|
12
12
|
dotColor: string;
|
13
13
|
dotType: import('./type').TimelineDotType;
|
14
14
|
lineType: import('./type').TimelineLineType;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, useSlots, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, normalizeStyle, renderSlot, createTextVNode, toDisplayString } from "vue";
|
2
|
-
import
|
2
|
+
import useTimelineContext from "./hooks/useContext.js";
|
3
3
|
const _hoisted_1 = { class: "yc-timeline-item-dot-wrapper" };
|
4
4
|
const _hoisted_2 = { class: "yc-timeline-item-dot-content" };
|
5
5
|
const _hoisted_3 = {
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
32
32
|
},
|
33
33
|
setup(__props) {
|
34
34
|
const $slots = useSlots();
|
35
|
-
const { direction, labelPosition, reverse } =
|
35
|
+
const { direction, labelPosition, reverse } = useTimelineContext().inject();
|
36
36
|
return (_ctx, _cache) => {
|
37
37
|
return openBlock(), createElementBlock("div", {
|
38
38
|
role: "listitem",
|
@@ -7,7 +7,7 @@ type TimelineContext = {
|
|
7
7
|
reverse: Ref<boolean>;
|
8
8
|
labelPosition: Ref<TimelineLabelPosition>;
|
9
9
|
};
|
10
|
-
|
10
|
+
export default function useTimelineContext(): {
|
11
11
|
provide: (props: RecordType) => {
|
12
12
|
direction: Ref<Direction, Direction>;
|
13
13
|
mode: import('vue').ComputedRef<TimelineMode>;
|
@@ -17,4 +17,4 @@ declare const _default: () => {
|
|
17
17
|
};
|
18
18
|
inject: () => TimelineContext;
|
19
19
|
};
|
20
|
-
export
|
20
|
+
export {};
|
@@ -4,7 +4,7 @@ import _sfc_main$1 from "../TimelineItem.vue.js";
|
|
4
4
|
/* empty css */
|
5
5
|
import _sfc_main from "../TimelineItemPending.vue.js";
|
6
6
|
const TIMELINE_CONTEXT_KEY = "timeline-context";
|
7
|
-
|
7
|
+
function useTimelineContext() {
|
8
8
|
const provide$1 = (props) => {
|
9
9
|
const {
|
10
10
|
direction,
|
@@ -57,7 +57,7 @@ const useContext = () => {
|
|
57
57
|
provide: provide$1,
|
58
58
|
inject: inject$1
|
59
59
|
};
|
60
|
-
}
|
60
|
+
}
|
61
61
|
export {
|
62
|
-
|
62
|
+
useTimelineContext as default
|
63
63
|
};
|
package/es/Timeline/index.d.ts
CHANGED
@@ -40,7 +40,7 @@ declare const Timeline: {
|
|
40
40
|
item: {
|
41
41
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
42
42
|
label: string;
|
43
|
-
position: import('
|
43
|
+
position: import('..').Position;
|
44
44
|
dotColor: string;
|
45
45
|
dotType: import('./type').TimelineDotType;
|
46
46
|
lineType: import('./type').TimelineLineType;
|
@@ -55,7 +55,7 @@ declare const Timeline: {
|
|
55
55
|
Defaults: {};
|
56
56
|
}, Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, {
|
57
57
|
label: string;
|
58
|
-
position: import('
|
58
|
+
position: import('..').Position;
|
59
59
|
dotColor: string;
|
60
60
|
dotType: import('./type').TimelineDotType;
|
61
61
|
lineType: import('./type').TimelineLineType;
|
@@ -67,7 +67,7 @@ declare const Timeline: {
|
|
67
67
|
__isSuspense?: never;
|
68
68
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
69
69
|
label: string;
|
70
|
-
position: import('
|
70
|
+
position: import('..').Position;
|
71
71
|
dotColor: string;
|
72
72
|
dotType: import('./type').TimelineDotType;
|
73
73
|
lineType: import('./type').TimelineLineType;
|
package/es/Timeline/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Direction } from '../_shared/type';
|
1
|
+
import { Direction, Position } from '../_shared/type';
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface TimelineProps {
|
4
4
|
reverse?: boolean;
|
@@ -17,7 +17,7 @@ export interface TimelineItemProps {
|
|
17
17
|
lineType?: TimelineLineType;
|
18
18
|
lineColor?: string;
|
19
19
|
label?: string;
|
20
|
-
position?:
|
20
|
+
position?: Position;
|
21
21
|
isGhost?: boolean;
|
22
22
|
}
|
23
23
|
export interface TimelineItemSlots {
|
@@ -25,8 +25,7 @@ export interface TimelineItemSlots {
|
|
25
25
|
label?: () => VNode[];
|
26
26
|
default?: () => VNode[];
|
27
27
|
}
|
28
|
-
export type TimelineMode =
|
28
|
+
export type TimelineMode = Position | 'alternate';
|
29
29
|
export type TimelineLabelPosition = 'relative' | 'same';
|
30
30
|
export type TimelineDotType = 'hollow' | 'solid';
|
31
31
|
export type TimelineLineType = 'solid' | 'dashed' | 'dotted';
|
32
|
-
export type TimelinePositon = 'left' | 'right' | 'top' | 'bottom';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, createVNode, createCommentVNode, createBlock, unref, withCtx, renderSlot } from "vue";
|
2
|
-
import
|
2
|
+
import useTransferContext from "./hooks/useContext.js";
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
40
|
setup(__props, { emit: __emit }) {
|
41
41
|
const props = __props;
|
42
42
|
const emits = __emit;
|
43
|
-
const { computedValue, targetChecked, computedSelected, sourceChecked } =
|
43
|
+
const { computedValue, targetChecked, computedSelected, sourceChecked } = useTransferContext().provide(props, emits);
|
44
44
|
const handleAdd = () => {
|
45
45
|
const checked = [...sourceChecked.value];
|
46
46
|
computedValue.value = [...computedValue.value, ...sourceChecked.value];
|
@@ -5,9 +5,9 @@ import "../_shared/utils/dom.js";
|
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$4 from "../_shared/icons/IconClose.vue.js";
|
8
|
-
import _sfc_main$2 from "../_shared/icons/IconDelete.
|
8
|
+
import _sfc_main$2 from "../_shared/icons/IconDelete.vue.js";
|
9
9
|
import _sfc_main$3 from "../_shared/icons/IconSearch.vue2.js";
|
10
|
-
import
|
10
|
+
import useTransferContext from "./hooks/useContext.js";
|
11
11
|
import Checkbox from "../Checkbox/index.js";
|
12
12
|
import Scrollbar from "../Scrollbar/index.js";
|
13
13
|
import Input from "../Input/index.js";
|
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
53
|
slots,
|
54
54
|
title: _title,
|
55
55
|
emits
|
56
|
-
} =
|
56
|
+
} = useTransferContext().inject();
|
57
57
|
const keywords = ref("");
|
58
58
|
const curData = computed(() => {
|
59
59
|
const options = type.value == "source" ? sourceOptions.value : targetOptions.value;
|
@@ -20,7 +20,7 @@ type TransferContext = {
|
|
20
20
|
slots: Slots;
|
21
21
|
emits: TransferEmits;
|
22
22
|
};
|
23
|
-
|
23
|
+
export default function useTransferContext(): {
|
24
24
|
provide: (props: RecordType, emits: TransferEmits) => {
|
25
25
|
computedValue: import('vue').WritableComputedRef<TransferItemValue[], TransferItemValue[]>;
|
26
26
|
targetChecked: import('vue').ComputedRef<TransferItemValue[]>;
|
@@ -29,4 +29,4 @@ declare const _default: () => {
|
|
29
29
|
};
|
30
30
|
inject: () => TransferContext;
|
31
31
|
};
|
32
|
-
export
|
32
|
+
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { toRefs, useSlots, computed, provide, inject, ref } from "vue";
|
2
2
|
import { useControlValue } from "../../_shared/utils/control.js";
|
3
3
|
const TRANSFER_CONTEXT_KEY = "transfer-context";
|
4
|
-
|
4
|
+
function useTransferContext() {
|
5
5
|
const provide$1 = (props, emits) => {
|
6
6
|
const {
|
7
7
|
modelValue,
|
@@ -115,7 +115,7 @@ const useContext = () => {
|
|
115
115
|
provide: provide$1,
|
116
116
|
inject: inject$1
|
117
117
|
};
|
118
|
-
}
|
118
|
+
}
|
119
119
|
export {
|
120
|
-
|
120
|
+
useTransferContext as default
|
121
121
|
};
|
@@ -8,15 +8,14 @@ export type TriggerProps = Required<_TriggerProps>;
|
|
8
8
|
* groupIds 同一个submenu里面的groupId集合
|
9
9
|
* groupId 组件标识,用于标识元素是否处于一个嵌套中
|
10
10
|
*/
|
11
|
-
|
11
|
+
export default function useTriggerContext(params: {
|
12
12
|
trigger: TriggerType;
|
13
13
|
mouseEnterDelay: Ref<number>;
|
14
14
|
computedVisible: Ref<boolean>;
|
15
15
|
popupRef: Ref<HTMLDivElement | undefined>;
|
16
|
-
})
|
16
|
+
}): {
|
17
17
|
timeout: Ref<NodeJS.Timeout | undefined, NodeJS.Timeout | undefined>;
|
18
18
|
mouseEnterHandler: () => void;
|
19
19
|
clickOutsideHandler: (e: Event) => boolean;
|
20
20
|
mosueLeaveHandler: (e: MouseEvent) => boolean;
|
21
21
|
};
|
22
|
-
export default _default;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { inject, ref, provide, watch } from "vue";
|
2
2
|
import { nanoid } from "../../node_modules/nanoid/index.browser.js";
|
3
|
-
import { unrefElement } from "../../node_modules/@vueuse/core/index.js";
|
4
3
|
import { sleep } from "../../_shared/utils/dom.js";
|
4
|
+
import { unrefElement } from "../../node_modules/@vueuse/core/index.js";
|
5
5
|
const TRIGGER_CONTEXT_KEY = "trigger-context";
|
6
|
-
|
6
|
+
function useTriggerContext(params) {
|
7
7
|
const { trigger, popupRef, computedVisible, mouseEnterDelay } = params;
|
8
8
|
const {
|
9
9
|
depth: preDepth,
|
@@ -100,7 +100,7 @@ const useContext = (params) => {
|
|
100
100
|
clickOutsideHandler,
|
101
101
|
mosueLeaveHandler
|
102
102
|
};
|
103
|
-
}
|
103
|
+
}
|
104
104
|
export {
|
105
|
-
|
105
|
+
useTriggerContext as default
|
106
106
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { toRefs, ref, computed, watch } from "vue";
|
2
|
-
import { useElementSize, useElementBounding, unrefElement } from "../../node_modules/@vueuse/core/index.js";
|
3
2
|
import { valueToPx, sleep } from "../../_shared/utils/dom.js";
|
3
|
+
import { useElementSize, useElementBounding, unrefElement } from "../../node_modules/@vueuse/core/index.js";
|
4
4
|
const useTriggerPosition = (params) => {
|
5
5
|
const {
|
6
6
|
props,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { toRefs, ref, computed, watch, nextTick } from "vue";
|
2
|
+
import useTriggerContext from "./useContext.js";
|
2
3
|
import { unrefElement, onClickOutside, useEventListener } from "../../node_modules/@vueuse/core/index.js";
|
3
|
-
import useContext from "./useContext.js";
|
4
4
|
import { findFirstScrollableParent } from "../../_shared/utils/dom.js";
|
5
5
|
import { useControlValue } from "../../_shared/utils/control.js";
|
6
6
|
const useTriggerVisible = (params) => {
|
@@ -37,7 +37,7 @@ const useTriggerVisible = (params) => {
|
|
37
37
|
emits("popup-visible-change", val);
|
38
38
|
}
|
39
39
|
);
|
40
|
-
const { timeout, mosueLeaveHandler, mouseEnterHandler, clickOutsideHandler } =
|
40
|
+
const { timeout, mosueLeaveHandler, mouseEnterHandler, clickOutsideHandler } = useTriggerContext({
|
41
41
|
trigger: trigger.value,
|
42
42
|
mouseEnterDelay,
|
43
43
|
computedVisible,
|