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 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/is.js"),u=require("./useSelectOptions.js"),o=require("./useSelectHotkeys.js"),i="select-context";exports.default=()
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/is.js"),u=require("./useSelectOptions.js"),o=require("./useSelectHotkeys.js"),i="select-context";exports.default=function(){return{provide:(a,s,r)=>{const{popupVisible:n,defaultPopupVisible:p,modelValue:c,defaultValue:d,inputValue:m,defaultInputValue:v,multiple:f,fieldNames:V,limit:O,allowSearch:b,showExtraOptions:y,valueKey:h,hotkeys:g,options:j,showEmpty:x}=e.toRefs(a),{formatLabel:I,fallbackOption:k,filterOption:w}=a,E=l.useControlValue(n,p.value,e=>{s("update:popupVisible",e),s("popup-visible-change",e)}),S=l.useControlValue(c,d.value?d.value:f.value?[]:"",e=>{s("change",e),s("update:modelValue",e)},e=>f.value?Array.isArray(e)?e:[e]:e),q=l.useControlValue(m,v.value,e=>{s("update:inputValue",e)}),C=e.computed(()=>Object.fromEntries(["id","label","value","disabled","tagProps","render","isFallbackOption"].map(e=>[e,V.value[e]??e]))),L=e=>{var l;const t=null==e?void 0:e.label,u=null==(l=q.value.toLowerCase())?void 0:l.toLowerCase();return!!(null==t?void 0:t.includes(u))},_=e=>b.value?t.isFunction(w)?w(q.value,e):L(e):!(!t.isBoolean(w)||w)||(t.isFunction(w)?w(q.value,e):L(e)),{options:F,renderOptions:K,createOptions:P,selectOptions:A,collectOption:B}=u.default({computedValue:S,multiple:f,showExtraOptions:y,provideOptions:j,getValue:N,fallbackOption:k,formatLabel:I}),M=e.computed(()=>x.value?!b.value||t.isBoolean(w)&&!_?!F.value.length:F.value.every(e=>!_(e)):x.value),{curIndex:H}=o.default({computedValue:S,computedVisible:E,hotkeys:g,limit:O,multiple:f,options:F,blur:R,emits:s});function N(e){return(null==e?void 0:e[h.value])??e}function R(){var e;null==(e=r.value)||e.blur()}return e.provide(i,{computedValue:S,computedInputValue:q,limit:O,multiple:f,curIndex:H,options:F,isEmpty:M,fieldKey:C,renderOptions:K,slots:e.useSlots(),filterOption:_,blur:R,getValue:N,emits:s,collectOption:B}),{computedVisible:E,computedValue:S,computedInputValue:q,selectOptions:A,createOptions:P,options:F}},inject:()=>e.inject(i,{computedValue:e.ref(void 0),computedInputValue:e.ref(""),multiple:e.ref(!1),limit:e.ref(0),curIndex:e.ref(-1),options:e.ref([]),renderOptions:e.ref([]),isEmpty:e.ref(!1),fieldKey:e.ref({}),slots:{},emits:()=>{},blur:()=>{},filterOption:()=>!0,getValue:()=>"",collectOption:()=>{}})}};
|
@@ -18,7 +18,7 @@ declare const _default: (params: {
|
|
18
18
|
disabled?: boolean | undefined;
|
19
19
|
tagProps?: {
|
20
20
|
color?: string | undefined;
|
21
|
-
size?: import('
|
21
|
+
size?: Exclude<import('../../_shared/type').Size, "mini"> | undefined;
|
22
22
|
bordered?: boolean | undefined;
|
23
23
|
visible?: boolean | undefined;
|
24
24
|
defaultVisible?: boolean | undefined;
|
@@ -38,7 +38,7 @@ declare const _default: (params: {
|
|
38
38
|
disabled?: boolean | undefined;
|
39
39
|
tagProps?: {
|
40
40
|
color?: string | undefined;
|
41
|
-
size?: import('
|
41
|
+
size?: Exclude<import('../../_shared/type').Size, "mini"> | undefined;
|
42
42
|
bordered?: boolean | undefined;
|
43
43
|
visible?: boolean | undefined;
|
44
44
|
defaultVisible?: boolean | undefined;
|
package/lib/Select/index.d.ts
CHANGED
@@ -9,12 +9,12 @@ export * from './type';
|
|
9
9
|
declare const Select: {
|
10
10
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SelectProps> & Readonly<{
|
11
11
|
onChange?: ((value: import('./type').SelectValue) => any) | undefined;
|
12
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
13
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
14
12
|
onClear?: (() => any) | undefined;
|
15
13
|
onSearch?: ((value: string) => any) | undefined;
|
16
14
|
onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
|
17
15
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
16
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
17
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
18
18
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
19
19
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
20
20
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -27,12 +27,12 @@ declare const Select: {
|
|
27
27
|
getPopupRef(): import('..').TriggerInstance;
|
28
28
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
29
29
|
change: (value: import('./type').SelectValue) => any;
|
30
|
-
"update:popupVisible": (value: boolean) => any;
|
31
|
-
"popup-visible-change": (value: boolean) => any;
|
32
30
|
clear: () => any;
|
33
31
|
search: (value: string) => any;
|
34
32
|
select: (value: import('./type').SelectOptionValue) => any;
|
35
33
|
remove: (index: string | number, ev: Event) => any;
|
34
|
+
"update:popupVisible": (value: boolean) => any;
|
35
|
+
"popup-visible-change": (value: boolean) => any;
|
36
36
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
37
37
|
"update:inputValue": (value: string) => any;
|
38
38
|
"input-value-change": (value: string) => any;
|
@@ -40,8 +40,8 @@ declare const Select: {
|
|
40
40
|
"dropdown-scroll": (ev: Event) => any;
|
41
41
|
"dropdown-reach-bottom": (ev: Event) => any;
|
42
42
|
}, import('vue').PublicProps, {
|
43
|
-
size: import('..').Size;
|
44
43
|
error: boolean;
|
44
|
+
size: import('..').Size;
|
45
45
|
popupContainer: import('..').PopupContainer;
|
46
46
|
popupVisible: boolean;
|
47
47
|
defaultPopupVisible: boolean;
|
@@ -326,16 +326,19 @@ declare const Select: {
|
|
326
326
|
readonly allowClear?: boolean | undefined;
|
327
327
|
readonly size?: import('..').Size | undefined;
|
328
328
|
readonly maxTagCount?: number | undefined;
|
329
|
-
readonly retainInputValue?:
|
329
|
+
readonly retainInputValue?: (boolean | {
|
330
|
+
create?: boolean;
|
331
|
+
blur?: boolean;
|
332
|
+
}) | undefined;
|
330
333
|
readonly formatTag?: import('..').Format<import('..').TagData> | undefined;
|
331
334
|
readonly uniqueValue?: boolean | undefined;
|
332
335
|
readonly tagNowrap?: boolean | undefined;
|
333
336
|
readonly fieldNames?: Record<string, string> | undefined;
|
334
337
|
readonly allowCreate?: boolean | undefined;
|
335
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
336
338
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
337
339
|
readonly onInput?: ((value: string) => any) | undefined;
|
338
340
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
341
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
339
342
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
340
343
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
341
344
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -357,13 +360,13 @@ declare const Select: {
|
|
357
360
|
$root: import('vue').ComponentPublicInstance | null;
|
358
361
|
$parent: import('vue').ComponentPublicInstance | null;
|
359
362
|
$host: Element | null;
|
360
|
-
$emit: ((event: "
|
363
|
+
$emit: ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
361
364
|
$el: HTMLDivElement;
|
362
365
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
363
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
364
366
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
365
367
|
onInput?: ((value: string) => any) | undefined;
|
366
368
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
369
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
367
370
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
368
371
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
369
372
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -373,18 +376,18 @@ declare const Select: {
|
|
373
376
|
focus(): void;
|
374
377
|
blur(): void;
|
375
378
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
376
|
-
focus: (ev: FocusEvent) => any;
|
377
379
|
clear: (ev: MouseEvent) => any;
|
378
380
|
input: (value: string) => any;
|
379
381
|
blur: (ev: FocusEvent) => any;
|
382
|
+
focus: (ev: FocusEvent) => any;
|
380
383
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
381
384
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
382
385
|
"update:inputValue": (value: string) => any;
|
383
386
|
"input-value-change": (value: string, ev: Event) => any;
|
384
387
|
"press-enter": (ev: KeyboardEvent) => any;
|
385
388
|
}, string, {
|
386
|
-
size: import('..').Size;
|
387
389
|
error: boolean;
|
390
|
+
size: import('..').Size;
|
388
391
|
disabled: boolean;
|
389
392
|
placeholder: string;
|
390
393
|
modelValue: import('..').InputTagValue;
|
@@ -397,7 +400,10 @@ declare const Select: {
|
|
397
400
|
allowCreate: boolean;
|
398
401
|
maxTagCount: number;
|
399
402
|
tagNowrap: boolean;
|
400
|
-
retainInputValue:
|
403
|
+
retainInputValue: boolean | {
|
404
|
+
create?: boolean;
|
405
|
+
blur?: boolean;
|
406
|
+
};
|
401
407
|
uniqueValue: boolean;
|
402
408
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
403
409
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -420,8 +426,8 @@ declare const Select: {
|
|
420
426
|
$nextTick: typeof import('vue').nextTick;
|
421
427
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
422
428
|
} & Readonly<{
|
423
|
-
size: import('..').Size;
|
424
429
|
error: boolean;
|
430
|
+
size: import('..').Size;
|
425
431
|
disabled: boolean;
|
426
432
|
placeholder: string;
|
427
433
|
modelValue: import('..').InputTagValue;
|
@@ -434,19 +440,22 @@ declare const Select: {
|
|
434
440
|
allowCreate: boolean;
|
435
441
|
maxTagCount: number;
|
436
442
|
tagNowrap: boolean;
|
437
|
-
retainInputValue:
|
443
|
+
retainInputValue: boolean | {
|
444
|
+
create?: boolean;
|
445
|
+
blur?: boolean;
|
446
|
+
};
|
438
447
|
uniqueValue: boolean;
|
439
448
|
}> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
|
440
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
441
449
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
442
450
|
onInput?: ((value: string) => any) | undefined;
|
443
451
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
452
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
444
453
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
445
454
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
446
455
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
447
456
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
448
457
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
449
|
-
}>, "
|
458
|
+
}>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
450
459
|
focus(): void;
|
451
460
|
blur(): void;
|
452
461
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
@@ -461,12 +470,12 @@ declare const Select: {
|
|
461
470
|
Defaults: {};
|
462
471
|
}, Readonly<import('./type').SelectProps> & Readonly<{
|
463
472
|
onChange?: ((value: import('./type').SelectValue) => any) | undefined;
|
464
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
465
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
466
473
|
onClear?: (() => any) | undefined;
|
467
474
|
onSearch?: ((value: string) => any) | undefined;
|
468
475
|
onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
|
469
476
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
477
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
478
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
470
479
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
471
480
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
472
481
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -478,8 +487,8 @@ declare const Select: {
|
|
478
487
|
blur(): void;
|
479
488
|
getPopupRef(): import('..').TriggerInstance;
|
480
489
|
}, {}, {}, {}, {
|
481
|
-
size: import('..').Size;
|
482
490
|
error: boolean;
|
491
|
+
size: import('..').Size;
|
483
492
|
popupContainer: import('..').PopupContainer;
|
484
493
|
popupVisible: boolean;
|
485
494
|
defaultPopupVisible: boolean;
|
@@ -516,12 +525,12 @@ declare const Select: {
|
|
516
525
|
__isSuspense?: never;
|
517
526
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SelectProps> & Readonly<{
|
518
527
|
onChange?: ((value: import('./type').SelectValue) => any) | undefined;
|
519
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
520
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
521
528
|
onClear?: (() => any) | undefined;
|
522
529
|
onSearch?: ((value: string) => any) | undefined;
|
523
530
|
onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
|
524
531
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
532
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
533
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
525
534
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
526
535
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
527
536
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -534,12 +543,12 @@ declare const Select: {
|
|
534
543
|
getPopupRef(): import('..').TriggerInstance;
|
535
544
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
536
545
|
change: (value: import('./type').SelectValue) => any;
|
537
|
-
"update:popupVisible": (value: boolean) => any;
|
538
|
-
"popup-visible-change": (value: boolean) => any;
|
539
546
|
clear: () => any;
|
540
547
|
search: (value: string) => any;
|
541
548
|
select: (value: import('./type').SelectOptionValue) => any;
|
542
549
|
remove: (index: string | number, ev: Event) => any;
|
550
|
+
"update:popupVisible": (value: boolean) => any;
|
551
|
+
"popup-visible-change": (value: boolean) => any;
|
543
552
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
544
553
|
"update:inputValue": (value: string) => any;
|
545
554
|
"input-value-change": (value: string) => any;
|
@@ -547,8 +556,8 @@ declare const Select: {
|
|
547
556
|
"dropdown-scroll": (ev: Event) => any;
|
548
557
|
"dropdown-reach-bottom": (ev: Event) => any;
|
549
558
|
}, string, {
|
550
|
-
size: import('..').Size;
|
551
559
|
error: boolean;
|
560
|
+
size: import('..').Size;
|
552
561
|
popupContainer: import('..').PopupContainer;
|
553
562
|
popupVisible: boolean;
|
554
563
|
defaultPopupVisible: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SkeletonShapeProps } from './type';
|
2
2
|
declare const _default: import('vue').DefineComponent<SkeletonShapeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonShapeProps> & Readonly<{}>, {
|
3
|
-
size: import('
|
4
|
-
shape: import('
|
3
|
+
size: Exclude<import('..').Size, "mini">;
|
4
|
+
shape: Exclude<import('..').Shape, "round">;
|
5
5
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
6
6
|
export default _default;
|
package/lib/Skeleton/index.d.ts
CHANGED
@@ -31,8 +31,8 @@ declare const Skeleton: {
|
|
31
31
|
$slots: Readonly<import('./type').SkeletonSlots> & import('./type').SkeletonSlots;
|
32
32
|
}) & {
|
33
33
|
shape: import('vue').DefineComponent<import('./type').SkeletonShapeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./type').SkeletonShapeProps> & Readonly<{}>, {
|
34
|
-
size: import('
|
35
|
-
shape: import('
|
34
|
+
size: Exclude<import('..').Size, "mini">;
|
35
|
+
shape: Exclude<import('..').Shape, "round">;
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
37
37
|
line: import('vue').DefineComponent<import('./type').SkeletonLineProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./type').SkeletonLineProps> & Readonly<{}>, {
|
38
38
|
lineHeight: number;
|
package/lib/Skeleton/type.d.ts
CHANGED
@@ -15,8 +15,6 @@ export interface SkeletonLineProps {
|
|
15
15
|
lineSpacing?: number;
|
16
16
|
}
|
17
17
|
export interface SkeletonShapeProps {
|
18
|
-
shape?:
|
19
|
-
size?:
|
18
|
+
shape?: Exclude<Shape, 'round'>;
|
19
|
+
size?: Exclude<Size, 'mini'>;
|
20
20
|
}
|
21
|
-
export type SkeletonShapeSize = Exclude<Size, 'mini'>;
|
22
|
-
export type SkeletonShapeShape = Exclude<Shape, 'round'>;
|
@@ -18,7 +18,7 @@ type SliderContext = {
|
|
18
18
|
normalizeValue: (value: number) => number;
|
19
19
|
denormalizeValue: (value: number) => number;
|
20
20
|
};
|
21
|
-
|
21
|
+
export default function useSliderContext(): {
|
22
22
|
inject: () => SliderContext;
|
23
23
|
provide: (props: RecordType, emits: SliderEmits, trackRef: Ref<HTMLDivElement | undefined>) => {
|
24
24
|
range: Ref<boolean, boolean>;
|
@@ -41,4 +41,4 @@ declare const _default: () => {
|
|
41
41
|
normalizeValue: (value: number) => number;
|
42
42
|
};
|
43
43
|
};
|
44
|
-
export
|
44
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),l=require("../../_shared/utils/is.js"),u="slider-context";exports.default=()
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),l=require("../../_shared/utils/is.js"),u="slider-context";exports.default=function(){return{inject:()=>e.inject(u,{startValue:e.ref(0),endValue:e.ref(0),tempEndValue:e.ref(0),tempStartValue:e.ref(0),range:e.ref(!1),min:e.ref(0),max:e.ref(0),step:e.ref(0),direction:e.ref("horizontal"),disabled:e.ref(!1),showTooltip:e.ref(!0),trackRef:e.ref(),normalizeValue:e=>e,denormalizeValue:e=>e}),provide:(t,r,o)=>{const{modelValue:n,defaultValue:i,step:v,min:s,max:d,direction:m,disabled:c,range:f,showTooltip:p,marks:V}=e.toRefs(t),{formatTooltip:h}=t,g=a.useControlValue(n,f.value&&!l.isArray(i.value)?[0,0]:i.value,e=>{r("update:modelValue",e),r("change",e)}),x=e.computed({get:()=>f.value&&l.isArray(g.value)?g.value[0]:g.value,set(e){f.value&&l.isArray(g.value)?g.value[0]=e:g.value=e,b.value=e}}),b=e.ref(x.value),j=e.computed({get:()=>f.value&&l.isArray(g.value)?g.value[1]:g.value,set(e){f.value&&l.isArray(g.value)?g.value[1]=e:g.value=e,y.value=e}}),y=e.ref(j.value),z=e.computed(()=>{const e=S(v.value),a=[];for(let l=1;l<Math.floor(d.value/v.value);l++){const u=+(l*v.value).toFixed(e);a.push({label:u,value:u})}return a}),M=e.computed(()=>Object.entries(V.value).map(([e,a])=>({value:+e,label:a})));function S(e){const a=e.toString(),l=a.indexOf(".");return-1===l?0:a.length-l-1}function T(e){if(d.value-s.value===0)return 0;return(e-s.value)/(d.value-s.value)*100}return e.provide(u,{startValue:x,endValue:j,tempStartValue:b,tempEndValue:y,range:f,min:s,max:d,step:v,showTooltip:p,disabled:c,direction:m,trackRef:o,formatTooltip:h,normalizeValue:T,denormalizeValue:function(e){const a=(s.value+e/100*(d.value-s.value)-s.value)/v.value,l=Math.round(a),u=s.value+l*v.value,t=S(v.value);return+Math.max(s.value,Math.min(u,d.value)).toFixed(t)}}),{range:f,direction:m,startValue:x,endValue:j,tempStartValue:b,tempEndValue:y,computedValue:g,ticks:z,marks:M,min:s,max:d,normalizeValue:T}}}};
|
package/lib/Space/index.d.ts
CHANGED
@@ -5,10 +5,10 @@ export * from './type';
|
|
5
5
|
declare const Space: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
7
|
fill: boolean;
|
8
|
-
size: import('
|
8
|
+
size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
|
9
9
|
wrap: boolean;
|
10
10
|
direction: import('..').Direction;
|
11
|
-
align:
|
11
|
+
align: "center" | "end" | "start" | "baseline";
|
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 Space: {
|
|
18
18
|
Defaults: {};
|
19
19
|
}, Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, {
|
20
20
|
fill: boolean;
|
21
|
-
size: import('
|
21
|
+
size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
|
22
22
|
wrap: boolean;
|
23
23
|
direction: import('..').Direction;
|
24
|
-
align:
|
24
|
+
align: "center" | "end" | "start" | "baseline";
|
25
25
|
}>;
|
26
26
|
__isFragment?: never;
|
27
27
|
__isTeleport?: never;
|
28
28
|
__isSuspense?: never;
|
29
29
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
30
30
|
fill: boolean;
|
31
|
-
size: import('
|
31
|
+
size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
|
32
32
|
wrap: boolean;
|
33
33
|
direction: import('..').Direction;
|
34
|
-
align:
|
34
|
+
align: "center" | "end" | "start" | "baseline";
|
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
|
}) & {
|
package/lib/Space/index.vue.d.ts
CHANGED
@@ -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<SpaceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpaceProps> & Readonly<{}>, {
|
10
10
|
fill: boolean;
|
11
|
-
size: import('
|
11
|
+
size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
|
12
12
|
wrap: boolean;
|
13
13
|
direction: import('..').Direction;
|
14
|
-
align:
|
14
|
+
align: "center" | "end" | "start" | "baseline";
|
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/lib/Space/type.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Direction, Size } from '../_shared/type';
|
1
|
+
import { Direction, Size as _Size } from '../_shared/type';
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface SpaceProps {
|
4
|
-
align?:
|
4
|
+
align?: Align;
|
5
5
|
direction?: Direction;
|
6
6
|
wrap?: boolean;
|
7
7
|
fill?: boolean;
|
@@ -11,5 +11,6 @@ export interface SpaceSlots {
|
|
11
11
|
default?: () => VNode[];
|
12
12
|
split?: () => VNode[];
|
13
13
|
}
|
14
|
-
|
15
|
-
|
14
|
+
type Align = 'start' | 'end' | 'center' | 'baseline';
|
15
|
+
type SpaceSize = _Size | number;
|
16
|
+
export {};
|
package/lib/Spin/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../_shared/utils/dom.js"),t=require("../node_modules/@vueuse/core/index.js");,/* empty css */,/* empty css */;/* empty css */const n=require("../_shared/icons/IconLoading.vue.js"),l={class:"yc-spin"},i={key:0,class:"yc-dot-loading"},a={key:1,class:"yc-spin-tip"},r={key:0,class:"yc-spin-mask"},s=e.defineComponent({name:"Spin",__name:"index",props:{size:{default:20},loading:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},tip:{default:""},hideIcon:{type:Boolean,default:!1},isSizeInherit:{type:Boolean,default:!1}},setup(s){const c=e.useSlots(),{define:d,reuse:u}=t.createReusableTemplate();return(t,s)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(e.unref(d),null,{default:e.withCtx(()=>[t.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-spin-icon",{"yc-spin-icon-loading":!t.dot}]),style:e.normalizeStyle({fontSize:t.isSizeInherit?"inherit":e.unref(o.valueToPx)(t.size)})},[e.renderSlot(t.$slots,"icon",{},()=>[t.dot?(e.openBlock(),e.createElementBlock("div",i,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createElementVNode("div",{key:o,class:"yc-dot-loading-item"})),64))])):(e.openBlock(),e.createBlock(e.unref(n.default),{key:1}))])],6)),t.tip?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(t.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(t.tip),1)])])):e.createCommentVNode("",!0)]),_:3}),c.default?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(u))])):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createBlock(e.unref(u),{key:0})),e.renderSlot(t.$slots,"default")]))}});exports.default=s;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Ref, Reactive } from 'vue';
|
2
2
|
import { StepsEmits, StepStatus, StepType } from '../type';
|
3
3
|
import { Direction, RecordType } from '../../_shared/type';
|
4
|
-
|
4
|
+
export default function useStepsContext(): {
|
5
5
|
provide: (props: RecordType, emits: StepsEmits) => {
|
6
6
|
direction: import('vue').ComputedRef<Direction>;
|
7
7
|
labelPlacement: import('vue').ComputedRef<Direction>;
|
@@ -23,4 +23,3 @@ declare const _default: () => {
|
|
23
23
|
emits: StepsEmits;
|
24
24
|
};
|
25
25
|
};
|
26
|
-
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),u=require("../../_shared/utils/control.js"),r="card-context";exports.default=()
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),u=require("../../_shared/utils/control.js"),r="card-context";exports.default=function(){return{provide:(t,a)=>{const{status:l,current:s,defaultCurrent:n,lineLess:o,labelPlacement:i,direction:c,small:d,type:v,changeable:p}=e.toRefs(t),f=u.useControlValue(s,n.value,e=>{a("update:current",e)}),m=e.computed(()=>["default","dot"].includes(v.value)?c.value:"horizontal"),h=e.computed(()=>"default"==v.value&&"horizontal"==m.value?i.value:"dot"==v.value?"vertical"==m.value?"horizontal":"vertical":"horizontal"),b=e.reactive(new Map),x=e.ref([]);return e.provide(r,{stepMap:b,computedCurrent:f,lineLess:o,direction:m,status:l,statusArr:x,small:d,type:v,changeable:p,labelPlacement:h,emits:a}),{direction:m,labelPlacement:h,type:v}},inject:u=>{const{status:l}=e.toRefs(u),s=e.inject(r,{stepMap:e.reactive(new Map),computedCurrent:e.ref(0),lineLess:e.ref(!1),direction:e.ref("horizontal"),status:e.ref("process"),statusArr:e.ref([]),small:e.ref(!1),type:e.ref("default"),changeable:e.ref(!1),labelPlacement:e.ref("horizontal"),emits:()=>{}}),{curStep:n,status:o,nextStatus:i}=(()=>{const{stepMap:u,computedCurrent:r,statusArr:n,status:o}=s,i=t.nanoid();u.set(i,i);const c=e.computed(()=>[...u.values()].findIndex(e=>e==i)+1),d=e.computed(()=>a.isUndefined(l.value)?c.value<r.value?"finish":c.value==r.value?o.value??"process":"wait":l.value),v=e.computed(()=>{var e;return null==(e=n.value[c.value])?void 0:e.value});return n.value[c.value-1]=d,e.onBeforeUnmount(()=>{u.delete(i),n.value.splice(c.value-1,1)}),{curStep:c,status:d,nextStatus:v}})();return{...s,curStep:n,status:o,nextStatus:i}}}};
|
package/lib/Switch/index.d.ts
CHANGED
@@ -5,17 +5,17 @@ export * from './type';
|
|
5
5
|
declare const Switch: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SwitchProps> & Readonly<{
|
7
7
|
onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
|
8
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
9
8
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
9
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
10
10
|
"onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
|
11
11
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
12
12
|
change: (value: import('./type').SwitchValue, ev: Event) => any;
|
13
|
-
focus: (ev: FocusEvent) => any;
|
14
13
|
blur: (ev: FocusEvent) => any;
|
14
|
+
focus: (ev: FocusEvent) => any;
|
15
15
|
"update:modelValue": (value: import('./type').SwitchValue) => any;
|
16
16
|
}, import('vue').PublicProps, {
|
17
|
-
size: import('
|
18
|
-
type:
|
17
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
18
|
+
type: "round" | "circle" | "line";
|
19
19
|
disabled: boolean;
|
20
20
|
loading: boolean;
|
21
21
|
defaultChecked: import('./type').SwitchValue;
|
@@ -26,7 +26,7 @@ declare const Switch: {
|
|
26
26
|
uncheckedColor: string;
|
27
27
|
checkedText: string;
|
28
28
|
uncheckedText: string;
|
29
|
-
beforeChange: import('./type').
|
29
|
+
beforeChange: (newValue: import('./type').SwitchValue) => Promise<boolean | void> | boolean | void;
|
30
30
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
31
31
|
P: {};
|
32
32
|
B: {};
|
@@ -36,12 +36,12 @@ declare const Switch: {
|
|
36
36
|
Defaults: {};
|
37
37
|
}, Readonly<import('./type').SwitchProps> & Readonly<{
|
38
38
|
onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
|
39
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
40
39
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
40
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
41
41
|
"onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
|
42
42
|
}>, {}, {}, {}, {}, {
|
43
|
-
size: import('
|
44
|
-
type:
|
43
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
44
|
+
type: "round" | "circle" | "line";
|
45
45
|
disabled: boolean;
|
46
46
|
loading: boolean;
|
47
47
|
defaultChecked: import('./type').SwitchValue;
|
@@ -52,24 +52,24 @@ declare const Switch: {
|
|
52
52
|
uncheckedColor: string;
|
53
53
|
checkedText: string;
|
54
54
|
uncheckedText: string;
|
55
|
-
beforeChange: import('./type').
|
55
|
+
beforeChange: (newValue: import('./type').SwitchValue) => Promise<boolean | void> | boolean | void;
|
56
56
|
}>;
|
57
57
|
__isFragment?: never;
|
58
58
|
__isTeleport?: never;
|
59
59
|
__isSuspense?: never;
|
60
60
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SwitchProps> & Readonly<{
|
61
61
|
onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
|
62
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
63
62
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
63
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
64
64
|
"onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
|
65
65
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
66
66
|
change: (value: import('./type').SwitchValue, ev: Event) => any;
|
67
|
-
focus: (ev: FocusEvent) => any;
|
68
67
|
blur: (ev: FocusEvent) => any;
|
68
|
+
focus: (ev: FocusEvent) => any;
|
69
69
|
"update:modelValue": (value: import('./type').SwitchValue) => any;
|
70
70
|
}, string, {
|
71
|
-
size: import('
|
72
|
-
type:
|
71
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
72
|
+
type: "round" | "circle" | "line";
|
73
73
|
disabled: boolean;
|
74
74
|
loading: boolean;
|
75
75
|
defaultChecked: import('./type').SwitchValue;
|
@@ -80,7 +80,7 @@ declare const Switch: {
|
|
80
80
|
uncheckedColor: string;
|
81
81
|
checkedText: string;
|
82
82
|
uncheckedText: string;
|
83
|
-
beforeChange: import('./type').
|
83
|
+
beforeChange: (newValue: import('./type').SwitchValue) => Promise<boolean | void> | boolean | void;
|
84
84
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
85
85
|
$slots: any;
|
86
86
|
}) & {
|
@@ -8,17 +8,17 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
10
10
|
change: (value: SwitchValue, ev: Event) => any;
|
11
|
-
focus: (ev: FocusEvent) => any;
|
12
11
|
blur: (ev: FocusEvent) => any;
|
12
|
+
focus: (ev: FocusEvent) => any;
|
13
13
|
"update:modelValue": (value: SwitchValue) => any;
|
14
14
|
}, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
|
15
15
|
onChange?: ((value: SwitchValue, ev: Event) => any) | undefined;
|
16
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
17
16
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
17
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
18
18
|
"onUpdate:modelValue"?: ((value: SwitchValue) => any) | undefined;
|
19
19
|
}>, {
|
20
|
-
size: import('
|
21
|
-
type:
|
20
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
21
|
+
type: "round" | "circle" | "line";
|
22
22
|
disabled: boolean;
|
23
23
|
loading: boolean;
|
24
24
|
defaultChecked: SwitchValue;
|
@@ -29,7 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}
|
|
29
29
|
uncheckedColor: string;
|
30
30
|
checkedText: string;
|
31
31
|
uncheckedText: string;
|
32
|
-
beforeChange:
|
32
|
+
beforeChange: (newValue: SwitchValue) => Promise<boolean | void> | boolean | void;
|
33
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
34
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
35
35
|
export default _default;
|
package/lib/Switch/type.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface SwitchProps {
|
|
6
6
|
disabled?: boolean;
|
7
7
|
loading?: boolean;
|
8
8
|
type?: SwitchType;
|
9
|
-
size?:
|
9
|
+
size?: Exclude<Size, 'mini' | 'large'>;
|
10
10
|
checkedValue?: SwitchValue;
|
11
11
|
uncheckedValue?: SwitchValue;
|
12
12
|
checkedColor?: string;
|
@@ -28,6 +28,6 @@ export interface SwitchSlots {
|
|
28
28
|
unchecked?: () => VNode[];
|
29
29
|
}
|
30
30
|
export type SwitchValue = string | number | boolean;
|
31
|
-
|
32
|
-
|
33
|
-
export
|
31
|
+
type SwitchType = 'circle' | 'round' | 'line';
|
32
|
+
type BeforeChange = (newValue: SwitchValue) => Promise<boolean | void> | boolean | void;
|
33
|
+
export {};
|
package/lib/Tabs/Tabs.vue.d.ts
CHANGED
@@ -24,7 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {}, {},
|
|
24
24
|
size: import('..').Size;
|
25
25
|
type: import('./type').TabType;
|
26
26
|
trigger: import('..').EventTrigger;
|
27
|
-
position: import('
|
27
|
+
position: import('..').Position;
|
28
28
|
justify: boolean;
|
29
29
|
animation: boolean;
|
30
30
|
direction: import('..').Direction;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Ref, Slots } from 'vue';
|
2
|
-
import { TabPaneProps as _TabPaneProps, TabKey, TabsEmits, TabType
|
3
|
-
import { Direction, EventTrigger, RecordType, Required, Size } from '../../_shared/type';
|
2
|
+
import { TabPaneProps as _TabPaneProps, TabKey, TabsEmits, TabType } from '../type';
|
3
|
+
import { Direction, EventTrigger, Position, RecordType, Required, Size } from '../../_shared/type';
|
4
4
|
type TabsContext = {
|
5
5
|
computedActiveKey: Ref<TabKey>;
|
6
6
|
type: Ref<TabType>;
|
7
7
|
trigger: Ref<EventTrigger>;
|
8
8
|
direction: Ref<Direction>;
|
9
|
-
position: Ref<
|
9
|
+
position: Ref<Position>;
|
10
10
|
editable: Ref<boolean>;
|
11
11
|
destoryOnHide: Ref<boolean>;
|
12
12
|
listRef: Ref<HTMLDivElement | undefined>;
|
@@ -20,16 +20,16 @@ type TabPaneProps = Required<_TabPaneProps>;
|
|
20
20
|
export type PaneNode = {
|
21
21
|
slots: Slots;
|
22
22
|
} & TabPaneProps;
|
23
|
-
|
23
|
+
export default function useTabsContext(): {
|
24
24
|
provide: (props: RecordType, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
|
25
25
|
computedActiveKey: import('vue').WritableComputedRef<TabKey, TabKey>;
|
26
26
|
size: import('vue').ComputedRef<any>;
|
27
27
|
direction: import('vue').ComputedRef<Direction>;
|
28
|
-
position: Ref<
|
28
|
+
position: Ref<Position, Position>;
|
29
29
|
autoSwitch: Ref<boolean, boolean>;
|
30
30
|
titleRefs: Ref<HTMLSpanElement[], HTMLSpanElement[]>;
|
31
31
|
tabRefs: Ref<HTMLDivElement[], HTMLDivElement[]>;
|
32
32
|
};
|
33
33
|
inject: () => TabsContext;
|
34
34
|
};
|
35
|
-
export
|
35
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/control.js"),i=require("../../_shared/utils/global-config.js"),r="tabs-context";exports.default=()
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/control.js"),i=require("../../_shared/utils/global-config.js"),r="tabs-context";exports.default=function(){return{provide:(o,s,d)=>{const{size:l}=i.getGlobalConfig(o),{activeKey:a,defaultActiveKey:n,position:u,trigger:c,autoSwitch:f,type:p,editable:g,headerPadding:v,destoryOnHide:y,direction:b}=e.toRefs(o),h=t.useControlValue(a,n.value,e=>{s("update:activeKey",e)}),m=e.ref([]),R=e.ref([]),z=e.computed(()=>["top","bottom"].includes(u.value)?"horizontal":["left","right"].includes(u.value)?"vertical":b.value);return e.provide(r,{computedActiveKey:h,editable:g,direction:z,trigger:c,type:p,destoryOnHide:y,position:u,headerPadding:v,size:l,listRef:d,titleRefs:m,tabRefs:R,emits:s}),{computedActiveKey:h,size:l,direction:z,position:u,autoSwitch:f,titleRefs:m,tabRefs:R}},inject:()=>e.inject(r,{computedActiveKey:e.ref(""),editable:e.ref(!1),headerPadding:e.ref(!1),trigger:e.ref("click"),type:e.ref("line"),direction:e.ref("horizontal"),destoryOnHide:e.ref(!1),position:e.ref("top"),size:e.ref("medium"),titleRefs:e.ref([]),listRef:e.ref(),tabRefs:e.ref([]),emits:()=>{}})}};
|