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/Popconfirm/index.d.ts
CHANGED
@@ -4,20 +4,20 @@ export type PopconfirmInstance = InstanceType<typeof _Popconfirm>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const Popconfirm: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').PopconfirmProps> & Readonly<{
|
7
|
+
onCancel?: (() => any) | undefined;
|
7
8
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
8
9
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
9
|
-
onCancel?: (() => any) | undefined;
|
10
10
|
onOk?: (() => any) | undefined;
|
11
11
|
}>, {
|
12
12
|
hide(): void;
|
13
13
|
show(): void;
|
14
14
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
15
|
+
cancel: () => any;
|
15
16
|
"update:popupVisible": (value: boolean) => any;
|
16
17
|
"popup-visible-change": (value: boolean) => any;
|
17
|
-
cancel: () => any;
|
18
18
|
ok: () => any;
|
19
19
|
}, import('vue').PublicProps, {
|
20
|
-
type: import('
|
20
|
+
type: import('..').Type;
|
21
21
|
popupContainer: import('..').PopupContainer;
|
22
22
|
popupVisible: boolean;
|
23
23
|
defaultPopupVisible: boolean;
|
@@ -282,15 +282,15 @@ declare const Popconfirm: {
|
|
282
282
|
M: {};
|
283
283
|
Defaults: {};
|
284
284
|
}, Readonly<import('./type').PopconfirmProps> & Readonly<{
|
285
|
+
onCancel?: (() => any) | undefined;
|
285
286
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
286
287
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
287
|
-
onCancel?: (() => any) | undefined;
|
288
288
|
onOk?: (() => any) | undefined;
|
289
289
|
}>, {
|
290
290
|
hide(): void;
|
291
291
|
show(): void;
|
292
292
|
}, {}, {}, {}, {
|
293
|
-
type: import('
|
293
|
+
type: import('..').Type;
|
294
294
|
popupContainer: import('..').PopupContainer;
|
295
295
|
popupVisible: boolean;
|
296
296
|
defaultPopupVisible: boolean;
|
@@ -313,20 +313,20 @@ declare const Popconfirm: {
|
|
313
313
|
__isTeleport?: never;
|
314
314
|
__isSuspense?: never;
|
315
315
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').PopconfirmProps> & Readonly<{
|
316
|
+
onCancel?: (() => any) | undefined;
|
316
317
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
317
318
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
318
|
-
onCancel?: (() => any) | undefined;
|
319
319
|
onOk?: (() => any) | undefined;
|
320
320
|
}>, {
|
321
321
|
hide(): void;
|
322
322
|
show(): void;
|
323
323
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
324
|
+
cancel: () => any;
|
324
325
|
"update:popupVisible": (value: boolean) => any;
|
325
326
|
"popup-visible-change": (value: boolean) => any;
|
326
|
-
cancel: () => any;
|
327
327
|
ok: () => any;
|
328
328
|
}, string, {
|
329
|
-
type: import('
|
329
|
+
type: import('..').Type;
|
330
330
|
popupContainer: import('..').PopupContainer;
|
331
331
|
popupVisible: boolean;
|
332
332
|
defaultPopupVisible: boolean;
|
@@ -249,17 +249,17 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
|
|
249
249
|
hide(): void;
|
250
250
|
show(): void;
|
251
251
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
252
|
+
cancel: () => any;
|
252
253
|
"update:popupVisible": (value: boolean) => any;
|
253
254
|
"popup-visible-change": (value: boolean) => any;
|
254
|
-
cancel: () => any;
|
255
255
|
ok: () => any;
|
256
256
|
}, string, import('vue').PublicProps, Readonly<PopconfirmProps> & Readonly<{
|
257
|
+
onCancel?: (() => any) | undefined;
|
257
258
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
258
259
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
259
|
-
onCancel?: (() => any) | undefined;
|
260
260
|
onOk?: (() => any) | undefined;
|
261
261
|
}>, {
|
262
|
-
type: import('
|
262
|
+
type: import('..').Type;
|
263
263
|
popupContainer: import('..').PopupContainer;
|
264
264
|
popupVisible: boolean;
|
265
265
|
defaultPopupVisible: boolean;
|
package/es/Popconfirm/type.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CSSProperties, VNode } from 'vue';
|
2
|
-
import { ClassName, PopupContainer, PopupPosition } from '../_shared/type';
|
2
|
+
import { ClassName, PopupContainer, PopupPosition, Type } from '../_shared/type';
|
3
3
|
import { OnBeforeCancel, OnBeforeOk } from '../Modal';
|
4
4
|
import { TriggerProps } from '../Trigger';
|
5
5
|
import { ButtonProps } from '../Button';
|
@@ -8,7 +8,7 @@ export interface PopconfirmProps {
|
|
8
8
|
position?: PopupPosition;
|
9
9
|
popupVisible?: boolean;
|
10
10
|
defaultPopupVisible?: boolean;
|
11
|
-
type?:
|
11
|
+
type?: Type;
|
12
12
|
okText?: string;
|
13
13
|
cancelText?: string;
|
14
14
|
okLoading?: boolean;
|
@@ -38,4 +38,3 @@ export interface PopconfirmExpose {
|
|
38
38
|
hide(): void;
|
39
39
|
show(): void;
|
40
40
|
}
|
41
|
-
export type PopconfirmType = 'success' | 'warning' | 'error' | 'info';
|
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<ProgressProps, {},
|
|
20
20
|
size: import('..').Size;
|
21
21
|
type: import('./type').ProgressType;
|
22
22
|
animation: boolean;
|
23
|
-
status: import('
|
23
|
+
status: import('..').Status;
|
24
24
|
showText: boolean;
|
25
25
|
percent: number;
|
26
26
|
steps: number;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ProgressColor
|
2
|
-
import { Size } from '../_shared/type';
|
1
|
+
import { ProgressColor } from './type';
|
2
|
+
import { Size, Status } from '../_shared/type';
|
3
3
|
type __VLS_Props = {
|
4
4
|
type: string;
|
5
5
|
percent: number;
|
6
|
-
status?:
|
6
|
+
status?: Status;
|
7
7
|
size: Size;
|
8
8
|
text: string;
|
9
9
|
showText: boolean;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ProgressColor
|
2
|
-
import { Size } from '../_shared/type';
|
1
|
+
import { ProgressColor } from './type';
|
2
|
+
import { Size, Status } from '../_shared/type';
|
3
3
|
type __VLS_Props = {
|
4
4
|
size: Size;
|
5
5
|
percent: number;
|
6
|
-
status?:
|
6
|
+
status?: Status;
|
7
7
|
showText: boolean;
|
8
8
|
text: string;
|
9
9
|
width?: number;
|
package/es/Progress/index.d.ts
CHANGED
@@ -7,7 +7,7 @@ declare const Progress: {
|
|
7
7
|
size: import('..').Size;
|
8
8
|
type: import('./type').ProgressType;
|
9
9
|
animation: boolean;
|
10
|
-
status: import('
|
10
|
+
status: import('..').Status;
|
11
11
|
showText: boolean;
|
12
12
|
percent: number;
|
13
13
|
steps: number;
|
@@ -22,7 +22,7 @@ declare const Progress: {
|
|
22
22
|
size: import('..').Size;
|
23
23
|
type: import('./type').ProgressType;
|
24
24
|
animation: boolean;
|
25
|
-
status: import('
|
25
|
+
status: import('..').Status;
|
26
26
|
showText: boolean;
|
27
27
|
percent: number;
|
28
28
|
steps: number;
|
@@ -34,7 +34,7 @@ declare const Progress: {
|
|
34
34
|
size: import('..').Size;
|
35
35
|
type: import('./type').ProgressType;
|
36
36
|
animation: boolean;
|
37
|
-
status: import('
|
37
|
+
status: import('..').Status;
|
38
38
|
showText: boolean;
|
39
39
|
percent: number;
|
40
40
|
steps: number;
|
package/es/Progress/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Size } from '../_shared/type';
|
1
|
+
import { Size, Status } from '../_shared/type';
|
2
2
|
export interface ProgressProps {
|
3
3
|
type?: ProgressType;
|
4
4
|
size?: Size;
|
@@ -10,8 +10,7 @@ export interface ProgressProps {
|
|
10
10
|
color?: ProgressColor;
|
11
11
|
trackColor?: string;
|
12
12
|
showText?: boolean;
|
13
|
-
status?:
|
13
|
+
status?: Status;
|
14
14
|
}
|
15
15
|
export type ProgressType = 'line' | 'circle';
|
16
16
|
export type ProgressColor = string | Record<string, string>;
|
17
|
-
export type ProgressStatus = 'success' | 'warning' | 'danger' | 'normal';
|
package/es/Radio/Radio.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, renderSlot, Fragment, createVNode, createCommentVNode, withCtx } from "vue";
|
2
2
|
import { useControlValue } from "../_shared/utils/control.js";
|
3
|
-
import
|
3
|
+
import useRadioContext from "./hooks/useContext.js";
|
4
4
|
import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import "../_shared/utils/dom.js";
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
46
|
size,
|
47
47
|
hasGroup,
|
48
48
|
emits: _emits
|
49
|
-
} =
|
49
|
+
} = useRadioContext().inject();
|
50
50
|
const computedValue = useControlValue(
|
51
51
|
modelValue,
|
52
52
|
defaultChecked.value,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, useSlots, createElementBlock, openBlock, normalizeClass, renderSlot, Fragment, renderList, unref, createBlock, createSlots, withCtx, createTextVNode, toDisplayString, mergeProps } from "vue";
|
2
|
-
import
|
2
|
+
import useRadioContext from "./hooks/useContext.js";
|
3
3
|
import _sfc_main$1 from "./Radio.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
const $slots = useSlots();
|
22
22
|
const props = __props;
|
23
23
|
const emits = __emit;
|
24
|
-
const { options } =
|
24
|
+
const { options } = useRadioContext().provide(props, emits);
|
25
25
|
return (_ctx, _cache) => {
|
26
26
|
return openBlock(), createElementBlock("div", {
|
27
27
|
class: normalizeClass([
|
@@ -9,10 +9,10 @@ interface RadioContext {
|
|
9
9
|
hasGroup: Ref<boolean>;
|
10
10
|
emits: RadioGroupEmits;
|
11
11
|
}
|
12
|
-
|
12
|
+
export default function useRadioContext(): {
|
13
13
|
provide: (props: RecordType, emits: RadioGroupEmits) => {
|
14
14
|
options: import('vue').ComputedRef<RecordType[]>;
|
15
15
|
};
|
16
16
|
inject: () => RadioContext;
|
17
17
|
};
|
18
|
-
export
|
18
|
+
export {};
|
@@ -3,7 +3,7 @@ import { useControlValue } from "../../_shared/utils/control.js";
|
|
3
3
|
import { getGlobalConfig } from "../../_shared/utils/global-config.js";
|
4
4
|
import { isObject } from "../../_shared/utils/is.js";
|
5
5
|
const RADIO_GROUP_CONTEXT_KEY = "radio-group-context";
|
6
|
-
|
6
|
+
function useRadioContext() {
|
7
7
|
const provide$1 = (props, emits) => {
|
8
8
|
const {
|
9
9
|
modelValue,
|
@@ -56,7 +56,7 @@ const useContext = () => {
|
|
56
56
|
provide: provide$1,
|
57
57
|
inject: inject$1
|
58
58
|
};
|
59
|
-
}
|
59
|
+
}
|
60
60
|
export {
|
61
|
-
|
61
|
+
useRadioContext as default
|
62
62
|
};
|
package/es/Radio/type.d.ts
CHANGED
@@ -41,10 +41,10 @@ export interface RadioGroupSlots {
|
|
41
41
|
data: RecordType;
|
42
42
|
}) => VNode[];
|
43
43
|
}
|
44
|
+
export type RadioValue = string | number | boolean;
|
44
45
|
export type RadioOption = (RadioValue | {
|
45
46
|
label?: string;
|
46
47
|
value: RadioValue;
|
47
48
|
disabled?: boolean;
|
48
49
|
})[];
|
49
|
-
export type RadioValue = string | number | boolean;
|
50
50
|
export type RadioType = 'radio' | 'button';
|
package/es/ResizeBox/index.d.ts
CHANGED
@@ -25,7 +25,7 @@ declare const ResizeBox: {
|
|
25
25
|
width: number;
|
26
26
|
height: number;
|
27
27
|
component: string;
|
28
|
-
directions: import('
|
28
|
+
directions: import('..').Position[];
|
29
29
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
30
30
|
boxRef: unknown;
|
31
31
|
}, any, import('vue').ComponentProvideOptions, {
|
@@ -48,7 +48,7 @@ declare const ResizeBox: {
|
|
48
48
|
width: number;
|
49
49
|
height: number;
|
50
50
|
component: string;
|
51
|
-
directions: import('
|
51
|
+
directions: import('..').Position[];
|
52
52
|
}>;
|
53
53
|
__isFragment?: never;
|
54
54
|
__isTeleport?: never;
|
@@ -75,7 +75,7 @@ declare const ResizeBox: {
|
|
75
75
|
width: number;
|
76
76
|
height: number;
|
77
77
|
component: string;
|
78
|
-
directions: import('
|
78
|
+
directions: import('..').Position[];
|
79
79
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
80
80
|
$slots: Readonly<import('./type').ResizeBoxSlots> & import('./type').ResizeBoxSlots;
|
81
81
|
}) & {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ResizeBoxProps, ResizeBoxSlots
|
1
|
+
import { ResizeBoxProps, ResizeBoxSlots } from './type';
|
2
2
|
declare function __VLS_template(): {
|
3
3
|
attrs: Partial<{}>;
|
4
4
|
slots: Readonly<ResizeBoxSlots> & ResizeBoxSlots;
|
@@ -30,7 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<ResizeBoxProps, {},
|
|
30
30
|
width: number;
|
31
31
|
height: number;
|
32
32
|
component: string;
|
33
|
-
directions:
|
33
|
+
directions: import('..').Position[];
|
34
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
35
35
|
boxRef: unknown;
|
36
36
|
}, any>;
|
package/es/ResizeBox/type.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
+
import { Position } from '../_shared/type';
|
2
3
|
export interface ResizeBoxProps {
|
3
4
|
width?: number;
|
4
5
|
height?: number;
|
5
6
|
component?: string;
|
6
|
-
directions?:
|
7
|
+
directions?: Position[];
|
7
8
|
}
|
8
9
|
export interface ResizeBoxEmits {
|
9
10
|
(e: 'update:width', value: number): void;
|
@@ -18,10 +19,9 @@ export interface ResizeBoxEmits {
|
|
18
19
|
export interface ResizeBoxSlots {
|
19
20
|
default?: () => VNode[];
|
20
21
|
'resize-trigger'?: (scope: {
|
21
|
-
direction:
|
22
|
+
direction: Position;
|
22
23
|
}) => VNode[];
|
23
24
|
'resize-trigger-icon'?: (scope: {
|
24
|
-
direction:
|
25
|
+
direction: Position;
|
25
26
|
}) => VNode[];
|
26
27
|
}
|
27
|
-
export type ResizeBoxDirection = 'left' | 'right' | 'top' | 'bottom';
|
package/es/Result/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ export * from './type';
|
|
5
5
|
declare const Result: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ResultProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
7
|
title: string;
|
8
|
-
status:
|
8
|
+
status: "success" | "warning" | "error" | "info" | "403" | "404" | "500" | null;
|
9
9
|
subtitle: string;
|
10
10
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
11
11
|
P: {};
|
@@ -16,7 +16,7 @@ declare const Result: {
|
|
16
16
|
Defaults: {};
|
17
17
|
}, Readonly<import('./type').ResultProps> & Readonly<{}>, {}, {}, {}, {}, {
|
18
18
|
title: string;
|
19
|
-
status:
|
19
|
+
status: "success" | "warning" | "error" | "info" | "403" | "404" | "500" | null;
|
20
20
|
subtitle: string;
|
21
21
|
}>;
|
22
22
|
__isFragment?: never;
|
@@ -24,7 +24,7 @@ declare const Result: {
|
|
24
24
|
__isSuspense?: never;
|
25
25
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ResultProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
26
26
|
title: string;
|
27
|
-
status:
|
27
|
+
status: "success" | "warning" | "error" | "info" | "403" | "404" | "500" | null;
|
28
28
|
subtitle: string;
|
29
29
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
30
30
|
$slots: any;
|
package/es/Result/index.vue.d.ts
CHANGED
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<ResultProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ResultProps> & Readonly<{}>, {
|
10
10
|
title: string;
|
11
|
-
status:
|
11
|
+
status: "success" | "warning" | "error" | "info" | "403" | "404" | "500" | null;
|
12
12
|
subtitle: string;
|
13
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
14
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/es/Result/type.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
2
|
export interface ResultProps {
|
3
|
-
status?:
|
3
|
+
status?: Status;
|
4
4
|
title?: string;
|
5
5
|
subtitle?: string;
|
6
6
|
}
|
@@ -11,4 +11,5 @@ export interface ResultSlots {
|
|
11
11
|
default?: () => VNode[];
|
12
12
|
extra?: () => VNode[];
|
13
13
|
}
|
14
|
-
|
14
|
+
type Status = 'success' | 'warning' | 'error' | 'info' | '403' | '404' | '500' | null;
|
15
|
+
export {};
|
@@ -19,7 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<ScrollbarProps, {
|
|
19
19
|
}, string, import('vue').PublicProps, Readonly<ScrollbarProps> & Readonly<{
|
20
20
|
onScroll?: ((left: number, top: number, ev: Event) => any) | undefined;
|
21
21
|
}>, {
|
22
|
-
type:
|
22
|
+
type: "embed" | "track";
|
23
23
|
scrollbar: boolean;
|
24
24
|
outerClass: import('..').ClassName;
|
25
25
|
outerStyle: import('vue').CSSProperties;
|
@@ -3,7 +3,7 @@ import { useResizeObserver, useElementSize } from "../node_modules/@vueuse/core/
|
|
3
3
|
import { isVerticallyScrollable, isHorizontallyScrollable } from "../_shared/utils/dom.js";
|
4
4
|
import _sfc_main$1 from "./ScrollbarTrack.vue.js";
|
5
5
|
/* empty css */
|
6
|
-
import
|
6
|
+
import useScrollbarContext from "./hooks/useContext.js";
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
8
|
...{
|
9
9
|
name: "Scrollbar",
|
@@ -126,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
126
126
|
const track = hasVerticalBar2.value ? trackWidth2.value : 0;
|
127
127
|
return scrollWidth2.value - thumbWidth.value - track;
|
128
128
|
});
|
129
|
-
|
129
|
+
useScrollbarContext().provide({
|
130
130
|
curLeft: curLeft2,
|
131
131
|
curTop: curTop2,
|
132
132
|
movableLeft: movableLeft2,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, toRefs, computed, ref, watchEffect, createElementBlock, openBlock, withModifiers, normalizeClass, unref, createElementVNode, normalizeStyle } from "vue";
|
2
2
|
import { useResizeObserver, useDraggable } from "../node_modules/@vueuse/core/index.js";
|
3
3
|
import { valueToPx } from "../_shared/utils/dom.js";
|
4
|
-
import
|
4
|
+
import useScrollbarContext from "./hooks/useContext.js";
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "ScrollbarTrack",
|
7
7
|
props: {
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
curTop,
|
22
22
|
curLeft,
|
23
23
|
isDragging: _isDragging
|
24
|
-
} =
|
24
|
+
} = useScrollbarContext().inject();
|
25
25
|
const isVertical = computed(() => direction.value == "vertical");
|
26
26
|
const thmubStyle = computed(() => {
|
27
27
|
return isVertical.value ? {
|
@@ -9,8 +9,8 @@ type ScrollbarContext = {
|
|
9
9
|
isDragging: Ref<boolean>;
|
10
10
|
scrollRef: Ref<HTMLDivElement | undefined>;
|
11
11
|
};
|
12
|
-
|
12
|
+
export default function useScrollbarContext(): {
|
13
13
|
provide: (params: ScrollbarContext) => void;
|
14
14
|
inject: () => ScrollbarContext;
|
15
15
|
};
|
16
|
-
export
|
16
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { provide, inject, ref } from "vue";
|
2
2
|
const SCROLLBAR_CONTEXT_KEY = "scrollbar-context";
|
3
|
-
|
3
|
+
function useScrollbarContext() {
|
4
4
|
const provide$1 = (params) => {
|
5
5
|
provide(SCROLLBAR_CONTEXT_KEY, params);
|
6
6
|
};
|
@@ -20,7 +20,7 @@ const useContext = () => {
|
|
20
20
|
provide: provide$1,
|
21
21
|
inject: inject$1
|
22
22
|
};
|
23
|
-
}
|
23
|
+
}
|
24
24
|
export {
|
25
|
-
|
25
|
+
useScrollbarContext as default
|
26
26
|
};
|
package/es/Scrollbar/index.d.ts
CHANGED
@@ -13,7 +13,7 @@ declare const Scrollbar: {
|
|
13
13
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
14
14
|
scroll: (left: number, top: number, ev: Event) => any;
|
15
15
|
}, import('vue').PublicProps, {
|
16
|
-
type:
|
16
|
+
type: "embed" | "track";
|
17
17
|
scrollbar: boolean;
|
18
18
|
outerClass: import('..').ClassName;
|
19
19
|
outerStyle: import('vue').CSSProperties;
|
@@ -35,7 +35,7 @@ declare const Scrollbar: {
|
|
35
35
|
scrollTop(top: number): void;
|
36
36
|
getScrollRef(): HTMLDivElement;
|
37
37
|
}, {}, {}, {}, {
|
38
|
-
type:
|
38
|
+
type: "embed" | "track";
|
39
39
|
scrollbar: boolean;
|
40
40
|
outerClass: import('..').ClassName;
|
41
41
|
outerStyle: import('vue').CSSProperties;
|
@@ -53,7 +53,7 @@ declare const Scrollbar: {
|
|
53
53
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
54
54
|
scroll: (left: number, top: number, ev: Event) => any;
|
55
55
|
}, string, {
|
56
|
-
type:
|
56
|
+
type: "embed" | "track";
|
57
57
|
scrollbar: boolean;
|
58
58
|
outerClass: import('..').ClassName;
|
59
59
|
outerStyle: import('vue').CSSProperties;
|
package/es/Scrollbar/type.d.ts
CHANGED
package/es/Select/Option.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, ref, computed, withDirectives, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createBlock, renderSlot, withCtx, createElementVNode, createTextVNode, toDisplayString, vShow } from "vue";
|
2
2
|
import { isUndefined } from "../_shared/utils/is.js";
|
3
3
|
import { getDomText } from "../_shared/utils/dom.js";
|
4
|
-
import
|
4
|
+
import useSelectContext from "./hooks/useContext.js";
|
5
5
|
import Checkbox from "../Checkbox/index.js";
|
6
6
|
const _hoisted_1 = {
|
7
7
|
key: 0,
|
@@ -39,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
getValue,
|
40
40
|
emits,
|
41
41
|
collectOption
|
42
|
-
} =
|
42
|
+
} = useSelectContext().inject();
|
43
43
|
const contentRef = ref();
|
44
44
|
const optionValue = computed(() => {
|
45
45
|
return `${props.value}` ? props.value : getDomText(contentRef);
|