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/index.d.ts
CHANGED
@@ -132,11 +132,12 @@ export * from './Transfer';
|
|
132
132
|
export * from './Trigger';
|
133
133
|
export * from './Typography';
|
134
134
|
export * from './Tabs';
|
135
|
+
export * from './Upload';
|
135
136
|
export * from './VerificationCode';
|
136
137
|
export * from './Watermark';
|
137
138
|
export { Affix, Alert, Anchor, AutoComplete, Avatar, BackTop, Badge, Button, Breadcrumb, Card, Calendar, Carousel, Checkbox, Collapse, ColorPicker, Cascader, Comment, ConfigProvider, Descriptions, Divider, Drawer, Dropdown, Empty, Grid, Image, Input, InputNumber, InputTag, Layout, Link, List, Menu, Mention, Modal, Message, Notification, OverflowList, PageHeader, Pagination, Popconfirm, Popover, Progress, Radio, Rate, ResizeBox, Result, Scrollbar, Select, Skeleton, Slider, Space, Split, Statistic, Steps, Spin, Switch, Tag, Timeline, Textarea, TimePicker, Tooltip, Transfer, Trigger, Typography, Tabs, VerificationCode, Watermark, };
|
138
139
|
export declare const components: Record<string, Plugin>;
|
139
|
-
declare const
|
140
|
+
declare const YcDesignVue: {
|
140
141
|
AnchorLink: {
|
141
142
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Anchor').AnchorLinkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
142
143
|
title: string;
|
@@ -208,7 +209,7 @@ declare const _default: {
|
|
208
209
|
type: import('./Button').ButtonType;
|
209
210
|
disabled: boolean;
|
210
211
|
shape: import('./_shared/type').Shape;
|
211
|
-
status: import('./
|
212
|
+
status: import('./_shared/type').Status;
|
212
213
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
213
214
|
P: {};
|
214
215
|
B: {};
|
@@ -221,7 +222,7 @@ declare const _default: {
|
|
221
222
|
type: import('./Button').ButtonType;
|
222
223
|
disabled: boolean;
|
223
224
|
shape: import('./_shared/type').Shape;
|
224
|
-
status: import('./
|
225
|
+
status: import('./_shared/type').Status;
|
225
226
|
}>;
|
226
227
|
__isFragment?: never;
|
227
228
|
__isTeleport?: never;
|
@@ -231,7 +232,7 @@ declare const _default: {
|
|
231
232
|
type: import('./Button').ButtonType;
|
232
233
|
disabled: boolean;
|
233
234
|
shape: import('./_shared/type').Shape;
|
234
|
-
status: import('./
|
235
|
+
status: import('./_shared/type').Status;
|
235
236
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
236
237
|
$slots: Readonly<import('./Button').ButtonGroupSlots> & import('./Button').ButtonGroupSlots;
|
237
238
|
});
|
@@ -488,12 +489,12 @@ declare const _default: {
|
|
488
489
|
DropdownButton: {
|
489
490
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Dropdown').DropdownButtonProps> & Readonly<{
|
490
491
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
491
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
492
492
|
onSelect?: ((value: import('./Dropdown').DoptionValue) => any) | undefined;
|
493
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
493
494
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
494
495
|
click: (ev: MouseEvent) => any;
|
495
|
-
"popup-visible-change": (value: boolean) => any;
|
496
496
|
select: (value: import('./Dropdown').DoptionValue) => any;
|
497
|
+
"popup-visible-change": (value: boolean) => any;
|
497
498
|
}, import('vue').PublicProps, {
|
498
499
|
size: import('./_shared/type').Size;
|
499
500
|
type: import('./Button').ButtonType;
|
@@ -502,7 +503,7 @@ declare const _default: {
|
|
502
503
|
popupVisible: boolean;
|
503
504
|
defaultPopupVisible: boolean;
|
504
505
|
disabled: boolean;
|
505
|
-
position: import('./
|
506
|
+
position: Extract<import('./_shared/type').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
506
507
|
hideOnSelect: boolean;
|
507
508
|
buttonProps: import('./Button').ButtonProps;
|
508
509
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -514,8 +515,8 @@ declare const _default: {
|
|
514
515
|
Defaults: {};
|
515
516
|
}, Readonly<import('./Dropdown').DropdownButtonProps> & Readonly<{
|
516
517
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
517
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
518
518
|
onSelect?: ((value: import('./Dropdown').DoptionValue) => any) | undefined;
|
519
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
519
520
|
}>, {}, {}, {}, {}, {
|
520
521
|
size: import('./_shared/type').Size;
|
521
522
|
type: import('./Button').ButtonType;
|
@@ -524,7 +525,7 @@ declare const _default: {
|
|
524
525
|
popupVisible: boolean;
|
525
526
|
defaultPopupVisible: boolean;
|
526
527
|
disabled: boolean;
|
527
|
-
position: import('./
|
528
|
+
position: Extract<import('./_shared/type').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
528
529
|
hideOnSelect: boolean;
|
529
530
|
buttonProps: import('./Button').ButtonProps;
|
530
531
|
}>;
|
@@ -533,12 +534,12 @@ declare const _default: {
|
|
533
534
|
__isSuspense?: never;
|
534
535
|
} & import('vue').ComponentOptionsBase<Readonly<import('./Dropdown').DropdownButtonProps> & Readonly<{
|
535
536
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
536
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
537
537
|
onSelect?: ((value: import('./Dropdown').DoptionValue) => any) | undefined;
|
538
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
538
539
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
539
540
|
click: (ev: MouseEvent) => any;
|
540
|
-
"popup-visible-change": (value: boolean) => any;
|
541
541
|
select: (value: import('./Dropdown').DoptionValue) => any;
|
542
|
+
"popup-visible-change": (value: boolean) => any;
|
542
543
|
}, string, {
|
543
544
|
size: import('./_shared/type').Size;
|
544
545
|
type: import('./Button').ButtonType;
|
@@ -547,7 +548,7 @@ declare const _default: {
|
|
547
548
|
popupVisible: boolean;
|
548
549
|
defaultPopupVisible: boolean;
|
549
550
|
disabled: boolean;
|
550
|
-
position: import('./
|
551
|
+
position: Extract<import('./_shared/type').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
551
552
|
hideOnSelect: boolean;
|
552
553
|
buttonProps: import('./Button').ButtonProps;
|
553
554
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -620,7 +621,7 @@ declare const _default: {
|
|
620
621
|
popupVisible: boolean;
|
621
622
|
defaultPopupVisible: boolean;
|
622
623
|
disabled: boolean;
|
623
|
-
position: import('./
|
624
|
+
position: Extract<import('./_shared/type').PopupPosition, "rt" | "lt">;
|
624
625
|
triggerProps: import('./Trigger').TriggerProps;
|
625
626
|
popupMaxHeight: import('./_shared/type').PopupMaxHeight;
|
626
627
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
@@ -941,7 +942,7 @@ declare const _default: {
|
|
941
942
|
popupVisible: boolean;
|
942
943
|
defaultPopupVisible: boolean;
|
943
944
|
disabled: boolean;
|
944
|
-
position: import('./
|
945
|
+
position: Extract<import('./_shared/type').PopupPosition, "rt" | "lt">;
|
945
946
|
triggerProps: import('./Trigger').TriggerProps;
|
946
947
|
popupMaxHeight: import('./_shared/type').PopupMaxHeight;
|
947
948
|
}>;
|
@@ -962,7 +963,7 @@ declare const _default: {
|
|
962
963
|
popupVisible: boolean;
|
963
964
|
defaultPopupVisible: boolean;
|
964
965
|
disabled: boolean;
|
965
|
-
position: import('./
|
966
|
+
position: Extract<import('./_shared/type').PopupPosition, "rt" | "lt">;
|
966
967
|
triggerProps: import('./Trigger').TriggerProps;
|
967
968
|
popupMaxHeight: import('./_shared/type').PopupMaxHeight;
|
968
969
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -1302,11 +1303,11 @@ declare const _default: {
|
|
1302
1303
|
});
|
1303
1304
|
LayoutSider: {
|
1304
1305
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Layout').LayoutSiderProps> & Readonly<{
|
1305
|
-
onCollapse?: ((collapsed: boolean, type:
|
1306
|
+
onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
|
1306
1307
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
1307
1308
|
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
1308
1309
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
1309
|
-
collapse: (collapsed: boolean, type:
|
1310
|
+
collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
|
1310
1311
|
"update:collapsed": (collapsed: boolean) => any;
|
1311
1312
|
breakpoint: (collapsed: boolean) => any;
|
1312
1313
|
}, import('vue').PublicProps, {
|
@@ -1319,7 +1320,7 @@ declare const _default: {
|
|
1319
1320
|
collapsible: boolean;
|
1320
1321
|
reverseArrow: boolean;
|
1321
1322
|
hideTrigger: boolean;
|
1322
|
-
resizeDirections: import('./
|
1323
|
+
resizeDirections: import('./_shared/type').Position[];
|
1323
1324
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
1324
1325
|
P: {};
|
1325
1326
|
B: {};
|
@@ -1328,7 +1329,7 @@ declare const _default: {
|
|
1328
1329
|
M: {};
|
1329
1330
|
Defaults: {};
|
1330
1331
|
}, Readonly<import('./Layout').LayoutSiderProps> & Readonly<{
|
1331
|
-
onCollapse?: ((collapsed: boolean, type:
|
1332
|
+
onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
|
1332
1333
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
1333
1334
|
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
1334
1335
|
}>, {}, {}, {}, {}, {
|
@@ -1341,17 +1342,17 @@ declare const _default: {
|
|
1341
1342
|
collapsible: boolean;
|
1342
1343
|
reverseArrow: boolean;
|
1343
1344
|
hideTrigger: boolean;
|
1344
|
-
resizeDirections: import('./
|
1345
|
+
resizeDirections: import('./_shared/type').Position[];
|
1345
1346
|
}>;
|
1346
1347
|
__isFragment?: never;
|
1347
1348
|
__isTeleport?: never;
|
1348
1349
|
__isSuspense?: never;
|
1349
1350
|
} & import('vue').ComponentOptionsBase<Readonly<import('./Layout').LayoutSiderProps> & Readonly<{
|
1350
|
-
onCollapse?: ((collapsed: boolean, type:
|
1351
|
+
onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
|
1351
1352
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
1352
1353
|
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
1353
1354
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
1354
|
-
collapse: (collapsed: boolean, type:
|
1355
|
+
collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
|
1355
1356
|
"update:collapsed": (collapsed: boolean) => any;
|
1356
1357
|
breakpoint: (collapsed: boolean) => any;
|
1357
1358
|
}, string, {
|
@@ -1364,7 +1365,7 @@ declare const _default: {
|
|
1364
1365
|
collapsible: boolean;
|
1365
1366
|
reverseArrow: boolean;
|
1366
1367
|
hideTrigger: boolean;
|
1367
|
-
resizeDirections: import('./
|
1368
|
+
resizeDirections: import('./_shared/type').Position[];
|
1368
1369
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
1369
1370
|
$slots: Readonly<import('./Layout').LayoutSiderSlots> & import('./Layout').LayoutSiderSlots;
|
1370
1371
|
});
|
@@ -1568,8 +1569,8 @@ declare const _default: {
|
|
1568
1569
|
lineSpacing: number;
|
1569
1570
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
1570
1571
|
SkeletonShape: import('vue').DefineComponent<import('./Skeleton').SkeletonShapeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./Skeleton').SkeletonShapeProps> & Readonly<{}>, {
|
1571
|
-
size: import('./
|
1572
|
-
shape: import('./
|
1572
|
+
size: Exclude<import('./_shared/type').Size, "mini">;
|
1573
|
+
shape: Exclude<import('./_shared/type').Shape, "round">;
|
1573
1574
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
1574
1575
|
Step: {
|
1575
1576
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Steps').StepProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
@@ -1670,7 +1671,7 @@ declare const _default: {
|
|
1670
1671
|
TimelineItem: {
|
1671
1672
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Timeline').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
1672
1673
|
label: string;
|
1673
|
-
position: import('./
|
1674
|
+
position: import('./_shared/type').Position;
|
1674
1675
|
dotColor: string;
|
1675
1676
|
dotType: import('./Timeline').TimelineDotType;
|
1676
1677
|
lineType: import('./Timeline').TimelineLineType;
|
@@ -1685,7 +1686,7 @@ declare const _default: {
|
|
1685
1686
|
Defaults: {};
|
1686
1687
|
}, Readonly<import('./Timeline').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, {
|
1687
1688
|
label: string;
|
1688
|
-
position: import('./
|
1689
|
+
position: import('./_shared/type').Position;
|
1689
1690
|
dotColor: string;
|
1690
1691
|
dotType: import('./Timeline').TimelineDotType;
|
1691
1692
|
lineType: import('./Timeline').TimelineLineType;
|
@@ -1697,7 +1698,7 @@ declare const _default: {
|
|
1697
1698
|
__isSuspense?: never;
|
1698
1699
|
} & import('vue').ComponentOptionsBase<Readonly<import('./Timeline').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
1699
1700
|
label: string;
|
1700
|
-
position: import('./
|
1701
|
+
position: import('./_shared/type').Position;
|
1701
1702
|
dotColor: string;
|
1702
1703
|
dotType: import('./Timeline').TimelineDotType;
|
1703
1704
|
lineType: import('./Timeline').TimelineLineType;
|
@@ -1723,7 +1724,7 @@ declare const _default: {
|
|
1723
1724
|
});
|
1724
1725
|
TypographyTitle: {
|
1725
1726
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Typography').TypographyTitleProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
1726
|
-
heading:
|
1727
|
+
heading: 1 | 2 | 3 | 4 | 5 | 6;
|
1727
1728
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
1728
1729
|
P: {};
|
1729
1730
|
B: {};
|
@@ -1732,20 +1733,20 @@ declare const _default: {
|
|
1732
1733
|
M: {};
|
1733
1734
|
Defaults: {};
|
1734
1735
|
}, Readonly<import('./Typography').TypographyTitleProps> & Readonly<{}>, {}, {}, {}, {}, {
|
1735
|
-
heading:
|
1736
|
+
heading: 1 | 2 | 3 | 4 | 5 | 6;
|
1736
1737
|
}>;
|
1737
1738
|
__isFragment?: never;
|
1738
1739
|
__isTeleport?: never;
|
1739
1740
|
__isSuspense?: never;
|
1740
1741
|
} & import('vue').ComponentOptionsBase<Readonly<import('./Typography').TypographyTitleProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
1741
|
-
heading:
|
1742
|
+
heading: 1 | 2 | 3 | 4 | 5 | 6;
|
1742
1743
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
1743
1744
|
$slots: any;
|
1744
1745
|
});
|
1745
1746
|
TypographyParagraph: {
|
1746
1747
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Typography').TypographyParagraphProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
1747
1748
|
blockquote: boolean;
|
1748
|
-
spacing:
|
1749
|
+
spacing: "close" | "default";
|
1749
1750
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
1750
1751
|
P: {};
|
1751
1752
|
B: {};
|
@@ -1755,17 +1756,17 @@ declare const _default: {
|
|
1755
1756
|
Defaults: {};
|
1756
1757
|
}, Readonly<import('./Typography').TypographyParagraphProps> & Readonly<{}>, {}, {}, {}, {}, {
|
1757
1758
|
blockquote: boolean;
|
1758
|
-
spacing:
|
1759
|
+
spacing: "close" | "default";
|
1759
1760
|
}>;
|
1760
1761
|
__isFragment?: never;
|
1761
1762
|
__isTeleport?: never;
|
1762
1763
|
__isSuspense?: never;
|
1763
1764
|
} & import('vue').ComponentOptionsBase<Readonly<import('./Typography').TypographyParagraphProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
1764
1765
|
blockquote: boolean;
|
1765
|
-
spacing:
|
1766
|
+
spacing: "close" | "default";
|
1766
1767
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
1767
1768
|
$slots: any;
|
1768
1769
|
});
|
1769
1770
|
install: (app: App) => void;
|
1770
1771
|
};
|
1771
|
-
export default
|
1772
|
+
export default YcDesignVue;
|
package/es/index.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* empty css */
|
2
1
|
import Affix from "./Affix/index.js";
|
3
2
|
import Alert from "./Alert/index.js";
|
4
3
|
import Anchor from "./Anchor/index.js";
|
@@ -64,8 +63,10 @@ import Transfer from "./Transfer/index.js";
|
|
64
63
|
import Trigger from "./Trigger/index.js";
|
65
64
|
import Typography from "./Typography/index.js";
|
66
65
|
import Tabs from "./Tabs/index.js";
|
66
|
+
import Upload from "./Upload/index.js";
|
67
67
|
import VerificationCode from "./VerificationCode/index.js";
|
68
68
|
import Watermark from "./Watermark/index.js";
|
69
|
+
/* empty css */
|
69
70
|
import _sfc_main from "./Typography/TypographyParagraph.vue.js";
|
70
71
|
/* empty css */
|
71
72
|
import _sfc_main$1 from "./Typography/TypographyTitle.vue.js";
|
@@ -207,10 +208,11 @@ const components = {
|
|
207
208
|
Trigger,
|
208
209
|
Typography,
|
209
210
|
Tabs,
|
211
|
+
Upload,
|
210
212
|
VerificationCode,
|
211
213
|
Watermark
|
212
214
|
};
|
213
|
-
const
|
215
|
+
const YcDesignVue = {
|
214
216
|
...components,
|
215
217
|
AnchorLink: _sfc_main$E,
|
216
218
|
AvatarGroup: _sfc_main$D,
|
@@ -369,5 +371,5 @@ export {
|
|
369
371
|
VerificationCode,
|
370
372
|
Watermark,
|
371
373
|
components,
|
372
|
-
|
374
|
+
YcDesignVue as default
|
373
375
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { tryOnScopeDispose, toArray, watchImmediate, isClient, isObject, makeDestructurable, camelize, tryOnMounted, toRefs, noop, isIOS, notNullish, useThrottleFn, useDebounceFn, pxValue, injectLocal, useTimeoutFn, createSingletonPromise } from "../shared/index.js";
|
1
|
+
import { tryOnScopeDispose, toArray, watchImmediate, isClient, isObject, makeDestructurable, camelize, tryOnMounted, toRefs, noop, isIOS, notNullish, useThrottleFn, useDebounceFn, pxValue, injectLocal, useTimeoutFn, createSingletonPromise, createEventHook, hasOwn } from "../shared/index.js";
|
2
2
|
import { createFilterWrapper, debounceFilter, getLifeCycleTarget, throttleFilter } from "../shared/index.js";
|
3
|
-
import { computed, toValue, watch, shallowRef, getCurrentInstance, onMounted, unref, defineComponent, ref, reactive, watchEffect, hasInjectionContext, toRaw } from "vue";
|
3
|
+
import { computed, toValue, watch, shallowRef, getCurrentInstance, onMounted, unref, defineComponent, ref, reactive, watchEffect, hasInjectionContext, readonly, toRaw } from "vue";
|
4
4
|
function createReusableTemplate(options = {}) {
|
5
5
|
const {
|
6
6
|
inheritAttrs = true
|
@@ -41,6 +41,7 @@ function keysToCamelKebabCase(obj) {
|
|
41
41
|
return newObj;
|
42
42
|
}
|
43
43
|
const defaultWindow = isClient ? window : void 0;
|
44
|
+
const defaultDocument = isClient ? window.document : void 0;
|
44
45
|
const defaultNavigator = isClient ? window.navigator : void 0;
|
45
46
|
function unrefElement(elRef) {
|
46
47
|
var _a;
|
@@ -331,9 +332,9 @@ function useMediaQuery(query, options = {}) {
|
|
331
332
|
function usePermission(permissionDesc, options = {}) {
|
332
333
|
const {
|
333
334
|
controls = false,
|
334
|
-
navigator = defaultNavigator
|
335
|
+
navigator: navigator2 = defaultNavigator
|
335
336
|
} = options;
|
336
|
-
const isSupported = useSupported(() =>
|
337
|
+
const isSupported = useSupported(() => navigator2 && "permissions" in navigator2);
|
337
338
|
const permissionStatus = shallowRef();
|
338
339
|
const desc = typeof permissionDesc === "string" ? { name: permissionDesc } : permissionDesc;
|
339
340
|
const state = shallowRef();
|
@@ -347,7 +348,7 @@ function usePermission(permissionDesc, options = {}) {
|
|
347
348
|
return;
|
348
349
|
if (!permissionStatus.value) {
|
349
350
|
try {
|
350
|
-
permissionStatus.value = await
|
351
|
+
permissionStatus.value = await navigator2.permissions.query(desc);
|
351
352
|
} catch (e) {
|
352
353
|
permissionStatus.value = void 0;
|
353
354
|
} finally {
|
@@ -370,13 +371,13 @@ function usePermission(permissionDesc, options = {}) {
|
|
370
371
|
}
|
371
372
|
function useClipboard(options = {}) {
|
372
373
|
const {
|
373
|
-
navigator = defaultNavigator,
|
374
|
+
navigator: navigator2 = defaultNavigator,
|
374
375
|
read = false,
|
375
376
|
source,
|
376
377
|
copiedDuring = 1500,
|
377
378
|
legacy = false
|
378
379
|
} = options;
|
379
|
-
const isClipboardApiSupported = useSupported(() =>
|
380
|
+
const isClipboardApiSupported = useSupported(() => navigator2 && "clipboard" in navigator2);
|
380
381
|
const permissionRead = usePermission("clipboard-read");
|
381
382
|
const permissionWrite = usePermission("clipboard-write");
|
382
383
|
const isSupported = computed(() => isClipboardApiSupported.value || legacy);
|
@@ -387,7 +388,7 @@ function useClipboard(options = {}) {
|
|
387
388
|
let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionRead.value));
|
388
389
|
if (!useLegacy) {
|
389
390
|
try {
|
390
|
-
text.value = await
|
391
|
+
text.value = await navigator2.clipboard.readText();
|
391
392
|
} catch (e) {
|
392
393
|
useLegacy = true;
|
393
394
|
}
|
@@ -403,7 +404,7 @@ function useClipboard(options = {}) {
|
|
403
404
|
let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionWrite.value));
|
404
405
|
if (!useLegacy) {
|
405
406
|
try {
|
406
|
-
await
|
407
|
+
await navigator2.clipboard.writeText(value);
|
407
408
|
} catch (e) {
|
408
409
|
useLegacy = true;
|
409
410
|
}
|
@@ -546,6 +547,93 @@ function useDraggable(target, options = {}) {
|
|
546
547
|
)
|
547
548
|
};
|
548
549
|
}
|
550
|
+
function useDropZone(target, options = {}) {
|
551
|
+
var _a, _b;
|
552
|
+
const isOverDropZone = shallowRef(false);
|
553
|
+
const files = shallowRef(null);
|
554
|
+
let counter = 0;
|
555
|
+
let isValid = true;
|
556
|
+
if (isClient) {
|
557
|
+
const _options = typeof options === "function" ? { onDrop: options } : options;
|
558
|
+
const multiple = (_a = _options.multiple) != null ? _a : true;
|
559
|
+
const preventDefaultForUnhandled = (_b = _options.preventDefaultForUnhandled) != null ? _b : false;
|
560
|
+
const getFiles = (event) => {
|
561
|
+
var _a2, _b2;
|
562
|
+
const list = Array.from((_b2 = (_a2 = event.dataTransfer) == null ? void 0 : _a2.files) != null ? _b2 : []);
|
563
|
+
return list.length === 0 ? null : multiple ? list : [list[0]];
|
564
|
+
};
|
565
|
+
const checkDataTypes = (types) => {
|
566
|
+
const dataTypes = unref(_options.dataTypes);
|
567
|
+
if (typeof dataTypes === "function")
|
568
|
+
return dataTypes(types);
|
569
|
+
if (!(dataTypes == null ? void 0 : dataTypes.length))
|
570
|
+
return true;
|
571
|
+
if (types.length === 0)
|
572
|
+
return false;
|
573
|
+
return types.every(
|
574
|
+
(type) => dataTypes.some((allowedType) => type.includes(allowedType))
|
575
|
+
);
|
576
|
+
};
|
577
|
+
const checkValidity = (items) => {
|
578
|
+
const types = Array.from(items != null ? items : []).map((item) => item.type);
|
579
|
+
const dataTypesValid = checkDataTypes(types);
|
580
|
+
const multipleFilesValid = multiple || items.length <= 1;
|
581
|
+
return dataTypesValid && multipleFilesValid;
|
582
|
+
};
|
583
|
+
const isSafari = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window);
|
584
|
+
const handleDragEvent = (event, eventType) => {
|
585
|
+
var _a2, _b2, _c, _d, _e, _f;
|
586
|
+
const dataTransferItemList = (_a2 = event.dataTransfer) == null ? void 0 : _a2.items;
|
587
|
+
isValid = (_b2 = dataTransferItemList && checkValidity(dataTransferItemList)) != null ? _b2 : false;
|
588
|
+
if (preventDefaultForUnhandled) {
|
589
|
+
event.preventDefault();
|
590
|
+
}
|
591
|
+
if (!isSafari() && !isValid) {
|
592
|
+
if (event.dataTransfer) {
|
593
|
+
event.dataTransfer.dropEffect = "none";
|
594
|
+
}
|
595
|
+
return;
|
596
|
+
}
|
597
|
+
event.preventDefault();
|
598
|
+
if (event.dataTransfer) {
|
599
|
+
event.dataTransfer.dropEffect = "copy";
|
600
|
+
}
|
601
|
+
const currentFiles = getFiles(event);
|
602
|
+
switch (eventType) {
|
603
|
+
case "enter":
|
604
|
+
counter += 1;
|
605
|
+
isOverDropZone.value = true;
|
606
|
+
(_c = _options.onEnter) == null ? void 0 : _c.call(_options, null, event);
|
607
|
+
break;
|
608
|
+
case "over":
|
609
|
+
(_d = _options.onOver) == null ? void 0 : _d.call(_options, null, event);
|
610
|
+
break;
|
611
|
+
case "leave":
|
612
|
+
counter -= 1;
|
613
|
+
if (counter === 0)
|
614
|
+
isOverDropZone.value = false;
|
615
|
+
(_e = _options.onLeave) == null ? void 0 : _e.call(_options, null, event);
|
616
|
+
break;
|
617
|
+
case "drop":
|
618
|
+
counter = 0;
|
619
|
+
isOverDropZone.value = false;
|
620
|
+
if (isValid) {
|
621
|
+
files.value = currentFiles;
|
622
|
+
(_f = _options.onDrop) == null ? void 0 : _f.call(_options, currentFiles, event);
|
623
|
+
}
|
624
|
+
break;
|
625
|
+
}
|
626
|
+
};
|
627
|
+
useEventListener(target, "dragenter", (event) => handleDragEvent(event, "enter"));
|
628
|
+
useEventListener(target, "dragover", (event) => handleDragEvent(event, "over"));
|
629
|
+
useEventListener(target, "dragleave", (event) => handleDragEvent(event, "leave"));
|
630
|
+
useEventListener(target, "drop", (event) => handleDragEvent(event, "drop"));
|
631
|
+
}
|
632
|
+
return {
|
633
|
+
files,
|
634
|
+
isOverDropZone
|
635
|
+
};
|
636
|
+
}
|
549
637
|
function useResizeObserver(target, callback, options = {}) {
|
550
638
|
const { window: window2 = defaultWindow, ...observerOptions } = options;
|
551
639
|
let observer;
|
@@ -712,6 +800,75 @@ function useElementSize(target, initialSize = { width: 0, height: 0 }, options =
|
|
712
800
|
stop
|
713
801
|
};
|
714
802
|
}
|
803
|
+
const DEFAULT_OPTIONS = {
|
804
|
+
multiple: true,
|
805
|
+
accept: "*",
|
806
|
+
reset: false,
|
807
|
+
directory: false
|
808
|
+
};
|
809
|
+
function prepareInitialFiles(files) {
|
810
|
+
if (!files)
|
811
|
+
return null;
|
812
|
+
if (files instanceof FileList)
|
813
|
+
return files;
|
814
|
+
const dt = new DataTransfer();
|
815
|
+
for (const file of files) {
|
816
|
+
dt.items.add(file);
|
817
|
+
}
|
818
|
+
return dt.files;
|
819
|
+
}
|
820
|
+
function useFileDialog(options = {}) {
|
821
|
+
const {
|
822
|
+
document: document2 = defaultDocument
|
823
|
+
} = options;
|
824
|
+
const files = ref(prepareInitialFiles(options.initialFiles));
|
825
|
+
const { on: onChange, trigger: changeTrigger } = createEventHook();
|
826
|
+
const { on: onCancel, trigger: cancelTrigger } = createEventHook();
|
827
|
+
let input;
|
828
|
+
if (document2) {
|
829
|
+
input = document2.createElement("input");
|
830
|
+
input.type = "file";
|
831
|
+
input.onchange = (event) => {
|
832
|
+
const result = event.target;
|
833
|
+
files.value = result.files;
|
834
|
+
changeTrigger(files.value);
|
835
|
+
};
|
836
|
+
input.oncancel = () => {
|
837
|
+
cancelTrigger();
|
838
|
+
};
|
839
|
+
}
|
840
|
+
const reset = () => {
|
841
|
+
files.value = null;
|
842
|
+
if (input && input.value) {
|
843
|
+
input.value = "";
|
844
|
+
changeTrigger(null);
|
845
|
+
}
|
846
|
+
};
|
847
|
+
const open = (localOptions) => {
|
848
|
+
if (!input)
|
849
|
+
return;
|
850
|
+
const _options = {
|
851
|
+
...DEFAULT_OPTIONS,
|
852
|
+
...options,
|
853
|
+
...localOptions
|
854
|
+
};
|
855
|
+
input.multiple = _options.multiple;
|
856
|
+
input.accept = _options.accept;
|
857
|
+
input.webkitdirectory = _options.directory;
|
858
|
+
if (hasOwn(_options, "capture"))
|
859
|
+
input.capture = _options.capture;
|
860
|
+
if (_options.reset)
|
861
|
+
reset();
|
862
|
+
input.click();
|
863
|
+
};
|
864
|
+
return {
|
865
|
+
files: readonly(files),
|
866
|
+
open,
|
867
|
+
reset,
|
868
|
+
onCancel,
|
869
|
+
onChange
|
870
|
+
};
|
871
|
+
}
|
715
872
|
const ARRIVED_STATE_THRESHOLD_PIXELS = 1;
|
716
873
|
function useScroll(element, options = {}) {
|
717
874
|
const {
|
@@ -1051,13 +1208,16 @@ function useVerticalVirtualList(options, list) {
|
|
1051
1208
|
}
|
1052
1209
|
export {
|
1053
1210
|
camelize,
|
1211
|
+
createEventHook,
|
1054
1212
|
createFilterWrapper,
|
1055
1213
|
createReusableTemplate,
|
1056
1214
|
createSingletonPromise,
|
1057
1215
|
debounceFilter,
|
1216
|
+
defaultDocument,
|
1058
1217
|
defaultNavigator,
|
1059
1218
|
defaultWindow,
|
1060
1219
|
getLifeCycleTarget,
|
1220
|
+
hasOwn,
|
1061
1221
|
injectLocal,
|
1062
1222
|
isClient,
|
1063
1223
|
isIOS,
|
@@ -1077,9 +1237,11 @@ export {
|
|
1077
1237
|
useClipboard,
|
1078
1238
|
useDebounceFn,
|
1079
1239
|
useDraggable,
|
1240
|
+
useDropZone,
|
1080
1241
|
useElementBounding,
|
1081
1242
|
useElementSize,
|
1082
1243
|
useEventListener,
|
1244
|
+
useFileDialog,
|
1083
1245
|
useMediaQuery,
|
1084
1246
|
useMounted,
|
1085
1247
|
useMutationObserver,
|
@@ -6,6 +6,32 @@ function tryOnScopeDispose(fn) {
|
|
6
6
|
}
|
7
7
|
return false;
|
8
8
|
}
|
9
|
+
function createEventHook() {
|
10
|
+
const fns = /* @__PURE__ */ new Set();
|
11
|
+
const off = (fn) => {
|
12
|
+
fns.delete(fn);
|
13
|
+
};
|
14
|
+
const clear = () => {
|
15
|
+
fns.clear();
|
16
|
+
};
|
17
|
+
const on = (fn) => {
|
18
|
+
fns.add(fn);
|
19
|
+
const offFn = () => off(fn);
|
20
|
+
tryOnScopeDispose(offFn);
|
21
|
+
return {
|
22
|
+
off: offFn
|
23
|
+
};
|
24
|
+
};
|
25
|
+
const trigger = (...args) => {
|
26
|
+
return Promise.all(Array.from(fns).map((fn) => fn(...args)));
|
27
|
+
};
|
28
|
+
return {
|
29
|
+
on,
|
30
|
+
off,
|
31
|
+
trigger,
|
32
|
+
clear
|
33
|
+
};
|
34
|
+
}
|
9
35
|
const localProvidedStateMap = /* @__PURE__ */ new WeakMap();
|
10
36
|
const injectLocal = (...args) => {
|
11
37
|
var _a;
|
@@ -44,6 +70,7 @@ const toString = Object.prototype.toString;
|
|
44
70
|
const isObject = (val) => toString.call(val) === "[object Object]";
|
45
71
|
const noop = () => {
|
46
72
|
};
|
73
|
+
const hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);
|
47
74
|
const isIOS = /* @__PURE__ */ getIsIOS();
|
48
75
|
function getIsIOS() {
|
49
76
|
var _a, _b;
|
@@ -292,10 +319,12 @@ function watchImmediate(source, cb, options) {
|
|
292
319
|
}
|
293
320
|
export {
|
294
321
|
camelize,
|
322
|
+
createEventHook,
|
295
323
|
createFilterWrapper,
|
296
324
|
createSingletonPromise,
|
297
325
|
debounceFilter,
|
298
326
|
getLifeCycleTarget,
|
327
|
+
hasOwn,
|
299
328
|
injectLocal,
|
300
329
|
isClient,
|
301
330
|
isIOS,
|