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
@@ -1,7 +1,7 @@
|
|
1
1
|
import { toRefs, useSlots, provide, inject, ref, computed } from "vue";
|
2
2
|
import { useControlValue } from "../../_shared/utils/control.js";
|
3
3
|
const COLLAPSE_CONTEXT_KEY = "collapse-context";
|
4
|
-
|
4
|
+
function useCollapseContext() {
|
5
5
|
const provide$1 = (props, emits) => {
|
6
6
|
const {
|
7
7
|
activeKey,
|
@@ -56,8 +56,7 @@ const useContext = () => {
|
|
56
56
|
provide: provide$1,
|
57
57
|
inject: inject$1
|
58
58
|
};
|
59
|
-
}
|
59
|
+
}
|
60
60
|
export {
|
61
|
-
|
62
|
-
useContext as default
|
61
|
+
useCollapseContext as default
|
63
62
|
};
|
package/es/Collapse/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Position } from '../_shared/type';
|
1
2
|
import { VNode } from 'vue';
|
2
3
|
export interface CollapseProps {
|
3
4
|
activeKey?: CollapseValue[];
|
@@ -38,4 +39,4 @@ export interface CollapseItemSlots {
|
|
38
39
|
}) => VNode[];
|
39
40
|
}
|
40
41
|
export type CollapseValue = string | number;
|
41
|
-
export type ExpandIconPosition = '
|
42
|
+
export type ExpandIconPosition = Exclude<Position, 'top' | 'bottom'>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, watch, createElementBlock, openBlock, normalizeStyle, unref, createElementVNode } from "vue";
|
2
|
-
import { useDraggable } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import { sleep, valueToPx } from "../_shared/utils/dom.js";
|
3
|
+
import { useDraggable } from "../node_modules/@vueuse/core/index.js";
|
4
4
|
import { parseColor, GradientColorCalculator } from "../_shared/utils/color.js";
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "ColorControl",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, watch, createElementBlock, openBlock, normalizeStyle, unref, createElementVNode } from "vue";
|
2
|
-
import { useElementBounding, useDraggable } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import { sleep, valueToPx } from "../_shared/utils/dom.js";
|
3
|
+
import { useElementBounding, useDraggable } from "../node_modules/@vueuse/core/index.js";
|
4
4
|
import { parseColor } from "../_shared/utils/color.js";
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "ColorPalette",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, unref, createVNode, createElementVNode, createCommentVNode, isRef, normalizeStyle, createBlock } from "vue";
|
2
2
|
import { useI18n } from "../_shared/utils/locale.js";
|
3
|
-
import
|
3
|
+
import useColorPickerContext from "./hooks/useContext.js";
|
4
4
|
import _sfc_main$1 from "./ColorPalette.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import _sfc_main$3 from "./ColorInput.vue.js";
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
31
|
hideTrigger,
|
32
32
|
presetColors,
|
33
33
|
historyColors
|
34
|
-
} =
|
34
|
+
} = useColorPickerContext().inject();
|
35
35
|
const { t } = useI18n();
|
36
36
|
const colorBarRef = ref();
|
37
37
|
const alphaBarRef = ref();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, createBlock, openBlock, unref, mergeProps, isRef, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createElementBlock, createCommentVNode, toDisplayString, createVNode } from "vue";
|
2
2
|
import { COLOR_PICKER_PRESET_COLORS } from "../_shared/constants/index.js";
|
3
|
-
import
|
3
|
+
import useColorPickerContext from "./hooks/useContext.js";
|
4
4
|
import _sfc_main$1 from "./ColorPanel.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import Trigger from "../Trigger/index.js";
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
35
35
|
const props = __props;
|
36
36
|
const emits = __emit;
|
37
|
-
const { popupVisible, computedColor, size } =
|
37
|
+
const { popupVisible, computedColor, size } = useColorPickerContext().provide(
|
38
38
|
props,
|
39
39
|
emits
|
40
40
|
);
|
@@ -16,7 +16,7 @@ type ColorPickerContext = {
|
|
16
16
|
presetColors: Ref<string[]>;
|
17
17
|
emits: ColorPickerEmits;
|
18
18
|
};
|
19
|
-
|
19
|
+
export default function useColorPickerContext(): {
|
20
20
|
provide: (props: RecordType, emits: ColorPickerEmits) => {
|
21
21
|
popupVisible: Ref<boolean, boolean>;
|
22
22
|
size: import('vue').ComputedRef<any>;
|
@@ -24,4 +24,4 @@ declare const _default: () => {
|
|
24
24
|
};
|
25
25
|
inject: () => ColorPickerContext;
|
26
26
|
};
|
27
|
-
export
|
27
|
+
export {};
|
@@ -3,7 +3,7 @@ import { parseColor } from "../../_shared/utils/color.js";
|
|
3
3
|
import { getGlobalConfig } from "../../_shared/utils/global-config.js";
|
4
4
|
import { useControlValue } from "../../_shared/utils/control.js";
|
5
5
|
const COLOR_PICKER_CONTEXT_KEY = "color-picker-context";
|
6
|
-
|
6
|
+
function useColorPickerContext() {
|
7
7
|
const provide$1 = (props, emits) => {
|
8
8
|
const {
|
9
9
|
modelValue,
|
@@ -84,7 +84,7 @@ const useContext = () => {
|
|
84
84
|
provide: provide$1,
|
85
85
|
inject: inject$1
|
86
86
|
};
|
87
|
-
}
|
87
|
+
}
|
88
88
|
export {
|
89
|
-
|
89
|
+
useColorPickerContext as default
|
90
90
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { inject, reactive, computed, onBeforeUnmount, provide } from "vue";
|
2
2
|
import { nanoid } from "../../node_modules/nanoid/index.browser.js";
|
3
3
|
const COMMENT_CONTEXT_KEY = "comment-context";
|
4
|
-
|
4
|
+
function useCommentContext() {
|
5
5
|
const { depths } = inject(COMMENT_CONTEXT_KEY, {
|
6
6
|
depths: reactive(/* @__PURE__ */ new Map())
|
7
7
|
});
|
@@ -17,7 +17,7 @@ const useContext = () => {
|
|
17
17
|
return {
|
18
18
|
hasChildren
|
19
19
|
};
|
20
|
-
}
|
20
|
+
}
|
21
21
|
export {
|
22
|
-
|
22
|
+
useCommentContext as default
|
23
23
|
};
|
package/es/Comment/index.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, useSlots, createElementBlock, openBlock, createCommentVNode, createElementVNode, renderSlot, createVNode, unref, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
2
2
|
import { isObject } from "../_shared/utils/is.js";
|
3
|
-
import
|
3
|
+
import useCommentContext from "./hooks/useContext.js";
|
4
4
|
import Avatar from "../Avatar/index.js";
|
5
5
|
const _hoisted_1 = {
|
6
6
|
Comment: "",
|
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
},
|
43
43
|
setup(__props) {
|
44
44
|
const $slots = useSlots();
|
45
|
-
const { hasChildren } =
|
45
|
+
const { hasChildren } = useCommentContext();
|
46
46
|
return (_ctx, _cache) => {
|
47
47
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
48
48
|
$slots.avatar || _ctx.avatar ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
@@ -10,10 +10,10 @@ declare const __VLS_component: import('vue').DefineComponent<DescriptionsProps,
|
|
10
10
|
size: import('..').Size;
|
11
11
|
data: DescData[];
|
12
12
|
title: string;
|
13
|
-
column: import('
|
14
|
-
layout:
|
13
|
+
column: number | import('..').ResponsiveValue;
|
14
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
15
15
|
bordered: boolean;
|
16
|
-
tableLayout:
|
16
|
+
tableLayout: "auto" | "fixed";
|
17
17
|
align: import('./type').DescriptionsAlign;
|
18
18
|
labelStyle: import('vue').CSSProperties;
|
19
19
|
valueStyle: import('vue').CSSProperties;
|
@@ -3,7 +3,7 @@ import _sfc_main$1 from "./ReuseTd.vue.js";
|
|
3
3
|
/* empty css */
|
4
4
|
import _sfc_main$2 from "./ReuseItem.vue.js";
|
5
5
|
/* empty css */
|
6
|
-
import
|
6
|
+
import useDescContext from "./hooks/useContext.js";
|
7
7
|
const _hoisted_1 = {
|
8
8
|
key: 0,
|
9
9
|
class: "yc-descriptions-title"
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
setup(__props) {
|
37
37
|
const $slots = useSlots();
|
38
38
|
const props = __props;
|
39
|
-
const { column, size, data, layout } =
|
39
|
+
const { column, size, data, layout } = useDescContext().provide(props);
|
40
40
|
const renderArr = computed(() => {
|
41
41
|
var _a, _b;
|
42
42
|
let count = 0;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode, normalizeStyle, unref, createBlock, resolveDynamicComponent } from "vue";
|
2
2
|
import { isObject } from "../_shared/utils/is.js";
|
3
3
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
4
|
-
import
|
4
|
+
import useDescContext from "./hooks/useContext.js";
|
5
5
|
const _hoisted_1 = { class: "yc-descriptions-item" };
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
7
|
__name: "ReuseItem",
|
@@ -10,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
index: {}
|
11
11
|
},
|
12
12
|
setup(__props) {
|
13
|
-
const { labelStyle, valueStyle, slots, align } =
|
13
|
+
const { labelStyle, valueStyle, slots, align } = useDescContext().inject();
|
14
14
|
return (_ctx, _cache) => {
|
15
15
|
var _a, _b, _c, _d;
|
16
16
|
return openBlock(), createElementBlock("td", _hoisted_1, [
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, resolveDynamicComponent } from "vue";
|
2
2
|
import { isObject } from "../_shared/utils/is.js";
|
3
3
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
4
|
-
import
|
4
|
+
import useDescContext from "./hooks/useContext.js";
|
5
5
|
const _hoisted_1 = ["colspan"];
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
7
|
__name: "ReuseTd",
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
colspan: {}
|
13
13
|
},
|
14
14
|
setup(__props) {
|
15
|
-
const { labelStyle, valueStyle, bordered, size, align, slots } =
|
15
|
+
const { labelStyle, valueStyle, bordered, size, align, slots } = useDescContext().inject();
|
16
16
|
return (_ctx, _cache) => {
|
17
17
|
var _a, _b, _c, _d;
|
18
18
|
return openBlock(), createElementBlock("td", {
|
@@ -9,13 +9,13 @@ type DescriptionsContext = {
|
|
9
9
|
size: Ref<Size>;
|
10
10
|
slots: Slots;
|
11
11
|
};
|
12
|
-
|
12
|
+
export default function useDescContext(): {
|
13
13
|
provide: (props: RecordType) => {
|
14
14
|
data: import('vue').ComputedRef<DescData[]>;
|
15
15
|
size: import('vue').ComputedRef<any>;
|
16
16
|
column: import('vue').ComputedRef<number>;
|
17
|
-
layout: Ref<
|
17
|
+
layout: Ref<"vertical" | "horizontal" | "inline-horizontal" | "inline-vertical", "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical">;
|
18
18
|
};
|
19
19
|
inject: () => DescriptionsContext;
|
20
20
|
};
|
21
|
-
export
|
21
|
+
export {};
|
@@ -4,7 +4,7 @@ import { getGlobalConfig } from "../../_shared/utils/global-config.js";
|
|
4
4
|
import { findComponentsFromVnodes } from "../../_shared/utils/vue-utils.js";
|
5
5
|
import _sfc_main from "../DescriptionsItem.vue.js";
|
6
6
|
const DESCRIPTIONS_CONTEXT_KEY = "radio-group-context";
|
7
|
-
|
7
|
+
function useDescContext() {
|
8
8
|
const provide$1 = (props) => {
|
9
9
|
const {
|
10
10
|
data: _data,
|
@@ -69,7 +69,7 @@ const useContext = () => {
|
|
69
69
|
provide: provide$1,
|
70
70
|
inject: inject$1
|
71
71
|
};
|
72
|
-
}
|
72
|
+
}
|
73
73
|
export {
|
74
|
-
|
74
|
+
useDescContext as default
|
75
75
|
};
|
@@ -9,10 +9,10 @@ declare const Descriptions: {
|
|
9
9
|
size: import('..').Size;
|
10
10
|
data: import('./type').DescData[];
|
11
11
|
title: string;
|
12
|
-
column: import('
|
13
|
-
layout:
|
12
|
+
column: number | import('..').ResponsiveValue;
|
13
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
14
14
|
bordered: boolean;
|
15
|
-
tableLayout:
|
15
|
+
tableLayout: "auto" | "fixed";
|
16
16
|
align: import('./type').DescriptionsAlign;
|
17
17
|
labelStyle: import('vue').CSSProperties;
|
18
18
|
valueStyle: import('vue').CSSProperties;
|
@@ -27,10 +27,10 @@ declare const Descriptions: {
|
|
27
27
|
size: import('..').Size;
|
28
28
|
data: import('./type').DescData[];
|
29
29
|
title: string;
|
30
|
-
column: import('
|
31
|
-
layout:
|
30
|
+
column: number | import('..').ResponsiveValue;
|
31
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
32
32
|
bordered: boolean;
|
33
|
-
tableLayout:
|
33
|
+
tableLayout: "auto" | "fixed";
|
34
34
|
align: import('./type').DescriptionsAlign;
|
35
35
|
labelStyle: import('vue').CSSProperties;
|
36
36
|
valueStyle: import('vue').CSSProperties;
|
@@ -42,10 +42,10 @@ declare const Descriptions: {
|
|
42
42
|
size: import('..').Size;
|
43
43
|
data: import('./type').DescData[];
|
44
44
|
title: string;
|
45
|
-
column: import('
|
46
|
-
layout:
|
45
|
+
column: number | import('..').ResponsiveValue;
|
46
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
47
47
|
bordered: boolean;
|
48
|
-
tableLayout:
|
48
|
+
tableLayout: "auto" | "fixed";
|
49
49
|
align: import('./type').DescriptionsAlign;
|
50
50
|
labelStyle: import('vue').CSSProperties;
|
51
51
|
valueStyle: import('vue').CSSProperties;
|
@@ -2,9 +2,9 @@ import { CSSProperties, VNode } from 'vue';
|
|
2
2
|
import { RenderContent, Size, ResponsiveValue } from '../_shared/type';
|
3
3
|
export interface DescriptionsProps {
|
4
4
|
data?: DescData[];
|
5
|
-
column?:
|
5
|
+
column?: Column;
|
6
6
|
title?: string;
|
7
|
-
layout?:
|
7
|
+
layout?: Layout;
|
8
8
|
align?: DescriptionsAlign;
|
9
9
|
size?: Size;
|
10
10
|
bordered?: boolean;
|
@@ -39,11 +39,12 @@ export interface DescData {
|
|
39
39
|
value?: string | RenderContent;
|
40
40
|
span?: number;
|
41
41
|
}
|
42
|
-
|
42
|
+
type TextAlign = 'left' | 'right' | 'center';
|
43
43
|
export type DescriptionsAlign = TextAlign | {
|
44
44
|
label?: TextAlign;
|
45
45
|
value?: TextAlign;
|
46
46
|
};
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
type Column = number | ResponsiveValue;
|
48
|
+
type Layout = 'horizontal' | 'vertical' | 'inline-horizontal' | 'inline-vertical';
|
49
|
+
type TableLayout = 'auto' | 'fixed';
|
50
|
+
export {};
|
package/es/Divider/index.d.ts
CHANGED
@@ -5,10 +5,10 @@ export * from './type';
|
|
5
5
|
declare const Divider: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
7
|
size: number;
|
8
|
-
type:
|
8
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
9
9
|
direction: import('..').Direction;
|
10
10
|
margin: number | string;
|
11
|
-
orientation:
|
11
|
+
orientation: "left" | "right" | "center";
|
12
12
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
13
13
|
P: {};
|
14
14
|
B: {};
|
@@ -18,20 +18,20 @@ declare const Divider: {
|
|
18
18
|
Defaults: {};
|
19
19
|
}, Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, {
|
20
20
|
size: number;
|
21
|
-
type:
|
21
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
22
22
|
direction: import('..').Direction;
|
23
23
|
margin: number | string;
|
24
|
-
orientation:
|
24
|
+
orientation: "left" | "right" | "center";
|
25
25
|
}>;
|
26
26
|
__isFragment?: never;
|
27
27
|
__isTeleport?: never;
|
28
28
|
__isSuspense?: never;
|
29
29
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
30
30
|
size: number;
|
31
|
-
type:
|
31
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
32
32
|
direction: import('..').Direction;
|
33
33
|
margin: number | string;
|
34
|
-
orientation:
|
34
|
+
orientation: "left" | "right" | "center";
|
35
35
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
36
36
|
$slots: any;
|
37
37
|
}) & {
|
@@ -8,10 +8,10 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
10
10
|
size: number;
|
11
|
-
type:
|
11
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
12
12
|
direction: import('..').Direction;
|
13
13
|
margin: number | string;
|
14
|
-
orientation:
|
14
|
+
orientation: "left" | "right" | "center";
|
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;
|
package/es/Divider/type.d.ts
CHANGED
@@ -3,12 +3,13 @@ import { VNode } from 'vue';
|
|
3
3
|
export interface DividerProps {
|
4
4
|
direction?: Direction;
|
5
5
|
orientation?: Orientation;
|
6
|
-
type?:
|
6
|
+
type?: Type;
|
7
7
|
size?: number;
|
8
8
|
margin?: number | string;
|
9
9
|
}
|
10
10
|
export interface DividerSlots {
|
11
11
|
default?: () => VNode[];
|
12
12
|
}
|
13
|
-
|
14
|
-
|
13
|
+
type Orientation = 'left' | 'center' | 'right';
|
14
|
+
type Type = 'solid' | 'dashed' | 'dotted' | 'double';
|
15
|
+
export {};
|
@@ -46,7 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}
|
|
46
46
|
escToClose: boolean;
|
47
47
|
onBeforeCancel: import('..').OnBeforeCancel;
|
48
48
|
onBeforeOk: import('..').OnBeforeOk;
|
49
|
-
placement: import('
|
49
|
+
placement: import('..').Position;
|
50
50
|
drawerStyle: CSSProperties;
|
51
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
52
52
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<DrawerServiceProps, {}, {}
|
|
19
19
|
escToClose: boolean;
|
20
20
|
onBeforeCancel: import('..').OnBeforeCancel;
|
21
21
|
onBeforeOk: import('..').OnBeforeOk;
|
22
|
-
placement: import('
|
22
|
+
placement: import('..').Position;
|
23
23
|
drawerStyle: import('vue').CSSProperties;
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
25
25
|
export default _default;
|
package/es/Drawer/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { App } from 'vue';
|
2
|
-
import { DrawerConfig } from './type';
|
2
|
+
import { DrawerConfig, DrawerMethod } from './type';
|
3
3
|
import { default as _Drawer } from './Drawer.vue';
|
4
4
|
export type DrawerInstance = InstanceType<typeof _Drawer>;
|
5
5
|
export * from './type';
|
@@ -43,7 +43,7 @@ declare const Drawer: {
|
|
43
43
|
escToClose: boolean;
|
44
44
|
onBeforeCancel: import('..').OnBeforeCancel;
|
45
45
|
onBeforeOk: import('..').OnBeforeOk;
|
46
|
-
placement: import('
|
46
|
+
placement: import('..').Position;
|
47
47
|
drawerStyle: import('vue').CSSProperties;
|
48
48
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
49
49
|
P: {};
|
@@ -83,7 +83,7 @@ declare const Drawer: {
|
|
83
83
|
escToClose: boolean;
|
84
84
|
onBeforeCancel: import('..').OnBeforeCancel;
|
85
85
|
onBeforeOk: import('..').OnBeforeOk;
|
86
|
-
placement: import('
|
86
|
+
placement: import('..').Position;
|
87
87
|
drawerStyle: import('vue').CSSProperties;
|
88
88
|
}>;
|
89
89
|
__isFragment?: never;
|
@@ -128,7 +128,7 @@ declare const Drawer: {
|
|
128
128
|
escToClose: boolean;
|
129
129
|
onBeforeCancel: import('..').OnBeforeCancel;
|
130
130
|
onBeforeOk: import('..').OnBeforeOk;
|
131
|
-
placement: import('
|
131
|
+
placement: import('..').Position;
|
132
132
|
drawerStyle: import('vue').CSSProperties;
|
133
133
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
134
134
|
$slots: Readonly<import('./type').DrawerSlots> & import('./type').DrawerSlots;
|
@@ -145,11 +145,7 @@ declare module 'vue' {
|
|
145
145
|
}
|
146
146
|
declare module '@vue/runtime-core' {
|
147
147
|
interface ComponentCustomProperties {
|
148
|
-
$drawer:
|
149
|
-
open: (props: DrawerConfig) => {
|
150
|
-
close: () => void;
|
151
|
-
};
|
152
|
-
};
|
148
|
+
$drawer: DrawerMethod;
|
153
149
|
}
|
154
150
|
}
|
155
151
|
export default Drawer;
|
package/es/Drawer/type.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { CSSProperties, VNode } from 'vue';
|
2
2
|
import { ButtonProps } from '../Button';
|
3
3
|
import { OnBeforeCancel, OnBeforeOk } from '../Modal';
|
4
|
-
import { RenderContent, PopupContainer } from '../_shared/type';
|
4
|
+
import { RenderContent, PopupContainer, Position } from '../_shared/type';
|
5
5
|
export interface DrawerProps {
|
6
6
|
visible?: boolean;
|
7
7
|
defaultVisible?: boolean;
|
8
|
-
placement?:
|
8
|
+
placement?: Position;
|
9
9
|
title?: string;
|
10
10
|
mask?: boolean;
|
11
11
|
maskClosable?: boolean;
|
@@ -53,8 +53,12 @@ export type DrawerConfig = Omit<DrawerProps, 'visible' | 'defaultVisible' | 'pop
|
|
53
53
|
onBeforeOpen?: () => void;
|
54
54
|
onBeforeClose?: () => void;
|
55
55
|
};
|
56
|
-
export declare type DrawerUpdateConfig = Omit<DrawerConfig, 'title' | 'content' | 'onOk' | 'onCancel' | 'onBeforeOk' | 'onBeforeCancel' | 'onOpen' | 'onClose' | 'onBeforeOpen' | 'onBeforeClose' | 'header' | 'footer'>;
|
57
56
|
export type DrawerServiceProps = DrawerConfig & {
|
58
57
|
serviceClose?: () => void;
|
59
58
|
};
|
60
|
-
export type
|
59
|
+
export type DrawerMethod = {
|
60
|
+
open: (props: DrawerConfig) => DrawerReturn;
|
61
|
+
};
|
62
|
+
export type DrawerReturn = {
|
63
|
+
close: () => void;
|
64
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, renderSlot } from "vue";
|
2
|
-
import
|
2
|
+
import useDropdownContext from "./hooks/useContext.js";
|
3
3
|
const _hoisted_1 = {
|
4
4
|
key: 0,
|
5
5
|
class: "yc-dropdown-option-icon"
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
26
|
const props = __props;
|
27
27
|
const emits = __emit;
|
28
28
|
const { value: optionValue, disabled, isSubmenu } = toRefs(props);
|
29
|
-
const { select } =
|
29
|
+
const { select } = useDropdownContext().inject();
|
30
30
|
const handleClick = (ev) => {
|
31
31
|
if (disabled.value) return;
|
32
32
|
emits("click", ev);
|
@@ -10,20 +10,20 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownProps, {
|
|
10
10
|
show(): void;
|
11
11
|
hide(): void;
|
12
12
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
13
|
+
select: (value: DoptionValue, ev: MouseEvent) => any;
|
13
14
|
"update:popupVisible": (value: boolean) => any;
|
14
15
|
"popup-visible-change": (value: boolean) => any;
|
15
|
-
select: (value: DoptionValue, ev: MouseEvent) => any;
|
16
16
|
}, string, import('vue').PublicProps, Readonly<DropdownProps> & Readonly<{
|
17
|
+
onSelect?: ((value: DoptionValue, ev: MouseEvent) => any) | undefined;
|
17
18
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
18
19
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
19
|
-
onSelect?: ((value: DoptionValue, ev: MouseEvent) => any) | undefined;
|
20
20
|
}>, {
|
21
21
|
popupContainer: import('..').PopupContainer;
|
22
22
|
trigger: import('../Trigger').TriggerType;
|
23
23
|
popupVisible: boolean;
|
24
24
|
defaultPopupVisible: boolean;
|
25
25
|
alignPoint: boolean;
|
26
|
-
position: import('
|
26
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
27
27
|
triggerProps: import('../Trigger').TriggerProps;
|
28
28
|
hideOnSelect: boolean;
|
29
29
|
popupMaxHeight: import('..').PopupMaxHeight;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, computed, createBlock, openBlock, unref, mergeProps, isRef, withCtx, renderSlot, createElementVNode, createVNode, createElementBlock, createCommentVNode, normalizeStyle } from "vue";
|
2
2
|
import { isBoolean, isUndefined } from "../_shared/utils/is.js";
|
3
3
|
import { valueToPx } from "../_shared/utils/dom.js";
|
4
|
-
import
|
4
|
+
import useDropdownContext from "./hooks/useContext.js";
|
5
5
|
import Trigger from "../Trigger/index.js";
|
6
6
|
import Scrollbar from "../Scrollbar/index.js";
|
7
7
|
const _hoisted_1 = { class: "yc-dropdown" };
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
38
|
position: _position,
|
39
39
|
popupMaxHeight: _popupMaxHeight
|
40
40
|
} = toRefs(props);
|
41
|
-
const { computedVisible } =
|
41
|
+
const { computedVisible } = useDropdownContext().provide(props, emits);
|
42
42
|
const position = computed(() => {
|
43
43
|
return ["top", "tl", "tr", "bottom", "bl", "br"].includes(_position.value) ? _position.value : "bottom";
|
44
44
|
});
|
@@ -8,12 +8,12 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
10
10
|
click: (ev: MouseEvent) => any;
|
11
|
-
"popup-visible-change": (value: boolean) => any;
|
12
11
|
select: (value: DoptionValue) => any;
|
12
|
+
"popup-visible-change": (value: boolean) => any;
|
13
13
|
}, string, import('vue').PublicProps, Readonly<DropdownButtonProps> & Readonly<{
|
14
14
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
15
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
16
15
|
onSelect?: ((value: DoptionValue) => any) | undefined;
|
16
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
17
17
|
}>, {
|
18
18
|
size: import('..').Size;
|
19
19
|
type: import('../Button').ButtonType;
|
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
|
|
22
22
|
popupVisible: boolean;
|
23
23
|
defaultPopupVisible: boolean;
|
24
24
|
disabled: boolean;
|
25
|
-
position: import('
|
25
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
26
26
|
hideOnSelect: boolean;
|
27
27
|
buttonProps: import('../Button').ButtonProps;
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
@@ -321,7 +321,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
321
321
|
popupVisible: boolean;
|
322
322
|
defaultPopupVisible: boolean;
|
323
323
|
disabled: boolean;
|
324
|
-
position: import('
|
324
|
+
position: Extract<import('..').PopupPosition, "rt" | "lt">;
|
325
325
|
triggerProps: import('../Trigger').TriggerProps;
|
326
326
|
popupMaxHeight: import('..').PopupMaxHeight;
|
327
327
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, ref, computed, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode, normalizeStyle, normalizeClass, renderSlot, createElementVNode, createElementBlock, createCommentVNode, nextTick } from "vue";
|
2
|
-
import { unrefElement } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import { isBoolean, isUndefined } from "../_shared/utils/is.js";
|
4
3
|
import { valueToPx } from "../_shared/utils/dom.js";
|
5
4
|
import { useControlValue } from "../_shared/utils/control.js";
|
5
|
+
import { unrefElement } from "../node_modules/@vueuse/core/index.js";
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|