yc-design-vue 2.0.1 → 2.0.3
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/es/Affix/type.d.ts +1 -1
- package/es/Alert/index.vue.js +2 -2
- package/es/Alert/type.d.ts +1 -1
- package/es/Anchor/hooks/useContext.d.ts +2 -2
- package/es/Anchor/type.d.ts +1 -1
- package/es/AutoComplete/index.d.ts +27 -27
- package/es/AutoComplete/index.vue.d.ts +49 -49
- package/es/AutoComplete/type.d.ts +6 -8
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/Avatar.vue.js +1 -1
- package/es/Avatar/hooks/useContext.d.ts +3 -3
- package/es/Avatar/index.d.ts +3 -3
- package/es/Avatar/type.d.ts +2 -2
- package/es/BackTop/index.vue.js +1 -1
- package/es/BackTop/type.d.ts +1 -1
- package/es/Badge/type.d.ts +1 -1
- package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/es/Breadcrumb/type.d.ts +1 -1
- package/es/Button/Button.vue.d.ts +1 -1
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/hooks/useContext.d.ts +5 -5
- package/es/Button/index.d.ts +6 -6
- package/es/Button/type.d.ts +4 -5
- package/es/Calendar/Calendar.vue.js +2 -2
- package/es/Card/type.d.ts +2 -1
- package/es/Carousel/Carousel.vue.d.ts +3 -3
- package/es/Carousel/CarouselArrow.vue.js +1 -1
- package/es/Carousel/CarouselIndicator.vue.d.ts +3 -3
- package/es/Carousel/hooks/useContext.d.ts +3 -3
- package/es/Carousel/index.d.ts +9 -9
- package/es/Carousel/type.d.ts +2 -3
- package/es/Cascader/Cascader.vue.d.ts +13 -25
- package/es/Cascader/Cascader.vue.js +1 -1
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +1 -1
- package/es/Cascader/hooks/useContext.d.ts +5 -17
- package/es/Cascader/index.d.ts +17 -29
- package/es/Cascader/type.d.ts +5 -7
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Checkbox/hooks/useContext.d.ts +3 -3
- package/es/Checkbox/type.d.ts +3 -3
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/Collapse/hooks/useContext.d.ts +5 -5
- package/es/Collapse/type.d.ts +2 -2
- package/es/ColorPicker/hooks/useContext.d.ts +2 -2
- package/es/ConfigProvider/index.d.ts +3 -3
- package/es/ConfigProvider/index.vue.d.ts +1 -1
- package/es/ConfigProvider/type.d.ts +2 -3
- package/es/Descriptions/hooks/useContext.d.ts +2 -2
- package/es/Descriptions/type.d.ts +1 -2
- package/es/Drawer/Drawer.vue.js +2 -2
- package/es/Drawer/DrawerService.vue.d.ts +1 -1
- package/es/Dropdown/Doption.vue.js +1 -1
- package/es/Dropdown/Dropdown.vue.d.ts +1 -1
- package/es/Dropdown/Dropdown.vue.js +1 -1
- package/es/Dropdown/DropdownButton.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue.d.ts +20 -20
- package/es/Dropdown/Dsubmenu.vue.js +2 -2
- package/es/Dropdown/hooks/useContext.d.ts +2 -2
- package/es/Dropdown/index.d.ts +18 -18
- package/es/Dropdown/type.d.ts +5 -6
- package/es/Empty/index.vue.js +1 -1
- package/es/Grid/Grid.vue.d.ts +3 -3
- package/es/Grid/GridCol.vue.d.ts +2 -2
- package/es/Grid/GridItem.vue.d.ts +2 -2
- package/es/Grid/GridRow.vue.d.ts +1 -1
- package/es/Grid/hooks/useContext.d.ts +4 -4
- package/es/Grid/index.d.ts +24 -24
- package/es/Grid/type.d.ts +4 -12
- package/es/Image/Image.vue.d.ts +1 -1
- package/es/Image/Image.vue.js +1 -1
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreviewArrow.vue.js +1 -1
- package/es/Image/ImagePreviewToolbar.vue.js +1 -1
- package/es/Image/hooks/useContext.d.ts +2 -2
- package/es/Image/index.d.ts +3 -3
- package/es/Image/type.d.ts +2 -3
- package/es/Input/Input.vue.d.ts +1 -1
- package/es/Input/Input.vue.js +2 -2
- package/es/Input/InputSuffix.vue.js +2 -2
- package/es/Input/hooks/useLimitedInput.d.ts +3 -3
- package/es/Input/index.d.ts +3 -3
- package/es/Input/type.d.ts +2 -2
- package/es/InputNumber/InputNumber.vue.d.ts +7 -7
- package/es/InputNumber/InputOperaBtn.vue.js +1 -1
- package/es/InputNumber/index.d.ts +6 -6
- package/es/InputNumber/type.d.ts +3 -4
- package/es/InputTag/index.vue.js +2 -2
- package/es/InputTag/type.d.ts +5 -6
- package/es/Layout/LayoutSider.vue.d.ts +7 -7
- package/es/Layout/LayoutSider.vue.js +1 -1
- package/es/Layout/hooks/useSiderContext.d.ts +2 -2
- package/es/Layout/index.d.ts +19 -19
- package/es/Layout/type.d.ts +4 -5
- package/es/Link/index.vue.js +1 -1
- package/es/Link/type.d.ts +1 -1
- package/es/List/List.vue.d.ts +15 -15
- package/es/List/ListVirtual.vue.d.ts +3 -3
- package/es/List/index.d.ts +10 -10
- package/es/List/type.d.ts +3 -3
- package/es/Mention/index.d.ts +35 -35
- package/es/Mention/index.vue.d.ts +46 -46
- package/es/Mention/type.d.ts +6 -5
- package/es/Menu/Menu.vue.d.ts +6 -6
- package/es/Menu/Menu.vue.js +1 -1
- package/es/Menu/MenuEllipsis.vue.js +1 -1
- package/es/Menu/SubMenu.vue.d.ts +1 -1
- package/es/Menu/SubMenu.vue.js +1 -1
- package/es/Menu/hooks/useContext.d.ts +5 -5
- package/es/Menu/index.d.ts +20 -20
- package/es/Menu/type.d.ts +3 -6
- package/es/Message/Message.vue.d.ts +1 -1
- package/es/Message/Message.vue.js +2 -2
- package/es/Message/index.d.ts +3 -3
- package/es/Message/type.d.ts +5 -5
- package/es/Modal/Modal.vue.d.ts +2 -2
- package/es/Modal/Modal.vue.js +2 -2
- package/es/Modal/ModalService.vue.d.ts +4 -4
- package/es/Modal/index.d.ts +6 -6
- package/es/Modal/index.js +1 -1
- package/es/Modal/type.d.ts +8 -8
- package/es/Notification/Notification.vue.d.ts +3 -3
- package/es/Notification/Notification.vue.js +2 -2
- package/es/Notification/index.d.ts +9 -9
- package/es/Notification/type.d.ts +4 -4
- package/es/PageHeader/index.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +1 -1
- package/es/Pagination/hooks/useContext.d.ts +2 -2
- package/es/Popconfirm/index.d.ts +18 -18
- package/es/Popconfirm/index.vue.d.ts +21 -21
- package/es/Popconfirm/type.d.ts +4 -4
- package/es/Popover/index.d.ts +9 -9
- package/es/Popover/index.vue.d.ts +3 -3
- package/es/Popover/type.d.ts +3 -3
- package/es/Progress/ProgressCircle.vue.js +1 -1
- package/es/Progress/type.d.ts +1 -1
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Radio/hooks/useContext.d.ts +3 -3
- package/es/Radio/type.d.ts +2 -2
- package/es/Rate/index.vue.js +1 -1
- package/es/ResizeBox/index.vue.js +3 -3
- package/es/Result/type.d.ts +1 -1
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Select/Option.vue.d.ts +1 -1
- package/es/Select/Option.vue.js +1 -1
- package/es/Select/Select.vue.d.ts +27 -27
- package/es/Select/Select.vue.js +2 -2
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Select/SelectRealList.vue.js +1 -1
- package/es/Select/hooks/useContext.d.ts +13 -13
- package/es/Select/hooks/useSelectOptions.d.ts +13 -13
- package/es/Select/index.d.ts +26 -26
- package/es/Select/type.d.ts +13 -16
- package/es/Skeleton/type.d.ts +3 -2
- package/es/Slider/Slider.vue.d.ts +1 -1
- package/es/Slider/SliderTicks.vue.d.ts +2 -2
- package/es/Slider/hooks/useContext.d.ts +4 -4
- package/es/Slider/index.d.ts +3 -3
- package/es/Slider/type.d.ts +2 -3
- package/es/Space/index.d.ts +3 -3
- package/es/Space/index.vue.d.ts +1 -1
- package/es/Spin/index.vue.js +1 -1
- package/es/Split/index.vue.js +1 -1
- package/es/Steps/Step.vue.js +1 -1
- package/es/Steps/hooks/useContext.d.ts +3 -3
- package/es/Switch/type.d.ts +2 -1
- package/es/Tabs/TabButton.vue.js +2 -2
- package/es/Tabs/Tabs.vue.d.ts +1 -1
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tabs/TabsNavInk.vue.d.ts +2 -2
- package/es/Tabs/hooks/useContext.d.ts +5 -5
- package/es/Tabs/hooks/useTabsScroll.d.ts +2 -2
- package/es/Tabs/index.d.ts +3 -3
- package/es/Tabs/type.d.ts +2 -3
- package/es/Tag/index.vue.js +2 -2
- package/es/Tag/type.d.ts +2 -1
- package/es/Textarea/index.vue.js +2 -2
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/TimePicker/hooks/useContext.d.ts +2 -2
- package/es/TimePicker/type.d.ts +1 -1
- package/es/Timeline/hooks/useContext.d.ts +4 -4
- package/es/Tooltip/index.d.ts +9 -9
- package/es/Tooltip/index.vue.d.ts +3 -3
- package/es/Tooltip/type.d.ts +3 -3
- package/es/Transfer/Transfer.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue.js +2 -2
- package/es/Transfer/hooks/useContext.d.ts +2 -2
- package/es/Trigger/hooks/useContext.d.ts +2 -2
- package/es/Trigger/hooks/useTriggerPosition.d.ts +3 -4
- package/es/Trigger/hooks/useTriggerVisible.d.ts +2 -2
- package/es/Trigger/index.d.ts +9 -9
- package/es/Trigger/index.vue.d.ts +3 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/type.d.ts +3 -4
- package/es/Typography/TypographyBase.vue.d.ts +6 -7
- package/es/Typography/TypographyBase.vue.js +3 -4
- package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/es/Typography/TypographyParagraph.vue.js +0 -7
- package/es/Typography/TypographyText.vue.js +0 -7
- package/es/Typography/TypographyTitle.vue.d.ts +1 -1
- package/es/Typography/TypographyTitle.vue.js +0 -7
- package/es/Typography/type.d.ts +4 -14
- package/es/_shared/components/ExpandTransition/index.vue2.js +6 -2
- package/es/_shared/components/IconButton/{index.vue.js → index.vue2.js} +1 -1
- package/es/_shared/components/IconButton/index.vue3.js +2 -2
- package/es/_shared/constants/index.d.ts +4 -4
- package/es/_shared/constants/index.js +1 -1
- package/es/_shared/icons/IconArrowDown.vue.js +1 -1
- package/es/_shared/icons/IconArrowRight.vue.js +1 -1
- package/es/_shared/icons/IconCheck.vue.js +1 -1
- package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/es/_shared/icons/IconClose.vue.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +23 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -23
- package/es/_shared/icons/IconDelete.vue2.js +1 -1
- package/es/_shared/icons/IconDragDot.vue.js +1 -1
- package/es/_shared/icons/IconEdit.vue.js +23 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -23
- package/es/_shared/icons/IconEmpty.vue.js +1 -1
- package/es/_shared/icons/IconError.vue.js +1 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/es/_shared/icons/IconImageClose.vue.js +1 -1
- package/es/_shared/icons/IconInfo.vue.js +1 -1
- package/es/_shared/icons/IconInfoLine.vue.js +1 -1
- package/es/_shared/icons/IconLink.vue.js +1 -1
- package/es/_shared/icons/IconLoading.vue.js +1 -1
- package/es/_shared/icons/IconMenuFold.vue.js +1 -1
- package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/es/_shared/icons/IconMinus.vue2.js +1 -1
- package/es/_shared/icons/IconMore.vue.js +1 -1
- package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/es/_shared/icons/IconPlus.vue.js +1 -1
- package/es/_shared/icons/IconRight.vue.js +1 -1
- package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -1
- package/es/_shared/icons/IconStar.vue.js +1 -1
- package/es/_shared/icons/IconSuccess.vue.js +1 -1
- package/es/_shared/icons/IconTime.vue.js +1 -1
- package/es/_shared/icons/IconToTop.vue.js +1 -1
- package/es/_shared/icons/IconWarning.vue.js +1 -1
- package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/es/_shared/type/index.d.ts +22 -5
- package/es/_shared/utils/dom.d.ts +1 -1
- package/es/_shared/utils/dom.js +1 -1
- package/es/_shared/utils/global-config.d.ts +4 -4
- package/es/_shared/utils/vue-utils.d.ts +3 -3
- package/es/index.d.ts +59 -59
- package/lib/Affix/type.d.ts +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Alert/type.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +2 -2
- package/lib/Anchor/type.d.ts +1 -1
- package/lib/AutoComplete/index.d.ts +27 -27
- package/lib/AutoComplete/index.vue.d.ts +49 -49
- package/lib/AutoComplete/type.d.ts +6 -8
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/hooks/useContext.d.ts +3 -3
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/Avatar/type.d.ts +2 -2
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/BackTop/type.d.ts +1 -1
- package/lib/Badge/type.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Breadcrumb/type.d.ts +1 -1
- package/lib/Button/Button.vue.d.ts +1 -1
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/hooks/useContext.d.ts +5 -5
- package/lib/Button/index.d.ts +6 -6
- package/lib/Button/type.d.ts +4 -5
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Card/type.d.ts +2 -1
- package/lib/Carousel/Carousel.vue.d.ts +3 -3
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue.d.ts +3 -3
- package/lib/Carousel/hooks/useContext.d.ts +3 -3
- package/lib/Carousel/index.d.ts +9 -9
- package/lib/Carousel/type.d.ts +2 -3
- package/lib/Cascader/Cascader.vue.d.ts +13 -25
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/hooks/useContext.d.ts +5 -17
- package/lib/Cascader/index.d.ts +17 -29
- package/lib/Cascader/type.d.ts +5 -7
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Checkbox/hooks/useContext.d.ts +3 -3
- package/lib/Checkbox/type.d.ts +3 -3
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/hooks/useContext.d.ts +5 -5
- package/lib/Collapse/type.d.ts +2 -2
- package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
- package/lib/ConfigProvider/index.d.ts +3 -3
- package/lib/ConfigProvider/index.vue.d.ts +1 -1
- package/lib/ConfigProvider/type.d.ts +2 -3
- package/lib/Descriptions/hooks/useContext.d.ts +2 -2
- package/lib/Descriptions/type.d.ts +1 -2
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +1 -1
- package/lib/Dropdown/Doption.vue.js +1 -1
- package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.d.ts +20 -20
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.d.ts +2 -2
- package/lib/Dropdown/index.d.ts +18 -18
- package/lib/Dropdown/type.d.ts +5 -6
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Grid/Grid.vue.d.ts +3 -3
- package/lib/Grid/GridCol.vue.d.ts +2 -2
- package/lib/Grid/GridItem.vue.d.ts +2 -2
- package/lib/Grid/GridRow.vue.d.ts +1 -1
- package/lib/Grid/hooks/useContext.d.ts +4 -4
- package/lib/Grid/index.d.ts +24 -24
- package/lib/Grid/type.d.ts +4 -12
- package/lib/Image/Image.vue.d.ts +1 -1
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Image/hooks/useContext.d.ts +2 -2
- package/lib/Image/index.d.ts +3 -3
- package/lib/Image/type.d.ts +2 -3
- package/lib/Input/Input.vue.d.ts +1 -1
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/hooks/useLimitedInput.d.ts +3 -3
- package/lib/Input/index.d.ts +3 -3
- package/lib/Input/type.d.ts +2 -2
- package/lib/InputNumber/InputNumber.vue.d.ts +7 -7
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputNumber/index.d.ts +6 -6
- package/lib/InputNumber/type.d.ts +3 -4
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/InputTag/type.d.ts +5 -6
- package/lib/Layout/LayoutSider.vue.d.ts +7 -7
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/hooks/useSiderContext.d.ts +2 -2
- package/lib/Layout/index.d.ts +19 -19
- package/lib/Layout/type.d.ts +4 -5
- package/lib/Link/index.vue.js +1 -1
- package/lib/Link/type.d.ts +1 -1
- package/lib/List/List.vue.d.ts +15 -15
- package/lib/List/ListVirtual.vue.d.ts +3 -3
- package/lib/List/index.d.ts +10 -10
- package/lib/List/type.d.ts +3 -3
- package/lib/Mention/index.d.ts +35 -35
- package/lib/Mention/index.vue.d.ts +46 -46
- package/lib/Mention/type.d.ts +6 -5
- package/lib/Menu/Menu.vue.d.ts +6 -6
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.d.ts +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +5 -5
- package/lib/Menu/index.d.ts +20 -20
- package/lib/Menu/type.d.ts +3 -6
- package/lib/Message/Message.vue.d.ts +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Message/index.d.ts +3 -3
- package/lib/Message/type.d.ts +5 -5
- package/lib/Modal/Modal.vue.d.ts +2 -2
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.d.ts +4 -4
- package/lib/Modal/index.d.ts +6 -6
- package/lib/Modal/type.d.ts +8 -8
- package/lib/Notification/Notification.vue.d.ts +3 -3
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Notification/index.d.ts +9 -9
- package/lib/Notification/type.d.ts +4 -4
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +2 -2
- package/lib/Popconfirm/index.d.ts +18 -18
- package/lib/Popconfirm/index.vue.d.ts +21 -21
- package/lib/Popconfirm/type.d.ts +4 -4
- package/lib/Popover/index.d.ts +9 -9
- package/lib/Popover/index.vue.d.ts +3 -3
- package/lib/Popover/type.d.ts +3 -3
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Progress/type.d.ts +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Radio/hooks/useContext.d.ts +3 -3
- package/lib/Radio/type.d.ts +2 -2
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Result/type.d.ts +1 -1
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Select/Option.vue.d.ts +1 -1
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Select.vue.d.ts +27 -27
- package/lib/Select/Select.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/SelectRealList.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +13 -13
- package/lib/Select/hooks/useSelectOptions.d.ts +13 -13
- package/lib/Select/index.d.ts +26 -26
- package/lib/Select/type.d.ts +13 -16
- package/lib/Skeleton/type.d.ts +3 -2
- package/lib/Slider/Slider.vue.d.ts +1 -1
- package/lib/Slider/SliderTicks.vue.d.ts +2 -2
- package/lib/Slider/hooks/useContext.d.ts +4 -4
- package/lib/Slider/index.d.ts +3 -3
- package/lib/Slider/type.d.ts +2 -3
- package/lib/Space/index.d.ts +3 -3
- package/lib/Space/index.vue.d.ts +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/hooks/useContext.d.ts +3 -3
- package/lib/Switch/type.d.ts +2 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.d.ts +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/TabsNavInk.vue.d.ts +2 -2
- package/lib/Tabs/hooks/useContext.d.ts +5 -5
- package/lib/Tabs/hooks/useTabsScroll.d.ts +2 -2
- package/lib/Tabs/index.d.ts +3 -3
- package/lib/Tabs/type.d.ts +2 -3
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Tag/type.d.ts +2 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +2 -2
- package/lib/TimePicker/type.d.ts +1 -1
- package/lib/Timeline/hooks/useContext.d.ts +4 -4
- package/lib/Tooltip/index.d.ts +9 -9
- package/lib/Tooltip/index.vue.d.ts +3 -3
- package/lib/Tooltip/type.d.ts +3 -3
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +2 -2
- package/lib/Trigger/hooks/useContext.d.ts +2 -2
- package/lib/Trigger/hooks/useTriggerPosition.d.ts +3 -4
- package/lib/Trigger/hooks/useTriggerVisible.d.ts +2 -2
- package/lib/Trigger/index.d.ts +9 -9
- package/lib/Trigger/index.vue.d.ts +3 -3
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/type.d.ts +3 -4
- package/lib/Typography/TypographyBase.vue.d.ts +6 -7
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/lib/Typography/TypographyParagraph.vue.js +1 -1
- package/lib/Typography/TypographyText.vue.js +1 -1
- package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
- package/lib/Typography/TypographyTitle.vue.js +1 -1
- package/lib/Typography/type.d.ts +4 -14
- package/lib/_shared/components/IconButton/index.vue2.js +1 -0
- package/lib/_shared/components/IconButton/index.vue3.js +1 -1
- package/lib/_shared/constants/index.d.ts +4 -4
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
- package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
- package/lib/_shared/icons/IconCheck.vue.js +1 -1
- package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/lib/_shared/icons/IconClose.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconDragDot.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEmpty.vue.js +1 -1
- package/lib/_shared/icons/IconError.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconImageClose.vue.js +1 -1
- package/lib/_shared/icons/IconInfo.vue.js +1 -1
- package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
- package/lib/_shared/icons/IconLink.vue.js +1 -1
- package/lib/_shared/icons/IconLoading.vue.js +1 -1
- package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
- package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconMore.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconPlus.vue.js +1 -1
- package/lib/_shared/icons/IconRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconStar.vue.js +1 -1
- package/lib/_shared/icons/IconSuccess.vue.js +1 -1
- package/lib/_shared/icons/IconTime.vue.js +1 -1
- package/lib/_shared/icons/IconToTop.vue.js +1 -1
- package/lib/_shared/icons/IconWarning.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/type/index.d.ts +22 -5
- package/lib/_shared/utils/dom.d.ts +1 -1
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +4 -4
- package/lib/_shared/utils/vue-utils.d.ts +3 -3
- package/lib/index.d.ts +59 -59
- package/package.json +1 -1
- package/lib/_shared/components/IconButton/index.vue.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("../_shared/utils/control.js");,/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const a=require("../_shared/icons/IconClose.vue.js"),r=require("../node_modules/@vueuse/core/index.js"),l=require("../Modal/hooks/useModalClose.js"),s=require("./ImagePreviewToolbar.vue.js");;/* empty css */const i={class:"yc-image-preview-mask"},n=["src"],u=e.defineComponent({name:"ImagePreview",inheritAttrs:!1,__name:"ImagePreview",props:{src:{default:""},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{default:void 0},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{default:1},zoomRate:{default:1.1}},emits:["update:visible","close"],setup(u,{emit:c}){const d=u,f=c,{visible:m,defaultVisible:v,maskClosable:p,escToClose:w,defaultScale:y,zoomRate:h,wheelZoom:k,keyboard:g}=e.toRefs(d),{zIndex:b,popupContainer:C,isAbsolute:z}=o.getGlobalConfig(d),B=e.ref(),_=t(e.ref(),y.value),S=e.ref(0),{outerVisible:q,innerVisible:V,handleClose:j,handleAfterLeave:I}=l({visible:m,defaultVisible:v,escToClose:w,maskClosable:p,onBeforeOk:()=>!0,onBeforeCancel:()=>!0,emits:f}),x=e=>{switch(e){case"rotateRight":S.value+=90;break;case"rotateLeft":S.value-=90;break;case"zoomIn":_.value*=h.value;break;case"zoomOut":_.value/=h.value;break;case"originalSize":_.value=y.value,S.value=0;break;case"fullScreen":{const{offsetWidth:e,offsetHeight:o}=B.value;_.value=e>o?window.innerHeight/o:window.innerHeight/e}}};return(()=>{if(k.value&&r.useEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const o=e.deltaY<0?1:-1;_.value*=Math.pow(h.value,o)}),g.value){const e={ArrowUp:"zoomIn",ArrowDown:"zoomOut"," ":"originalSize"};r.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{x(e[o.key])})}})(),(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(C)},[e.unref(q)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-image-preview",o.$attrs.class,{"yc-image-preview-absolute":e.unref(z)}]),style:e.normalizeStyle({zIndex:e.unref(b),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",i,null,512),[[e.vShow,e.unref(V)]])]),_:1}),e.createVNode(e.Transition,{name:"fade",onAfterLeave:e.unref(I)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-image-preview-wrapper",onClick:t[2]||(t[2]=e.withModifiers(o=>e.unref(j)("mask",o,!1),["self"]))},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`scale(${e.unref(_)}, ${e.unref(_)})`}),class:"yc-image-preview-img-container",onClick:t[0]||(t[0]=e.withModifiers(o=>e.unref(j)("mask",o,!1),["self"]))},[e.createElementVNode("img",{src:o.src,style:e.normalizeStyle({transform:`translate(-50%, -50%) rotate(${S.value}deg)`}),class:"yc-image-preview-img",ref_key:"imageRef",ref:B},null,12,n)],4),e.createVNode(s,{actionsLayout:o.actionsLayout,onClick:x},e.createSlots({_:2},[o.$slots.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"actions")]),key:"0"}:void 0]),1032,["actionsLayout"]),e.renderSlot(o.$slots,"arrow"),o.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-image-preview-close-btn",onClick:t[1]||(t[1]=o=>e.unref(j)("closeBtn",o))},[e.createVNode(e.unref(a))])):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(V)]])]),_:3},8,["onAfterLeave"])],6)):e.createCommentVNode("",!0)],8,["to"]))}});module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=e.defineComponent({__name:"ImagePreviewArrow",props:{type:{}},setup:o=>(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([`yc-image-preview-arrow-${o.type}`])},[e.createVNode(e.unref(r),{rotate:"left"==o.type?180:0},null,8,["rotate"])],2))});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/locale.js");,/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/locale.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconFullScreen.vue2.js"),n=require("../_shared/icons/IconOriginSize.vue2.js"),t=require("../_shared/icons/IconRotateLeft.vue2.js"),i=require("../_shared/icons/IconRotateRight.vue2.js"),s=require("../_shared/icons/IconZoomIn.vue2.js"),c=require("../_shared/icons/IconZoomOut.vue2.js"),a=require("./ImagePreviewAction.vue.js");;/* empty css */const u={key:0,class:"yc-image-preview-toolbar"},l=e.defineComponent({__name:"ImagePreviewToolbar",props:{actionsLayout:{default:()=>[]}},emits:["click"],setup(l){const{t:m}=o.useI18n(),d={fullScreen:r,rotateRight:i,rotateLeft:t,zoomIn:s,zoomOut:c,originalSize:n};return(o,r)=>o.actionsLayout.length?(e.openBlock(),e.createElementBlock("div",u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionsLayout,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[d[r]?(e.openBlock(),e.createBlock(a,{key:0,name:e.unref(m)(`imagePreview.${r}`),onClick:e=>o.$emit("click",r,e)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[r])))]),_:2},1032,["name","onClick"])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(o.$slots,"actions")])):e.createCommentVNode("",!0)}});module.exports=l;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
import { ImagePreviewGroupEmits } from '../type';
|
3
|
-
import {
|
3
|
+
import { RecordType } from '../../_shared/type';
|
4
4
|
type ImageContext = {
|
5
5
|
hasGroupFather: Ref<boolean>;
|
6
6
|
handleClick: (src: string) => void;
|
7
7
|
};
|
8
8
|
declare const _default: () => {
|
9
|
-
provide: (props:
|
9
|
+
provide: (props: RecordType, emits: ImagePreviewGroupEmits) => {
|
10
10
|
src: import('vue').ComputedRef<string>;
|
11
11
|
srcList: import('vue').ComputedRef<string[]>;
|
12
12
|
computedCurrent: import('vue').WritableComputedRef<number, number>;
|
package/lib/Image/index.d.ts
CHANGED
@@ -26,7 +26,7 @@ declare const Image: {
|
|
26
26
|
previewVisible: boolean;
|
27
27
|
defaultPreviewVisible: boolean;
|
28
28
|
previewProps: import('./type').ImagePreviewProps;
|
29
|
-
footerClass: import('
|
29
|
+
footerClass: import('..').ClassName;
|
30
30
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
31
31
|
P: {};
|
32
32
|
B: {};
|
@@ -48,7 +48,7 @@ declare const Image: {
|
|
48
48
|
previewVisible: boolean;
|
49
49
|
defaultPreviewVisible: boolean;
|
50
50
|
previewProps: import('./type').ImagePreviewProps;
|
51
|
-
footerClass: import('
|
51
|
+
footerClass: import('..').ClassName;
|
52
52
|
}>;
|
53
53
|
__isFragment?: never;
|
54
54
|
__isTeleport?: never;
|
@@ -70,7 +70,7 @@ declare const Image: {
|
|
70
70
|
previewVisible: boolean;
|
71
71
|
defaultPreviewVisible: boolean;
|
72
72
|
previewProps: import('./type').ImagePreviewProps;
|
73
|
-
footerClass: import('
|
73
|
+
footerClass: import('..').ClassName;
|
74
74
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
75
75
|
$slots: Readonly<import('./type').ImageSlots> & import('./type').ImageSlots;
|
76
76
|
}) & {
|
package/lib/Image/type.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ClassName, PopupContainer } from '../_shared/type';
|
2
1
|
import { VNode } from 'vue';
|
2
|
+
import { ClassName, PopupContainer, ObjectFit } from '../_shared/type';
|
3
3
|
export interface ImageProps {
|
4
4
|
src?: string;
|
5
5
|
width?: number | string;
|
6
6
|
height?: number | string;
|
7
7
|
title?: string;
|
8
8
|
description?: string;
|
9
|
-
fit?:
|
9
|
+
fit?: ObjectFit;
|
10
10
|
alt?: string;
|
11
11
|
hideFooter?: HideFooter;
|
12
12
|
footerPosition?: FooterPostion;
|
@@ -78,6 +78,5 @@ export interface ImagePreviewActionEmits {
|
|
78
78
|
export interface ImagePreviewActionSlots {
|
79
79
|
default?: () => VNode[];
|
80
80
|
}
|
81
|
-
export type ImageObjectFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
82
81
|
export type HideFooter = boolean | 'never';
|
83
82
|
export type FooterPostion = 'inner' | 'outer';
|
package/lib/Input/Input.vue.d.ts
CHANGED
@@ -47,7 +47,7 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
|
|
47
47
|
readonly: boolean;
|
48
48
|
wordLength: import('./type').WordLength;
|
49
49
|
wordSlice: import('./type').WordSlice;
|
50
|
-
inputAttrs: import('
|
50
|
+
inputAttrs: import('..').RecordType;
|
51
51
|
isPassword: boolean;
|
52
52
|
visibility: boolean;
|
53
53
|
defaultVisibility: boolean;
|
package/lib/Input/Input.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const o=require("../_shared/utils/control.js"),n=require("./hooks/useLimitedInput.js"),l=;/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const o=require("../_shared/utils/control.js"),n=require("./hooks/useLimitedInput.js"),l=;/* empty css */;/* empty css */const s=;/* empty css */,/* empty css */;/* empty css */const i=require("./InputSuffix.vue.js");;/* empty css */const r=["value","type","disabled","readonly","placeholder"],u=e.defineComponent({name:"Input",__name:"Input",props:{modelValue:{default:void 0},defaultValue:{default:""},size:{default:void 0},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:void 0},placeholder:{default:""},maxLength:{default:void 0},wordLength:{type:Function,default:e=>e.length},wordSlice:{type:Function,default:(e,t)=>e.slice(0,t)},showWordLimit:{type:Boolean,default:!1},inputAttrs:{default:()=>({})},isPassword:{type:Boolean,default:!1},visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!1},invisibleButton:{type:Boolean,default:!0},showInput:{type:Boolean,default:!1}},emits:["update:modelValue","update:visibility","input","change","visibility-change","pressEnter","keydown","clear","focus","blur"],setup(u,{expose:a,emit:d}){const c=u,p=d,{visibility:f,defaultVisibility:y}=e.toRefs(c),{size:m}=t.getGlobalConfig(c),h=e.ref(),v=o(f,y.value,e=>{p("update:visibility",e),p("visibility-change",e)}),b=e.computed(()=>v.value?"password":"text"),{computedValue:w,showWordLimit:k,showClearBtn:B,curLength:x,maxLength:C,error:g,handleInput:_,handleComposition:$}=n({props:c,emits:p,inputRef:h}),q=async(e,t)=>{switch(e){case"input":_(t);break;case"change":p("change",w.value,t);break;case"focus":case"blur":p(e,t);break;case"clear":w.value="",p("clear",t);break;case"keydown":{const e=t;p("keydown",e),"Enter"==e.key&&p("pressEnter",e)}}};return a({focus(){var e;null==(e=h.value)||e.focus()},blur(){var e;null==(e=h.value)||e.blur()},getInputRef:()=>h.value}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-input-outer",`yc-input-size-${e.unref(m)}`,{"yc-input-disabled":t.disabled,"yc-input-error":e.unref(g),"yc-input-has-prepend":t.$slots.prepend,"yc-input-has-append":t.$slots.append}])},[t.$slots.prepend?(e.openBlock(),e.createBlock(e.unref(s),{key:0,class:"yc-input-prepend"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yc-input-wrapper",{"yc-input-wrapper-disabled":t.disabled}])},[t.$slots.prefix?(e.openBlock(),e.createBlock(e.unref(s),{key:0,class:"yc-input-prefix"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")]),_:3})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({value:e.unref(w),type:b.value,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder},t.inputAttrs,{class:"yc-input",ref_key:"inputRef",ref:h,onInput:o[0]||(o[0]=e=>q("input",e)),onChange:o[1]||(o[1]=e=>q("change",e)),onCompositionstart:o[2]||(o[2]=(...t)=>e.unref($)&&e.unref($)(...t)),onCompositionupdate:o[3]||(o[3]=(...t)=>e.unref($)&&e.unref($)(...t)),onCompositionend:o[4]||(o[4]=(...t)=>e.unref($)&&e.unref($)(...t)),onFocus:o[5]||(o[5]=e=>q("focus",e)),onBlur:o[6]||(o[6]=e=>q("blur",e)),onKeydown:o[7]||(o[7]=e.withKeys(e=>q("keydown",e),["enter"]))}),null,16,r),[[e.vShow,!t.$slots.label||t.$slots.label&&t.showInput]]),t.$slots.label?e.withDirectives((e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-input text-ellipsis"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"label")]),_:3},512)),[[e.vShow,!t.showInput]]):e.createCommentVNode("",!0),e.unref(B)?(e.openBlock(),e.createBlock(e.unref(l),{key:2,class:"yc-input-clear-button",onClick:o[8]||(o[8]=e=>q("clear",e))})):e.createCommentVNode("",!0),t.$slots.suffix||e.unref(k)||t.isPassword&&t.invisibleButton?(e.openBlock(),e.createBlock(i,{key:3,"cur-length":e.unref(x),"max-length":e.unref(C),"computed-value":e.unref(w),"show-word-limit":e.unref(k),"computed-visibility":e.unref(v),"invisible-button":t.invisibleButton,"is-password":t.isPassword,onVisibilityChange:o[9]||(o[9]=e=>v.value=e)},e.createSlots({_:2},[t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")]),key:"0"}:void 0]),1032,["cur-length","max-length","computed-value","show-word-limit","computed-visibility","invisible-button","is-password"])):e.createCommentVNode("",!0)],2),t.$slots.append?(e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-input-append"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"append")]),_:3})):e.createCommentVNode("",!0)],2))}});module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),o=;/* empty css */;/* empty css */const i=;/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const t=require("../_shared/icons/IconEyeClose.vue2.js"),s=require("../_shared/icons/IconEyeOpen.vue2.js"),n={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,u)=>(e.openBlock(),e.createBlock(e.unref(i),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",n,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(o),{key:1,size:14,onClick:u[0]||(u[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(s),{key:0})):(e.openBlock(),e.createBlock(e.unref(t),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});module.exports=r;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
import {
|
2
|
+
import { RecordType, Required } from '../../_shared/type';
|
3
3
|
import { TextareaEmits } from '../../Textarea';
|
4
4
|
import { InputProps as _InputProps, InputEmits } from '..';
|
5
|
-
export type InputProps =
|
5
|
+
export type InputProps = Required<_InputProps>;
|
6
6
|
declare const _default: (params: {
|
7
|
-
props:
|
7
|
+
props: RecordType;
|
8
8
|
emits: InputEmits | TextareaEmits;
|
9
9
|
inputRef: Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
10
10
|
}) => {
|
package/lib/Input/index.d.ts
CHANGED
@@ -42,7 +42,7 @@ declare const Input: {
|
|
42
42
|
readonly: boolean;
|
43
43
|
wordLength: import('./type').WordLength;
|
44
44
|
wordSlice: import('./type').WordSlice;
|
45
|
-
inputAttrs: import('
|
45
|
+
inputAttrs: import('..').RecordType;
|
46
46
|
isPassword: boolean;
|
47
47
|
visibility: boolean;
|
48
48
|
defaultVisibility: boolean;
|
@@ -85,7 +85,7 @@ declare const Input: {
|
|
85
85
|
readonly: boolean;
|
86
86
|
wordLength: import('./type').WordLength;
|
87
87
|
wordSlice: import('./type').WordSlice;
|
88
|
-
inputAttrs: import('
|
88
|
+
inputAttrs: import('..').RecordType;
|
89
89
|
isPassword: boolean;
|
90
90
|
visibility: boolean;
|
91
91
|
defaultVisibility: boolean;
|
@@ -134,7 +134,7 @@ declare const Input: {
|
|
134
134
|
readonly: boolean;
|
135
135
|
wordLength: import('./type').WordLength;
|
136
136
|
wordSlice: import('./type').WordSlice;
|
137
|
-
inputAttrs: import('
|
137
|
+
inputAttrs: import('..').RecordType;
|
138
138
|
isPassword: boolean;
|
139
139
|
visibility: boolean;
|
140
140
|
defaultVisibility: boolean;
|
package/lib/Input/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Size,
|
1
|
+
import { Size, RecordType } from '../_shared/type';
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface InputProps {
|
4
4
|
modelValue?: string;
|
@@ -13,7 +13,7 @@ export interface InputProps {
|
|
13
13
|
wordLength?: WordLength;
|
14
14
|
wordSlice?: WordSlice;
|
15
15
|
showWordLimit?: boolean;
|
16
|
-
inputAttrs?:
|
16
|
+
inputAttrs?: RecordType;
|
17
17
|
isPassword?: boolean;
|
18
18
|
visibility?: boolean;
|
19
19
|
defaultVisibility?: boolean;
|
@@ -19,7 +19,7 @@ declare function __VLS_template(): {
|
|
19
19
|
readonly wordLength?: import('../Input').WordLength | undefined;
|
20
20
|
readonly wordSlice?: import('../Input').WordSlice | undefined;
|
21
21
|
readonly showWordLimit?: boolean | undefined;
|
22
|
-
readonly inputAttrs?: import('
|
22
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
23
23
|
readonly isPassword?: boolean | undefined;
|
24
24
|
readonly visibility?: boolean | undefined;
|
25
25
|
readonly defaultVisibility?: boolean | undefined;
|
@@ -91,7 +91,7 @@ declare function __VLS_template(): {
|
|
91
91
|
readonly: boolean;
|
92
92
|
wordLength: import('../Input').WordLength;
|
93
93
|
wordSlice: import('../Input').WordSlice;
|
94
|
-
inputAttrs: import('
|
94
|
+
inputAttrs: import('..').RecordType;
|
95
95
|
isPassword: boolean;
|
96
96
|
visibility: boolean;
|
97
97
|
defaultVisibility: boolean;
|
@@ -130,7 +130,7 @@ declare function __VLS_template(): {
|
|
130
130
|
readonly: boolean;
|
131
131
|
wordLength: import('../Input').WordLength;
|
132
132
|
wordSlice: import('../Input').WordSlice;
|
133
|
-
inputAttrs: import('
|
133
|
+
inputAttrs: import('..').RecordType;
|
134
134
|
isPassword: boolean;
|
135
135
|
visibility: boolean;
|
136
136
|
defaultVisibility: boolean;
|
@@ -189,7 +189,7 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
189
189
|
defaultValue: InputNumberValue;
|
190
190
|
allowClear: boolean;
|
191
191
|
readonly: boolean;
|
192
|
-
inputAttrs: import('
|
192
|
+
inputAttrs: import('..').RecordType;
|
193
193
|
max: number;
|
194
194
|
min: number;
|
195
195
|
precision: number;
|
@@ -212,7 +212,7 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
212
212
|
readonly wordLength?: import('../Input').WordLength | undefined;
|
213
213
|
readonly wordSlice?: import('../Input').WordSlice | undefined;
|
214
214
|
readonly showWordLimit?: boolean | undefined;
|
215
|
-
readonly inputAttrs?: import('
|
215
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
216
216
|
readonly isPassword?: boolean | undefined;
|
217
217
|
readonly visibility?: boolean | undefined;
|
218
218
|
readonly defaultVisibility?: boolean | undefined;
|
@@ -284,7 +284,7 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
284
284
|
readonly: boolean;
|
285
285
|
wordLength: import('../Input').WordLength;
|
286
286
|
wordSlice: import('../Input').WordSlice;
|
287
|
-
inputAttrs: import('
|
287
|
+
inputAttrs: import('..').RecordType;
|
288
288
|
isPassword: boolean;
|
289
289
|
visibility: boolean;
|
290
290
|
defaultVisibility: boolean;
|
@@ -323,7 +323,7 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
323
323
|
readonly: boolean;
|
324
324
|
wordLength: import('../Input').WordLength;
|
325
325
|
wordSlice: import('../Input').WordSlice;
|
326
|
-
inputAttrs: import('
|
326
|
+
inputAttrs: import('..').RecordType;
|
327
327
|
isPassword: boolean;
|
328
328
|
visibility: boolean;
|
329
329
|
defaultVisibility: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue"),o=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const n=require("../_shared/icons/IconMinus.vue2.js"),s=require("../_shared/icons/IconPlus.vue.js"),r=require("../Button/index.js"),u=e.defineComponent({__name:"InputOperaBtn",props:{mode:{},type:{},disabled:{type:Boolean},computedValue:{},min:{},max:{},size:{}},emits:["click"],setup(u){const i=u,{disabled:t,computedValue:l,min:c,max:a,type:d}=e.toRefs(i),m=e.computed(()=>t.value?t.value:"minus"==d.value?+l.value<=c.value:+l.value>=a.value);return(u,i)=>(e.openBlock(),e.createBlock(e.unref(r.default),{size:u.size,disabled:m.value,class:e.normalizeClass([{"yc-input-number-plus-embed":"embed"==u.mode}]),onClick:i[0]||(i[0]=o=>u.$emit("click",e.unref(d)))},{icon:e.withCtx(()=>[e.renderSlot(u.$slots,"icon",{},()=>["embed"==u.mode?(e.openBlock(),e.createBlock(e.unref(o),{key:0,rotate:"plus"==e.unref(d)?180:0},null,8,["rotate"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["minus"==e.unref(d)?(e.openBlock(),e.createBlock(e.unref(n),{key:0})):(e.openBlock(),e.createBlock(e.unref(s),{key:1}))],64))])]),_:3},8,["size","disabled","class"]))}});module.exports=u;
|
@@ -34,7 +34,7 @@ declare const InputNumber: {
|
|
34
34
|
defaultValue: import('./type').InputNumberValue;
|
35
35
|
allowClear: boolean;
|
36
36
|
readonly: boolean;
|
37
|
-
inputAttrs: import('
|
37
|
+
inputAttrs: import('..').RecordType;
|
38
38
|
max: number;
|
39
39
|
min: number;
|
40
40
|
precision: number;
|
@@ -57,7 +57,7 @@ declare const InputNumber: {
|
|
57
57
|
readonly wordLength?: import('..').WordLength | undefined;
|
58
58
|
readonly wordSlice?: import('..').WordSlice | undefined;
|
59
59
|
readonly showWordLimit?: boolean | undefined;
|
60
|
-
readonly inputAttrs?: import('
|
60
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
61
61
|
readonly isPassword?: boolean | undefined;
|
62
62
|
readonly visibility?: boolean | undefined;
|
63
63
|
readonly defaultVisibility?: boolean | undefined;
|
@@ -129,7 +129,7 @@ declare const InputNumber: {
|
|
129
129
|
readonly: boolean;
|
130
130
|
wordLength: import('..').WordLength;
|
131
131
|
wordSlice: import('..').WordSlice;
|
132
|
-
inputAttrs: import('
|
132
|
+
inputAttrs: import('..').RecordType;
|
133
133
|
isPassword: boolean;
|
134
134
|
visibility: boolean;
|
135
135
|
defaultVisibility: boolean;
|
@@ -168,7 +168,7 @@ declare const InputNumber: {
|
|
168
168
|
readonly: boolean;
|
169
169
|
wordLength: import('..').WordLength;
|
170
170
|
wordSlice: import('..').WordSlice;
|
171
|
-
inputAttrs: import('
|
171
|
+
inputAttrs: import('..').RecordType;
|
172
172
|
isPassword: boolean;
|
173
173
|
visibility: boolean;
|
174
174
|
defaultVisibility: boolean;
|
@@ -221,7 +221,7 @@ declare const InputNumber: {
|
|
221
221
|
defaultValue: import('./type').InputNumberValue;
|
222
222
|
allowClear: boolean;
|
223
223
|
readonly: boolean;
|
224
|
-
inputAttrs: import('
|
224
|
+
inputAttrs: import('..').RecordType;
|
225
225
|
max: number;
|
226
226
|
min: number;
|
227
227
|
precision: number;
|
@@ -262,7 +262,7 @@ declare const InputNumber: {
|
|
262
262
|
defaultValue: import('./type').InputNumberValue;
|
263
263
|
allowClear: boolean;
|
264
264
|
readonly: boolean;
|
265
|
-
inputAttrs: import('
|
265
|
+
inputAttrs: import('..').RecordType;
|
266
266
|
max: number;
|
267
267
|
min: number;
|
268
268
|
precision: number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Size,
|
1
|
+
import { Size, RecordType, Format } from '../_shared/type';
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface InputNumberProps {
|
4
4
|
modelValue?: InputNumberValue;
|
@@ -14,10 +14,10 @@ export interface InputNumberProps {
|
|
14
14
|
hideButton?: boolean;
|
15
15
|
size?: Size;
|
16
16
|
allowClear?: boolean;
|
17
|
-
formatter?:
|
17
|
+
formatter?: Format<string>;
|
18
18
|
parser?: InputNumberParser;
|
19
19
|
readonly?: boolean;
|
20
|
-
inputAttrs?:
|
20
|
+
inputAttrs?: RecordType;
|
21
21
|
}
|
22
22
|
export interface InputNumberEmits {
|
23
23
|
(e: 'update:modelValue', value: InputNumberValue): void;
|
@@ -44,5 +44,4 @@ export interface InputNumberExpose {
|
|
44
44
|
}
|
45
45
|
export type InputNumberValue = number | string;
|
46
46
|
export type InputNumberMode = 'embed' | 'button';
|
47
|
-
export type InputNumberFormatter = (value: string) => string;
|
48
47
|
export type InputNumberParser = (value: string) => string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),l=require("../node_modules/nanoid/index.browser.js"),a=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),u=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const r=require("../_shared/utils/control.js"),n=require("../Tag/index.js"),s=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),l=require("../node_modules/nanoid/index.browser.js"),a=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),u=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const r=require("../_shared/utils/control.js"),n=require("../Tag/index.js"),s=;/* empty css */;/* empty css */const i=;/* empty css */,/* empty css */;/* empty css */const d=["disabled","readonly","placeholder"],c=e.defineComponent({name:"InputTag",__name:"index",props:{modelValue:{default:void 0},defaultValue:{default:()=>[]},inputValue:{default:void 0},defaultInputValue:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{default:void 0},maxTagCount:{default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{},uniqueValue:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1},fieldNames:{default:()=>({id:"id",label:"label",value:"value",closeable:"closeable",tagProps:"tagProps"})},allowCreate:{type:Boolean,default:!0}},emits:["update:modelValue","update:inputValue","input","input-value-change","focus","blur","press-enter","remove","clear"],setup(c,{expose:v,emit:p}){const f=c,m=p,{modelValue:g,defaultValue:b,inputValue:h,defaultInputValue:y,allowClear:x,disabled:k,readonly:w,uniqueValue:V,retainInputValue:B,allowCreate:C,maxTagCount:_,fieldNames:j,tagNowrap:q}=e.toRefs(f),{size:N}=o.getGlobalConfig(f),T=e.ref(),E=e.ref(),I=e.computed(()=>Object.fromEntries(["id","label","value","closable","tagProps"].map(e=>[e,j.value[e]??e]))),{width:P}=a.useElementSize(E,void 0,{box:"border-box"}),S=r(g,b.value,e=>m("update:modelValue",e),e=>{const{id:a,label:t,value:o,closable:r,tagProps:n}=I.value;return e.map(e=>{if(u.isObject(e)){const t=e;return t[a]=t[a]??l.nanoid(),t[r]=t[r]??!0,t[n]=t[n]??{bordered:!0,nowrap:q.value},e}const s={};return s[a]=l.nanoid(),s[t]=e,s[o]=e,s[r]=!0,s[n]={bordered:!0,nowrap:q.value},s})}),z=r(h,y.value,e=>{m("update:inputValue",e)}),$=e.computed(()=>({visibleList:_.value>0?S.value.slice(0,_.value):S.value,hideList:S.value.slice(_.value)})),D=e.computed(()=>x.value&&!k.value&&!w.value&&S.value.length),L=()=>{u.isBoolean(B.value)&&B.value||u.isObject(B.value)&&B.value.create||(z.value="")},O=(e,a,t)=>{var u,o;const r=null==(u=z.value)?void 0:u.trim();switch(e){case"input":case"input-value-change":{const{value:l}=a.target;m(e,l,a)}break;case"focus":case"blur":m(e,a),"blur"==e&&L();break;case"pressEnter":{const{label:e,value:t,id:u}=I.value,o=!V.value||V.value&&!S.value.find(e=>((null==e?void 0:e[t])??e)==r);if(!r||!C.value||!o)return;const n={};n[u]=l.nanoid(),n[e]=z.value,n[t]=z.value,S.value=[...S.value,n],m("press-enter",a),L()}break;case"close":{const e=S.value,l=e.find(e=>e.id==t);S.value=e.filter(e=>e.id!=t),m("remove",null==l?void 0:l.value,a)}break;case"remove":{if(r||!(null==(o=S.value)?void 0:o.length))return;const e=S.value[S.value.length-1];S.value=S.value.slice(0,S.value.length-1),m("remove",e.value,a)}break;case"clear":S.value=[],m("clear",a)}};return v({focus(){var e;null==(e=T.value)||e.focus()},blur(){var e;null==(e=T.value)||e.blur()}}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-input-tag",`yc-input-tag-size-${e.unref(N)}`,{"yc-input-tag-no-value":!e.unref(S).length,"yc-input-tag-disabled":e.unref(k),"yc-input-tag-error":l.error,"yc-input-tag-has-suffix":l.$slots.suffix||D.value}]),onMousedown:a[8]||(a[8]=e=>e.preventDefault()),onClick:a[9]||(a[9]=e=>{var l;return null==(l=T.value)?void 0:l.focus()})},[l.$slots.prefix?(e.openBlock(),e.createBlock(e.unref(i),{key:0,class:"yc-input-tag-prefix"},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"prefix")]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-input-tag-mirror",ref_key:"mirrorRef",ref:E},e.toDisplayString(e.unref(z)||(e.unref(S).length?"":l.placeholder)),513),e.createVNode(e.TransitionGroup,{name:"input-tag-zoom",tag:"div",class:"yc-input-tag-inner"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value.visibleList,a=>e.renderSlot(l.$slots,"tag",{key:null==a?void 0:a[I.value.id],tag:a},()=>[e.createVNode(e.unref(n),{closable:a[I.value.closable],bordered:a[I.value.tagProps].bordered,nowrap:a[I.value.tagProps].nowrap,checked:!1,onClose:e=>O("close",e,null==a?void 0:a[I.value.id])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.formatTag?l.formatTag(a):a[I.value.label]),1)]),_:2},1032,["closable","bordered","nowrap","onClose"])])),128)),e.unref(_)>0&&e.unref(S).length>e.unref(_)?(e.openBlock(),e.createBlock(e.unref(n),{nowrap:e.unref(q),checked:!1,bordered:"",key:"yc-select-value-tag"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString($.value.hideList.length)+"... ",1)]),_:1},8,["nowrap"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>e.isRef(z)?z.value=l:null),key:"yc-input-tag-input",disabled:e.unref(k),readonly:e.unref(w),placeholder:e.unref(S).length?"":l.placeholder,style:e.normalizeStyle({width:e.unref(t.valueToPx)(e.unref(P))}),class:"yc-input-tag-input",ref_key:"inputRef",ref:T,onInput:a[1]||(a[1]=e=>O("input",e)),onChange:a[2]||(a[2]=e=>O("input-value-change",e)),onFocus:a[3]||(a[3]=e=>O("focus",e)),onBlur:a[4]||(a[4]=e=>O("blur",e)),onKeydown:[a[5]||(a[5]=e.withKeys(e=>O("pressEnter",e),["enter"])),a[6]||(a[6]=e.withKeys(e=>O("remove",e),["delete"]))]},null,44,d),[[e.vModelText,e.unref(z)]])]),_:3}),l.$slots.suffix||D.value?(e.openBlock(),e.createBlock(e.unref(i),{key:1,class:"yc-input-tag-suffix"},{default:e.withCtx(()=>[D.value?(e.openBlock(),e.createBlock(e.unref(s),{key:0,class:"yc-input-tag-clear-button",onClick:a[7]||(a[7]=e=>O("clear",e))})):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"suffix")]),_:3})):e.createCommentVNode("",!0)],34))}});module.exports=c;
|
package/lib/InputTag/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Size,
|
1
|
+
import { Size, RecordType, Format } from '../_shared/type';
|
2
2
|
import { TagProps } from '../Tag';
|
3
3
|
import { VNode } from 'vue';
|
4
4
|
export interface InputTagProps {
|
@@ -14,7 +14,7 @@ export interface InputTagProps {
|
|
14
14
|
size?: Size;
|
15
15
|
maxTagCount?: number;
|
16
16
|
retainInputValue?: InputRetainValue;
|
17
|
-
formatTag?:
|
17
|
+
formatTag?: Format<TagData>;
|
18
18
|
uniqueValue?: boolean;
|
19
19
|
tagNowrap?: boolean;
|
20
20
|
fieldNames?: Record<string, string>;
|
@@ -33,7 +33,7 @@ export interface InputTagEmits {
|
|
33
33
|
}
|
34
34
|
export interface InputTagSlots {
|
35
35
|
tag?: (scope: {
|
36
|
-
tag:
|
36
|
+
tag: RecordType;
|
37
37
|
}) => VNode[];
|
38
38
|
prefix?: () => VNode[];
|
39
39
|
suffix?: () => VNode[];
|
@@ -42,16 +42,15 @@ export interface InputTagExpose {
|
|
42
42
|
focus(): void;
|
43
43
|
blur(): void;
|
44
44
|
}
|
45
|
+
export type InputTagValue = (string | number | TagData)[];
|
45
46
|
export type TagData = {
|
46
47
|
id?: string;
|
47
48
|
label: string;
|
48
49
|
value: string | number;
|
49
50
|
closeable?: boolean;
|
50
51
|
tagProps?: TagProps;
|
51
|
-
} |
|
52
|
-
export type InputTagValue = (string | number | TagData)[];
|
52
|
+
} | RecordType;
|
53
53
|
export type InputRetainValue = boolean | {
|
54
54
|
create?: boolean;
|
55
55
|
blur?: boolean;
|
56
56
|
};
|
57
|
-
export type FormatTag = (data: TagData) => string;
|
@@ -7,24 +7,24 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<LayoutSiderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
10
|
-
collapse: (collapsed: boolean, type:
|
11
|
-
breakpoint: (collapsed: boolean) => any;
|
10
|
+
collapse: (collapsed: boolean, type: import('..').collapseType) => any;
|
12
11
|
"update:collapsed": (collapsed: boolean) => any;
|
12
|
+
breakpoint: (collapsed: boolean) => any;
|
13
13
|
}, string, import('vue').PublicProps, Readonly<LayoutSiderProps> & Readonly<{
|
14
|
-
onCollapse?: ((collapsed: boolean, type:
|
15
|
-
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
14
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
16
15
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
16
|
+
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
17
17
|
}>, {
|
18
18
|
width: number;
|
19
|
-
collapsed: boolean;
|
20
|
-
breakpoint: import('..').BreakpointName;
|
21
19
|
theme: import('..').Theme;
|
20
|
+
collapsed: boolean;
|
22
21
|
defaultCollapsed: boolean;
|
23
22
|
collapsedWidth: number;
|
23
|
+
breakpoint: import('..').BreakpointName;
|
24
24
|
collapsible: boolean;
|
25
25
|
reverseArrow: boolean;
|
26
26
|
hideTrigger: boolean;
|
27
|
-
resizeDirections: import('
|
27
|
+
resizeDirections: import('../ResizeBox').ResizeBoxDirection[];
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
29
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
30
30
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../_shared/icons/IconArrowRight.vue.js"),l=require("./hooks/useSiderContext.js"),o=require("../ResizeBox/index.js"),a={class:"yc-layout-sider-children"},s={class:"yc-layout-sider-children"},i=e.defineComponent({name:"LayoutSider",inheritAttrs:!1,__name:"LayoutSider",props:{theme:{default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},width:{default:200},collapsedWidth:{default:48},reverseArrow:{type:Boolean,default:!1},breakpoint:{default:void 0},hideTrigger:{type:Boolean,default:!1},resizeDirections:{default:()=>[]}},emits:["update:collapsed","collapse","breakpoint"],setup(i,{emit:u}){const n=i,d=u,{collapsible:c,breakpoint:v,hideTrigger:p,collapsedWidth:y,width:f}=e.toRefs(n),{theme:m,computedCollapsed:h}=l.default().provide(n,d),g=e.ref(f.value),k=e.computed(()=>!p.value&&c.value),B=()=>{if(!c.value)return;const e=!h.value;h.value=e,g.value=e?y.value:f.value,d("collapse",e,"clickTrigger")};return r.mediaQueryHandler((e,r,t)=>{if(!c.value||!v.value)return;const l=t<=r[v.value];h.value=l,g.value=l?y.value:f.value,d("collapse",l,"responsive"),d("breakpoint",l)}),(l,i)=>{var u;return l.resizeDirections.length?(e.openBlock(),e.createBlock(e.unref(o),{key:0,width:g.value,"onUpdate:width":i[0]||(i[0]=e=>g.value=e),directions:l.resizeDirections,class:e.normalizeClass(["yc-layout-sider",`yc-layout-sider-${e.unref(m)}`,l.$attrs.class,{"yc-layout-sider-has-trigger":k.value}])},{default:e.withCtx(()=>[e.createElementVNode("div",a,[e.renderSlot(l.$slots,"default")]),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-layout-sider-trigger",onClick:B},[e.renderSlot(l.$slots,"trigger",{collapsed:e.unref(h)},()=>[e.createVNode(e.unref(t),{rotate:e.unref(h)&&!l.reverseArrow?0:180},null,8,["rotate"])])])):e.createCommentVNode("",!0)]),_:3},8,["width","directions","class"])):(e.openBlock(),e.createElementBlock("aside",{key:1,class:e.normalizeClass(["yc-layout-sider","yc-layout-sider-translation",`yc-layout-sider-${e.unref(m)}`,l.$attrs.class,{"yc-layout-sider-has-trigger":k.value}]),style:e.normalizeStyle({...l.$attrs.style||{},width:e.unref(h)?e.unref(r.valueToPx)(e.unref(y)):(null==(u=l.$attrs.style)?void 0:u.width)||e.unref(r.valueToPx)(g.value)})},[e.createElementVNode("div",s,[e.renderSlot(l.$slots,"default")]),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-layout-sider-trigger",onClick:B},[e.renderSlot(l.$slots,"trigger",{collapsed:e.unref(h)},()=>[e.createVNode(e.unref(t),{rotate:e.unref(h)&&!l.reverseArrow?0:180},null,8,["rotate"])])])):e.createCommentVNode("",!0)],6))}}});module.exports=i;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
import {
|
2
|
+
import { Theme, RecordType } from '../../_shared/type';
|
3
3
|
import { LayoutSiderEmits } from '../type';
|
4
4
|
export declare const LAYOUT_CONTEXT_KEY = "LAYOUT-CONTEXT";
|
5
5
|
export type LayoutContext = {
|
@@ -7,7 +7,7 @@ export type LayoutContext = {
|
|
7
7
|
collapsed: Ref<boolean>;
|
8
8
|
};
|
9
9
|
declare const _default: () => {
|
10
|
-
provide: (props:
|
10
|
+
provide: (props: RecordType, emits: LayoutSiderEmits) => {
|
11
11
|
theme: import('vue').ComputedRef<Theme>;
|
12
12
|
computedCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
|
13
13
|
};
|
package/lib/Layout/index.d.ts
CHANGED
@@ -78,24 +78,24 @@ declare const Layout: {
|
|
78
78
|
});
|
79
79
|
sider: {
|
80
80
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').LayoutSiderProps> & Readonly<{
|
81
|
-
onCollapse?: ((collapsed: boolean, type:
|
82
|
-
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
81
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
83
82
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
83
|
+
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
84
84
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
85
|
-
collapse: (collapsed: boolean, type:
|
86
|
-
breakpoint: (collapsed: boolean) => any;
|
85
|
+
collapse: (collapsed: boolean, type: import('..').collapseType) => any;
|
87
86
|
"update:collapsed": (collapsed: boolean) => any;
|
87
|
+
breakpoint: (collapsed: boolean) => any;
|
88
88
|
}, import('vue').PublicProps, {
|
89
89
|
width: number;
|
90
|
-
collapsed: boolean;
|
91
|
-
breakpoint: import('..').BreakpointName;
|
92
90
|
theme: import('..').Theme;
|
91
|
+
collapsed: boolean;
|
93
92
|
defaultCollapsed: boolean;
|
94
93
|
collapsedWidth: number;
|
94
|
+
breakpoint: import('..').BreakpointName;
|
95
95
|
collapsible: boolean;
|
96
96
|
reverseArrow: boolean;
|
97
97
|
hideTrigger: boolean;
|
98
|
-
resizeDirections: import('
|
98
|
+
resizeDirections: import('..').ResizeBoxDirection[];
|
99
99
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
100
100
|
P: {};
|
101
101
|
B: {};
|
@@ -104,43 +104,43 @@ declare const Layout: {
|
|
104
104
|
M: {};
|
105
105
|
Defaults: {};
|
106
106
|
}, Readonly<import('./type').LayoutSiderProps> & Readonly<{
|
107
|
-
onCollapse?: ((collapsed: boolean, type:
|
108
|
-
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
107
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
109
108
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
109
|
+
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
110
110
|
}>, {}, {}, {}, {}, {
|
111
111
|
width: number;
|
112
|
-
collapsed: boolean;
|
113
|
-
breakpoint: import('..').BreakpointName;
|
114
112
|
theme: import('..').Theme;
|
113
|
+
collapsed: boolean;
|
115
114
|
defaultCollapsed: boolean;
|
116
115
|
collapsedWidth: number;
|
116
|
+
breakpoint: import('..').BreakpointName;
|
117
117
|
collapsible: boolean;
|
118
118
|
reverseArrow: boolean;
|
119
119
|
hideTrigger: boolean;
|
120
|
-
resizeDirections: import('
|
120
|
+
resizeDirections: import('..').ResizeBoxDirection[];
|
121
121
|
}>;
|
122
122
|
__isFragment?: never;
|
123
123
|
__isTeleport?: never;
|
124
124
|
__isSuspense?: never;
|
125
125
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').LayoutSiderProps> & Readonly<{
|
126
|
-
onCollapse?: ((collapsed: boolean, type:
|
127
|
-
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
126
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
128
127
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
128
|
+
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
129
129
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
130
|
-
collapse: (collapsed: boolean, type:
|
131
|
-
breakpoint: (collapsed: boolean) => any;
|
130
|
+
collapse: (collapsed: boolean, type: import('..').collapseType) => any;
|
132
131
|
"update:collapsed": (collapsed: boolean) => any;
|
132
|
+
breakpoint: (collapsed: boolean) => any;
|
133
133
|
}, string, {
|
134
134
|
width: number;
|
135
|
-
collapsed: boolean;
|
136
|
-
breakpoint: import('..').BreakpointName;
|
137
135
|
theme: import('..').Theme;
|
136
|
+
collapsed: boolean;
|
138
137
|
defaultCollapsed: boolean;
|
139
138
|
collapsedWidth: number;
|
139
|
+
breakpoint: import('..').BreakpointName;
|
140
140
|
collapsible: boolean;
|
141
141
|
reverseArrow: boolean;
|
142
142
|
hideTrigger: boolean;
|
143
|
-
resizeDirections: import('
|
143
|
+
resizeDirections: import('..').ResizeBoxDirection[];
|
144
144
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
145
145
|
$slots: Readonly<import('./type').LayoutSiderSlots> & import('./type').LayoutSiderSlots;
|
146
146
|
});
|