yc-design-vue 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -0
- package/dist/style.css +1 -0
- package/es/Affix/index.vue.js +1 -1
- package/es/Alert/index.d.ts +3 -3
- package/es/Alert/index.vue.d.ts +1 -1
- package/es/Alert/type.d.ts +2 -2
- package/es/Anchor/Anchor.vue.d.ts +1 -1
- package/es/Anchor/Anchor.vue.js +2 -2
- package/es/Anchor/AnchorLink.vue.js +2 -2
- package/es/Anchor/hooks/useContext.d.ts +3 -3
- package/es/Anchor/hooks/useContext.js +3 -3
- package/es/Anchor/index.d.ts +3 -3
- package/es/Anchor/type.d.ts +3 -2
- package/es/AutoComplete/index.d.ts +40 -31
- package/es/AutoComplete/index.vue.d.ts +72 -54
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/Avatar.vue.js +3 -3
- package/es/Avatar/AvatarGroup.vue.js +2 -2
- package/es/Avatar/hooks/useContext.d.ts +1 -2
- package/es/Avatar/hooks/useContext.js +3 -3
- package/es/Avatar/index.d.ts +3 -3
- package/es/Avatar/type.d.ts +3 -2
- package/es/BackTop/index.vue.js +1 -1
- package/es/Badge/index.d.ts +3 -3
- package/es/Badge/index.vue.d.ts +1 -1
- package/es/Badge/type.d.ts +2 -2
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/es/Button/Button.vue.d.ts +2 -2
- package/es/Button/Button.vue.js +2 -2
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/ButtonGroup.vue.js +2 -2
- package/es/Button/hooks/useContext.d.ts +4 -5
- package/es/Button/hooks/useContext.js +3 -3
- package/es/Button/index.d.ts +9 -9
- package/es/Button/type.d.ts +6 -6
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/Card.vue.js +2 -2
- package/es/Card/CardMeta.vue.js +2 -2
- package/es/Card/hooks/useContext.d.ts +2 -2
- package/es/Card/hooks/useContext.js +3 -3
- package/es/Card/index.d.ts +3 -3
- package/es/Card/type.d.ts +1 -2
- package/es/Carousel/Carousel.vue.d.ts +2 -2
- package/es/Carousel/Carousel.vue.js +2 -2
- package/es/Carousel/CarouselArrow.vue.js +2 -2
- package/es/Carousel/CarouselIndicator.vue.js +2 -2
- package/es/Carousel/CarouselItem.vue.js +2 -2
- package/es/Carousel/hooks/useContext.d.ts +5 -5
- package/es/Carousel/hooks/useContext.js +3 -3
- package/es/Carousel/index.d.ts +6 -6
- package/es/Carousel/type.d.ts +6 -6
- package/es/Cascader/Cascader.vue.d.ts +23 -23
- package/es/Cascader/Cascader.vue.js +2 -2
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +2 -2
- package/es/Cascader/CascaderPanel.vue.js +2 -2
- package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
- package/es/Cascader/hooks/useContext.d.ts +2 -2
- package/es/Cascader/hooks/useContext.js +3 -3
- package/es/Cascader/index.d.ts +26 -26
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Checkbox/CheckboxGroup.vue.js +2 -2
- package/es/Checkbox/hooks/useContext.d.ts +2 -2
- package/es/Checkbox/hooks/useContext.js +3 -3
- package/es/Collapse/Collapse.vue.js +2 -2
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/Collapse/hooks/useContext.d.ts +3 -15
- package/es/Collapse/hooks/useContext.js +3 -4
- package/es/Collapse/type.d.ts +2 -1
- package/es/ColorPicker/ColorControl.vue.js +1 -1
- package/es/ColorPicker/ColorPalette.vue.js +1 -1
- package/es/ColorPicker/ColorPanel.vue.js +2 -2
- package/es/ColorPicker/ColorPicker.vue.js +2 -2
- package/es/ColorPicker/hooks/useContext.d.ts +2 -2
- package/es/ColorPicker/hooks/useContext.js +3 -3
- package/es/Comment/hooks/useContext.d.ts +1 -2
- package/es/Comment/hooks/useContext.js +3 -3
- package/es/Comment/index.vue.js +2 -2
- package/es/Descriptions/Descriptions.vue.d.ts +3 -3
- package/es/Descriptions/Descriptions.vue.js +2 -2
- package/es/Descriptions/ReuseItem.vue.js +2 -2
- package/es/Descriptions/ReuseTd.vue.js +2 -2
- package/es/Descriptions/hooks/useContext.d.ts +3 -3
- package/es/Descriptions/hooks/useContext.js +3 -3
- package/es/Descriptions/index.d.ts +9 -9
- package/es/Descriptions/type.d.ts +7 -6
- package/es/Divider/index.d.ts +6 -6
- package/es/Divider/index.vue.d.ts +2 -2
- package/es/Divider/type.d.ts +4 -3
- package/es/Drawer/Drawer.vue.d.ts +1 -1
- package/es/Drawer/DrawerService.vue.d.ts +1 -1
- package/es/Drawer/index.d.ts +5 -9
- package/es/Drawer/type.d.ts +8 -4
- package/es/Dropdown/Doption.vue.js +2 -2
- package/es/Dropdown/Dropdown.vue.d.ts +3 -3
- package/es/Dropdown/Dropdown.vue.js +2 -2
- package/es/Dropdown/DropdownButton.vue.d.ts +3 -3
- package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/hooks/useContext.d.ts +2 -2
- package/es/Dropdown/hooks/useContext.js +3 -3
- package/es/Dropdown/index.d.ts +19 -19
- package/es/Dropdown/type.d.ts +4 -6
- package/es/Grid/Grid.vue.js +2 -2
- package/es/Grid/GridCol.vue.js +2 -2
- package/es/Grid/GridItem.vue.js +2 -2
- package/es/Grid/GridRow.vue.js +2 -2
- package/es/Grid/hooks/useContext.d.ts +1 -13
- package/es/Grid/hooks/useContext.js +3 -4
- package/es/Image/Image.vue.d.ts +2 -2
- package/es/Image/Image.vue.js +2 -2
- package/es/Image/ImagePreview.vue.js +2 -2
- package/es/Image/ImagePreviewGroup.vue.js +2 -2
- package/es/Image/hooks/useContext.d.ts +2 -2
- package/es/Image/hooks/useContext.js +3 -3
- package/es/Image/index.d.ts +6 -6
- package/es/Image/type.d.ts +3 -2
- package/es/Input/Input.vue.d.ts +3 -3
- package/es/Input/InputSuffix.vue.js +1 -1
- package/es/Input/index.d.ts +8 -8
- package/es/InputNumber/InputNumber.vue.d.ts +20 -20
- package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
- package/es/InputNumber/index.d.ts +19 -19
- package/es/InputNumber/type.d.ts +5 -4
- package/es/InputTag/index.d.ts +20 -11
- package/es/InputTag/index.vue.d.ts +7 -4
- package/es/InputTag/index.vue.js +1 -1
- package/es/InputTag/type.d.ts +2 -1
- package/es/Layout/LayoutSider.vue.d.ts +3 -3
- package/es/Layout/LayoutSider.vue.js +2 -2
- package/es/Layout/hooks/useSiderContext.d.ts +1 -2
- package/es/Layout/hooks/useSiderContext.js +3 -3
- package/es/Layout/index.d.ts +8 -8
- package/es/Layout/type.d.ts +3 -4
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/type.d.ts +2 -2
- package/es/List/List.vue.d.ts +7 -7
- package/es/List/hooks/useScrollReach.js +1 -0
- package/es/List/index.d.ts +6 -6
- package/es/List/type.d.ts +2 -3
- package/es/Mention/index.d.ts +49 -40
- package/es/Mention/index.vue.d.ts +85 -67
- package/es/Mention/type.d.ts +3 -2
- package/es/Menu/Menu.vue.d.ts +2 -2
- package/es/Menu/MenuItem.vue.js +1 -1
- package/es/Menu/hooks/useContext.d.ts +2 -2
- package/es/Menu/hooks/useContext.js +5 -5
- package/es/Menu/index.d.ts +5 -5
- package/es/Menu/type.d.ts +2 -2
- package/es/Message/type.d.ts +3 -3
- package/es/Modal/Modal.vue.d.ts +1 -1
- package/es/Modal/ModalService.vue.d.ts +1 -1
- package/es/Modal/index.d.ts +13 -13
- package/es/Modal/index.js +1 -4
- package/es/Modal/type.d.ts +6 -9
- package/es/Notification/Notification.vue.d.ts +1 -1
- package/es/Notification/index.d.ts +4 -4
- package/es/Notification/type.d.ts +3 -4
- package/es/OverflowList/index.d.ts +3 -3
- package/es/OverflowList/index.vue.d.ts +1 -1
- package/es/OverflowList/index.vue.js +2 -2
- package/es/OverflowList/type.d.ts +3 -2
- package/es/Pagination/Pagination.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +2 -2
- package/es/Pagination/hooks/useContext.d.ts +2 -2
- package/es/Pagination/hooks/useContext.js +3 -3
- package/es/Popconfirm/index.d.ts +8 -8
- package/es/Popconfirm/index.vue.d.ts +3 -3
- package/es/Popconfirm/type.d.ts +2 -3
- package/es/Progress/Progress.vue.d.ts +1 -1
- package/es/Progress/ProgressCircle.vue.d.ts +3 -3
- package/es/Progress/ProgressLine.vue.d.ts +3 -3
- package/es/Progress/index.d.ts +3 -3
- package/es/Progress/type.d.ts +2 -3
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Radio/RadioGroup.vue.js +2 -2
- package/es/Radio/hooks/useContext.d.ts +2 -2
- package/es/Radio/hooks/useContext.js +3 -3
- package/es/Radio/type.d.ts +1 -1
- package/es/ResizeBox/index.d.ts +3 -3
- package/es/ResizeBox/index.vue.d.ts +2 -2
- package/es/ResizeBox/type.d.ts +4 -4
- package/es/Result/index.d.ts +3 -3
- package/es/Result/index.vue.d.ts +1 -1
- package/es/Result/type.d.ts +3 -2
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/Scrollbar.vue.js +2 -2
- package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
- package/es/Scrollbar/hooks/useContext.d.ts +2 -2
- package/es/Scrollbar/hooks/useContext.js +3 -3
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Scrollbar/type.d.ts +2 -1
- package/es/Select/Option.vue.js +2 -2
- package/es/Select/Select.vue.d.ts +45 -27
- package/es/Select/Select.vue.js +2 -2
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Select/SelectRealList.vue.js +2 -2
- package/es/Select/SelectView.vue.js +2 -2
- package/es/Select/SelectVirtualList.vue.js +3 -3
- package/es/Select/hooks/useContext.d.ts +4 -4
- package/es/Select/hooks/useContext.js +3 -3
- package/es/Select/hooks/useSelectOptions.d.ts +2 -2
- package/es/Select/index.d.ts +33 -24
- package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
- package/es/Skeleton/index.d.ts +2 -2
- package/es/Skeleton/type.d.ts +2 -4
- package/es/Slider/Slider.vue.js +2 -2
- package/es/Slider/SliderBtn.vue.js +2 -2
- package/es/Slider/SliderInput.vue.js +2 -2
- package/es/Slider/SliderTicks.vue.js +2 -2
- package/es/Slider/hooks/useContext.d.ts +2 -2
- package/es/Slider/hooks/useContext.js +3 -3
- package/es/Space/index.d.ts +6 -6
- package/es/Space/index.vue.d.ts +2 -2
- package/es/Space/type.d.ts +5 -4
- package/es/Spin/index.vue.js +1 -1
- package/es/Steps/Step.vue.js +2 -2
- package/es/Steps/Steps.vue.js +2 -2
- package/es/Steps/hooks/useContext.d.ts +1 -2
- package/es/Steps/hooks/useContext.js +3 -3
- package/es/Switch/index.d.ts +14 -14
- package/es/Switch/index.vue.d.ts +5 -5
- package/es/Switch/type.d.ts +4 -4
- package/es/Tabs/TabPane.vue.js +2 -2
- package/es/Tabs/Tabs.vue.d.ts +1 -1
- package/es/Tabs/Tabs.vue.js +2 -2
- package/es/Tabs/TabsNavInk.vue.js +2 -2
- package/es/Tabs/TabsTab.vue.js +2 -2
- package/es/Tabs/hooks/useContext.d.ts +6 -6
- package/es/Tabs/hooks/useContext.js +3 -3
- package/es/Tabs/index.d.ts +3 -3
- package/es/Tabs/type.d.ts +2 -3
- package/es/Tag/index.d.ts +3 -3
- package/es/Tag/index.vue.d.ts +1 -1
- package/es/Tag/type.d.ts +1 -2
- package/es/Textarea/hooks/useTextareaHeight.js +1 -1
- package/es/Textarea/index.d.ts +5 -5
- package/es/Textarea/index.vue.d.ts +2 -2
- package/es/Textarea/type.d.ts +2 -2
- package/es/TimePicker/TimePicker.vue.d.ts +5 -5
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/TimePicker/TimePickerPanel.vue.js +2 -2
- package/es/TimePicker/hooks/useContext.d.ts +2 -2
- package/es/TimePicker/hooks/useContext.js +3 -3
- package/es/TimePicker/index.d.ts +13 -13
- package/es/Timeline/Timeline.vue.js +2 -2
- package/es/Timeline/TimelineItem.vue.d.ts +1 -1
- package/es/Timeline/TimelineItem.vue.js +2 -2
- package/es/Timeline/hooks/useContext.d.ts +2 -2
- package/es/Timeline/hooks/useContext.js +3 -3
- package/es/Timeline/index.d.ts +3 -3
- package/es/Timeline/type.d.ts +3 -4
- package/es/Transfer/Transfer.vue.js +2 -2
- package/es/Transfer/TransferPanel.vue.js +3 -3
- package/es/Transfer/hooks/useContext.d.ts +2 -2
- package/es/Transfer/hooks/useContext.js +3 -3
- package/es/Trigger/hooks/useContext.d.ts +2 -3
- package/es/Trigger/hooks/useContext.js +4 -4
- package/es/Trigger/hooks/useTriggerPosition.js +1 -1
- package/es/Trigger/hooks/useTriggerVisible.js +2 -2
- package/es/Typography/TypographyBase.vue.d.ts +17 -17
- package/es/Typography/TypographyBase.vue.js +1 -1
- package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/es/Typography/TypographyTitle.vue.d.ts +1 -1
- package/es/Typography/type.d.ts +5 -4
- package/es/Upload/Upload.vue.d.ts +53 -0
- package/es/Upload/Upload.vue.js +110 -0
- package/es/Upload/Upload.vue3.js +5 -0
- package/es/Upload/UploadButton.vue.d.ts +2 -0
- package/es/Upload/UploadButton.vue.js +39 -0
- package/es/Upload/UploadButton.vue3.js +5 -0
- package/es/Upload/UploadDrag.vue.d.ts +2 -0
- package/es/Upload/UploadDrag.vue.js +37 -0
- package/es/Upload/UploadDrag.vue3.js +5 -0
- package/es/Upload/UploadFileList.vue.d.ts +24 -0
- package/es/Upload/UploadFileList.vue.js +7 -0
- package/es/Upload/UploadFileList.vue2.js +126 -0
- package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
- package/es/Upload/UploadPictureCard.vue.js +7 -0
- package/es/Upload/UploadPictureCard.vue2.js +132 -0
- package/es/Upload/hooks/useContext.d.ts +49 -0
- package/es/Upload/hooks/useContext.js +92 -0
- package/es/Upload/hooks/useUpload.d.ts +47 -0
- package/es/Upload/hooks/useUpload.js +80 -0
- package/es/Upload/index.css +1 -0
- package/es/Upload/index.d.ts +123 -0
- package/es/Upload/index.js +10 -0
- package/es/Upload/type.d.ts +72 -0
- package/es/VerificationCode/index.d.ts +3 -3
- package/es/VerificationCode/index.vue.d.ts +1 -1
- package/es/VerificationCode/type.d.ts +5 -4
- package/es/Watermark/index.vue.js +1 -1
- package/es/_shared/icons/IconDelete.vue.js +19 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -19
- package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
- package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
- package/es/_shared/icons/IconFile.vue.d.ts +2 -0
- package/es/_shared/icons/IconFile.vue.js +22 -0
- package/es/_shared/icons/IconFile.vue2.js +4 -0
- package/es/_shared/icons/IconSeparator.vue.js +1 -19
- package/es/_shared/icons/IconSeparator.vue2.js +19 -1
- package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
- package/es/_shared/icons/IconUpload.vue.js +22 -0
- package/es/_shared/icons/IconUpload.vue2.js +4 -0
- package/es/_shared/icons/index.d.ts +2 -0
- package/es/_shared/type/index.d.ts +3 -1
- package/es/_shared/utils/is.d.ts +0 -15
- package/es/_shared/utils/vue-utils.d.ts +1 -0
- package/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/es/index.d.ts +36 -35
- package/es/index.js +5 -3
- package/es/node_modules/@vueuse/core/index.js +171 -9
- package/es/node_modules/@vueuse/shared/index.js +29 -0
- package/es/style.css +1 -1
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Alert/index.d.ts +3 -3
- package/lib/Alert/index.vue.d.ts +1 -1
- package/lib/Alert/type.d.ts +2 -2
- package/lib/Anchor/Anchor.vue.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +3 -3
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/Anchor/index.d.ts +3 -3
- package/lib/Anchor/type.d.ts +3 -2
- package/lib/AutoComplete/index.d.ts +40 -31
- package/lib/AutoComplete/index.vue.d.ts +72 -54
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/hooks/useContext.d.ts +1 -2
- package/lib/Avatar/hooks/useContext.js +1 -1
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/Avatar/type.d.ts +3 -2
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Badge/index.d.ts +3 -3
- package/lib/Badge/index.vue.d.ts +1 -1
- package/lib/Badge/type.d.ts +2 -2
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/Button.vue.d.ts +2 -2
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/hooks/useContext.d.ts +4 -5
- package/lib/Button/hooks/useContext.js +1 -1
- package/lib/Button/index.d.ts +9 -9
- package/lib/Button/type.d.ts +6 -6
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/hooks/useContext.d.ts +2 -2
- package/lib/Card/hooks/useContext.js +1 -1
- package/lib/Card/index.d.ts +3 -3
- package/lib/Card/type.d.ts +1 -2
- package/lib/Carousel/Carousel.vue.d.ts +2 -2
- package/lib/Carousel/hooks/useContext.d.ts +5 -5
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Carousel/index.d.ts +6 -6
- package/lib/Carousel/type.d.ts +6 -6
- package/lib/Cascader/Cascader.vue.d.ts +23 -23
- package/lib/Cascader/hooks/useContext.d.ts +2 -2
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.d.ts +26 -26
- package/lib/Checkbox/hooks/useContext.d.ts +2 -2
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Collapse/hooks/useContext.d.ts +3 -15
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/Collapse/type.d.ts +2 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
- package/lib/ColorPicker/hooks/useContext.js +1 -1
- package/lib/Comment/hooks/useContext.d.ts +1 -2
- package/lib/Comment/hooks/useContext.js +1 -1
- package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
- package/lib/Descriptions/hooks/useContext.d.ts +3 -3
- package/lib/Descriptions/hooks/useContext.js +1 -1
- package/lib/Descriptions/index.d.ts +9 -9
- package/lib/Descriptions/type.d.ts +7 -6
- package/lib/Divider/index.d.ts +6 -6
- package/lib/Divider/index.vue.d.ts +2 -2
- package/lib/Divider/type.d.ts +4 -3
- package/lib/Drawer/Drawer.vue.d.ts +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +1 -1
- package/lib/Drawer/index.d.ts +5 -9
- package/lib/Drawer/type.d.ts +8 -4
- package/lib/Dropdown/Dropdown.vue.d.ts +3 -3
- package/lib/Dropdown/DropdownButton.vue.d.ts +3 -3
- package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.d.ts +2 -2
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Dropdown/index.d.ts +19 -19
- package/lib/Dropdown/type.d.ts +4 -6
- package/lib/Grid/hooks/useContext.d.ts +1 -13
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Image/Image.vue.d.ts +2 -2
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/hooks/useContext.d.ts +2 -2
- package/lib/Image/hooks/useContext.js +1 -1
- package/lib/Image/index.d.ts +6 -6
- package/lib/Image/type.d.ts +3 -2
- package/lib/Input/Input.vue.d.ts +3 -3
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/index.d.ts +8 -8
- package/lib/InputNumber/InputNumber.vue.d.ts +20 -20
- package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
- package/lib/InputNumber/index.d.ts +19 -19
- package/lib/InputNumber/type.d.ts +5 -4
- package/lib/InputTag/index.d.ts +20 -11
- package/lib/InputTag/index.vue.d.ts +7 -4
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/InputTag/type.d.ts +2 -1
- package/lib/Layout/LayoutSider.vue.d.ts +3 -3
- package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/Layout/index.d.ts +8 -8
- package/lib/Layout/type.d.ts +3 -4
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/type.d.ts +2 -2
- package/lib/List/List.vue.d.ts +7 -7
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/List/index.d.ts +6 -6
- package/lib/List/type.d.ts +2 -3
- package/lib/Mention/index.d.ts +49 -40
- package/lib/Mention/index.vue.d.ts +85 -67
- package/lib/Mention/type.d.ts +3 -2
- package/lib/Menu/Menu.vue.d.ts +2 -2
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +2 -2
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Menu/index.d.ts +5 -5
- package/lib/Menu/type.d.ts +2 -2
- package/lib/Message/type.d.ts +3 -3
- package/lib/Modal/Modal.vue.d.ts +1 -1
- package/lib/Modal/ModalService.vue.d.ts +1 -1
- package/lib/Modal/index.d.ts +13 -13
- package/lib/Modal/index.js +1 -1
- package/lib/Modal/type.d.ts +6 -9
- package/lib/Notification/Notification.vue.d.ts +1 -1
- package/lib/Notification/index.d.ts +4 -4
- package/lib/Notification/type.d.ts +3 -4
- package/lib/OverflowList/index.d.ts +3 -3
- package/lib/OverflowList/index.vue.d.ts +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/OverflowList/type.d.ts +3 -2
- package/lib/Pagination/hooks/useContext.d.ts +2 -2
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.d.ts +8 -8
- package/lib/Popconfirm/index.vue.d.ts +3 -3
- package/lib/Popconfirm/type.d.ts +2 -3
- package/lib/Progress/Progress.vue.d.ts +1 -1
- package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
- package/lib/Progress/ProgressLine.vue.d.ts +3 -3
- package/lib/Progress/index.d.ts +3 -3
- package/lib/Progress/type.d.ts +2 -3
- package/lib/Radio/hooks/useContext.d.ts +2 -2
- package/lib/Radio/hooks/useContext.js +1 -1
- package/lib/Radio/type.d.ts +1 -1
- package/lib/ResizeBox/index.d.ts +3 -3
- package/lib/ResizeBox/index.vue.d.ts +2 -2
- package/lib/ResizeBox/type.d.ts +4 -4
- package/lib/Result/index.d.ts +3 -3
- package/lib/Result/index.vue.d.ts +1 -1
- package/lib/Result/type.d.ts +3 -2
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
- package/lib/Scrollbar/hooks/useContext.js +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Scrollbar/type.d.ts +2 -1
- package/lib/Select/Select.vue.d.ts +45 -27
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +4 -4
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
- package/lib/Select/index.d.ts +33 -24
- package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
- package/lib/Skeleton/index.d.ts +2 -2
- package/lib/Skeleton/type.d.ts +2 -4
- package/lib/Slider/hooks/useContext.d.ts +2 -2
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Space/index.d.ts +6 -6
- package/lib/Space/index.vue.d.ts +2 -2
- package/lib/Space/type.d.ts +5 -4
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Steps/hooks/useContext.d.ts +1 -2
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Switch/index.d.ts +14 -14
- package/lib/Switch/index.vue.d.ts +5 -5
- package/lib/Switch/type.d.ts +4 -4
- package/lib/Tabs/Tabs.vue.d.ts +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +6 -6
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/Tabs/index.d.ts +3 -3
- package/lib/Tabs/type.d.ts +2 -3
- package/lib/Tag/index.d.ts +3 -3
- package/lib/Tag/index.vue.d.ts +1 -1
- package/lib/Tag/type.d.ts +1 -2
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.d.ts +5 -5
- package/lib/Textarea/index.vue.d.ts +2 -2
- package/lib/Textarea/type.d.ts +2 -2
- package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
- package/lib/TimePicker/hooks/useContext.d.ts +2 -2
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/TimePicker/index.d.ts +13 -13
- package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
- package/lib/Timeline/hooks/useContext.d.ts +2 -2
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Timeline/index.d.ts +3 -3
- package/lib/Timeline/type.d.ts +3 -4
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +2 -2
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useContext.d.ts +2 -3
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +17 -17
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
- package/lib/Typography/type.d.ts +5 -4
- package/lib/Upload/Upload.vue.d.ts +53 -0
- package/lib/Upload/Upload.vue.js +1 -0
- package/lib/Upload/Upload.vue3.js +1 -0
- package/lib/Upload/UploadButton.vue.d.ts +2 -0
- package/lib/Upload/UploadButton.vue.js +1 -0
- package/lib/Upload/UploadButton.vue3.js +1 -0
- package/lib/Upload/UploadDrag.vue.d.ts +2 -0
- package/lib/Upload/UploadDrag.vue.js +1 -0
- package/lib/Upload/UploadDrag.vue3.js +1 -0
- package/lib/Upload/UploadFileList.vue.d.ts +24 -0
- package/lib/Upload/UploadFileList.vue.js +1 -0
- package/lib/Upload/UploadFileList.vue2.js +1 -0
- package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
- package/lib/Upload/UploadPictureCard.vue.js +1 -0
- package/lib/Upload/UploadPictureCard.vue2.js +1 -0
- package/lib/Upload/hooks/useContext.d.ts +49 -0
- package/lib/Upload/hooks/useContext.js +1 -0
- package/lib/Upload/hooks/useUpload.d.ts +47 -0
- package/lib/Upload/hooks/useUpload.js +1 -0
- package/lib/Upload/index.css +1 -0
- package/lib/Upload/index.d.ts +123 -0
- package/lib/Upload/index.js +1 -0
- package/lib/Upload/type.d.ts +72 -0
- package/lib/VerificationCode/index.d.ts +3 -3
- package/lib/VerificationCode/index.vue.d.ts +1 -1
- package/lib/VerificationCode/type.d.ts +5 -4
- package/lib/Watermark/index.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
- package/lib/_shared/icons/IconFile.vue.js +1 -0
- package/lib/_shared/icons/IconFile.vue2.js +1 -0
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
- package/lib/_shared/icons/IconUpload.vue.js +1 -0
- package/lib/_shared/icons/IconUpload.vue2.js +1 -0
- package/lib/_shared/icons/index.d.ts +2 -0
- package/lib/_shared/type/index.d.ts +3 -1
- package/lib/_shared/utils/is.d.ts +0 -15
- package/lib/_shared/utils/vue-utils.d.ts +1 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/lib/index.d.ts +36 -35
- package/lib/index.js +1 -1
- package/lib/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/@vueuse/shared/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/es/Avatar/type.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface AvatarProps {
|
|
6
6
|
imageUrl?: string;
|
7
7
|
size?: number;
|
8
8
|
autoFixFontSize?: boolean;
|
9
|
-
triggerType?:
|
9
|
+
triggerType?: TriggerType;
|
10
10
|
triggerIconStyle?: CSSProperties;
|
11
11
|
objectFit?: ObjectFit;
|
12
12
|
}
|
@@ -32,4 +32,5 @@ export interface AvatarGroupSlots {
|
|
32
32
|
default?: () => VNode[];
|
33
33
|
}
|
34
34
|
export type AvatarShape = Exclude<Shape, 'circle'>;
|
35
|
-
|
35
|
+
type TriggerType = 'mask' | 'button';
|
36
|
+
export {};
|
package/es/BackTop/index.vue.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, createBlock, openBlock, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createVNode, unref, vShow } from "vue";
|
2
|
-
import { useEventListener } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import Tween from "../node_modules/b-tween/dist/b-tween.es.js";
|
4
3
|
import { findFirstScrollableParent, getElement } from "../_shared/utils/dom.js";
|
5
4
|
/* empty css */
|
@@ -7,6 +6,7 @@ import { findFirstScrollableParent, getElement } from "../_shared/utils/dom.js";
|
|
7
6
|
/* empty css */
|
8
7
|
import _sfc_main$1 from "../_shared/icons/IconToTop.vue.js";
|
9
8
|
import { isUndefined } from "../_shared/utils/is.js";
|
9
|
+
import { useEventListener } from "../node_modules/@vueuse/core/index.js";
|
10
10
|
import Button from "../Button/index.js";
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
12
|
...{
|
package/es/Badge/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ declare const Badge: {
|
|
9
9
|
dot: boolean;
|
10
10
|
offset: number[];
|
11
11
|
maxCount: number;
|
12
|
-
status: import('
|
12
|
+
status: import('..').Status<"processing">;
|
13
13
|
dotStyle: import('vue').CSSProperties;
|
14
14
|
count: number;
|
15
15
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -25,7 +25,7 @@ declare const Badge: {
|
|
25
25
|
dot: boolean;
|
26
26
|
offset: number[];
|
27
27
|
maxCount: number;
|
28
|
-
status: import('
|
28
|
+
status: import('..').Status<"processing">;
|
29
29
|
dotStyle: import('vue').CSSProperties;
|
30
30
|
count: number;
|
31
31
|
}>;
|
@@ -38,7 +38,7 @@ declare const Badge: {
|
|
38
38
|
dot: boolean;
|
39
39
|
offset: number[];
|
40
40
|
maxCount: number;
|
41
|
-
status: import('
|
41
|
+
status: import('..').Status<"processing">;
|
42
42
|
dotStyle: import('vue').CSSProperties;
|
43
43
|
count: number;
|
44
44
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
package/es/Badge/index.vue.d.ts
CHANGED
@@ -12,7 +12,7 @@ declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {},
|
|
12
12
|
dot: boolean;
|
13
13
|
offset: number[];
|
14
14
|
maxCount: number;
|
15
|
-
status: import('
|
15
|
+
status: import('..').Status<"processing">;
|
16
16
|
dotStyle: import('vue').CSSProperties;
|
17
17
|
count: number;
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
package/es/Badge/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { CSSProperties, VNode } from 'vue';
|
2
|
+
import { Status } from '../_shared/type';
|
2
3
|
export interface BadgeProps {
|
3
4
|
text?: string;
|
4
5
|
dot?: boolean;
|
@@ -6,11 +7,10 @@ export interface BadgeProps {
|
|
6
7
|
maxCount?: number;
|
7
8
|
offset?: number[];
|
8
9
|
color?: string;
|
9
|
-
status?:
|
10
|
+
status?: Status<'processing'>;
|
10
11
|
count?: number;
|
11
12
|
}
|
12
13
|
export interface BadgeSlots {
|
13
14
|
default?: () => VNode[];
|
14
15
|
content?: () => VNode[];
|
15
16
|
}
|
16
|
-
export type BadgeStatus = 'success' | 'warning' | 'danger' | 'normal' | 'processing';
|
@@ -3,7 +3,7 @@ import "../_shared/utils/dom.js";
|
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
|
-
import _sfc_main$1 from "../_shared/icons/IconSeparator.
|
6
|
+
import _sfc_main$1 from "../_shared/icons/IconSeparator.vue2.js";
|
7
7
|
import { isUndefined } from "../_shared/utils/is.js";
|
8
8
|
const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -25,9 +25,9 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
|
|
25
25
|
loading: boolean;
|
26
26
|
href: string;
|
27
27
|
shape: import('..').Shape;
|
28
|
-
status: import('
|
28
|
+
status: import('..').Status;
|
29
29
|
long: boolean;
|
30
|
-
htmlType:
|
30
|
+
htmlType: "button" | "reset" | "submit";
|
31
31
|
autofocus: boolean;
|
32
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
33
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/es/Button/Button.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBlock, mergeProps, createCommentVNode, renderSlot, unref, createBlock } from "vue";
|
2
|
-
import
|
2
|
+
import useButtonContext from "./hooks/useContext.js";
|
3
3
|
import Spin from "../Spin/index.js";
|
4
4
|
const _hoisted_1 = ["href", "autofocus"];
|
5
5
|
const _hoisted_2 = {
|
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
41
|
shape: _shape,
|
42
42
|
long
|
43
43
|
} = toRefs(props);
|
44
|
-
const { size, disabled, type, status, shape } =
|
44
|
+
const { size, disabled, type, status, shape } = useButtonContext().inject(props);
|
45
45
|
const className = computed(() => {
|
46
46
|
return [
|
47
47
|
"yc-button",
|
@@ -11,7 +11,7 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {
|
|
11
11
|
type: import('./type').ButtonType;
|
12
12
|
disabled: boolean;
|
13
13
|
shape: import('..').Shape;
|
14
|
-
status: import('
|
14
|
+
status: import('..').Status;
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
17
17
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
|
2
|
-
import
|
2
|
+
import useButtonContext from "./hooks/useContext.js";
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
4
|
...{
|
5
5
|
name: "ButtonGroup"
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
},
|
15
15
|
setup(__props) {
|
16
16
|
const props = __props;
|
17
|
-
|
17
|
+
useButtonContext().provide(props);
|
18
18
|
return (_ctx, _cache) => {
|
19
19
|
return openBlock(), createElementBlock("div", {
|
20
20
|
class: normalizeClass([
|
@@ -1,13 +1,12 @@
|
|
1
|
-
import { ButtonType
|
2
|
-
import { Size, Shape, RecordType } from '../../_shared/type';
|
3
|
-
|
1
|
+
import { ButtonType } from '../type';
|
2
|
+
import { Size, Shape, Status, RecordType } from '../../_shared/type';
|
3
|
+
export default function useButtonContext(): {
|
4
4
|
provide: (props: RecordType) => void;
|
5
5
|
inject: (props: RecordType) => {
|
6
6
|
disabled: import('vue').ComputedRef<boolean>;
|
7
7
|
type: import('vue').ComputedRef<ButtonType>;
|
8
|
-
status: import('vue').ComputedRef<
|
8
|
+
status: import('vue').ComputedRef<Status>;
|
9
9
|
shape: import('vue').ComputedRef<Shape>;
|
10
10
|
size: import('vue').ComputedRef<Size>;
|
11
11
|
};
|
12
12
|
};
|
13
|
-
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { toRefs, provide, inject, ref, computed } from "vue";
|
2
2
|
import { getGlobalConfig } from "../../_shared/utils/global-config.js";
|
3
3
|
const BUTTON_GROUP_CONTEXT_KEY = "button-group-context";
|
4
|
-
|
4
|
+
function useButtonContext() {
|
5
5
|
const provide$1 = (props) => {
|
6
6
|
const { type, status, shape, disabled } = toRefs(props);
|
7
7
|
const { size } = getGlobalConfig(props);
|
@@ -44,7 +44,7 @@ const useContext = () => {
|
|
44
44
|
provide: provide$1,
|
45
45
|
inject: inject$1
|
46
46
|
};
|
47
|
-
}
|
47
|
+
}
|
48
48
|
export {
|
49
|
-
|
49
|
+
useButtonContext as default
|
50
50
|
};
|
package/es/Button/index.d.ts
CHANGED
@@ -24,9 +24,9 @@ declare const Button: {
|
|
24
24
|
loading: boolean;
|
25
25
|
href: string;
|
26
26
|
shape: import('..').Shape;
|
27
|
-
status: import('
|
27
|
+
status: import('..').Status;
|
28
28
|
long: boolean;
|
29
|
-
htmlType:
|
29
|
+
htmlType: "button" | "reset" | "submit";
|
30
30
|
autofocus: boolean;
|
31
31
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
32
32
|
P: {};
|
@@ -48,9 +48,9 @@ declare const Button: {
|
|
48
48
|
loading: boolean;
|
49
49
|
href: string;
|
50
50
|
shape: import('..').Shape;
|
51
|
-
status: import('
|
51
|
+
status: import('..').Status;
|
52
52
|
long: boolean;
|
53
|
-
htmlType:
|
53
|
+
htmlType: "button" | "reset" | "submit";
|
54
54
|
autofocus: boolean;
|
55
55
|
}>;
|
56
56
|
__isFragment?: never;
|
@@ -75,9 +75,9 @@ declare const Button: {
|
|
75
75
|
loading: boolean;
|
76
76
|
href: string;
|
77
77
|
shape: import('..').Shape;
|
78
|
-
status: import('
|
78
|
+
status: import('..').Status;
|
79
79
|
long: boolean;
|
80
|
-
htmlType:
|
80
|
+
htmlType: "button" | "reset" | "submit";
|
81
81
|
autofocus: boolean;
|
82
82
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
83
83
|
$slots: any;
|
@@ -88,7 +88,7 @@ declare const Button: {
|
|
88
88
|
type: import('./type').ButtonType;
|
89
89
|
disabled: boolean;
|
90
90
|
shape: import('..').Shape;
|
91
|
-
status: import('
|
91
|
+
status: import('..').Status;
|
92
92
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
93
93
|
P: {};
|
94
94
|
B: {};
|
@@ -101,7 +101,7 @@ declare const Button: {
|
|
101
101
|
type: import('./type').ButtonType;
|
102
102
|
disabled: boolean;
|
103
103
|
shape: import('..').Shape;
|
104
|
-
status: import('
|
104
|
+
status: import('..').Status;
|
105
105
|
}>;
|
106
106
|
__isFragment?: never;
|
107
107
|
__isTeleport?: never;
|
@@ -111,7 +111,7 @@ declare const Button: {
|
|
111
111
|
type: import('./type').ButtonType;
|
112
112
|
disabled: boolean;
|
113
113
|
shape: import('..').Shape;
|
114
|
-
status: import('
|
114
|
+
status: import('..').Status;
|
115
115
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
116
116
|
$slots: Readonly<import('./type').ButtonGroupSlots> & import('./type').ButtonGroupSlots;
|
117
117
|
});
|
package/es/Button/type.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
-
import { Shape, Size } from '../_shared/type';
|
2
|
+
import { Shape, Size, Status } from '../_shared/type';
|
3
3
|
export interface ButtonProps {
|
4
4
|
type?: ButtonType;
|
5
5
|
shape?: Shape;
|
6
|
-
status?:
|
6
|
+
status?: Status;
|
7
7
|
size?: Size;
|
8
8
|
long?: boolean;
|
9
9
|
loading?: boolean;
|
10
10
|
disabled?: boolean;
|
11
|
-
htmlType?:
|
11
|
+
htmlType?: HtmlType;
|
12
12
|
autofocus?: boolean;
|
13
13
|
href?: string;
|
14
14
|
}
|
@@ -25,7 +25,7 @@ export interface ButtonSlots {
|
|
25
25
|
}
|
26
26
|
export interface ButtonGroupProps {
|
27
27
|
type?: ButtonType;
|
28
|
-
status?:
|
28
|
+
status?: Status;
|
29
29
|
shape?: Shape;
|
30
30
|
size?: Size;
|
31
31
|
disabled?: boolean;
|
@@ -33,6 +33,6 @@ export interface ButtonGroupProps {
|
|
33
33
|
export interface ButtonGroupSlots {
|
34
34
|
default?: () => VNode[];
|
35
35
|
}
|
36
|
-
export type ButtonStatus = 'success' | 'warning' | 'danger' | 'normal';
|
37
36
|
export type ButtonType = 'primary' | 'secondary' | 'dashed' | 'outline' | 'text';
|
38
|
-
|
37
|
+
type HtmlType = 'button' | 'reset' | 'submit';
|
38
|
+
export {};
|
package/es/Card/Card.vue.d.ts
CHANGED
@@ -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<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
10
|
-
size: import('
|
10
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
11
11
|
title: string;
|
12
12
|
hoverable: boolean;
|
13
13
|
loading: boolean;
|
package/es/Card/Card.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, computed, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createBlock, withCtx } from "vue";
|
2
2
|
import { findComponentsFromVnodes } from "../_shared/utils/vue-utils.js";
|
3
3
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
4
|
-
import
|
4
|
+
import useCardContext from "./hooks/useContext.js";
|
5
5
|
import Spin from "../Spin/index.js";
|
6
6
|
import _sfc_main$2 from "./CardGrid.vue.js";
|
7
7
|
/* empty css */
|
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
const $slots = useSlots();
|
48
48
|
const props = __props;
|
49
49
|
const { size } = getGlobalConfig(props);
|
50
|
-
|
50
|
+
useCardContext().provide();
|
51
51
|
const nodes = computed(() => {
|
52
52
|
var _a;
|
53
53
|
return ((_a = $slots.default) == null ? void 0 : _a.call($slots)) || [];
|
package/es/Card/CardMeta.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, useSlots, createElementBlock, openBlock, createElementVNode, createCommentVNode, renderSlot, createTextVNode, toDisplayString, unref, createBlock, resolveDynamicComponent } from "vue";
|
2
2
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
3
|
-
import
|
3
|
+
import useCardContext from "./hooks/useContext.js";
|
4
4
|
const _hoisted_1 = { class: "yc-card-meta" };
|
5
5
|
const _hoisted_2 = { class: "yc-card-meta-content" };
|
6
6
|
const _hoisted_3 = {
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
32
32
|
},
|
33
33
|
setup(__props) {
|
34
34
|
const $slots = useSlots();
|
35
|
-
const { slots: injectSlots } =
|
35
|
+
const { slots: injectSlots } = useCardContext().inject();
|
36
36
|
return (_ctx, _cache) => {
|
37
37
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
38
38
|
createElementVNode("div", _hoisted_2, [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useSlots, provide, inject } from "vue";
|
2
2
|
const CARD_CONTEXT_KEY = "card-context";
|
3
|
-
|
3
|
+
function useCardContext() {
|
4
4
|
const provide$1 = () => {
|
5
5
|
const slots = useSlots();
|
6
6
|
provide(CARD_CONTEXT_KEY, {
|
@@ -16,7 +16,7 @@ const useContext = () => {
|
|
16
16
|
provide: provide$1,
|
17
17
|
inject: inject$1
|
18
18
|
};
|
19
|
-
}
|
19
|
+
}
|
20
20
|
export {
|
21
|
-
|
21
|
+
useCardContext as default
|
22
22
|
};
|
package/es/Card/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export type CardGridInstance = InstanceType<typeof _CardGrid>;
|
|
8
8
|
export * from './type';
|
9
9
|
declare const Card: {
|
10
10
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
11
|
-
size: import('
|
11
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
12
12
|
title: string;
|
13
13
|
hoverable: boolean;
|
14
14
|
loading: boolean;
|
@@ -24,7 +24,7 @@ declare const Card: {
|
|
24
24
|
M: {};
|
25
25
|
Defaults: {};
|
26
26
|
}, Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, {
|
27
|
-
size: import('
|
27
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
28
28
|
title: string;
|
29
29
|
hoverable: boolean;
|
30
30
|
loading: boolean;
|
@@ -37,7 +37,7 @@ declare const Card: {
|
|
37
37
|
__isTeleport?: never;
|
38
38
|
__isSuspense?: never;
|
39
39
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
40
|
-
size: import('
|
40
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
41
41
|
title: string;
|
42
42
|
hoverable: boolean;
|
43
43
|
loading: boolean;
|
package/es/Card/type.d.ts
CHANGED
@@ -4,7 +4,7 @@ export interface CardProps {
|
|
4
4
|
bordered?: boolean;
|
5
5
|
loading?: boolean;
|
6
6
|
hoverable?: boolean;
|
7
|
-
size?:
|
7
|
+
size?: Exclude<Size, 'mini' | 'large'>;
|
8
8
|
headerStyle?: CSSProperties;
|
9
9
|
bodyStyle?: CSSProperties;
|
10
10
|
title?: string;
|
@@ -32,4 +32,3 @@ export interface CardGridProps {
|
|
32
32
|
export interface CardGridSlots {
|
33
33
|
default?: () => VNode[];
|
34
34
|
}
|
35
|
-
export type CardSize = Exclude<Size, 'mini' | 'large'>;
|
@@ -14,9 +14,9 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {},
|
|
14
14
|
"onUpdate:current"?: ((index: number) => any) | undefined;
|
15
15
|
}>, {
|
16
16
|
trigger: import('..').EventTrigger;
|
17
|
-
showArrow: import('./type').
|
17
|
+
showArrow: import('./type').ShowArrow;
|
18
18
|
arrowClass: import('..').ClassName;
|
19
|
-
animationName: import('./type').
|
19
|
+
animationName: import('./type').AnimationName;
|
20
20
|
direction: import('..').Direction;
|
21
21
|
transitionTimingFunction: string;
|
22
22
|
moveSpeed: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, ref, watch, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, unref, Fragment, renderList, createBlock, resolveDynamicComponent, createVNode } from "vue";
|
2
2
|
import { isObject } from "../_shared/utils/is.js";
|
3
|
-
import
|
3
|
+
import useCarouselContext from "./hooks/useContext.js";
|
4
4
|
import _sfc_main$2 from "./CarouselArrow.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import _sfc_main$1 from "./CarouselIndicator.vue.js";
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
37
|
setup(__props, { emit: __emit }) {
|
38
38
|
const props = __props;
|
39
39
|
const emits = __emit;
|
40
|
-
const { slideTo, computedCurrent, autoPlay, carouselItems } =
|
40
|
+
const { slideTo, computedCurrent, autoPlay, carouselItems } = useCarouselContext().provide(props, emits);
|
41
41
|
const autoPlayTimer = ref(0);
|
42
42
|
const stopAutoPlay = () => {
|
43
43
|
if (!autoPlayTimer.value) return;
|
@@ -4,7 +4,7 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
7
|
-
import
|
7
|
+
import useCarouselContext from "./hooks/useContext.js";
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
9
|
__name: "CarouselArrow",
|
10
10
|
props: {
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
setup(__props) {
|
15
15
|
const props = __props;
|
16
16
|
const { type } = toRefs(props);
|
17
|
-
const { showArrow, direction, arrowClass, computedCurrent } =
|
17
|
+
const { showArrow, direction, arrowClass, computedCurrent } = useCarouselContext().inject();
|
18
18
|
const rotate = computed(() => {
|
19
19
|
if (type.value == "next") {
|
20
20
|
return direction.value == "horizontal" ? 0 : 90;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, createCommentVNode, Fragment, renderList, unref, normalizeStyle } from "vue";
|
2
2
|
import { valueToPx } from "../_shared/utils/dom.js";
|
3
|
-
import
|
3
|
+
import useCarouselContext from "./hooks/useContext.js";
|
4
4
|
const _hoisted_1 = ["onMouseenter", "onClick"];
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "CarouselIndicator",
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
},
|
13
13
|
emits: ["change"],
|
14
14
|
setup(__props) {
|
15
|
-
const { length, computedCurrent } =
|
15
|
+
const { length, computedCurrent } = useCarouselContext().inject();
|
16
16
|
return (_ctx, _cache) => {
|
17
17
|
return openBlock(), createElementBlock("div", {
|
18
18
|
class: normalizeClass([
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, useAttrs, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot } from "vue";
|
2
|
-
import
|
2
|
+
import useCarouselContext from "./hooks/useContext.js";
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
4
|
...{
|
5
5
|
name: "CarouselItem"
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
animationName,
|
16
16
|
transitionTimingFunction,
|
17
17
|
getValidIndex
|
18
|
-
} =
|
18
|
+
} = useCarouselContext().inject();
|
19
19
|
const attrs = useAttrs();
|
20
20
|
const index = computed(() => attrs.index);
|
21
21
|
const slideClass = computed(() => {
|
@@ -1,21 +1,21 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
import {
|
2
|
+
import { CarouselEmits, AnimationName, ShowArrow } from '../type';
|
3
3
|
import { ClassName, Direction, RecordType } from '../../_shared/type';
|
4
4
|
type CarouselContext = {
|
5
5
|
length: Ref<number>;
|
6
6
|
computedCurrent: Ref<number>;
|
7
7
|
transitionTimingFunction: Ref<string>;
|
8
|
-
animationName: Ref<
|
8
|
+
animationName: Ref<AnimationName>;
|
9
9
|
moveType: Ref<MoveType>;
|
10
10
|
preIndex: Ref<number>;
|
11
11
|
moveSpeed: Ref<number>;
|
12
12
|
direction: Ref<Direction>;
|
13
|
-
showArrow: Ref<
|
13
|
+
showArrow: Ref<ShowArrow>;
|
14
14
|
arrowClass: Ref<ClassName>;
|
15
15
|
getValidIndex: (val: number) => number;
|
16
16
|
};
|
17
17
|
type MoveType = 'positive' | 'negative';
|
18
|
-
|
18
|
+
export default function useCarouselContext(): {
|
19
19
|
provide: (props: RecordType, emits: CarouselEmits) => {
|
20
20
|
carouselItems: import('vue').ComputedRef<RecordType[]>;
|
21
21
|
computedCurrent: import('vue').WritableComputedRef<number, number>;
|
@@ -25,4 +25,4 @@ declare const _default: () => {
|
|
25
25
|
};
|
26
26
|
inject: () => CarouselContext;
|
27
27
|
};
|
28
|
-
export
|
28
|
+
export {};
|
@@ -5,7 +5,7 @@ import { findComponentsFromVnodes } from "../../_shared/utils/vue-utils.js";
|
|
5
5
|
import _sfc_main from "../CarouselItem.vue.js";
|
6
6
|
/* empty css */
|
7
7
|
const CAROUSEL_CONTEXT_KEY = "carousel-context";
|
8
|
-
|
8
|
+
function useCarouselContext() {
|
9
9
|
const provide$1 = (props, emits) => {
|
10
10
|
const {
|
11
11
|
current,
|
@@ -97,7 +97,7 @@ const useContext = () => {
|
|
97
97
|
provide: provide$1,
|
98
98
|
inject: inject$1
|
99
99
|
};
|
100
|
-
}
|
100
|
+
}
|
101
101
|
export {
|
102
|
-
|
102
|
+
useCarouselContext as default
|
103
103
|
};
|
package/es/Carousel/index.d.ts
CHANGED
@@ -13,9 +13,9 @@ declare const Carousel: {
|
|
13
13
|
"update:current": (index: number) => any;
|
14
14
|
}, import('vue').PublicProps, {
|
15
15
|
trigger: import('..').EventTrigger;
|
16
|
-
showArrow: import('./type').
|
16
|
+
showArrow: import('./type').ShowArrow;
|
17
17
|
arrowClass: import('..').ClassName;
|
18
|
-
animationName: import('./type').
|
18
|
+
animationName: import('./type').AnimationName;
|
19
19
|
direction: import('..').Direction;
|
20
20
|
transitionTimingFunction: string;
|
21
21
|
moveSpeed: number;
|
@@ -37,9 +37,9 @@ declare const Carousel: {
|
|
37
37
|
"onUpdate:current"?: ((index: number) => any) | undefined;
|
38
38
|
}>, {}, {}, {}, {}, {
|
39
39
|
trigger: import('..').EventTrigger;
|
40
|
-
showArrow: import('./type').
|
40
|
+
showArrow: import('./type').ShowArrow;
|
41
41
|
arrowClass: import('..').ClassName;
|
42
|
-
animationName: import('./type').
|
42
|
+
animationName: import('./type').AnimationName;
|
43
43
|
direction: import('..').Direction;
|
44
44
|
transitionTimingFunction: string;
|
45
45
|
moveSpeed: number;
|
@@ -61,9 +61,9 @@ declare const Carousel: {
|
|
61
61
|
"update:current": (index: number) => any;
|
62
62
|
}, string, {
|
63
63
|
trigger: import('..').EventTrigger;
|
64
|
-
showArrow: import('./type').
|
64
|
+
showArrow: import('./type').ShowArrow;
|
65
65
|
arrowClass: import('..').ClassName;
|
66
|
-
animationName: import('./type').
|
66
|
+
animationName: import('./type').AnimationName;
|
67
67
|
direction: import('..').Direction;
|
68
68
|
transitionTimingFunction: string;
|
69
69
|
moveSpeed: number;
|
package/es/Carousel/type.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
-
import { ClassName, Direction, EventTrigger } from '../_shared/type';
|
2
|
+
import { ClassName, Direction, EventTrigger, Position } from '../_shared/type';
|
3
3
|
export interface CarouselProps {
|
4
4
|
current?: number;
|
5
5
|
defaultCurrent?: number;
|
6
6
|
autoPlay?: AutoPlay;
|
7
7
|
moveSpeed?: number;
|
8
|
-
animationName?:
|
8
|
+
animationName?: AnimationName;
|
9
9
|
trigger?: EventTrigger;
|
10
10
|
direction?: Direction;
|
11
|
-
showArrow?:
|
11
|
+
showArrow?: ShowArrow;
|
12
12
|
arrowClass?: ClassName;
|
13
13
|
indicatorType?: IndicatorType;
|
14
14
|
indicatorPosition?: IndicatorPosition;
|
@@ -25,11 +25,11 @@ export interface CarouselSlots {
|
|
25
25
|
export interface CarouselItemSlots {
|
26
26
|
default?: () => VNode[];
|
27
27
|
}
|
28
|
-
export type
|
29
|
-
export type
|
28
|
+
export type AnimationName = 'slide' | 'fade';
|
29
|
+
export type ShowArrow = 'always' | 'hover' | 'never';
|
30
30
|
export type AutoPlay = boolean | {
|
31
31
|
interval?: number;
|
32
32
|
hoverToPause?: boolean;
|
33
33
|
};
|
34
|
-
export type IndicatorPosition =
|
34
|
+
export type IndicatorPosition = Position | 'outer';
|
35
35
|
export type IndicatorType = 'line' | 'dot' | 'slider' | 'never';
|