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
@@ -258,16 +258,19 @@ declare function __VLS_template(): {
|
|
258
258
|
readonly allowClear?: boolean | undefined;
|
259
259
|
readonly size?: import('..').Size | undefined;
|
260
260
|
readonly maxTagCount?: number | undefined;
|
261
|
-
readonly retainInputValue?:
|
261
|
+
readonly retainInputValue?: (boolean | {
|
262
|
+
create?: boolean;
|
263
|
+
blur?: boolean;
|
264
|
+
}) | undefined;
|
262
265
|
readonly formatTag?: import('..').Format<TagData> | undefined;
|
263
266
|
readonly uniqueValue?: boolean | undefined;
|
264
267
|
readonly tagNowrap?: boolean | undefined;
|
265
268
|
readonly fieldNames?: Record<string, string> | undefined;
|
266
269
|
readonly allowCreate?: boolean | undefined;
|
267
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
268
270
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
269
271
|
readonly onInput?: ((value: string) => any) | undefined;
|
270
272
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
273
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
271
274
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
272
275
|
readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
273
276
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -289,13 +292,13 @@ declare function __VLS_template(): {
|
|
289
292
|
$root: import('vue').ComponentPublicInstance | null;
|
290
293
|
$parent: import('vue').ComponentPublicInstance | null;
|
291
294
|
$host: Element | null;
|
292
|
-
$emit: ((event: "
|
295
|
+
$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: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
293
296
|
$el: HTMLDivElement;
|
294
297
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
295
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
296
298
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
297
299
|
onInput?: ((value: string) => any) | undefined;
|
298
300
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
301
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
299
302
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
300
303
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
301
304
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -305,18 +308,18 @@ declare function __VLS_template(): {
|
|
305
308
|
focus(): void;
|
306
309
|
blur(): void;
|
307
310
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
308
|
-
focus: (ev: FocusEvent) => any;
|
309
311
|
clear: (ev: MouseEvent) => any;
|
310
312
|
input: (value: string) => any;
|
311
313
|
blur: (ev: FocusEvent) => any;
|
314
|
+
focus: (ev: FocusEvent) => any;
|
312
315
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
313
316
|
"update:modelValue": (value: InputTagValue) => any;
|
314
317
|
"update:inputValue": (value: string) => any;
|
315
318
|
"input-value-change": (value: string, ev: Event) => any;
|
316
319
|
"press-enter": (ev: KeyboardEvent) => any;
|
317
320
|
}, string, {
|
318
|
-
size: import('..').Size;
|
319
321
|
error: boolean;
|
322
|
+
size: import('..').Size;
|
320
323
|
disabled: boolean;
|
321
324
|
placeholder: string;
|
322
325
|
modelValue: InputTagValue;
|
@@ -329,7 +332,10 @@ declare function __VLS_template(): {
|
|
329
332
|
allowCreate: boolean;
|
330
333
|
maxTagCount: number;
|
331
334
|
tagNowrap: boolean;
|
332
|
-
retainInputValue:
|
335
|
+
retainInputValue: boolean | {
|
336
|
+
create?: boolean;
|
337
|
+
blur?: boolean;
|
338
|
+
};
|
333
339
|
uniqueValue: boolean;
|
334
340
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
335
341
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -352,8 +358,8 @@ declare function __VLS_template(): {
|
|
352
358
|
$nextTick: typeof import('vue').nextTick;
|
353
359
|
$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;
|
354
360
|
} & Readonly<{
|
355
|
-
size: import('..').Size;
|
356
361
|
error: boolean;
|
362
|
+
size: import('..').Size;
|
357
363
|
disabled: boolean;
|
358
364
|
placeholder: string;
|
359
365
|
modelValue: InputTagValue;
|
@@ -366,19 +372,22 @@ declare function __VLS_template(): {
|
|
366
372
|
allowCreate: boolean;
|
367
373
|
maxTagCount: number;
|
368
374
|
tagNowrap: boolean;
|
369
|
-
retainInputValue:
|
375
|
+
retainInputValue: boolean | {
|
376
|
+
create?: boolean;
|
377
|
+
blur?: boolean;
|
378
|
+
};
|
370
379
|
uniqueValue: boolean;
|
371
380
|
}> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
372
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
373
381
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
374
382
|
onInput?: ((value: string) => any) | undefined;
|
375
383
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
384
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
376
385
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
377
386
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
378
387
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
379
388
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
380
389
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
381
|
-
}>, "
|
390
|
+
}>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
382
391
|
focus(): void;
|
383
392
|
blur(): void;
|
384
393
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
@@ -394,12 +403,12 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
394
403
|
getPopupRef(): TriggerInstance;
|
395
404
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
396
405
|
change: (value: import('./type').SelectValue) => any;
|
397
|
-
"update:popupVisible": (value: boolean) => any;
|
398
|
-
"popup-visible-change": (value: boolean) => any;
|
399
406
|
clear: () => any;
|
400
407
|
search: (value: string) => any;
|
401
408
|
select: (value: SelectOptionValue) => any;
|
402
409
|
remove: (index: string | number, ev: Event) => any;
|
410
|
+
"update:popupVisible": (value: boolean) => any;
|
411
|
+
"popup-visible-change": (value: boolean) => any;
|
403
412
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
404
413
|
"update:inputValue": (value: string) => any;
|
405
414
|
"input-value-change": (value: string) => any;
|
@@ -408,12 +417,12 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
408
417
|
"dropdown-reach-bottom": (ev: Event) => any;
|
409
418
|
}, string, import('vue').PublicProps, Readonly<SelectProps> & Readonly<{
|
410
419
|
onChange?: ((value: import('./type').SelectValue) => any) | undefined;
|
411
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
412
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
413
420
|
onClear?: (() => any) | undefined;
|
414
421
|
onSearch?: ((value: string) => any) | undefined;
|
415
422
|
onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
416
423
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
424
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
425
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
417
426
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
418
427
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
419
428
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -421,8 +430,8 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
421
430
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
422
431
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
423
432
|
}>, {
|
424
|
-
size: import('..').Size;
|
425
433
|
error: boolean;
|
434
|
+
size: import('..').Size;
|
426
435
|
popupContainer: import('..').PopupContainer;
|
427
436
|
popupVisible: boolean;
|
428
437
|
defaultPopupVisible: boolean;
|
@@ -707,16 +716,19 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
707
716
|
readonly allowClear?: boolean | undefined;
|
708
717
|
readonly size?: import('..').Size | undefined;
|
709
718
|
readonly maxTagCount?: number | undefined;
|
710
|
-
readonly retainInputValue?:
|
719
|
+
readonly retainInputValue?: (boolean | {
|
720
|
+
create?: boolean;
|
721
|
+
blur?: boolean;
|
722
|
+
}) | undefined;
|
711
723
|
readonly formatTag?: import('..').Format<TagData> | undefined;
|
712
724
|
readonly uniqueValue?: boolean | undefined;
|
713
725
|
readonly tagNowrap?: boolean | undefined;
|
714
726
|
readonly fieldNames?: Record<string, string> | undefined;
|
715
727
|
readonly allowCreate?: boolean | undefined;
|
716
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
717
728
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
718
729
|
readonly onInput?: ((value: string) => any) | undefined;
|
719
730
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
731
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
720
732
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
721
733
|
readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
722
734
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -738,13 +750,13 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
738
750
|
$root: import('vue').ComponentPublicInstance | null;
|
739
751
|
$parent: import('vue').ComponentPublicInstance | null;
|
740
752
|
$host: Element | null;
|
741
|
-
$emit: ((event: "
|
753
|
+
$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: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
742
754
|
$el: HTMLDivElement;
|
743
755
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
744
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
745
756
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
746
757
|
onInput?: ((value: string) => any) | undefined;
|
747
758
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
759
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
748
760
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
749
761
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
750
762
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -754,18 +766,18 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
754
766
|
focus(): void;
|
755
767
|
blur(): void;
|
756
768
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
757
|
-
focus: (ev: FocusEvent) => any;
|
758
769
|
clear: (ev: MouseEvent) => any;
|
759
770
|
input: (value: string) => any;
|
760
771
|
blur: (ev: FocusEvent) => any;
|
772
|
+
focus: (ev: FocusEvent) => any;
|
761
773
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
762
774
|
"update:modelValue": (value: InputTagValue) => any;
|
763
775
|
"update:inputValue": (value: string) => any;
|
764
776
|
"input-value-change": (value: string, ev: Event) => any;
|
765
777
|
"press-enter": (ev: KeyboardEvent) => any;
|
766
778
|
}, string, {
|
767
|
-
size: import('..').Size;
|
768
779
|
error: boolean;
|
780
|
+
size: import('..').Size;
|
769
781
|
disabled: boolean;
|
770
782
|
placeholder: string;
|
771
783
|
modelValue: InputTagValue;
|
@@ -778,7 +790,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
778
790
|
allowCreate: boolean;
|
779
791
|
maxTagCount: number;
|
780
792
|
tagNowrap: boolean;
|
781
|
-
retainInputValue:
|
793
|
+
retainInputValue: boolean | {
|
794
|
+
create?: boolean;
|
795
|
+
blur?: boolean;
|
796
|
+
};
|
782
797
|
uniqueValue: boolean;
|
783
798
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
784
799
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -801,8 +816,8 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
801
816
|
$nextTick: typeof import('vue').nextTick;
|
802
817
|
$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;
|
803
818
|
} & Readonly<{
|
804
|
-
size: import('..').Size;
|
805
819
|
error: boolean;
|
820
|
+
size: import('..').Size;
|
806
821
|
disabled: boolean;
|
807
822
|
placeholder: string;
|
808
823
|
modelValue: InputTagValue;
|
@@ -815,19 +830,22 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
815
830
|
allowCreate: boolean;
|
816
831
|
maxTagCount: number;
|
817
832
|
tagNowrap: boolean;
|
818
|
-
retainInputValue:
|
833
|
+
retainInputValue: boolean | {
|
834
|
+
create?: boolean;
|
835
|
+
blur?: boolean;
|
836
|
+
};
|
819
837
|
uniqueValue: boolean;
|
820
838
|
}> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
821
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
822
839
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
823
840
|
onInput?: ((value: string) => any) | undefined;
|
824
841
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
842
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
825
843
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
826
844
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
827
845
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
828
846
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
829
847
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
830
|
-
}>, "
|
848
|
+
}>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
831
849
|
focus(): void;
|
832
850
|
blur(): void;
|
833
851
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
package/es/Select/Select.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, ref, computed, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createElementVNode, normalizeStyle, normalizeClass, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
|
2
2
|
import { isUndefined } from "../_shared/utils/is.js";
|
3
3
|
import { sleep } from "../_shared/utils/dom.js";
|
4
|
-
import
|
4
|
+
import useSelectContext from "./hooks/useContext.js";
|
5
5
|
import _sfc_main$1 from "./SelectIcon.vue.js";
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$2 from "./SelectView.vue.js";
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
87
87
|
computedInputValue,
|
88
88
|
selectOptions,
|
89
89
|
createOptions
|
90
|
-
} =
|
90
|
+
} = useSelectContext().provide(props, emits, inputRef);
|
91
91
|
const showClearBtn = computed(() => {
|
92
92
|
const hasValue = multiple.value ? computedValue.value.length : String(computedValue.value).length;
|
93
93
|
return allowClear.value && !disabled.value && !loading.value && !!hasValue;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, resolveComponent, createBlock, createElementBlock, openBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createElementVNode, createCommentVNode, withModifiers } from "vue";
|
2
|
-
import
|
2
|
+
import useSelectContext from "./hooks/useContext.js";
|
3
3
|
import _sfc_main$1 from "../_shared/icons/IconArrowDown.vue.js";
|
4
4
|
import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
|
5
5
|
/* empty css */
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
},
|
23
23
|
emits: ["clear"],
|
24
24
|
setup(__props) {
|
25
|
-
const { slots } =
|
25
|
+
const { slots } = useSelectContext().inject();
|
26
26
|
const renderIcon = (name) => {
|
27
27
|
return slots[name];
|
28
28
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, ref, createBlock, openBlock, unref, withCtx, createElementVNode, createElementBlock, resolveDynamicComponent, Fragment, renderList } from "vue";
|
2
2
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
3
|
-
import
|
3
|
+
import useSelectContext from "./hooks/useContext.js";
|
4
4
|
import _sfc_main$2 from "./Option.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import _sfc_main$1 from "./Optgroup.vue.js";
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
scrollbar: { type: Boolean }
|
14
14
|
},
|
15
15
|
setup(__props, { expose: __expose }) {
|
16
|
-
const { fieldKey, renderOptions, slots } =
|
16
|
+
const { fieldKey, renderOptions, slots } = useSelectContext().inject();
|
17
17
|
const scrollbarRef = ref();
|
18
18
|
const renderLabel = (option) => {
|
19
19
|
if (slots.option) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, createBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createCommentVNode } from "vue";
|
2
2
|
import { unrefElement } from "../node_modules/@vueuse/core/index.js";
|
3
|
-
import
|
3
|
+
import useSelectContext from "./hooks/useContext.js";
|
4
4
|
import useScrollReach from "../List/hooks/useScrollReach.js";
|
5
5
|
import _sfc_main$1 from "./SelectVirtualList.vue.js";
|
6
6
|
/* empty css */
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
29
|
setup(__props) {
|
30
30
|
const props = __props;
|
31
31
|
const { virtualListProps } = toRefs(props);
|
32
|
-
const { slots, options, isEmpty, emits } =
|
32
|
+
const { slots, options, isEmpty, emits } = useSelectContext().inject();
|
33
33
|
const realListRef = ref();
|
34
34
|
const virtualListRef = ref();
|
35
35
|
const isVirtualList = computed(() => {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent, toRefs, createElementBlock, openBlock, mergeProps, unref, createElementVNode, Fragment, renderList, createBlock, withCtx, resolveDynamicComponent } from "vue";
|
2
|
-
import { useVirtualList } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
4
|
-
import
|
3
|
+
import useSelectContext from "./hooks/useContext.js";
|
5
4
|
import "./index.js";
|
5
|
+
import { useVirtualList } from "../node_modules/@vueuse/core/index.js";
|
6
6
|
import _sfc_main$1 from "./Option.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
var _a, _b;
|
15
15
|
const props = __props;
|
16
16
|
const { virtualListProps } = toRefs(props);
|
17
|
-
const { fieldKey, renderOptions, slots } =
|
17
|
+
const { fieldKey, renderOptions, slots } = useSelectContext().inject();
|
18
18
|
const { list, wrapperProps, containerProps } = useVirtualList(renderOptions, {
|
19
19
|
overscan: ((_a = virtualListProps.value) == null ? void 0 : _a.buffer) ?? 10,
|
20
20
|
itemHeight: ((_b = virtualListProps.value) == null ? void 0 : _b.itemHeight) || 36
|
@@ -19,7 +19,7 @@ type SelectContext = {
|
|
19
19
|
collectOption: (props: RecordType, optionLabel: Ref<string>) => void;
|
20
20
|
emits: SelectEmits;
|
21
21
|
};
|
22
|
-
|
22
|
+
export default function useSelectContext(): {
|
23
23
|
provide: (props: RecordType, emits: SelectEmits, inputRef: Ref<InputInstance | undefined>) => {
|
24
24
|
computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
25
25
|
computedValue: import('vue').WritableComputedRef<SelectValue, SelectValue>;
|
@@ -40,7 +40,7 @@ declare const _default: () => {
|
|
40
40
|
disabled?: boolean | undefined;
|
41
41
|
tagProps?: {
|
42
42
|
color?: string | undefined;
|
43
|
-
size?: import('
|
43
|
+
size?: Exclude<import('../../_shared/type').Size, "mini"> | undefined;
|
44
44
|
bordered?: boolean | undefined;
|
45
45
|
visible?: boolean | undefined;
|
46
46
|
defaultVisible?: boolean | undefined;
|
@@ -60,7 +60,7 @@ declare const _default: () => {
|
|
60
60
|
disabled?: boolean | undefined;
|
61
61
|
tagProps?: {
|
62
62
|
color?: string | undefined;
|
63
|
-
size?: import('
|
63
|
+
size?: Exclude<import('../../_shared/type').Size, "mini"> | undefined;
|
64
64
|
bordered?: boolean | undefined;
|
65
65
|
visible?: boolean | undefined;
|
66
66
|
defaultVisible?: boolean | undefined;
|
@@ -78,4 +78,4 @@ declare const _default: () => {
|
|
78
78
|
};
|
79
79
|
inject: () => SelectContext;
|
80
80
|
};
|
81
|
-
export
|
81
|
+
export {};
|
@@ -4,7 +4,7 @@ import { isBoolean, isFunction } from "../../_shared/utils/is.js";
|
|
4
4
|
import useSelectOptions from "./useSelectOptions.js";
|
5
5
|
import useSelectHotkeys from "./useSelectHotkeys.js";
|
6
6
|
const SELECT_CONTEXT_KEY = "select-context";
|
7
|
-
|
7
|
+
function useSelectContext() {
|
8
8
|
const provide$1 = (props, emits, inputRef) => {
|
9
9
|
const {
|
10
10
|
popupVisible,
|
@@ -185,7 +185,7 @@ const useContext = () => {
|
|
185
185
|
provide: provide$1,
|
186
186
|
inject: inject$1
|
187
187
|
};
|
188
|
-
}
|
188
|
+
}
|
189
189
|
export {
|
190
|
-
|
190
|
+
useSelectContext as default
|
191
191
|
};
|
@@ -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/es/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;
|