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
@@ -27,10 +27,10 @@ declare function __VLS_template(): {
|
|
27
27
|
readonly invisibleButton?: boolean | undefined;
|
28
28
|
readonly showInput?: boolean | undefined;
|
29
29
|
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
30
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
31
30
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
32
31
|
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
33
32
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
33
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
34
34
|
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
35
35
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
36
36
|
readonly "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
@@ -51,14 +51,14 @@ declare function __VLS_template(): {
|
|
51
51
|
$root: import('vue').ComponentPublicInstance | null;
|
52
52
|
$parent: import('vue').ComponentPublicInstance | null;
|
53
53
|
$host: Element | null;
|
54
|
-
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "
|
54
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:visibility", value: boolean) => void) & ((event: "visibility-change", value: boolean) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
55
55
|
$el: HTMLDivElement;
|
56
56
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Input').InputProps> & Readonly<{
|
57
57
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
58
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
59
58
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
60
59
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
61
60
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
61
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
62
62
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
63
63
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
64
64
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
@@ -70,18 +70,18 @@ declare function __VLS_template(): {
|
|
70
70
|
getInputRef(): HTMLInputElement;
|
71
71
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
72
72
|
change: (value: string, ev: Event) => any;
|
73
|
-
focus: (ev: FocusEvent) => any;
|
74
73
|
clear: (ev: MouseEvent) => any;
|
75
74
|
input: (value: string, ev: Event) => any;
|
76
75
|
blur: (ev: FocusEvent) => any;
|
76
|
+
focus: (ev: FocusEvent) => any;
|
77
77
|
keydown: (ev: KeyboardEvent) => any;
|
78
78
|
"update:modelValue": (value: string) => any;
|
79
79
|
"update:visibility": (value: boolean) => any;
|
80
80
|
"visibility-change": (value: boolean) => any;
|
81
81
|
pressEnter: (ev: KeyboardEvent) => any;
|
82
82
|
}, string, {
|
83
|
-
size: import('..').Size;
|
84
83
|
error: boolean;
|
84
|
+
size: import('..').Size;
|
85
85
|
disabled: boolean;
|
86
86
|
placeholder: string;
|
87
87
|
modelValue: string;
|
@@ -119,8 +119,8 @@ declare function __VLS_template(): {
|
|
119
119
|
$nextTick: typeof import('vue').nextTick;
|
120
120
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
121
121
|
} & Readonly<{
|
122
|
-
size: import('..').Size;
|
123
122
|
error: boolean;
|
123
|
+
size: import('..').Size;
|
124
124
|
disabled: boolean;
|
125
125
|
placeholder: string;
|
126
126
|
modelValue: string;
|
@@ -139,16 +139,16 @@ declare function __VLS_template(): {
|
|
139
139
|
showInput: boolean;
|
140
140
|
}> & Omit<Readonly<import('../Input').InputProps> & Readonly<{
|
141
141
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
142
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
143
142
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
144
143
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
145
144
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
145
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
146
146
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
147
147
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
148
148
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
149
149
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
150
150
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
151
|
-
}>, "
|
151
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
152
152
|
focus(): void;
|
153
153
|
blur(): void;
|
154
154
|
getInputRef(): HTMLInputElement;
|
@@ -175,7 +175,7 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
175
175
|
"onEdit-end"?: (() => any) | undefined;
|
176
176
|
}>, {
|
177
177
|
delete: boolean;
|
178
|
-
type:
|
178
|
+
type: "success" | "warning" | "danger" | "primary" | "secondary";
|
179
179
|
code: boolean;
|
180
180
|
mark: boolean;
|
181
181
|
bold: boolean;
|
@@ -215,10 +215,10 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
215
215
|
readonly invisibleButton?: boolean | undefined;
|
216
216
|
readonly showInput?: boolean | undefined;
|
217
217
|
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
218
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
219
218
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
220
219
|
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
221
220
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
221
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
222
222
|
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
223
223
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
224
224
|
readonly "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
@@ -239,14 +239,14 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
239
239
|
$root: import('vue').ComponentPublicInstance | null;
|
240
240
|
$parent: import('vue').ComponentPublicInstance | null;
|
241
241
|
$host: Element | null;
|
242
|
-
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "
|
242
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:visibility", value: boolean) => void) & ((event: "visibility-change", value: boolean) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
243
243
|
$el: HTMLDivElement;
|
244
244
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Input').InputProps> & Readonly<{
|
245
245
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
246
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
247
246
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
248
247
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
249
248
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
249
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
250
250
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
251
251
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
252
252
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
@@ -258,18 +258,18 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
258
258
|
getInputRef(): HTMLInputElement;
|
259
259
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
260
260
|
change: (value: string, ev: Event) => any;
|
261
|
-
focus: (ev: FocusEvent) => any;
|
262
261
|
clear: (ev: MouseEvent) => any;
|
263
262
|
input: (value: string, ev: Event) => any;
|
264
263
|
blur: (ev: FocusEvent) => any;
|
264
|
+
focus: (ev: FocusEvent) => any;
|
265
265
|
keydown: (ev: KeyboardEvent) => any;
|
266
266
|
"update:modelValue": (value: string) => any;
|
267
267
|
"update:visibility": (value: boolean) => any;
|
268
268
|
"visibility-change": (value: boolean) => any;
|
269
269
|
pressEnter: (ev: KeyboardEvent) => any;
|
270
270
|
}, string, {
|
271
|
-
size: import('..').Size;
|
272
271
|
error: boolean;
|
272
|
+
size: import('..').Size;
|
273
273
|
disabled: boolean;
|
274
274
|
placeholder: string;
|
275
275
|
modelValue: string;
|
@@ -307,8 +307,8 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
307
307
|
$nextTick: typeof import('vue').nextTick;
|
308
308
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
309
309
|
} & Readonly<{
|
310
|
-
size: import('..').Size;
|
311
310
|
error: boolean;
|
311
|
+
size: import('..').Size;
|
312
312
|
disabled: boolean;
|
313
313
|
placeholder: string;
|
314
314
|
modelValue: string;
|
@@ -327,16 +327,16 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
327
327
|
showInput: boolean;
|
328
328
|
}> & Omit<Readonly<import('../Input').InputProps> & Readonly<{
|
329
329
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
330
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
331
330
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
332
331
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
333
332
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
333
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
334
334
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
335
335
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
336
336
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
337
337
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
338
338
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
339
|
-
}>, "
|
339
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
340
340
|
focus(): void;
|
341
341
|
blur(): void;
|
342
342
|
getInputRef(): HTMLInputElement;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, unref, withCtx, createElementBlock, createCommentVNode, isRef, renderSlot, createVNode, mergeProps, createElementVNode, createTextVNode, toDisplayString, h } from "vue";
|
2
|
-
import { useClipboard } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import { getDomText, sleep } from "../_shared/utils/dom.js";
|
4
3
|
import { useI18n } from "../_shared/utils/locale.js";
|
5
4
|
import { useControlValue } from "../_shared/utils/control.js";
|
5
|
+
import { useClipboard } from "../node_modules/@vueuse/core/index.js";
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<TypographyParagraphProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyParagraphProps> & Readonly<{}>, {
|
10
10
|
blockquote: boolean;
|
11
|
-
spacing:
|
11
|
+
spacing: "close" | "default";
|
12
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
13
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
14
14
|
export default _default;
|
@@ -7,7 +7,7 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<TypographyTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyTitleProps> & Readonly<{}>, {
|
10
|
-
heading:
|
10
|
+
heading: 1 | 2 | 3 | 4 | 5 | 6;
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
12
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
13
13
|
export default _default;
|
package/es/Typography/type.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { TooltipProps } from '../Tooltip';
|
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface TypographyBaseProps {
|
4
4
|
tag?: string;
|
5
|
-
type?:
|
5
|
+
type?: BaseType;
|
6
6
|
bold?: boolean;
|
7
7
|
disabled?: boolean;
|
8
8
|
mark?: boolean;
|
@@ -43,6 +43,7 @@ export interface TypographyParagraphProps {
|
|
43
43
|
export interface TypographyTitleProps {
|
44
44
|
heading?: Heading;
|
45
45
|
}
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
type Heading = 1 | 2 | 3 | 4 | 5 | 6;
|
47
|
+
type Spacing = 'default' | 'close';
|
48
|
+
type BaseType = 'success' | 'warning' | 'danger' | 'primary' | 'secondary';
|
49
|
+
export {};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { UploadProps } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: any;
|
5
|
+
refs: {
|
6
|
+
uploadRef: HTMLDivElement;
|
7
|
+
};
|
8
|
+
rootEl: HTMLDivElement;
|
9
|
+
};
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<UploadProps, {
|
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
|
+
}, string, import('vue').PublicProps, Readonly<UploadProps> & Readonly<{
|
20
|
+
onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
21
|
+
onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
|
22
|
+
"onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
|
23
|
+
"onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
24
|
+
}>, {
|
25
|
+
name: import('./type').FileName;
|
26
|
+
disabled: boolean;
|
27
|
+
multiple: boolean;
|
28
|
+
tip: string;
|
29
|
+
limit: number;
|
30
|
+
draggable: boolean;
|
31
|
+
fileList: import('./type').FileItem[];
|
32
|
+
defaultFileList: import('./type').FileItem[];
|
33
|
+
directory: boolean;
|
34
|
+
listType: import('./type').FileListType;
|
35
|
+
imageLoading: import('./type').ImageLoading;
|
36
|
+
download: boolean;
|
37
|
+
showLink: boolean;
|
38
|
+
customIcon: import('./type').CustomIcon;
|
39
|
+
showRemoveButton: boolean;
|
40
|
+
showPreviewButton: boolean;
|
41
|
+
accept: string;
|
42
|
+
showFileList: boolean;
|
43
|
+
showUploadButton: boolean;
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
45
|
+
uploadRef: HTMLDivElement;
|
46
|
+
}, HTMLDivElement>;
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
48
|
+
export default _default;
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
50
|
+
new (): {
|
51
|
+
$slots: S;
|
52
|
+
};
|
53
|
+
};
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeClass, unref, createBlock, Fragment, createCommentVNode, renderSlot, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
|
2
|
+
import useUpload from "./hooks/useUpload.js";
|
3
|
+
import _sfc_main$2 from "./UploadButton.vue.js";
|
4
|
+
/* empty css */
|
5
|
+
import _sfc_main$1 from "./UploadDrag.vue.js";
|
6
|
+
/* empty css */
|
7
|
+
import UploadFileList from "./UploadFileList.vue.js";
|
8
|
+
import UploadPictureCard from "./UploadPictureCard.vue.js";
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
+
...{
|
11
|
+
name: "Upload"
|
12
|
+
},
|
13
|
+
__name: "Upload",
|
14
|
+
props: {
|
15
|
+
fileList: { default: void 0 },
|
16
|
+
defaultFileList: { default: () => [] },
|
17
|
+
accept: { default: void 0 },
|
18
|
+
disabled: { type: Boolean, default: false },
|
19
|
+
multiple: { type: Boolean, default: false },
|
20
|
+
directory: { type: Boolean, default: false },
|
21
|
+
draggable: { type: Boolean, default: false },
|
22
|
+
tip: { default: "" },
|
23
|
+
name: { type: [String, Function], default: void 0 },
|
24
|
+
limit: { default: 0 },
|
25
|
+
showFileList: { type: Boolean, default: true },
|
26
|
+
showRemoveButton: { type: Boolean, default: true },
|
27
|
+
showUploadButton: { type: Boolean, default: true },
|
28
|
+
showPreviewButton: { type: Boolean, default: true },
|
29
|
+
download: { type: Boolean, default: false },
|
30
|
+
showLink: { type: Boolean, default: true },
|
31
|
+
imageLoading: { default: "lazy" },
|
32
|
+
listType: { default: "text" },
|
33
|
+
customIcon: { default: () => ({}) },
|
34
|
+
imagePreview: { type: Boolean }
|
35
|
+
},
|
36
|
+
emits: ["update:fileList", "exceed-limit", "change", "preview"],
|
37
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
38
|
+
const $slots = useSlots();
|
39
|
+
const props = __props;
|
40
|
+
const emits = __emit;
|
41
|
+
const uploadRef = ref();
|
42
|
+
const { computedFileList, limit, draggable, disabled, handleFiles, open } = useUpload(uploadRef, props, emits);
|
43
|
+
__expose({
|
44
|
+
updateFile(id, file) {
|
45
|
+
const index = computedFileList.value.findIndex((item) => item.uid == id);
|
46
|
+
if (index == -1) return;
|
47
|
+
computedFileList.value[index] = {
|
48
|
+
...computedFileList.value[index],
|
49
|
+
name: file.name,
|
50
|
+
file,
|
51
|
+
status: "init",
|
52
|
+
percent: 0,
|
53
|
+
url: URL.createObjectURL(file)
|
54
|
+
};
|
55
|
+
},
|
56
|
+
upload(files) {
|
57
|
+
handleFiles(files);
|
58
|
+
}
|
59
|
+
});
|
60
|
+
return (_ctx, _cache) => {
|
61
|
+
return openBlock(), createElementBlock("div", {
|
62
|
+
class: normalizeClass([
|
63
|
+
"yc-upload-wrapper",
|
64
|
+
`yc-upload-wrapper-type-${_ctx.listType}`,
|
65
|
+
{
|
66
|
+
"yc-upload-disabled": unref(disabled)
|
67
|
+
}
|
68
|
+
])
|
69
|
+
}, [
|
70
|
+
_ctx.listType != "picture-card" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
71
|
+
_ctx.showUploadButton ? (openBlock(), createElementBlock("div", {
|
72
|
+
key: 0,
|
73
|
+
class: normalizeClass([
|
74
|
+
"yc-upload",
|
75
|
+
{
|
76
|
+
"yc-upload-draggable": unref(draggable)
|
77
|
+
}
|
78
|
+
]),
|
79
|
+
ref_key: "uploadRef",
|
80
|
+
ref: uploadRef,
|
81
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !unref(disabled) && unref(open)())
|
82
|
+
}, [
|
83
|
+
unref(limit) <= 0 || unref(computedFileList).length < unref(limit) ? renderSlot(_ctx.$slots, "upload-button", { key: 0 }, () => [
|
84
|
+
unref(draggable) ? (openBlock(), createBlock(_sfc_main$1, { key: 0 })) : (openBlock(), createBlock(_sfc_main$2, { key: 1 }))
|
85
|
+
]) : createCommentVNode("", true)
|
86
|
+
], 2)) : createCommentVNode("", true),
|
87
|
+
_ctx.showFileList && unref(computedFileList).length ? (openBlock(), createBlock(UploadFileList, { key: 1 }, createSlots({ _: 2 }, [
|
88
|
+
$slots["extra-button"] ? {
|
89
|
+
name: "extra-button",
|
90
|
+
fn: withCtx((scope) => [
|
91
|
+
renderSlot(_ctx.$slots, "extra-button", normalizeProps(guardReactiveProps(scope)))
|
92
|
+
]),
|
93
|
+
key: "0"
|
94
|
+
} : void 0,
|
95
|
+
$slots["upload-item"] ? {
|
96
|
+
name: "upload-item",
|
97
|
+
fn: withCtx((scope) => [
|
98
|
+
renderSlot(_ctx.$slots, "upload-item", normalizeProps(guardReactiveProps(scope)))
|
99
|
+
]),
|
100
|
+
key: "1"
|
101
|
+
} : void 0
|
102
|
+
]), 1024)) : createCommentVNode("", true)
|
103
|
+
], 64)) : (openBlock(), createBlock(UploadPictureCard, { key: 1 }))
|
104
|
+
], 2);
|
105
|
+
};
|
106
|
+
}
|
107
|
+
});
|
108
|
+
export {
|
109
|
+
_sfc_main as default
|
110
|
+
};
|
@@ -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, {}, HTMLDivElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createCommentVNode, unref, withCtx, createTextVNode, toDisplayString } from "vue";
|
2
|
+
import useUploadContext from "./hooks/useContext.js";
|
3
|
+
import "../_shared/utils/dom.js";
|
4
|
+
/* empty css */
|
5
|
+
/* empty css */
|
6
|
+
/* empty css */
|
7
|
+
import _sfc_main$1 from "../_shared/icons/IconUpload.vue.js";
|
8
|
+
import Button from "../Button/index.js";
|
9
|
+
const _hoisted_1 = { class: "yc-upload-button" };
|
10
|
+
const _hoisted_2 = {
|
11
|
+
key: 0,
|
12
|
+
class: "yc-upload-tip text-ellipsis"
|
13
|
+
};
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
|
+
__name: "UploadButton",
|
16
|
+
setup(__props) {
|
17
|
+
const { tip, disabled } = useUploadContext().inject();
|
18
|
+
return (_ctx, _cache) => {
|
19
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
20
|
+
createVNode(unref(Button), {
|
21
|
+
disabled: unref(disabled),
|
22
|
+
type: "primary"
|
23
|
+
}, {
|
24
|
+
icon: withCtx(() => [
|
25
|
+
createVNode(unref(_sfc_main$1))
|
26
|
+
]),
|
27
|
+
default: withCtx(() => [
|
28
|
+
_cache[0] || (_cache[0] = createTextVNode(" 点击上传 ", -1))
|
29
|
+
]),
|
30
|
+
_: 1
|
31
|
+
}, 8, ["disabled"]),
|
32
|
+
unref(tip) ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(tip)), 1)) : createCommentVNode("", true)
|
33
|
+
]);
|
34
|
+
};
|
35
|
+
}
|
36
|
+
});
|
37
|
+
export {
|
38
|
+
_sfc_main as default
|
39
|
+
};
|
@@ -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, {}, HTMLDivElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createVNode, toDisplayString } from "vue";
|
2
|
+
import useUploadContext from "./hooks/useContext.js";
|
3
|
+
import "../_shared/utils/dom.js";
|
4
|
+
/* empty css */
|
5
|
+
/* empty css */
|
6
|
+
/* empty css */
|
7
|
+
import _sfc_main$1 from "../_shared/icons/IconPlus.vue.js";
|
8
|
+
const _hoisted_1 = { class: "yc-upload-drag-icon" };
|
9
|
+
const _hoisted_2 = {
|
10
|
+
key: 0,
|
11
|
+
class: "yc-upload-tip text-ellipsis"
|
12
|
+
};
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
14
|
+
__name: "UploadDrag",
|
15
|
+
setup(__props) {
|
16
|
+
const { tip, disabled } = useUploadContext().inject();
|
17
|
+
return (_ctx, _cache) => {
|
18
|
+
return openBlock(), createElementBlock("div", {
|
19
|
+
class: normalizeClass([
|
20
|
+
"yc-upload-drag",
|
21
|
+
{
|
22
|
+
"yc-upload-drag-disabled": unref(disabled)
|
23
|
+
}
|
24
|
+
])
|
25
|
+
}, [
|
26
|
+
createElementVNode("div", _hoisted_1, [
|
27
|
+
createVNode(unref(_sfc_main$1))
|
28
|
+
]),
|
29
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "yc-upload-drag-text" }, "点击或拖拽文件到此处上传", -1)),
|
30
|
+
unref(tip) ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(tip)), 1)) : createCommentVNode("", true)
|
31
|
+
], 2);
|
32
|
+
};
|
33
|
+
}
|
34
|
+
});
|
35
|
+
export {
|
36
|
+
_sfc_main as default
|
37
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FileItem } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
'upload-item'?(_: {
|
6
|
+
fileItem: FileItem;
|
7
|
+
index: number;
|
8
|
+
}): any;
|
9
|
+
'extra-button'?(_: {
|
10
|
+
fileItem: FileItem;
|
11
|
+
}): any;
|
12
|
+
};
|
13
|
+
refs: {};
|
14
|
+
rootEl: HTMLDivElement;
|
15
|
+
};
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
19
|
+
export default _default;
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
21
|
+
new (): {
|
22
|
+
$slots: S;
|
23
|
+
};
|
24
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./UploadFileList.vue2.js";
|
2
|
+
/* empty css */
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const UploadFileList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-da3b0aaf"]]);
|
5
|
+
export {
|
6
|
+
UploadFileList as default
|
7
|
+
};
|