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
@@ -46,12 +46,12 @@ declare function __VLS_template(): {
|
|
46
46
|
readonly hotkeys?: boolean | undefined;
|
47
47
|
readonly showEmpty?: boolean | undefined;
|
48
48
|
readonly onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
49
|
-
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
50
|
-
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
51
49
|
readonly onClear?: (() => any) | undefined;
|
52
50
|
readonly onSearch?: ((value: string) => any) | undefined;
|
53
51
|
readonly onSelect?: ((value: import('../Select').SelectOptionValue) => any) | undefined;
|
54
52
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
53
|
+
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
54
|
+
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
55
55
|
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
56
56
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
57
57
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -318,16 +318,19 @@ declare function __VLS_template(): {
|
|
318
318
|
readonly allowClear?: boolean | undefined;
|
319
319
|
readonly size?: import('..').Size | undefined;
|
320
320
|
readonly maxTagCount?: number | undefined;
|
321
|
-
readonly retainInputValue?:
|
321
|
+
readonly retainInputValue?: (boolean | {
|
322
|
+
create?: boolean;
|
323
|
+
blur?: boolean;
|
324
|
+
}) | undefined;
|
322
325
|
readonly formatTag?: import('..').Format<import('..').TagData> | undefined;
|
323
326
|
readonly uniqueValue?: boolean | undefined;
|
324
327
|
readonly tagNowrap?: boolean | undefined;
|
325
328
|
readonly fieldNames?: Record<string, string> | undefined;
|
326
329
|
readonly allowCreate?: boolean | undefined;
|
327
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
328
330
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
329
331
|
readonly onInput?: ((value: string) => any) | undefined;
|
330
332
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
333
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
331
334
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
332
335
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
333
336
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -349,13 +352,13 @@ declare function __VLS_template(): {
|
|
349
352
|
$root: import('vue').ComponentPublicInstance | null;
|
350
353
|
$parent: import('vue').ComponentPublicInstance | null;
|
351
354
|
$host: Element | null;
|
352
|
-
$emit: ((event: "
|
355
|
+
$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);
|
353
356
|
$el: HTMLDivElement;
|
354
357
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
355
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
356
358
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
357
359
|
onInput?: ((value: string) => any) | undefined;
|
358
360
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
361
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
359
362
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
360
363
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
361
364
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -365,18 +368,18 @@ declare function __VLS_template(): {
|
|
365
368
|
focus(): void;
|
366
369
|
blur(): void;
|
367
370
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
368
|
-
focus: (ev: FocusEvent) => any;
|
369
371
|
clear: (ev: MouseEvent) => any;
|
370
372
|
input: (value: string) => any;
|
371
373
|
blur: (ev: FocusEvent) => any;
|
374
|
+
focus: (ev: FocusEvent) => any;
|
372
375
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
373
376
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
374
377
|
"update:inputValue": (value: string) => any;
|
375
378
|
"input-value-change": (value: string, ev: Event) => any;
|
376
379
|
"press-enter": (ev: KeyboardEvent) => any;
|
377
380
|
}, string, {
|
378
|
-
size: import('..').Size;
|
379
381
|
error: boolean;
|
382
|
+
size: import('..').Size;
|
380
383
|
disabled: boolean;
|
381
384
|
placeholder: string;
|
382
385
|
modelValue: import('..').InputTagValue;
|
@@ -389,7 +392,10 @@ declare function __VLS_template(): {
|
|
389
392
|
allowCreate: boolean;
|
390
393
|
maxTagCount: number;
|
391
394
|
tagNowrap: boolean;
|
392
|
-
retainInputValue:
|
395
|
+
retainInputValue: boolean | {
|
396
|
+
create?: boolean;
|
397
|
+
blur?: boolean;
|
398
|
+
};
|
393
399
|
uniqueValue: boolean;
|
394
400
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
395
401
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -412,8 +418,8 @@ declare function __VLS_template(): {
|
|
412
418
|
$nextTick: typeof nextTick;
|
413
419
|
$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;
|
414
420
|
} & Readonly<{
|
415
|
-
size: import('..').Size;
|
416
421
|
error: boolean;
|
422
|
+
size: import('..').Size;
|
417
423
|
disabled: boolean;
|
418
424
|
placeholder: string;
|
419
425
|
modelValue: import('..').InputTagValue;
|
@@ -426,19 +432,22 @@ declare function __VLS_template(): {
|
|
426
432
|
allowCreate: boolean;
|
427
433
|
maxTagCount: number;
|
428
434
|
tagNowrap: boolean;
|
429
|
-
retainInputValue:
|
435
|
+
retainInputValue: boolean | {
|
436
|
+
create?: boolean;
|
437
|
+
blur?: boolean;
|
438
|
+
};
|
430
439
|
uniqueValue: boolean;
|
431
440
|
}> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
|
432
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
433
441
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
434
442
|
onInput?: ((value: string) => any) | undefined;
|
435
443
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
444
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
436
445
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
437
446
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
438
447
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
439
448
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
440
449
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
441
|
-
}>, "
|
450
|
+
}>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
442
451
|
focus(): void;
|
443
452
|
blur(): void;
|
444
453
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
@@ -451,16 +460,16 @@ declare function __VLS_template(): {
|
|
451
460
|
$root: import('vue').ComponentPublicInstance | null;
|
452
461
|
$parent: import('vue').ComponentPublicInstance | null;
|
453
462
|
$host: Element | null;
|
454
|
-
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "
|
463
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "clear") => void) & ((event: "search", value: string) => void) & ((event: "select", value: import('../Select').SelectOptionValue) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "exceedLimit", value: import('../Select').SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
455
464
|
$el: any;
|
456
465
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
457
466
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
458
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
459
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
460
467
|
onClear?: (() => any) | undefined;
|
461
468
|
onSearch?: ((value: string) => any) | undefined;
|
462
469
|
onSelect?: ((value: import('../Select').SelectOptionValue) => any) | undefined;
|
463
470
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
471
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
472
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
464
473
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
465
474
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
466
475
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -473,12 +482,12 @@ declare function __VLS_template(): {
|
|
473
482
|
getPopupRef(): import('..').TriggerInstance;
|
474
483
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
475
484
|
change: (value: import('../Select').SelectValue) => any;
|
476
|
-
"update:popupVisible": (value: boolean) => any;
|
477
|
-
"popup-visible-change": (value: boolean) => any;
|
478
485
|
clear: () => any;
|
479
486
|
search: (value: string) => any;
|
480
487
|
select: (value: import('../Select').SelectOptionValue) => any;
|
481
488
|
remove: (index: string | number, ev: Event) => any;
|
489
|
+
"update:popupVisible": (value: boolean) => any;
|
490
|
+
"popup-visible-change": (value: boolean) => any;
|
482
491
|
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
483
492
|
"update:inputValue": (value: string) => any;
|
484
493
|
"input-value-change": (value: string) => any;
|
@@ -486,8 +495,8 @@ declare function __VLS_template(): {
|
|
486
495
|
"dropdown-scroll": (ev: Event) => any;
|
487
496
|
"dropdown-reach-bottom": (ev: Event) => any;
|
488
497
|
}, string, {
|
489
|
-
size: import('..').Size;
|
490
498
|
error: boolean;
|
499
|
+
size: import('..').Size;
|
491
500
|
popupContainer: import('..').PopupContainer;
|
492
501
|
popupVisible: boolean;
|
493
502
|
defaultPopupVisible: boolean;
|
@@ -539,8 +548,8 @@ declare function __VLS_template(): {
|
|
539
548
|
$nextTick: typeof nextTick;
|
540
549
|
$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;
|
541
550
|
} & Readonly<{
|
542
|
-
size: import('..').Size;
|
543
551
|
error: boolean;
|
552
|
+
size: import('..').Size;
|
544
553
|
popupContainer: import('..').PopupContainer;
|
545
554
|
popupVisible: boolean;
|
546
555
|
defaultPopupVisible: boolean;
|
@@ -573,19 +582,19 @@ declare function __VLS_template(): {
|
|
573
582
|
tagNowrap: boolean;
|
574
583
|
}> & Omit<Readonly<import('../Select').SelectProps> & Readonly<{
|
575
584
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
576
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
577
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
578
585
|
onClear?: (() => any) | undefined;
|
579
586
|
onSearch?: ((value: string) => any) | undefined;
|
580
587
|
onSelect?: ((value: import('../Select').SelectOptionValue) => any) | undefined;
|
581
588
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
589
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
590
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
582
591
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
583
592
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
584
593
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
585
594
|
onExceedLimit?: ((value: import('../Select').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
586
595
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
587
596
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
588
|
-
}>, "
|
597
|
+
}>, "blur" | "focus" | ("error" | "size" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
|
589
598
|
focus(): void;
|
590
599
|
blur(): void;
|
591
600
|
getPopupRef(): import('..').TriggerInstance;
|
@@ -594,10 +603,10 @@ declare function __VLS_template(): {
|
|
594
603
|
}) | null;
|
595
604
|
inputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../Textarea').TextareaProps> & Readonly<{
|
596
605
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
597
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
598
606
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
599
607
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
600
608
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
609
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
601
610
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
602
611
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
603
612
|
}>, {
|
@@ -607,10 +616,10 @@ declare function __VLS_template(): {
|
|
607
616
|
getMirrorRef(): HTMLDivElement;
|
608
617
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
609
618
|
change: (value: string, ev: Event) => any;
|
610
|
-
focus: (ev: FocusEvent) => any;
|
611
619
|
clear: (ev: MouseEvent) => any;
|
612
620
|
input: (value: string, ev: Event) => any;
|
613
621
|
blur: (ev: FocusEvent) => any;
|
622
|
+
focus: (ev: FocusEvent) => any;
|
614
623
|
keydown: (ev: KeyboardEvent) => any;
|
615
624
|
"update:modelValue": (value: string) => any;
|
616
625
|
}, import('vue').PublicProps, {
|
@@ -640,10 +649,10 @@ declare function __VLS_template(): {
|
|
640
649
|
Defaults: {};
|
641
650
|
}, Readonly<import('../Textarea').TextareaProps> & Readonly<{
|
642
651
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
643
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
644
652
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
645
653
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
646
654
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
655
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
647
656
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
648
657
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
649
658
|
}>, {
|
@@ -679,24 +688,24 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
679
688
|
updatePosition(x: number, y: number): void;
|
680
689
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
681
690
|
change: (value: string) => any;
|
682
|
-
focus: (ev: FocusEvent) => any;
|
683
691
|
clear: (ev?: Event | undefined) => any;
|
684
692
|
input: (value: string, ev: Event) => any;
|
685
693
|
search: (value: string) => any;
|
686
694
|
select: (value: string) => any;
|
687
695
|
blur: (ev: FocusEvent) => any;
|
696
|
+
focus: (ev: FocusEvent) => any;
|
688
697
|
keydown: (ev: KeyboardEvent) => any;
|
689
698
|
"update:modelValue": (value: string) => any;
|
690
699
|
"dropdown-scroll": (ev?: Event | undefined) => any;
|
691
700
|
"dropdown-reach-bottom": (ev?: Event | undefined) => any;
|
692
701
|
}, string, import('vue').PublicProps, Readonly<AutoCompleteProps> & Readonly<{
|
693
702
|
onChange?: ((value: string) => any) | undefined;
|
694
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
695
703
|
onClear?: ((ev?: Event | undefined) => any) | undefined;
|
696
704
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
697
705
|
onSearch?: ((value: string) => any) | undefined;
|
698
706
|
onSelect?: ((value: string) => any) | undefined;
|
699
707
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
708
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
700
709
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
701
710
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
702
711
|
"onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
|
@@ -756,12 +765,12 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
756
765
|
readonly hotkeys?: boolean | undefined;
|
757
766
|
readonly showEmpty?: boolean | undefined;
|
758
767
|
readonly onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
759
|
-
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
760
|
-
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
761
768
|
readonly onClear?: (() => any) | undefined;
|
762
769
|
readonly onSearch?: ((value: string) => any) | undefined;
|
763
770
|
readonly onSelect?: ((value: import('../Select').SelectOptionValue) => any) | undefined;
|
764
771
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
772
|
+
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
773
|
+
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
765
774
|
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
766
775
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
767
776
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -1028,16 +1037,19 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1028
1037
|
readonly allowClear?: boolean | undefined;
|
1029
1038
|
readonly size?: import('..').Size | undefined;
|
1030
1039
|
readonly maxTagCount?: number | undefined;
|
1031
|
-
readonly retainInputValue?:
|
1040
|
+
readonly retainInputValue?: (boolean | {
|
1041
|
+
create?: boolean;
|
1042
|
+
blur?: boolean;
|
1043
|
+
}) | undefined;
|
1032
1044
|
readonly formatTag?: import('..').Format<import('..').TagData> | undefined;
|
1033
1045
|
readonly uniqueValue?: boolean | undefined;
|
1034
1046
|
readonly tagNowrap?: boolean | undefined;
|
1035
1047
|
readonly fieldNames?: Record<string, string> | undefined;
|
1036
1048
|
readonly allowCreate?: boolean | undefined;
|
1037
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1038
1049
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
1039
1050
|
readonly onInput?: ((value: string) => any) | undefined;
|
1040
1051
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1052
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1041
1053
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1042
1054
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
1043
1055
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -1059,13 +1071,13 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1059
1071
|
$root: import('vue').ComponentPublicInstance | null;
|
1060
1072
|
$parent: import('vue').ComponentPublicInstance | null;
|
1061
1073
|
$host: Element | null;
|
1062
|
-
$emit: ((event: "
|
1074
|
+
$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);
|
1063
1075
|
$el: HTMLDivElement;
|
1064
1076
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
1065
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1066
1077
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
1067
1078
|
onInput?: ((value: string) => any) | undefined;
|
1068
1079
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1080
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1069
1081
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1070
1082
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
1071
1083
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -1075,18 +1087,18 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1075
1087
|
focus(): void;
|
1076
1088
|
blur(): void;
|
1077
1089
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
1078
|
-
focus: (ev: FocusEvent) => any;
|
1079
1090
|
clear: (ev: MouseEvent) => any;
|
1080
1091
|
input: (value: string) => any;
|
1081
1092
|
blur: (ev: FocusEvent) => any;
|
1093
|
+
focus: (ev: FocusEvent) => any;
|
1082
1094
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
1083
1095
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
1084
1096
|
"update:inputValue": (value: string) => any;
|
1085
1097
|
"input-value-change": (value: string, ev: Event) => any;
|
1086
1098
|
"press-enter": (ev: KeyboardEvent) => any;
|
1087
1099
|
}, string, {
|
1088
|
-
size: import('..').Size;
|
1089
1100
|
error: boolean;
|
1101
|
+
size: import('..').Size;
|
1090
1102
|
disabled: boolean;
|
1091
1103
|
placeholder: string;
|
1092
1104
|
modelValue: import('..').InputTagValue;
|
@@ -1099,7 +1111,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1099
1111
|
allowCreate: boolean;
|
1100
1112
|
maxTagCount: number;
|
1101
1113
|
tagNowrap: boolean;
|
1102
|
-
retainInputValue:
|
1114
|
+
retainInputValue: boolean | {
|
1115
|
+
create?: boolean;
|
1116
|
+
blur?: boolean;
|
1117
|
+
};
|
1103
1118
|
uniqueValue: boolean;
|
1104
1119
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
1105
1120
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -1122,8 +1137,8 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1122
1137
|
$nextTick: typeof nextTick;
|
1123
1138
|
$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;
|
1124
1139
|
} & Readonly<{
|
1125
|
-
size: import('..').Size;
|
1126
1140
|
error: boolean;
|
1141
|
+
size: import('..').Size;
|
1127
1142
|
disabled: boolean;
|
1128
1143
|
placeholder: string;
|
1129
1144
|
modelValue: import('..').InputTagValue;
|
@@ -1136,19 +1151,22 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1136
1151
|
allowCreate: boolean;
|
1137
1152
|
maxTagCount: number;
|
1138
1153
|
tagNowrap: boolean;
|
1139
|
-
retainInputValue:
|
1154
|
+
retainInputValue: boolean | {
|
1155
|
+
create?: boolean;
|
1156
|
+
blur?: boolean;
|
1157
|
+
};
|
1140
1158
|
uniqueValue: boolean;
|
1141
1159
|
}> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
|
1142
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1143
1160
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
1144
1161
|
onInput?: ((value: string) => any) | undefined;
|
1145
1162
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1163
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1146
1164
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1147
1165
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
1148
1166
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1149
1167
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
1150
1168
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
1151
|
-
}>, "
|
1169
|
+
}>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
1152
1170
|
focus(): void;
|
1153
1171
|
blur(): void;
|
1154
1172
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
@@ -1161,16 +1179,16 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1161
1179
|
$root: import('vue').ComponentPublicInstance | null;
|
1162
1180
|
$parent: import('vue').ComponentPublicInstance | null;
|
1163
1181
|
$host: Element | null;
|
1164
|
-
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "
|
1182
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "clear") => void) & ((event: "search", value: string) => void) & ((event: "select", value: import('../Select').SelectOptionValue) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "exceedLimit", value: import('../Select').SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
1165
1183
|
$el: any;
|
1166
1184
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
1167
1185
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1168
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1169
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1170
1186
|
onClear?: (() => any) | undefined;
|
1171
1187
|
onSearch?: ((value: string) => any) | undefined;
|
1172
1188
|
onSelect?: ((value: import('../Select').SelectOptionValue) => any) | undefined;
|
1173
1189
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1190
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1191
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1174
1192
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1175
1193
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1176
1194
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -1183,12 +1201,12 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1183
1201
|
getPopupRef(): import('..').TriggerInstance;
|
1184
1202
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
1185
1203
|
change: (value: import('../Select').SelectValue) => any;
|
1186
|
-
"update:popupVisible": (value: boolean) => any;
|
1187
|
-
"popup-visible-change": (value: boolean) => any;
|
1188
1204
|
clear: () => any;
|
1189
1205
|
search: (value: string) => any;
|
1190
1206
|
select: (value: import('../Select').SelectOptionValue) => any;
|
1191
1207
|
remove: (index: string | number, ev: Event) => any;
|
1208
|
+
"update:popupVisible": (value: boolean) => any;
|
1209
|
+
"popup-visible-change": (value: boolean) => any;
|
1192
1210
|
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
1193
1211
|
"update:inputValue": (value: string) => any;
|
1194
1212
|
"input-value-change": (value: string) => any;
|
@@ -1196,8 +1214,8 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1196
1214
|
"dropdown-scroll": (ev: Event) => any;
|
1197
1215
|
"dropdown-reach-bottom": (ev: Event) => any;
|
1198
1216
|
}, string, {
|
1199
|
-
size: import('..').Size;
|
1200
1217
|
error: boolean;
|
1218
|
+
size: import('..').Size;
|
1201
1219
|
popupContainer: import('..').PopupContainer;
|
1202
1220
|
popupVisible: boolean;
|
1203
1221
|
defaultPopupVisible: boolean;
|
@@ -1249,8 +1267,8 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1249
1267
|
$nextTick: typeof nextTick;
|
1250
1268
|
$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;
|
1251
1269
|
} & Readonly<{
|
1252
|
-
size: import('..').Size;
|
1253
1270
|
error: boolean;
|
1271
|
+
size: import('..').Size;
|
1254
1272
|
popupContainer: import('..').PopupContainer;
|
1255
1273
|
popupVisible: boolean;
|
1256
1274
|
defaultPopupVisible: boolean;
|
@@ -1283,19 +1301,19 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1283
1301
|
tagNowrap: boolean;
|
1284
1302
|
}> & Omit<Readonly<import('../Select').SelectProps> & Readonly<{
|
1285
1303
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1286
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1287
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1288
1304
|
onClear?: (() => any) | undefined;
|
1289
1305
|
onSearch?: ((value: string) => any) | undefined;
|
1290
1306
|
onSelect?: ((value: import('../Select').SelectOptionValue) => any) | undefined;
|
1291
1307
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1308
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1309
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1292
1310
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1293
1311
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1294
1312
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
1295
1313
|
onExceedLimit?: ((value: import('../Select').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
1296
1314
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
1297
1315
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
1298
|
-
}>, "
|
1316
|
+
}>, "blur" | "focus" | ("error" | "size" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
|
1299
1317
|
focus(): void;
|
1300
1318
|
blur(): void;
|
1301
1319
|
getPopupRef(): import('..').TriggerInstance;
|
@@ -1304,10 +1322,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1304
1322
|
}) | null;
|
1305
1323
|
inputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../Textarea').TextareaProps> & Readonly<{
|
1306
1324
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
1307
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1308
1325
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
1309
1326
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
1310
1327
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1328
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1311
1329
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
1312
1330
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
1313
1331
|
}>, {
|
@@ -1317,10 +1335,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1317
1335
|
getMirrorRef(): HTMLDivElement;
|
1318
1336
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
1319
1337
|
change: (value: string, ev: Event) => any;
|
1320
|
-
focus: (ev: FocusEvent) => any;
|
1321
1338
|
clear: (ev: MouseEvent) => any;
|
1322
1339
|
input: (value: string, ev: Event) => any;
|
1323
1340
|
blur: (ev: FocusEvent) => any;
|
1341
|
+
focus: (ev: FocusEvent) => any;
|
1324
1342
|
keydown: (ev: KeyboardEvent) => any;
|
1325
1343
|
"update:modelValue": (value: string) => any;
|
1326
1344
|
}, import('vue').PublicProps, {
|
@@ -1350,10 +1368,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1350
1368
|
Defaults: {};
|
1351
1369
|
}, Readonly<import('../Textarea').TextareaProps> & Readonly<{
|
1352
1370
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
1353
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1354
1371
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
1355
1372
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
1356
1373
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1374
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1357
1375
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
1358
1376
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
1359
1377
|
}>, {
|
@@ -23,7 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<AvatarProps, {}, {}
|
|
23
23
|
shape: import('./type').AvatarShape;
|
24
24
|
autoFixFontSize: boolean;
|
25
25
|
imageUrl: string;
|
26
|
-
triggerType:
|
26
|
+
triggerType: "button" | "mask";
|
27
27
|
triggerIconStyle: import('vue').CSSProperties;
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
29
29
|
avatarRef: HTMLDivElement;
|
package/es/Avatar/Avatar.vue.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent, useSlots, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, renderSlot, createVNode } from "vue";
|
2
|
-
import { useResizeObserver } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import { valueToPx } from "../_shared/utils/dom.js";
|
4
3
|
/* empty css */
|
5
4
|
/* empty css */
|
6
5
|
/* empty css */
|
7
6
|
import _sfc_main$1 from "../_shared/icons/IconImageClose.vue.js";
|
8
|
-
import
|
7
|
+
import { useResizeObserver } from "../node_modules/@vueuse/core/index.js";
|
8
|
+
import useAvatarContext from "./hooks/useContext.js";
|
9
9
|
const _hoisted_1 = {
|
10
10
|
key: 1,
|
11
11
|
class: "yc-avatar-image"
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
const $slots = useSlots();
|
37
37
|
const props = __props;
|
38
38
|
const emits = __emit;
|
39
|
-
const { size, autoFixFontSize, shape } =
|
39
|
+
const { size, autoFixFontSize, shape } = useAvatarContext().inject(props);
|
40
40
|
const isLoadError = ref(false);
|
41
41
|
const scale = ref(1);
|
42
42
|
const textRef = ref();
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBlock, createBlock, createCommentVNode, Fragment, renderList, resolveDynamicComponent, normalizeStyle, unref, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
|
2
2
|
import { valueToPx } from "../_shared/utils/dom.js";
|
3
3
|
import { findComponentsFromVnodes } from "../_shared/utils/vue-utils.js";
|
4
|
-
import
|
4
|
+
import useAvatarContext from "./hooks/useContext.js";
|
5
5
|
import Avatar from "./index.js";
|
6
6
|
import Popover from "../Popover/index.js";
|
7
7
|
const _hoisted_1 = { class: "yc-avatar-group" };
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
27
|
const $slots = useSlots();
|
28
28
|
const props = __props;
|
29
29
|
const { maxCount } = toRefs(props);
|
30
|
-
|
30
|
+
useAvatarContext().provide(props);
|
31
31
|
const nodes = computed(() => {
|
32
32
|
var _a;
|
33
33
|
const avatars = findComponentsFromVnodes(
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RecordType } from '../../_shared/type';
|
2
|
-
|
2
|
+
export default function useAvatarContext(): {
|
3
3
|
provide: (props: RecordType) => void;
|
4
4
|
inject: (props: RecordType) => {
|
5
5
|
shape: import('vue').ComputedRef<any>;
|
@@ -7,4 +7,3 @@ declare const _default: () => {
|
|
7
7
|
autoFixFontSize: import('vue').ComputedRef<any>;
|
8
8
|
};
|
9
9
|
};
|
10
|
-
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { toRefs, provide, inject, ref, computed } from "vue";
|
2
2
|
const AVATAR_GROUP_CONTEXT_KEY = "radio-group-context";
|
3
|
-
|
3
|
+
function useAvatarContext() {
|
4
4
|
const provide$1 = (props) => {
|
5
5
|
const { shape, size, autoFixFontSize } = toRefs(props);
|
6
6
|
provide(AVATAR_GROUP_CONTEXT_KEY, {
|
@@ -36,7 +36,7 @@ const useContext = () => {
|
|
36
36
|
provide: provide$1,
|
37
37
|
inject: inject$1
|
38
38
|
};
|
39
|
-
}
|
39
|
+
}
|
40
40
|
export {
|
41
|
-
|
41
|
+
useAvatarContext as default
|
42
42
|
};
|
package/es/Avatar/index.d.ts
CHANGED
@@ -19,7 +19,7 @@ declare const Avatar: {
|
|
19
19
|
shape: import('./type').AvatarShape;
|
20
20
|
autoFixFontSize: boolean;
|
21
21
|
imageUrl: string;
|
22
|
-
triggerType:
|
22
|
+
triggerType: "button" | "mask";
|
23
23
|
triggerIconStyle: import('vue').CSSProperties;
|
24
24
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
25
25
|
avatarRef: HTMLDivElement;
|
@@ -41,7 +41,7 @@ declare const Avatar: {
|
|
41
41
|
shape: import('./type').AvatarShape;
|
42
42
|
autoFixFontSize: boolean;
|
43
43
|
imageUrl: string;
|
44
|
-
triggerType:
|
44
|
+
triggerType: "button" | "mask";
|
45
45
|
triggerIconStyle: import('vue').CSSProperties;
|
46
46
|
}>;
|
47
47
|
__isFragment?: never;
|
@@ -61,7 +61,7 @@ declare const Avatar: {
|
|
61
61
|
shape: import('./type').AvatarShape;
|
62
62
|
autoFixFontSize: boolean;
|
63
63
|
imageUrl: string;
|
64
|
-
triggerType:
|
64
|
+
triggerType: "button" | "mask";
|
65
65
|
triggerIconStyle: import('vue').CSSProperties;
|
66
66
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
67
67
|
$slots: any;
|