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
@@ -0,0 +1,123 @@
|
|
1
|
+
import { App } from 'vue';
|
2
|
+
import { default as _Upload } from './Upload.vue';
|
3
|
+
export type UploadInstance = InstanceType<typeof _Upload>;
|
4
|
+
export * from './type';
|
5
|
+
declare const Upload: {
|
6
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').UploadProps> & Readonly<{
|
7
|
+
onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
8
|
+
onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
|
9
|
+
"onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
|
10
|
+
"onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
11
|
+
}>, {
|
12
|
+
updateFile: (id: string, File: File) => void;
|
13
|
+
upload: (files: File[]) => void;
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
15
|
+
change: (fileList: import('./type').FileItem[], files: File[]) => any;
|
16
|
+
preview: (fileItem: import('./type').FileItem) => any;
|
17
|
+
"update:fileList": (value: import('./type').FileItem[]) => any;
|
18
|
+
"exceed-limit": (fileList: import('./type').FileItem[], files: File[]) => any;
|
19
|
+
}, import('vue').PublicProps, {
|
20
|
+
name: import('./type').FileName;
|
21
|
+
disabled: boolean;
|
22
|
+
multiple: boolean;
|
23
|
+
tip: string;
|
24
|
+
limit: number;
|
25
|
+
draggable: boolean;
|
26
|
+
fileList: import('./type').FileItem[];
|
27
|
+
defaultFileList: import('./type').FileItem[];
|
28
|
+
directory: boolean;
|
29
|
+
listType: import('./type').FileListType;
|
30
|
+
imageLoading: import('./type').ImageLoading;
|
31
|
+
download: boolean;
|
32
|
+
showLink: boolean;
|
33
|
+
customIcon: import('./type').CustomIcon;
|
34
|
+
showRemoveButton: boolean;
|
35
|
+
showPreviewButton: boolean;
|
36
|
+
accept: string;
|
37
|
+
showFileList: boolean;
|
38
|
+
showUploadButton: boolean;
|
39
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
40
|
+
uploadRef: HTMLDivElement;
|
41
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
42
|
+
P: {};
|
43
|
+
B: {};
|
44
|
+
D: {};
|
45
|
+
C: {};
|
46
|
+
M: {};
|
47
|
+
Defaults: {};
|
48
|
+
}, Readonly<import('./type').UploadProps> & Readonly<{
|
49
|
+
onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
50
|
+
onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
|
51
|
+
"onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
|
52
|
+
"onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
53
|
+
}>, {
|
54
|
+
updateFile: (id: string, File: File) => void;
|
55
|
+
upload: (files: File[]) => void;
|
56
|
+
}, {}, {}, {}, {
|
57
|
+
name: import('./type').FileName;
|
58
|
+
disabled: boolean;
|
59
|
+
multiple: boolean;
|
60
|
+
tip: string;
|
61
|
+
limit: number;
|
62
|
+
draggable: boolean;
|
63
|
+
fileList: import('./type').FileItem[];
|
64
|
+
defaultFileList: import('./type').FileItem[];
|
65
|
+
directory: boolean;
|
66
|
+
listType: import('./type').FileListType;
|
67
|
+
imageLoading: import('./type').ImageLoading;
|
68
|
+
download: boolean;
|
69
|
+
showLink: boolean;
|
70
|
+
customIcon: import('./type').CustomIcon;
|
71
|
+
showRemoveButton: boolean;
|
72
|
+
showPreviewButton: boolean;
|
73
|
+
accept: string;
|
74
|
+
showFileList: boolean;
|
75
|
+
showUploadButton: boolean;
|
76
|
+
}>;
|
77
|
+
__isFragment?: never;
|
78
|
+
__isTeleport?: never;
|
79
|
+
__isSuspense?: never;
|
80
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./type').UploadProps> & Readonly<{
|
81
|
+
onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
82
|
+
onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
|
83
|
+
"onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
|
84
|
+
"onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
85
|
+
}>, {
|
86
|
+
updateFile: (id: string, File: File) => void;
|
87
|
+
upload: (files: File[]) => void;
|
88
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
89
|
+
change: (fileList: import('./type').FileItem[], files: File[]) => any;
|
90
|
+
preview: (fileItem: import('./type').FileItem) => any;
|
91
|
+
"update:fileList": (value: import('./type').FileItem[]) => any;
|
92
|
+
"exceed-limit": (fileList: import('./type').FileItem[], files: File[]) => any;
|
93
|
+
}, string, {
|
94
|
+
name: import('./type').FileName;
|
95
|
+
disabled: boolean;
|
96
|
+
multiple: boolean;
|
97
|
+
tip: string;
|
98
|
+
limit: number;
|
99
|
+
draggable: boolean;
|
100
|
+
fileList: import('./type').FileItem[];
|
101
|
+
defaultFileList: import('./type').FileItem[];
|
102
|
+
directory: boolean;
|
103
|
+
listType: import('./type').FileListType;
|
104
|
+
imageLoading: import('./type').ImageLoading;
|
105
|
+
download: boolean;
|
106
|
+
showLink: boolean;
|
107
|
+
customIcon: import('./type').CustomIcon;
|
108
|
+
showRemoveButton: boolean;
|
109
|
+
showPreviewButton: boolean;
|
110
|
+
accept: string;
|
111
|
+
showFileList: boolean;
|
112
|
+
showUploadButton: boolean;
|
113
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
114
|
+
$slots: any;
|
115
|
+
}) & {
|
116
|
+
install: (app: App) => void;
|
117
|
+
};
|
118
|
+
declare module 'vue' {
|
119
|
+
interface GlobalComponents {
|
120
|
+
YcUpload: typeof Upload;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
export default Upload;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Upload.vue.js");;/* empty css */const t=Object.assign(e.default,{install:t=>{t.component("Yc"+e.default.name,e.default)}});exports.default=t;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { RenderFunction, VNode } from 'vue';
|
2
|
+
export interface UploadProps {
|
3
|
+
fileList?: FileItem[];
|
4
|
+
defaultFileList?: FileItem[];
|
5
|
+
accept?: string;
|
6
|
+
disabled?: boolean;
|
7
|
+
multiple?: boolean;
|
8
|
+
directory?: boolean;
|
9
|
+
draggable?: boolean;
|
10
|
+
tip?: string;
|
11
|
+
name?: FileName;
|
12
|
+
limit?: number;
|
13
|
+
showFileList?: boolean;
|
14
|
+
showRemoveButton?: boolean;
|
15
|
+
showUploadButton?: boolean;
|
16
|
+
showPreviewButton?: boolean;
|
17
|
+
download?: boolean;
|
18
|
+
showLink?: boolean;
|
19
|
+
imageLoading?: ImageLoading;
|
20
|
+
listType?: FileListType;
|
21
|
+
customIcon?: CustomIcon;
|
22
|
+
imagePreview?: boolean;
|
23
|
+
}
|
24
|
+
export interface UploadEmits {
|
25
|
+
(e: 'update:fileList', value: FileItem[]): void;
|
26
|
+
(e: 'exceed-limit', fileList: FileItem[], files: File[]): void;
|
27
|
+
(e: 'change', fileList: FileItem[], files: File[]): void;
|
28
|
+
(e: 'preview', fileItem: FileItem): void;
|
29
|
+
}
|
30
|
+
export interface UploadSlots {
|
31
|
+
['extra-button']?: (scope: {
|
32
|
+
fileItem: FileItem;
|
33
|
+
}) => VNode[];
|
34
|
+
image?: (scope: {
|
35
|
+
fileItem: FileItem;
|
36
|
+
}) => VNode[];
|
37
|
+
['file-name']?: (scope: {
|
38
|
+
fileItem: FileItem;
|
39
|
+
}) => VNode[];
|
40
|
+
['file-icon']?: (scope: {
|
41
|
+
fileItem: FileItem;
|
42
|
+
}) => VNode[];
|
43
|
+
['remove-icon']?: () => VNode;
|
44
|
+
['preview-icon']?: () => VNode[];
|
45
|
+
['upload-button']?: () => VNode[];
|
46
|
+
['upload-item']?: (scope: {
|
47
|
+
fileItem: FileItem;
|
48
|
+
index: number;
|
49
|
+
}) => VNode[];
|
50
|
+
}
|
51
|
+
export interface UploadExpose {
|
52
|
+
updateFile: (id: string, File: File) => void;
|
53
|
+
upload: (files: File[]) => void;
|
54
|
+
}
|
55
|
+
export type FileStatus = 'init' | 'uploading' | 'done' | 'error' | 'removed';
|
56
|
+
export type FileName = string | ((fileItem: FileItem) => string);
|
57
|
+
export type FileListType = 'text' | 'picture' | 'picture-card';
|
58
|
+
export type ImageLoading = 'eager' | 'lazy';
|
59
|
+
export type FileItem = {
|
60
|
+
uid: string;
|
61
|
+
name: string;
|
62
|
+
status: FileStatus;
|
63
|
+
file: File;
|
64
|
+
percent: number;
|
65
|
+
url: string;
|
66
|
+
};
|
67
|
+
export type CustomIcon = {
|
68
|
+
fileIcon?: (fileItem: FileItem) => VNode;
|
69
|
+
fileName?: (fileItem: FileItem) => string | VNode;
|
70
|
+
removeIcon?: RenderFunction;
|
71
|
+
previewIcon?: RenderFunction;
|
72
|
+
};
|
@@ -14,9 +14,9 @@ declare const VerificationCode: {
|
|
14
14
|
"update:modelValue": (value: string) => any;
|
15
15
|
finish: (value: string) => any;
|
16
16
|
}, import('vue').PublicProps, {
|
17
|
+
error: boolean;
|
17
18
|
length: number;
|
18
19
|
size: import('..').Size;
|
19
|
-
error: boolean;
|
20
20
|
disabled: boolean;
|
21
21
|
modelValue: string;
|
22
22
|
defaultValue: string;
|
@@ -34,9 +34,9 @@ declare const VerificationCode: {
|
|
34
34
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
35
35
|
onFinish?: ((value: string) => any) | undefined;
|
36
36
|
}>, {}, {}, {}, {}, {
|
37
|
+
error: boolean;
|
37
38
|
length: number;
|
38
39
|
size: import('..').Size;
|
39
|
-
error: boolean;
|
40
40
|
disabled: boolean;
|
41
41
|
modelValue: string;
|
42
42
|
defaultValue: string;
|
@@ -56,9 +56,9 @@ declare const VerificationCode: {
|
|
56
56
|
"update:modelValue": (value: string) => any;
|
57
57
|
finish: (value: string) => any;
|
58
58
|
}, string, {
|
59
|
+
error: boolean;
|
59
60
|
length: number;
|
60
61
|
size: import('..').Size;
|
61
|
-
error: boolean;
|
62
62
|
disabled: boolean;
|
63
63
|
modelValue: string;
|
64
64
|
defaultValue: string;
|
@@ -10,9 +10,9 @@ declare const _default: import('vue').DefineComponent<VerificationCodeProps, {},
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
11
11
|
onFinish?: ((value: string) => any) | undefined;
|
12
12
|
}>, {
|
13
|
+
error: boolean;
|
13
14
|
length: number;
|
14
15
|
size: import('..').Size;
|
15
|
-
error: boolean;
|
16
16
|
disabled: boolean;
|
17
17
|
modelValue: string;
|
18
18
|
defaultValue: string;
|
@@ -9,8 +9,8 @@ export interface VerificationCodeProps {
|
|
9
9
|
masked?: boolean;
|
10
10
|
readonly?: boolean;
|
11
11
|
error?: boolean;
|
12
|
-
separator?:
|
13
|
-
formatter?:
|
12
|
+
separator?: Separator;
|
13
|
+
formatter?: Formatter;
|
14
14
|
}
|
15
15
|
export interface VerificationCodeEmits {
|
16
16
|
(e: 'update:modelValue', value: string): void;
|
@@ -18,5 +18,6 @@ export interface VerificationCodeEmits {
|
|
18
18
|
(e: 'change', value: string): void;
|
19
19
|
(e: 'finish', value: string): void;
|
20
20
|
}
|
21
|
-
|
22
|
-
|
21
|
+
type Separator = (index: number, character: string) => VNode;
|
22
|
+
type Formatter = (inputValue: string, index: number, value: string) => string;
|
23
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../_shared/utils/is.js"),a=require("../node_modules/@vueuse/core/index.js"),l=e.defineComponent({name:"Watermark",__name:"index",props:{content:{default:""},image:{default:""},width:{default:void 0},height:{default:void 0},gap:{default:()=>[90,90]},offset:{default:()=>[45,45]},rotate:{default:-22},font:{default:()=>({color:"rgba(0, 0, 0, 0.15)",fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",textAlign:"center",fontWeight:"normal"})},zIndex:{default:6},alpha:{default:1},grayscale:{type:Boolean,default:!1},repeat:{type:Boolean,default:!0},staggered:{type:Boolean,default:!0},antiTamper:{type:Boolean,default:!0}},setup(l){const o=l,{width:r,height:n,alpha:u,image:v,grayscale:i,rotate:d,repeat:s,staggered:c,antiTamper:f,zIndex:p}=e.toRefs(o),m=e.ref(),g=window.devicePixelRatio||1,h=e.ref(new Map),x=e.computed(()=>{var e;return null==(e=o.font)?void 0:e.color}),y=e.computed(()=>{var e;return(null==(e=o.font)?void 0:e.fontSize)??16}),$=e.computed(()=>{var e;return(null==(e=o.font)?void 0:e.fontWeight)??"normal"}),b=e.computed(()=>{var e;return(null==(e=o.font)?void 0:e.fontStyle)??"normal"}),w=e.computed(()=>{var e;return(null==(e=o.font)?void 0:e.fontFamily)??"sans-serif"}),k=e.computed(()=>{var e;return(null==(e=o.font)?void 0:e.textAlign)??"center"}),I=e.computed(()=>t.isArray(o.content)?o.content:[o.content]),A=e.computed(()=>{var e;return(null==(e=o.gap)?void 0:e[0])??90}),S=e.computed(()=>{var e;return(null==(e=o.gap)?void 0:e[1])??90}),M=e.computed(()=>A.value/2),z=e.computed(()=>S.value/2),B=e.computed(()=>{var e;return(null==(e=o.offset)?void 0:e[0])??M.value}),_=e.computed(()=>{var e;return(null==(e=o.offset)?void 0:e[1])??z.value}),T=e.computed(()=>{const e=B.value-M.value,t=_.value-z.value;return{position:"absolute",left:e>0?`${e}px`:0,top:t>0?`${t}px`:0,width:e>0?`calc(100% - ${e}px)`:"100%",height:t>0?`calc(100% - ${t}px)`:"100%",pointerEvents:"none",backgroundRepeat:o.repeat?"repeat":"no-repeat",backgroundPosition:`${e>0?0:e}px ${t>0?0:t}px`,zIndex:p.value??6}}),j=e.computed(()=>c.value&&s.value);const C=(e,t)=>{var a,l;if(m.value){const o=h.value.get(m.value);o&&(m.value.contains(o)&&m.value.removeChild(o),h.value.delete(m.value));const r=document.createElement("div");r.setAttribute("style",(l={...T.value,backgroundImage:`url('${e}')`,backgroundSize:`${t}px`},Object.entries(l).map(([e,t])=>{return`${a=e,a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${t}`;var a}).join(";"))),null==(a=m.value)||a.append(r),h.value.set(m.value,r)}},E=()=>{var e;const t=document.createElement("canvas"),a=t.getContext("2d");if(!a)return;const[l,o]=(e=>{let t=120,a=28;if(!v.value&&e.measureText){e.font=`${y.value}px ${w.value}`;const l=I.value.map(t=>e.measureText(t).width);t=Math.ceil(Math.max(...l)),a=y.value*I.value.length+3*(I.value.length-1)}return[r.value??t,n.value??a]})(a),s=l*g,c=o*g,f=(A.value+l)*g,p=(S.value+o)*g,m=A.value/2*g,h=S.value/2*g,M=f/2,z=p/2,B=j.value?2:1,_=(A.value+l)*B;t.width=f*B,t.height=p*B,a.globalAlpha=u.value,a.save(),a.translate(M,z),a.rotate(Math.PI/180*d.value),a.translate(-M,-z);const T=()=>{a.restore(),j.value&&a.drawImage(t,0,0,f,p,f,p,f,p),i.value&&function(e){const t=e.getContext("2d");if(!t)return;const a=t.getImageData(0,0,e.width,e.height),{data:l}=a;for(let o=0;o<l.length;o+=4){const e=(l[o]+l[o+1]+l[o+2])/3;l[o]=e,l[o+1]=e,l[o+2]=e}t.putImageData(a,0,0)}(t),C(t.toDataURL(),_)};if(v.value){const e=new Image;e.onload=()=>{a.drawImage(e,m,h,s,c),T()},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=v.value}else{const t=Number(y.value)*g;a.font=`${b.value} normal ${$.value} ${t}px/${o}px ${w.value}`,a.fillStyle=x.value,a.textAlign=k.value,a.textBaseline="top",a.translate(s/2,0),null==(e=I.value)||e.forEach((e,l)=>{a.fillText(e??"",m,h+l*(t+3*g))}),T()}},P=e=>Array.from(h.value.values()).includes(e);return e.watch(o,E,{deep:!0,flush:"post"}),a.useMutationObserver(m,e=>{if(f.value)for(const t of e){const e=Array.from(t.removedNodes).some(e=>P(e)),a="attributes"===t.type&&P(t.target);if(e||a){E();break}}},{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.onMounted(()=>{E()}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-watermark",ref_key:"containerRef",ref:m},[e.renderSlot(t.$slots,"default")],512))}});exports.default=l;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const n=require("../components/Icon/index.vue3.js");;/* empty css */const o=e.defineComponent({__name:"IconDelete",setup:o=>(o,t)=>(e.openBlock(),e.createBlock(e.unref(n.default),e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)])]),_:1},16))});exports.default=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconDelete.vue.js");exports.default=e.default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconEyeOpen.vue2.js");exports.default=e.default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const n=require("../components/Icon/index.vue3.js");;/* empty css */const t=e.defineComponent({__name:"IconEyeOpen",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(e.unref(n.default),e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),e.createElementVNode("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)])]),_:1},16))});exports.default=t;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const n=require("../components/Icon/index.vue3.js");;/* empty css */const o=e.defineComponent({__name:"IconFile",setup:o=>(o,t)=>(e.openBlock(),e.createBlock(e.unref(n.default),e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)])]),_:1},16))});exports.default=o;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconFile.vue.js");exports.default=e.default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconSeparator.vue2.js");exports.default=e.default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const o=require("../components/Icon/index.vue3.js");;/* empty css */const n=e.defineComponent({__name:"IconSeparator",setup:n=>(n,t)=>(e.openBlock(),e.createBlock(e.unref(o.default),e.normalizeProps(e.guardReactiveProps(n.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)])]),_:1},16))});exports.default=n;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const o=require("../components/Icon/index.vue3.js");;/* empty css */const n=e.defineComponent({__name:"IconUpload",setup:n=>(n,t)=>(e.openBlock(),e.createBlock(e.unref(o.default),e.normalizeProps(e.guardReactiveProps(n.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)])]),_:1},16))});exports.default=n;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconUpload.vue.js");exports.default=e.default;
|
@@ -37,3 +37,5 @@ export { default as IconToTop } from './IconToTop.vue';
|
|
37
37
|
export { default as IconWarning } from './IconWarning.vue';
|
38
38
|
export { default as IconZoomIn } from './IconZoomIn.vue';
|
39
39
|
export { default as IconZoomOut } from './IconZoomOut.vue';
|
40
|
+
export { default as IconUpload } from './IconUpload.vue';
|
41
|
+
export { default as IconFile } from './IconFile.vue';
|
@@ -18,7 +18,9 @@ export type PopupContainer = string | HTMLElement;
|
|
18
18
|
export type PopupMaxHeight = boolean | number;
|
19
19
|
export type EventTrigger = 'click' | 'hover';
|
20
20
|
export type PopupPosition = 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';
|
21
|
-
export type
|
21
|
+
export type Position = 'left' | 'right' | 'top' | 'bottom';
|
22
|
+
export type Type<T = never> = 'success' | 'warning' | 'error' | 'info' | T;
|
23
|
+
export type Status<T = never> = 'success' | 'warning' | 'danger' | 'normal' | T;
|
22
24
|
export type ClassName = string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
23
25
|
export type RenderContent = string | RecordType[] | RenderFunction;
|
24
26
|
export type RecordType<T = any> = Record<string, T>;
|
@@ -10,18 +10,3 @@ export declare function isDate(value: unknown): value is Date;
|
|
10
10
|
export declare function isFunction(value: unknown): value is Function;
|
11
11
|
export declare function isArray(value: unknown): value is Array<unknown>;
|
12
12
|
export declare function isObject(value: unknown): value is Record<string, unknown>;
|
13
|
-
declare const _default: {
|
14
|
-
element: typeof isElement;
|
15
|
-
null: typeof isNull;
|
16
|
-
undefined: typeof isUndefined;
|
17
|
-
nan: typeof isNaN;
|
18
|
-
number: typeof isNumber;
|
19
|
-
string: typeof isString;
|
20
|
-
boolean: typeof isBoolean;
|
21
|
-
regexp: typeof isRegExp;
|
22
|
-
date: typeof isDate;
|
23
|
-
function: typeof isFunction;
|
24
|
-
array: typeof isArray;
|
25
|
-
object: typeof isObject;
|
26
|
-
};
|
27
|
-
export default _default;
|
@@ -4,3 +4,4 @@ export declare const getSlotFunction: (param: RenderContent | undefined) => impo
|
|
4
4
|
export declare const isVifNode: (vnode: VNode | undefined | null) => boolean;
|
5
5
|
export declare const findFirstLegitChild: (node: VNode[] | undefined) => VNode | null;
|
6
6
|
export declare const findComponentsFromVnodes: (vnodes: VNode[], name?: string) => RecordType[];
|
7
|
+
export { unrefElement, createReusableTemplate, useEventListener, useResizeObserver, useDraggable, useElementBounding, useElementSize, useMediaQuery, useMutationObserver, useClipboard, onClickOutside, useTimeoutFn, onKeyStroke, useVirtualList, useScroll, useDropZone, useFileDialog, } from '@vueuse/core';
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});exports.default=(e,t)=>{const o=e.__vccOpts||e;for(const[r,s]of t)o[r]=s;return o};
|