yc-design-vue 1.8.7 → 1.8.8
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/index.vue.js +1 -0
- package/es/Alert/index.d.ts +3 -3
- package/es/Alert/index.vue.d.ts +1 -1
- package/es/Alert/index.vue.js +1 -0
- package/es/Anchor/Anchor.vue.js +1 -0
- package/es/Anchor/AnchorLink.vue.js +1 -0
- package/es/Anchor/hooks/useContext.js +1 -0
- package/es/AutoComplete/index.d.ts +19 -19
- package/es/AutoComplete/index.vue.d.ts +33 -33
- package/es/AutoComplete/index.vue.js +1 -0
- package/es/Avatar/Avatar.vue.d.ts +2 -2
- package/es/Avatar/Avatar.vue.js +1 -0
- package/es/Avatar/AvatarGroup.vue.js +1 -0
- package/es/Avatar/index.d.ts +5 -5
- package/es/BackTop/index.vue.js +1 -0
- package/es/Badge/index.vue.js +1 -0
- package/es/Breadcrumb/Breadcrumb.vue.js +1 -0
- package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -0
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -0
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -1
- package/es/Button/Button.vue.d.ts +3 -3
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/hooks/useContext.js +1 -0
- package/es/Button/index.d.ts +12 -12
- package/es/Calendar/Calendar.vue.js +2 -1
- package/es/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/es/Calendar/CalendarMonth.vue.js +1 -1
- package/es/Calendar/CalendarYear.vue.js +1 -1
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/Card.vue.js +1 -0
- package/es/Card/CardMeta.vue.d.ts +1 -1
- package/es/Card/CardMeta.vue.js +1 -0
- package/es/Card/index.d.ts +6 -6
- package/es/Carousel/Carousel.vue.js +1 -0
- package/es/Carousel/CarouselArrow.vue.js +1 -0
- package/es/Carousel/CarouselIndicator.vue.js +1 -0
- package/es/Carousel/hooks/useContext.js +1 -0
- package/es/Cascader/Cascader.vue.d.ts +17 -17
- package/es/Cascader/Cascader.vue.js +1 -0
- package/es/Cascader/CascaderIcon.vue.js +1 -0
- package/es/Cascader/CascaderOption.vue.js +1 -0
- package/es/Cascader/CascaderPanel.vue.js +1 -0
- package/es/Cascader/CascaderSearchPanel.vue.js +1 -0
- package/es/Cascader/hooks/useContext.js +1 -0
- package/es/Cascader/index.d.ts +16 -16
- package/es/Checkbox/Checkbox.vue.js +1 -0
- package/es/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/es/Checkbox/hooks/useContext.js +1 -0
- package/es/Checkbox/index.d.ts +3 -3
- package/es/Collapse/CollapseItem.vue.js +1 -0
- package/es/Collapse/hooks/useContext.js +1 -0
- package/es/ColorPicker/ColorControl.vue.js +1 -0
- package/es/ColorPicker/ColorInput.vue.js +1 -0
- package/es/ColorPicker/ColorList.vue.js +7 -1
- package/es/ColorPicker/ColorPalette.vue.js +1 -0
- package/es/ColorPicker/ColorPanel.vue.js +7 -1
- package/es/ColorPicker/hooks/useContext.js +1 -0
- package/es/Comment/index.vue.js +1 -0
- package/es/ConfigProvider/index.d.ts +3 -3
- package/es/ConfigProvider/index.vue.d.ts +1 -1
- package/es/ConfigProvider/index.vue.js +4 -12
- package/es/ConfigProvider/type.d.ts +3 -2
- package/es/Descriptions/ReuseItem.vue.js +1 -0
- package/es/Descriptions/ReuseTd.vue.js +1 -0
- package/es/Descriptions/hooks/useContext.js +1 -0
- package/es/Divider/index.d.ts +3 -3
- package/es/Divider/index.vue.d.ts +1 -1
- package/es/Divider/index.vue.js +1 -0
- package/es/Drawer/Drawer.vue.d.ts +4 -4
- package/es/Drawer/Drawer.vue.js +2 -1
- package/es/Drawer/DrawerService.vue.d.ts +2 -2
- package/es/Drawer/DrawerService.vue.js +1 -0
- package/es/Drawer/index.d.ts +11 -11
- package/es/Dropdown/Dropdown.vue.js +1 -0
- package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/es/Dropdown/DropdownButton.vue.js +1 -0
- package/es/Dropdown/Dsubmenu.vue.js +1 -0
- package/es/Dropdown/hooks/useContext.js +1 -0
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Empty/index.vue.js +2 -1
- package/es/Grid/Grid.vue.js +1 -0
- package/es/Grid/GridCol.vue.js +1 -0
- package/es/Grid/GridItem.vue.js +1 -0
- package/es/Grid/GridRow.vue.js +1 -0
- package/es/Grid/hooks/useContext.js +1 -0
- package/es/Image/Image.vue.d.ts +2 -2
- package/es/Image/Image.vue.js +2 -1
- package/es/Image/ImagePreview.vue.js +1 -0
- package/es/Image/ImagePreviewArrow.vue.js +1 -0
- package/es/Image/ImagePreviewToolbar.vue.js +8 -7
- package/es/Image/hooks/useContext.js +1 -0
- package/es/Image/index.d.ts +6 -6
- package/es/Input/Input.vue.d.ts +3 -3
- package/es/Input/Input.vue.js +1 -0
- package/es/Input/InputSuffix.vue.js +1 -0
- package/es/Input/hooks/useLimitedInput.js +1 -0
- package/es/Input/index.d.ts +9 -9
- package/es/InputNumber/InputNumber.vue.d.ts +18 -18
- package/es/InputNumber/InputNumber.vue.js +1 -0
- package/es/InputNumber/InputOperaBtn.vue.js +1 -0
- package/es/InputNumber/index.d.ts +19 -19
- package/es/InputTag/index.d.ts +6 -6
- package/es/InputTag/index.vue.d.ts +2 -2
- package/es/InputTag/index.vue.js +1 -0
- package/es/Layout/Layout.vue.js +1 -0
- package/es/Layout/LayoutSider.vue.js +1 -0
- package/es/Layout/hooks/useSiderContext.js +1 -0
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/index.vue.js +1 -0
- package/es/List/List.vue.d.ts +7 -7
- package/es/List/List.vue.js +1 -0
- package/es/List/ListItemMeta.vue.d.ts +1 -1
- package/es/List/hooks/useScrollReach.js +1 -0
- package/es/List/index.d.ts +9 -9
- package/es/Mention/index.d.ts +22 -22
- package/es/Mention/index.vue.d.ts +39 -39
- package/es/Mention/index.vue.js +1 -0
- package/es/Menu/Menu.vue.js +1 -0
- package/es/Menu/MenuEllipsis.vue.js +1 -0
- package/es/Menu/MenuItem.vue.js +1 -0
- package/es/Menu/MenuItemGroup.vue.js +1 -0
- package/es/Menu/SubMenu.vue.js +1 -0
- package/es/Menu/hooks/useContext.js +1 -0
- package/es/Message/Message.vue.d.ts +1 -1
- package/es/Message/Message.vue.js +1 -0
- package/es/Message/index.d.ts +3 -3
- package/es/Message/index.js +1 -0
- package/es/Modal/Modal.vue.d.ts +4 -4
- package/es/Modal/Modal.vue.js +2 -1
- package/es/Modal/ModalService.vue.d.ts +2 -2
- package/es/Modal/ModalService.vue.js +1 -0
- package/es/Modal/hooks/useModalClose.js +1 -0
- package/es/Modal/hooks/useModalDraggable.js +1 -0
- package/es/Modal/hooks/useOnBeforeClose.js +1 -0
- package/es/Modal/index.d.ts +11 -11
- package/es/Notification/Notification.vue.d.ts +1 -1
- package/es/Notification/Notification.vue.js +1 -0
- package/es/Notification/index.d.ts +3 -3
- package/es/Notification/index.js +1 -0
- package/es/OverflowList/index.d.ts +3 -3
- package/es/OverflowList/index.vue.d.ts +1 -1
- package/es/OverflowList/index.vue.js +1 -0
- package/es/PageHeader/index.vue.js +1 -0
- package/es/Pagination/Pagination.vue.js +6 -2
- package/es/Pagination/PaginationItem.vue.js +1 -0
- package/es/Pagination/hooks/useContext.d.ts +1 -256
- package/es/Pagination/hooks/useContext.js +2 -1
- package/es/Popconfirm/index.d.ts +19 -19
- package/es/Popconfirm/index.vue.d.ts +7 -7
- package/es/Popconfirm/index.vue.js +2 -1
- package/es/Popover/index.vue.js +1 -0
- package/es/Progress/Progress.vue.d.ts +1 -1
- package/es/Progress/Progress.vue.js +1 -0
- package/es/Progress/ProgressCircle.vue.js +1 -0
- package/es/Progress/ProgressLine.vue.js +1 -0
- package/es/Progress/ProgressSteps.vue.js +1 -0
- package/es/Progress/index.d.ts +3 -3
- package/es/Radio/Radio.vue.d.ts +1 -1
- package/es/Radio/Radio.vue.js +1 -0
- package/es/Radio/RadioGroup.vue.d.ts +1 -1
- package/es/Radio/hooks/useContext.js +1 -0
- package/es/Radio/index.d.ts +6 -6
- package/es/Rate/index.vue.js +1 -0
- package/es/ResizeBox/index.vue.js +1 -0
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/Scrollbar.vue.js +1 -0
- package/es/Scrollbar/ScrollbarTrack.vue.js +1 -0
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Select/Option.vue.js +1 -0
- package/es/Select/Select.vue.d.ts +26 -26
- package/es/Select/Select.vue.js +1 -0
- package/es/Select/SelectIcon.vue.js +1 -0
- package/es/Select/SelectRealList.vue.js +1 -0
- package/es/Select/SelectView.vue.js +1 -0
- package/es/Select/SelectVirtualList.vue.js +1 -0
- package/es/Select/hooks/useContext.js +1 -0
- package/es/Select/hooks/useSelectOptions.js +1 -0
- package/es/Select/index.d.ts +14 -14
- package/es/Skeleton/SkeletonLine.vue.js +1 -0
- package/es/Skeleton/SkeletonShape.vue.js +1 -0
- package/es/Slider/Slider.vue.d.ts +3 -3
- package/es/Slider/SliderBtn.vue.js +1 -0
- package/es/Slider/hooks/useContext.js +1 -0
- package/es/Slider/hooks/useSliderDraggable.js +1 -0
- package/es/Slider/index.d.ts +9 -9
- package/es/Space/index.d.ts +3 -3
- package/es/Space/index.vue.d.ts +1 -1
- package/es/Space/index.vue.js +1 -0
- package/es/Spin/index.d.ts +3 -3
- package/es/Spin/index.vue.d.ts +1 -1
- package/es/Spin/index.vue.js +1 -0
- package/es/Split/index.d.ts +6 -6
- package/es/Split/index.vue.d.ts +2 -2
- package/es/Split/index.vue.js +1 -0
- package/es/Statistic/Countdown.vue.d.ts +2 -2
- package/es/Statistic/Countdown.vue.js +1 -0
- package/es/Statistic/Statistic.vue.d.ts +2 -2
- package/es/Statistic/Statistic.vue.js +1 -0
- package/es/Statistic/index.d.ts +12 -12
- package/es/Steps/Step.vue.d.ts +1 -1
- package/es/Steps/Step.vue.js +1 -0
- package/es/Steps/Steps.vue.d.ts +1 -1
- package/es/Steps/hooks/useContext.js +1 -0
- package/es/Steps/index.d.ts +6 -6
- package/es/Switch/index.d.ts +6 -6
- package/es/Switch/index.vue.d.ts +2 -2
- package/es/Switch/index.vue.js +1 -0
- package/es/Tabs/TabButton.vue.js +1 -0
- package/es/Tabs/TabPane.vue.js +1 -0
- package/es/Tabs/Tabs.vue.d.ts +3 -3
- package/es/Tabs/Tabs.vue.js +1 -0
- package/es/Tabs/TabsNavInk.vue.js +1 -0
- package/es/Tabs/TabsTab.vue.js +1 -0
- package/es/Tabs/hooks/useContext.js +1 -0
- package/es/Tabs/hooks/useTabsScroll.js +1 -0
- package/es/Tabs/index.d.ts +8 -8
- package/es/Tag/index.d.ts +3 -3
- package/es/Tag/index.vue.d.ts +1 -1
- package/es/Tag/index.vue.js +1 -0
- package/es/Textarea/hooks/useTextareaHeight.js +1 -0
- package/es/Textarea/index.d.ts +6 -6
- package/es/Textarea/index.vue.d.ts +2 -2
- package/es/Textarea/index.vue.js +1 -0
- package/es/TimePicker/TimePicker.vue.d.ts +3 -3
- package/es/TimePicker/TimePicker.vue.js +6 -6
- package/es/TimePicker/TimePickerPanel.vue.js +10 -10
- package/es/TimePicker/hooks/useContext.d.ts +1 -0
- package/es/TimePicker/hooks/useContext.js +11 -2
- package/es/TimePicker/index.d.ts +9 -9
- package/es/Timeline/TimelineItemPending.vue.js +1 -0
- package/es/Timeline/hooks/useContext.js +1 -0
- package/es/Tooltip/index.vue.js +1 -0
- package/es/Transfer/Transfer.vue.js +1 -0
- package/es/Transfer/TransferPanel.vue.js +1 -0
- package/es/Transfer/hooks/useContext.js +1 -0
- package/es/Trigger/hooks/useContext.js +1 -0
- package/es/Trigger/hooks/useTriggerPosition.js +1 -0
- package/es/Trigger/hooks/useTriggerVisible.js +1 -0
- package/es/Trigger/index.vue.js +1 -0
- package/es/Typography/TypographyBase.vue.d.ts +19 -19
- package/es/Typography/TypographyBase.vue.js +2 -1
- package/es/VerificationCode/index.d.ts +6 -6
- package/es/VerificationCode/index.vue.d.ts +2 -2
- package/es/VerificationCode/index.vue.js +1 -0
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/Watermark/index.vue.js +1 -0
- package/es/_shared/components/ExpandTransition.vue2.js +1 -0
- package/es/_shared/components/Icon.vue3.js +1 -0
- package/es/_shared/components/IconButton.vue.js +1 -0
- package/es/_shared/constants/index.js +1 -0
- package/es/_shared/icons/IconFullScreen.vue.js +1 -17
- package/es/_shared/icons/IconFullScreen.vue2.js +17 -1
- package/es/_shared/icons/IconOriginSize.vue.js +1 -23
- package/es/_shared/icons/IconOriginSize.vue2.js +23 -1
- package/es/_shared/icons/IconRotateLeft.vue.js +1 -17
- package/es/_shared/icons/IconRotateLeft.vue2.js +17 -1
- package/es/_shared/icons/IconRotateRight.vue.js +1 -17
- package/es/_shared/icons/IconRotateRight.vue2.js +17 -1
- package/es/_shared/icons/IconSeparator.vue.js +17 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -17
- package/es/_shared/icons/IconZoomIn.vue.js +1 -17
- package/es/_shared/icons/IconZoomIn.vue2.js +17 -1
- package/es/_shared/icons/IconZoomOut.vue.js +1 -17
- package/es/_shared/icons/IconZoomOut.vue2.js +17 -1
- package/es/_shared/utils/control.js +1 -0
- package/es/_shared/utils/global-config.d.ts +3 -1
- package/es/_shared/utils/global-config.js +4 -0
- package/es/_shared/utils/index.d.ts +1 -0
- package/es/_shared/utils/locale.d.ts +22 -0
- package/es/_shared/utils/locale.js +39 -0
- package/es/index.d.ts +27 -27
- package/es/index.js +0 -2
- package/es/lang/ar-eg.js +156 -0
- package/es/lang/de-de.js +157 -0
- package/es/lang/en-us.js +161 -0
- package/es/lang/es-es.js +156 -0
- package/es/lang/fr-fr.js +158 -0
- package/es/lang/id-id.js +157 -0
- package/es/lang/it-it.js +157 -0
- package/es/lang/ja-jp.js +204 -0
- package/es/lang/km-kh.js +156 -0
- package/es/lang/ko-kr.js +156 -0
- package/es/lang/ms-my.js +156 -0
- package/es/lang/nl-nl.js +204 -0
- package/es/lang/pt-pt.js +156 -0
- package/es/lang/ru-ru.js +204 -0
- package/es/lang/th-th.js +156 -0
- package/es/lang/vi-vn.js +156 -0
- package/es/lang/zh-cn.js +204 -0
- package/es/lang/zh-tw.js +204 -0
- package/es/public/lang/zh-cn.js +202 -0
- 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/index.vue.js +1 -1
- package/lib/Anchor/Anchor.vue.js +1 -1
- package/lib/Anchor/AnchorLink.vue.js +1 -1
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/AutoComplete/index.d.ts +19 -19
- package/lib/AutoComplete/index.vue.d.ts +33 -33
- package/lib/AutoComplete/index.vue.js +1 -1
- package/lib/Avatar/Avatar.vue.d.ts +2 -2
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/Avatar/index.d.ts +5 -5
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Breadcrumb/Breadcrumb.vue.js +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/Button/Button.vue.d.ts +3 -3
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/hooks/useContext.js +1 -1
- package/lib/Button/index.d.ts +12 -12
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/lib/Calendar/CalendarMonth.vue.js +1 -1
- package/lib/Calendar/CalendarYear.vue.js +1 -1
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/Card.vue.js +1 -1
- package/lib/Card/CardMeta.vue.d.ts +1 -1
- package/lib/Card/CardMeta.vue.js +1 -1
- package/lib/Card/index.d.ts +6 -6
- package/lib/Carousel/Carousel.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue.js +1 -1
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +17 -17
- 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/CascaderPanel.vue.js +1 -1
- package/lib/Cascader/CascaderSearchPanel.vue.js +1 -1
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.d.ts +16 -16
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Checkbox/index.d.ts +3 -3
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorInput.vue.js +1 -1
- package/lib/ColorPicker/ColorList.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/ColorPanel.vue.js +1 -1
- package/lib/ColorPicker/hooks/useContext.js +1 -1
- package/lib/Comment/index.vue.js +1 -1
- package/lib/ConfigProvider/index.d.ts +3 -3
- package/lib/ConfigProvider/index.vue.d.ts +1 -1
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +3 -2
- package/lib/Descriptions/ReuseItem.vue.js +1 -1
- package/lib/Descriptions/ReuseTd.vue.js +1 -1
- package/lib/Descriptions/hooks/useContext.js +1 -1
- package/lib/Divider/index.d.ts +3 -3
- package/lib/Divider/index.vue.d.ts +1 -1
- package/lib/Divider/index.vue.js +1 -1
- package/lib/Drawer/Drawer.vue.d.ts +4 -4
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +2 -2
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Drawer/index.d.ts +11 -11
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Grid/Grid.vue.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Grid/GridItem.vue.js +1 -1
- package/lib/Grid/GridRow.vue.js +1 -1
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Image/Image.vue.d.ts +2 -2
- 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.js +1 -1
- package/lib/Image/index.d.ts +6 -6
- package/lib/Input/Input.vue.d.ts +3 -3
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/Input/index.d.ts +9 -9
- package/lib/InputNumber/InputNumber.vue.d.ts +18 -18
- package/lib/InputNumber/InputNumber.vue.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputNumber/index.d.ts +19 -19
- package/lib/InputTag/index.d.ts +6 -6
- package/lib/InputTag/index.vue.d.ts +2 -2
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/List/List.vue.d.ts +7 -7
- package/lib/List/List.vue.js +1 -1
- package/lib/List/ListItemMeta.vue.d.ts +1 -1
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/List/index.d.ts +9 -9
- package/lib/Mention/index.d.ts +22 -22
- package/lib/Mention/index.vue.d.ts +39 -39
- package/lib/Mention/index.vue.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/MenuItemGroup.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- 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/index.js +1 -1
- package/lib/Modal/Modal.vue.d.ts +4 -4
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.d.ts +2 -2
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Modal/hooks/useModalDraggable.js +1 -1
- package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
- package/lib/Modal/index.d.ts +11 -11
- package/lib/Notification/Notification.vue.d.ts +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Notification/index.d.ts +3 -3
- package/lib/Notification/index.js +1 -1
- 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/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +1 -256
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.d.ts +19 -19
- package/lib/Popconfirm/index.vue.d.ts +7 -7
- package/lib/Popconfirm/index.vue.js +1 -1
- package/lib/Popover/index.vue.js +1 -1
- package/lib/Progress/Progress.vue.d.ts +1 -1
- package/lib/Progress/Progress.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Progress/ProgressLine.vue.js +1 -1
- package/lib/Progress/ProgressSteps.vue.js +1 -1
- package/lib/Progress/index.d.ts +3 -3
- package/lib/Radio/Radio.vue.d.ts +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Radio/RadioGroup.vue.d.ts +1 -1
- package/lib/Radio/hooks/useContext.js +1 -1
- package/lib/Radio/index.d.ts +6 -6
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/Scrollbar.vue.js +1 -1
- package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Select.vue.d.ts +26 -26
- 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/SelectView.vue.js +1 -1
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/hooks/useSelectOptions.js +1 -1
- package/lib/Select/index.d.ts +14 -14
- package/lib/Skeleton/SkeletonLine.vue.js +1 -1
- package/lib/Skeleton/SkeletonShape.vue.js +1 -1
- package/lib/Slider/Slider.vue.d.ts +3 -3
- package/lib/Slider/SliderBtn.vue.js +1 -1
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Slider/hooks/useSliderDraggable.js +1 -1
- package/lib/Slider/index.d.ts +9 -9
- package/lib/Space/index.d.ts +3 -3
- package/lib/Space/index.vue.d.ts +1 -1
- package/lib/Space/index.vue.js +1 -1
- package/lib/Spin/index.d.ts +3 -3
- package/lib/Spin/index.vue.d.ts +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.d.ts +6 -6
- package/lib/Split/index.vue.d.ts +2 -2
- package/lib/Split/index.vue.js +1 -1
- package/lib/Statistic/Countdown.vue.d.ts +2 -2
- package/lib/Statistic/Countdown.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +2 -2
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Statistic/index.d.ts +12 -12
- package/lib/Steps/Step.vue.d.ts +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/Steps.vue.d.ts +1 -1
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Steps/index.d.ts +6 -6
- package/lib/Switch/index.d.ts +6 -6
- package/lib/Switch/index.vue.d.ts +2 -2
- package/lib/Switch/index.vue.js +1 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/TabPane.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.d.ts +3 -3
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/TabsNavInk.vue.js +1 -1
- package/lib/Tabs/TabsTab.vue.js +1 -1
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/Tabs/hooks/useTabsScroll.js +1 -1
- package/lib/Tabs/index.d.ts +8 -8
- package/lib/Tag/index.d.ts +3 -3
- package/lib/Tag/index.vue.d.ts +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.d.ts +6 -6
- package/lib/Textarea/index.vue.d.ts +2 -2
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.d.ts +3 -3
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +1 -0
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/TimePicker/index.d.ts +9 -9
- package/lib/Timeline/TimelineItemPending.vue.js +1 -1
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Tooltip/index.vue.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.js +1 -1
- 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/Trigger/index.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +19 -19
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/VerificationCode/index.d.ts +6 -6
- package/lib/VerificationCode/index.vue.d.ts +2 -2
- package/lib/VerificationCode/index.vue.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/Watermark/index.vue.js +1 -1
- package/lib/_shared/components/ExpandTransition.vue2.js +1 -1
- package/lib/_shared/components/Icon.vue3.js +1 -1
- package/lib/_shared/components/IconButton.vue.js +1 -1
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/utils/control.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +3 -1
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/_shared/utils/index.d.ts +1 -0
- package/lib/_shared/utils/locale.d.ts +22 -0
- package/lib/_shared/utils/locale.js +1 -0
- package/lib/index.d.ts +27 -27
- package/lib/index.js +1 -1
- package/lib/lang/ar-eg.js +156 -0
- package/lib/lang/de-de.js +157 -0
- package/lib/lang/en-us.js +161 -0
- package/lib/lang/es-es.js +156 -0
- package/lib/lang/fr-fr.js +158 -0
- package/lib/lang/id-id.js +157 -0
- package/lib/lang/it-it.js +157 -0
- package/lib/lang/ja-jp.js +204 -0
- package/lib/lang/km-kh.js +156 -0
- package/lib/lang/ko-kr.js +156 -0
- package/lib/lang/ms-my.js +156 -0
- package/lib/lang/nl-nl.js +204 -0
- package/lib/lang/pt-pt.js +156 -0
- package/lib/lang/ru-ru.js +204 -0
- package/lib/lang/th-th.js +156 -0
- package/lib/lang/vi-vn.js +156 -0
- package/lib/lang/zh-cn.js +204 -0
- package/lib/lang/zh-tw.js +204 -0
- package/lib/public/lang/zh-cn.js +1 -0
- package/package.json +2 -4
- package/es/_shared/locale/i18n.d.ts +0 -512
- package/es/_shared/locale/i18n.js +0 -43
- package/es/_shared/locale/lang/ar-eg.json.js +0 -251
- package/es/_shared/locale/lang/de-de.json.d.ts +0 -207
- package/es/_shared/locale/lang/de-de.json.js +0 -251
- package/es/_shared/locale/lang/en-us.json.d.ts +0 -210
- package/es/_shared/locale/lang/en-us.json.js +0 -256
- package/es/_shared/locale/lang/es-es.json.d.ts +0 -207
- package/es/_shared/locale/lang/es-es.json.js +0 -251
- package/es/_shared/locale/lang/fr-fr.json.d.ts +0 -207
- package/es/_shared/locale/lang/fr-fr.json.js +0 -251
- package/es/_shared/locale/lang/id-id.json.d.ts +0 -207
- package/es/_shared/locale/lang/id-id.json.js +0 -251
- package/es/_shared/locale/lang/it-it.json.d.ts +0 -207
- package/es/_shared/locale/lang/it-it.json.js +0 -251
- package/es/_shared/locale/lang/ja-jp.json.d.ts +0 -255
- package/es/_shared/locale/lang/ja-jp.json.js +0 -301
- package/es/_shared/locale/lang/km-kh.json.d.ts +0 -207
- package/es/_shared/locale/lang/km-kh.json.js +0 -251
- package/es/_shared/locale/lang/ko-kr.json.d.ts +0 -207
- package/es/_shared/locale/lang/ko-kr.json.js +0 -251
- package/es/_shared/locale/lang/ms-my.json.d.ts +0 -207
- package/es/_shared/locale/lang/ms-my.json.js +0 -251
- package/es/_shared/locale/lang/nl-nl.json.d.ts +0 -255
- package/es/_shared/locale/lang/nl-nl.json.js +0 -301
- package/es/_shared/locale/lang/pt-pt.json.d.ts +0 -207
- package/es/_shared/locale/lang/pt-pt.json.js +0 -251
- package/es/_shared/locale/lang/ru-ru.json.d.ts +0 -255
- package/es/_shared/locale/lang/ru-ru.json.js +0 -301
- package/es/_shared/locale/lang/th-th.json.d.ts +0 -207
- package/es/_shared/locale/lang/th-th.json.js +0 -251
- package/es/_shared/locale/lang/vi-vn.json.d.ts +0 -207
- package/es/_shared/locale/lang/vi-vn.json.js +0 -251
- package/es/_shared/locale/lang/zh-cn.d.ts +0 -253
- package/es/_shared/locale/lang/zh-cn.json.d.ts +0 -255
- package/es/_shared/locale/lang/zh-cn.json.js +0 -301
- package/es/_shared/locale/lang/zh-tw.json.d.ts +0 -255
- package/es/_shared/locale/lang/zh-tw.json.js +0 -301
- package/es/node_modules/@intlify/core-base/dist/core-base.js +0 -1126
- package/es/node_modules/@intlify/message-compiler/dist/message-compiler.js +0 -65
- package/es/node_modules/@intlify/shared/dist/shared.js +0 -199
- package/es/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +0 -1375
- package/es/node_modules/@vue/devtools-api/lib/esm/const.js +0 -6
- package/es/node_modules/@vue/devtools-api/lib/esm/env.js +0 -12
- package/es/node_modules/@vue/devtools-api/lib/esm/index.js +0 -26
- package/es/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -103
- package/es/node_modules/@vue/devtools-api/lib/esm/time.js +0 -25
- package/lib/_shared/locale/i18n.d.ts +0 -512
- package/lib/_shared/locale/i18n.js +0 -1
- package/lib/_shared/locale/lang/ar-eg.json.js +0 -1
- package/lib/_shared/locale/lang/de-de.json.d.ts +0 -207
- package/lib/_shared/locale/lang/de-de.json.js +0 -1
- package/lib/_shared/locale/lang/en-us.json.d.ts +0 -210
- package/lib/_shared/locale/lang/en-us.json.js +0 -1
- package/lib/_shared/locale/lang/es-es.json.d.ts +0 -207
- package/lib/_shared/locale/lang/es-es.json.js +0 -1
- package/lib/_shared/locale/lang/fr-fr.json.d.ts +0 -207
- package/lib/_shared/locale/lang/fr-fr.json.js +0 -1
- package/lib/_shared/locale/lang/id-id.json.d.ts +0 -207
- package/lib/_shared/locale/lang/id-id.json.js +0 -1
- package/lib/_shared/locale/lang/it-it.json.d.ts +0 -207
- package/lib/_shared/locale/lang/it-it.json.js +0 -1
- package/lib/_shared/locale/lang/ja-jp.json.d.ts +0 -255
- package/lib/_shared/locale/lang/ja-jp.json.js +0 -1
- package/lib/_shared/locale/lang/km-kh.json.d.ts +0 -207
- package/lib/_shared/locale/lang/km-kh.json.js +0 -1
- package/lib/_shared/locale/lang/ko-kr.json.d.ts +0 -207
- package/lib/_shared/locale/lang/ko-kr.json.js +0 -1
- package/lib/_shared/locale/lang/ms-my.json.d.ts +0 -207
- package/lib/_shared/locale/lang/ms-my.json.js +0 -1
- package/lib/_shared/locale/lang/nl-nl.json.d.ts +0 -255
- package/lib/_shared/locale/lang/nl-nl.json.js +0 -1
- package/lib/_shared/locale/lang/pt-pt.json.d.ts +0 -207
- package/lib/_shared/locale/lang/pt-pt.json.js +0 -1
- package/lib/_shared/locale/lang/ru-ru.json.d.ts +0 -255
- package/lib/_shared/locale/lang/ru-ru.json.js +0 -1
- package/lib/_shared/locale/lang/th-th.json.d.ts +0 -207
- package/lib/_shared/locale/lang/th-th.json.js +0 -1
- package/lib/_shared/locale/lang/vi-vn.json.d.ts +0 -207
- package/lib/_shared/locale/lang/vi-vn.json.js +0 -1
- package/lib/_shared/locale/lang/zh-cn.d.ts +0 -253
- package/lib/_shared/locale/lang/zh-cn.json.d.ts +0 -255
- package/lib/_shared/locale/lang/zh-cn.json.js +0 -1
- package/lib/_shared/locale/lang/zh-tw.json.d.ts +0 -255
- package/lib/_shared/locale/lang/zh-tw.json.js +0 -1
- package/lib/node_modules/@intlify/core-base/dist/core-base.js +0 -1
- package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.js +0 -6
- package/lib/node_modules/@intlify/shared/dist/shared.js +0 -7
- package/lib/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/const.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/env.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/index.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/time.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/vue-utils.js");require("../Empty/index.js")
|
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/vue-utils.js");require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const n=require("./Drawer.vue.js");;/* empty css */const l={class:"yc-drawer-body-content"},t=e.defineComponent({__name:"DrawerService",props:{placement:{default:"right"},title:{type:[String,Array,Function],default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!1},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0},content:{},onOk:{},onCancel:{},onOpen:{},onClose:{},onBeforeOpen:{},onBeforeClose:{},serviceClose:{}},setup(t){const r=t,{onClose:a,serviceClose:u}=r,s=e.ref(!1),i=()=>{null==u||u(),null==a||a()};return e.onMounted(()=>{s.value=!0}),(t,a)=>(e.openBlock(),e.createBlock(n,e.mergeProps(r,{visible:s.value,"onUpdate:visible":a[0]||(a[0]=e=>s.value=e),style:{position:"fixed"},"popup-container":".yc-overlay-drawer",onOk:a[1]||(a[1]=e=>{var o;return null==(o=t.onOk)?void 0:o.call(t)}),onCancel:a[2]||(a[2]=e=>{var o;return null==(o=t.onCancel)?void 0:o.call(t)}),onBeforeOpen:a[3]||(a[3]=e=>{var o;return null==(o=t.onBeforeOpen)?void 0:o.call(t)}),onBeforeClose:a[4]||(a[4]=e=>{var o;return null==(o=t.onBeforeClose)?void 0:o.call(t)}),onOpen:a[5]||(a[5]=e=>{var o;return null==(o=t.onOpen)?void 0:o.call(t)}),onClose:i}),{title:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t.title))))]),default:e.withCtx(()=>[e.createElementVNode("div",l,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t.content))))])]),_:1},16,["visible"]))}});module.exports=t;
|
package/lib/Drawer/index.d.ts
CHANGED
@@ -6,23 +6,21 @@ export * from './type';
|
|
6
6
|
declare const Drawer: {
|
7
7
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DrawerProps> & Readonly<{
|
8
8
|
onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
9
|
-
onOk?: (() => any) | undefined;
|
10
9
|
onClose?: (() => any) | undefined;
|
11
10
|
onOpen?: (() => any) | undefined;
|
12
11
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
12
|
+
onOk?: (() => any) | undefined;
|
13
13
|
"onBefore-open"?: (() => any) | undefined;
|
14
14
|
"onBefore-close"?: (() => any) | undefined;
|
15
15
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
16
16
|
cancel: (event: MouseEvent | KeyboardEvent) => any;
|
17
|
-
ok: () => any;
|
18
17
|
close: () => any;
|
19
18
|
open: () => any;
|
20
19
|
"update:visible": (value: boolean) => any;
|
20
|
+
ok: () => any;
|
21
21
|
"before-open": () => any;
|
22
22
|
"before-close": () => any;
|
23
23
|
}, import('vue').PublicProps, {
|
24
|
-
okText: string;
|
25
|
-
cancelText: string;
|
26
24
|
unmountOnClose: boolean;
|
27
25
|
popupContainer: import('..').PopupContainer;
|
28
26
|
renderToBody: boolean;
|
@@ -37,6 +35,8 @@ declare const Drawer: {
|
|
37
35
|
closable: boolean;
|
38
36
|
maskClosable: boolean;
|
39
37
|
hideCancel: boolean;
|
38
|
+
okText: string;
|
39
|
+
cancelText: string;
|
40
40
|
okLoading: boolean;
|
41
41
|
okButtonProps: import('..').ButtonProps;
|
42
42
|
cancelButtonProps: import('..').ButtonProps;
|
@@ -54,15 +54,13 @@ declare const Drawer: {
|
|
54
54
|
Defaults: {};
|
55
55
|
}, Readonly<import('./type').DrawerProps> & Readonly<{
|
56
56
|
onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
57
|
-
onOk?: (() => any) | undefined;
|
58
57
|
onClose?: (() => any) | undefined;
|
59
58
|
onOpen?: (() => any) | undefined;
|
60
59
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
60
|
+
onOk?: (() => any) | undefined;
|
61
61
|
"onBefore-open"?: (() => any) | undefined;
|
62
62
|
"onBefore-close"?: (() => any) | undefined;
|
63
63
|
}>, {}, {}, {}, {}, {
|
64
|
-
okText: string;
|
65
|
-
cancelText: string;
|
66
64
|
unmountOnClose: boolean;
|
67
65
|
popupContainer: import('..').PopupContainer;
|
68
66
|
renderToBody: boolean;
|
@@ -77,6 +75,8 @@ declare const Drawer: {
|
|
77
75
|
closable: boolean;
|
78
76
|
maskClosable: boolean;
|
79
77
|
hideCancel: boolean;
|
78
|
+
okText: string;
|
79
|
+
cancelText: string;
|
80
80
|
okLoading: boolean;
|
81
81
|
okButtonProps: import('..').ButtonProps;
|
82
82
|
cancelButtonProps: import('..').ButtonProps;
|
@@ -91,23 +91,21 @@ declare const Drawer: {
|
|
91
91
|
__isSuspense?: never;
|
92
92
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').DrawerProps> & Readonly<{
|
93
93
|
onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
94
|
-
onOk?: (() => any) | undefined;
|
95
94
|
onClose?: (() => any) | undefined;
|
96
95
|
onOpen?: (() => any) | undefined;
|
97
96
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
97
|
+
onOk?: (() => any) | undefined;
|
98
98
|
"onBefore-open"?: (() => any) | undefined;
|
99
99
|
"onBefore-close"?: (() => any) | undefined;
|
100
100
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
101
101
|
cancel: (event: MouseEvent | KeyboardEvent) => any;
|
102
|
-
ok: () => any;
|
103
102
|
close: () => any;
|
104
103
|
open: () => any;
|
105
104
|
"update:visible": (value: boolean) => any;
|
105
|
+
ok: () => any;
|
106
106
|
"before-open": () => any;
|
107
107
|
"before-close": () => any;
|
108
108
|
}, string, {
|
109
|
-
okText: string;
|
110
|
-
cancelText: string;
|
111
109
|
unmountOnClose: boolean;
|
112
110
|
popupContainer: import('..').PopupContainer;
|
113
111
|
renderToBody: boolean;
|
@@ -122,6 +120,8 @@ declare const Drawer: {
|
|
122
120
|
closable: boolean;
|
123
121
|
maskClosable: boolean;
|
124
122
|
hideCancel: boolean;
|
123
|
+
okText: string;
|
124
|
+
cancelText: string;
|
125
125
|
okLoading: boolean;
|
126
126
|
okButtonProps: import('..').ButtonProps;
|
127
127
|
cancelButtonProps: import('..').ButtonProps;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const i=require("./hooks/useContext.js"),l=require("../Menu/hooks/useContext.js"),r=require("../Trigger/index.js"),s=require("../Scrollbar/index.js"),n={class:"yc-dropdown"},u={class:"yc-dropdown-list"},a={key:0,class:"yc-dropdown-footer"},p=e.defineComponent({name:"Dropdown",__name:"Dropdown",props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"bottom"},popupContainer:{default:void 0},hideOnSelect:{type:Boolean,default:!0},alignPoint:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{type:[Number,Boolean],default:200}},emits:["update:popupVisible","popup-visible-change","select"],setup(p,{expose:d,emit:c}){const m=p,f=c,{trigger:g,position:v,popupMaxHeight:y}=e.toRefs(m),{computedVisible:h}=i().provide(m,f),{theme:b}=l.default().inject(),x=e.computed(()=>["top","tl","tr","bottom","bl","br"].includes(v.value)?v.value:"bottom"),w=e.computed(()=>t.isBoolean(y.value)&&!y.value||t.isUndefined(y)?"":o.valueToPx(t.isBoolean(y.value)?200:y.value));return d({show(){h.value=!0},hide(){h.value=!0}}),(o,t)=>(e.openBlock(),e.createBlock(e.unref(r),e.mergeProps({"popup-visible":e.unref(h),"onUpdate:popupVisible":t[0]||(t[0]=o=>e.isRef(h)?h.value=o:null),trigger:e.unref(g),position:x.value,"popup-offset":4,"mouse-enter-delay":150,"mouse-leave-delay":150,alignPoint:o.alignPoint,"auto-fit-popup-min-width":!o.alignPoint&&["top","bottom"].includes(x.value),class:["yc-dropdown-popup",,`yc-dropdown-${e.unref(b)}`,o.$attrs.class],style:o.$attrs.style,"animation-name":"slide-dynamic-origin","need-transform-origin":""},o.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",n,[e.createVNode(e.unref(s),{style:e.normalizeStyle({maxHeight:w.value})},{default:e.withCtx(()=>[e.createElementVNode("div",u,[e.renderSlot(o.$slots,"content")])]),_:3},8,["style"]),o.$slots.footer?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(o.$slots,"footer")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16,["popup-visible","trigger","position","alignPoint","auto-fit-popup-min-width","class","style"]))}});module.exports=p;
|
@@ -15,7 +15,6 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
|
|
15
15
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
16
16
|
onSelect?: ((value: DoptionValue) => any) | undefined;
|
17
17
|
}>, {
|
18
|
-
type: import('../Button').ButtonType;
|
19
18
|
size: import('..').Size;
|
20
19
|
trigger: import('..').TriggerType;
|
21
20
|
popupVisible: boolean;
|
@@ -23,6 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
|
|
23
22
|
disabled: boolean;
|
24
23
|
position: import('./type').DropdownPosition;
|
25
24
|
popupContainer: import('..').PopupContainer;
|
25
|
+
type: import('../Button').ButtonType;
|
26
26
|
hideOnSelect: boolean;
|
27
27
|
buttonProps: import('../Button').ButtonProps;
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
@@ -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("../Empty/index.js");/* empty css */const t=require("../_shared/icons/IconMore.vue.js"),o=require("./Dropdown.vue.js");;/* empty css */const i=require("../Button/index.js"),r=require("../Button/ButtonGroup.vue.js");;/* empty css */const
|
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("../Empty/index.js"),require("../_shared/utils/locale.js");/* empty css */const t=require("../_shared/icons/IconMore.vue.js"),o=require("./Dropdown.vue.js");;/* empty css */const i=require("../Button/index.js"),r=require("../Button/ButtonGroup.vue.js");;/* empty css */const s=e.defineComponent({name:"DropdownButton",__name:"DropdownButton",props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"br"},popupContainer:{default:void 0},disabled:{type:Boolean,default:!1},type:{default:"secondary"},size:{default:void 0},buttonProps:{default:()=>({})},hideOnSelect:{type:Boolean,default:!0}},emits:["popup-visible-change","click","select"],setup:s=>(s,u)=>(e.openBlock(),e.createBlock(e.unref(r),{disabled:s.disabled,type:s.type,size:s.size},{default:e.withCtx(()=>[e.createVNode(e.unref(i.default),e.mergeProps(s.buttonProps,{onClick:u[0]||(u[0]=e=>s.$emit("click",e))}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16),e.createVNode(o,e.mergeProps({"popup-visible":s.popupVisible,"default-popup-visible":s.defaultPopupVisible,trigger:s.trigger,position:s.position,"popup-container":s.popupContainer,"hide-on-select":s.hideOnSelect,disabled:s.disabled},s.$attrs,{onSelect:u[1]||(u[1]=e=>s.$emit("select",e)),onPopupVisibleChange:u[2]||(u[2]=e=>s.$emit("popup-visible-change",e))}),{content:e.withCtx(()=>[e.renderSlot(s.$slots,"content")]),default:e.withCtx(()=>[e.createVNode(e.unref(i.default),e.normalizeProps(e.guardReactiveProps(s.buttonProps)),{icon:e.withCtx(()=>[e.renderSlot(s.$slots,"icon",{},()=>[e.createVNode(e.unref(t))])]),_:3},16)]),_:3},16,["popup-visible","default-popup-visible","trigger","position","popup-container","hide-on-select","disabled"])]),_:3},8,["disabled","type","size"]))});module.exports=s;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js")
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js");require("../_shared/utils/locale.js");const s=require("../_shared/utils/control.js"),l=require("../Menu/hooks/useContext.js");require("./index.js");const u=require("../Trigger/index.js"),n=require("../Scrollbar/index.js"),a=require("./Doption.vue.js");;/* empty css */const d={class:"yc-dropdown-list"},p={key:0,class:"yc-dropdown-footer"},c=e.defineComponent({name:"Dsubmenu",__name:"Dsubmenu",props:{disabled:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{default:200}},emits:["update:popupVisible","popup-visible-change"],setup(c,{expose:f,emit:m}){const v=c,g=m,{defaultPopupVisible:h,popupVisible:y,trigger:b,position:x,popupMaxHeight:j}=e.toRefs(v),{theme:q}=l.default().inject(),_=s(y,h.value,e=>{g("update:popupVisible",e),g("popup-visible-change",e)}),w=e.ref(),V=e.ref(),k=e.computed(()=>["rt","lt"].includes(x.value)?x.value:"rt"),C=e.computed(()=>["hover","click"].includes(b.value)?b.value:"hover"),B=e.computed(()=>i.isBoolean(j.value)&&!j.value||i.isUndefined(j)?"":o.valueToPx(i.isBoolean(j.value)?200:j.value)),P=async()=>{var o;await e.nextTick();const i=t.unrefElement(w);if(!i)return;const{left:r,top:s,right:l,width:u}=i.getBoundingClientRect(),n="rt"==k.value?l:r-u,a=s-5;null==(o=V.value)||o.updatePosition(n,a)};return f({show(){_.value=!0},hide(){_.value=!1}}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(u),e.mergeProps({"popup-visible":e.unref(_),"onUpdate:popupVisible":o[0]||(o[0]=t=>e.isRef(_)?_.value=t:null),trigger:C.value,position:k.value,"popup-offset":4,disabled:t.disabled,"mouse-enter-delay":150,"mouse-leave-delay":150,"on-trigger-mouseenter":P,"on-trigger-mouseclick":P,"need-transform-origin":"","auto-set-position":"","auto-fit-popup-min-width":"",ref_key:"triggerRef",ref:V},t.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-dropdown",`yc-dropdown-theme-${e.unref(q)}`])},[e.createVNode(e.unref(n),{style:e.normalizeStyle({maxHeight:B.value})},{default:e.withCtx(()=>[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"content")])]),_:3},8,["style"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(a),{disabled:t.disabled,class:e.normalizeClass(t.$attrs.class),style:e.normalizeStyle(t.$attrs.style),"is-submenu":"",ref_key:"optionRef",ref:w},{suffix:e.withCtx(()=>[e.createVNode(e.unref(r))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["disabled","class","style"])]),_:3},16,["popup-visible","trigger","position","disabled"]))}});module.exports=c;
|
@@ -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("../../Empty/index.js")
|
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("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const s=require("../../_shared/utils/control.js"),i="dropdown-context";module.exports=()=>({provide:(o,r)=>{const{popupVisible:t,defaultPopupVisible:u,hideOnSelect:l,position:p}=e.toRefs(o),c=s(t,u.value,e=>{r("update:popupVisible",e),r("popup-visible-change",e)});return e.provide(i,{select:(e,s)=>{r("select",e,s),l.value&&(c.value=!1)}}),{computedVisible:c}},inject:()=>e.inject(i,{select:()=>{}})});
|
package/lib/Dropdown/index.d.ts
CHANGED
@@ -146,7 +146,6 @@ declare const Dropdown: {
|
|
146
146
|
"popup-visible-change": (value: boolean) => any;
|
147
147
|
select: (value: import('./type').DoptionValue) => any;
|
148
148
|
}, import('vue').PublicProps, {
|
149
|
-
type: import('..').ButtonType;
|
150
149
|
size: import('..').Size;
|
151
150
|
trigger: import('..').TriggerType;
|
152
151
|
popupVisible: boolean;
|
@@ -154,6 +153,7 @@ declare const Dropdown: {
|
|
154
153
|
disabled: boolean;
|
155
154
|
position: import('./type').DropdownPosition;
|
156
155
|
popupContainer: import('..').PopupContainer;
|
156
|
+
type: import('..').ButtonType;
|
157
157
|
hideOnSelect: boolean;
|
158
158
|
buttonProps: import('..').ButtonProps;
|
159
159
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -168,7 +168,6 @@ declare const Dropdown: {
|
|
168
168
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
169
169
|
onSelect?: ((value: import('./type').DoptionValue) => any) | undefined;
|
170
170
|
}>, {}, {}, {}, {}, {
|
171
|
-
type: import('..').ButtonType;
|
172
171
|
size: import('..').Size;
|
173
172
|
trigger: import('..').TriggerType;
|
174
173
|
popupVisible: boolean;
|
@@ -176,6 +175,7 @@ declare const Dropdown: {
|
|
176
175
|
disabled: boolean;
|
177
176
|
position: import('./type').DropdownPosition;
|
178
177
|
popupContainer: import('..').PopupContainer;
|
178
|
+
type: import('..').ButtonType;
|
179
179
|
hideOnSelect: boolean;
|
180
180
|
buttonProps: import('..').ButtonProps;
|
181
181
|
}>;
|
@@ -191,7 +191,6 @@ declare const Dropdown: {
|
|
191
191
|
"popup-visible-change": (value: boolean) => any;
|
192
192
|
select: (value: import('./type').DoptionValue) => any;
|
193
193
|
}, string, {
|
194
|
-
type: import('..').ButtonType;
|
195
194
|
size: import('..').Size;
|
196
195
|
trigger: import('..').TriggerType;
|
197
196
|
popupVisible: boolean;
|
@@ -199,6 +198,7 @@ declare const Dropdown: {
|
|
199
198
|
disabled: boolean;
|
200
199
|
position: import('./type').DropdownPosition;
|
201
200
|
popupContainer: import('..').PopupContainer;
|
201
|
+
type: import('..').ButtonType;
|
202
202
|
hideOnSelect: boolean;
|
203
203
|
buttonProps: import('..').ButtonProps;
|
204
204
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
package/lib/Empty/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue")
|
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("./index.js");/* empty css */const r=require("../_shared/icons/IconEmpty.vue.js"),t=require("../_shared/utils/locale.js"),s={class:"yc-empty"},o={class:"yc-empty-image"},i=["src"],c={class:"yc-empty-description"},n=e.defineComponent({name:"Empty",__name:"index",props:{description:{default:""},imgSrc:{default:""}},setup(n){const l=n,{description:d}=e.toRefs(l),{t:m}=t.useI18n();return(t,n)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",o,[e.renderSlot(t.$slots,"image",{},()=>[t.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgSrc,alt:"图片加载失败"},null,8,i)):e.createCommentVNode("",!0),e.createVNode(e.unref(r))])]),e.createElementVNode("div",c,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.description||e.unref(m)("empty.description")),1)])])]))}});module.exports=n;
|
package/lib/Grid/Grid.vue.js
CHANGED
@@ -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("../Empty/index.js")
|
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("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),l=e.defineComponent({name:"Grid",__name:"Grid",props:{cols:{default:24},rowGap:{default:0},colGap:{default:0},collapsed:{type:Boolean,default:!1},collapsedRows:{default:1}},setup(l){const s=l,{breakpoint:t,cols:u,rowGap:a,colGap:n}=o.default().provide(s);return r.mediaQueryHandler(e=>{t.value=e}),(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-grid",style:e.normalizeStyle({gap:`${e.unref(r.valueToPx)(e.unref(a))} ${e.unref(r.valueToPx)(e.unref(n))}`,gridTemplateColumns:`repeat(${e.unref(u)}, minmax(0px, 1fr))`})},[e.renderSlot(o.$slots,"default")],4))}});module.exports=l;
|
package/lib/Grid/GridCol.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const l=require("./hooks/useContext.js"),o=e.defineComponent({name:"Col",__name:"GridCol",props:{span:{default:24},offset:{default:0},order:{},flex:{}},setup(o){const s=o,{span:u,order:a,offset:n,flex:i}=e.toRefs(s),{gutter:d,div:c,breakpoint:p}=l.default().inject(),f=e.computed(()=>{const e=r.getBreakpointValue(p.value,i.value),l=r.getBreakpointValue(p.value,u.value,24),o=r.getBreakpointValue(p.value,n.value,0),s={padding:`${r.valueToPx(d.value[1]/2)} ${r.valueToPx(d.value[0]/2)}`,order:r.getBreakpointValue(p.value,a.value,0)};if(!e)return l?{...s,flex:`0 0 ${l/24*100}%`,marginLeft:`calc(${o/24*100}%)`}:{display:"none"};let c="";return c=t.isString(e)?/\d/.test(e)?`0 0 ${e}`:e:`${e} 1 0%`,{...s,flex:c}});return(r,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"yc-col":!e.unref(c)}]),style:e.normalizeStyle(f.value)},[e.renderSlot(r.$slots,"default")],6))}});module.exports=o;
|
package/lib/Grid/GridItem.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const u=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const u=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const l=require("./hooks/useContext.js"),a=e.defineComponent({name:"GridItem",__name:"GridItem",props:{span:{default:1},offset:{default:0},suffix:{type:Boolean,default:!1}},setup(a){const t=a,{span:s,offset:o,suffix:r}=e.toRefs(t),{cols:n,colGap:i,collapsed:v,collapsedRows:c,spanMap:d,breakpoint:f,collectSpan:p}=l.default().inject(),m=e.computed(()=>u.getBreakpointValue(f.value,o.value)),x=e.computed(()=>{const e=u.getBreakpointValue(f.value,s.value)+m.value;return e>=n.value?n.value:e}),j=e.computed(()=>({gridColumn:`${r.value?n.value-x.value+1:`span ${x.value}`} / span ${x.value}`,marginLeft:m.value?`calc(${100/x.value*m.value}% + ${u.valueToPx(m.value*i.value)})`:""})),{id:q}=p(x,r),h=e.computed(()=>{if(!v.value)return!1;const e=[...d.values()],u=n.value*c.value;return e.filter(({suffix:e})=>!e).reduce((e,u)=>e+u.span,0)>u}),k=e.computed(()=>{if(!v.value||r.value)return!1;const e=[...d.values()],u=e.filter(({suffix:e})=>e).reduce((e,{span:u})=>e+u,0),l=n.value*c.value,a=e.filter(({suffix:e})=>!e);let t=0;for(let{id:s,span:o}of a)if(t+=o,s==q)break;return t>l-u});return(u,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"yc-grid-item",style:e.normalizeStyle(j.value)},[e.renderSlot(u.$slots,"default",{overflow:h.value})],4)),[[e.vShow,!k.value]])}});module.exports=a;
|
package/lib/Grid/GridRow.vue.js
CHANGED
@@ -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("../Empty/index.js")
|
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("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const t=require("./hooks/useContext.js"),o=e.defineComponent({name:"Row",__name:"GridRow",props:{gutter:{default:0},justify:{default:"start"},align:{default:"start"},div:{type:Boolean,default:!1},wrap:{type:Boolean,default:!0}},setup(o){const u=o,{div:s,wrap:n,justify:a,align:l}=e.toRefs(u),{breakpoint:i,gutter:d}=t.default().provide(u);return r.mediaQueryHandler(e=>{i.value=e}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"yc-row":!e.unref(s),"yc-row-wrap":e.unref(n)&&!e.unref(s),[`yc-row-align-${e.unref(l)}`]:!e.unref(s),[`yc-row-justify-${e.unref(a)}`]:!e.unref(s)}]),style:e.normalizeStyle({margin:`0 ${e.unref(r.valueToPx)(-e.unref(d)[0]/2)}`})},[e.renderSlot(t.$slots,"default")],6))}});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../../_shared/utils/dom.js"),o=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../../_shared/utils/dom.js"),o=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const t=require("../../node_modules/nanoid/index.browser.js"),a="grid-context";exports.GRID_CONTEXT_KEY=a,exports.default=()=>({provide:t=>{const{gutter:l=e.ref(0),cols:s=e.ref(24),rowGap:u=e.ref(0),colGap:i=e.ref(0),collapsed:n=e.ref(!1),collapsedRows:p=e.ref(1),div:c=e.ref(!1)}=e.toRefs(t),d=e.reactive(new Map),f=e.ref("xxl"),v=e.computed(()=>r.getBreakpointValue(f.value,s.value,24)),m=e.computed(()=>r.getBreakpointValue(f.value,u.value)),g=e.computed(()=>r.getBreakpointValue(f.value,i.value,0)),j=e.computed(()=>o.isArray(l.value)?l.value.map(e=>r.getBreakpointValue(f.value,e,0)):[r.getBreakpointValue(f.value,l.value,0),0]);return e.provide(a,{breakpoint:f,gutter:j,div:c,spanMap:d,cols:v,colGap:g,collapsed:n,collapsedRows:p}),{breakpoint:f,cols:v,colGap:g,rowGap:m,gutter:j}},inject:()=>{const r=e.inject(a,{gutter:e.ref([0,0]),breakpoint:e.ref("xs"),div:e.ref(!1),colGap:e.ref(0),cols:e.ref(24),collapsed:e.ref(!1),collapsedRows:e.ref(1),spanMap:new Map}),{spanMap:o}=r;return{...r,collectSpan:(r,a)=>{const l=t.nanoid();return e.watchEffect(()=>{o.set(l,{id:l,suffix:a.value,span:r.value})}),e.onBeforeUnmount(()=>{o.delete(l)}),{id:l}}}}});
|
package/lib/Image/Image.vue.d.ts
CHANGED
@@ -13,13 +13,13 @@ declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {},
|
|
13
13
|
"onUpdate:previewVisible"?: ((visible: boolean) => any) | undefined;
|
14
14
|
"onPreview-visible-change"?: ((visible: boolean) => any) | undefined;
|
15
15
|
}>, {
|
16
|
-
description: string;
|
17
|
-
preview: boolean;
|
18
16
|
title: string;
|
17
|
+
description: string;
|
19
18
|
src: string;
|
20
19
|
hideFooter: import('./type').HideFooter;
|
21
20
|
footerPosition: import('./type').FooterPostion;
|
22
21
|
showLoader: boolean;
|
22
|
+
preview: boolean;
|
23
23
|
previewVisible: boolean;
|
24
24
|
defaultPreviewVisible: boolean;
|
25
25
|
previewProps: import('./type').ImagePreviewProps;
|
package/lib/Image/Image.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const i=require("../_shared/icons/IconImageClose.vue.js"),o=require("../_shared/utils/locale.js"),r=require("../_shared/utils/control.js"),l=require("./hooks/useContext.js"),a=require("../Spin/index.js"),s=require("./ImagePreview.vue.js");;/* empty css */const n=["src","title","alt"],c={key:1,class:"yc-image-overlay"},d={class:"yc-image-loader"},u={key:2,class:"yc-image-overlay"},m={class:"yc-image-error"},v={class:"yc-image-error-icon"},p={class:"yc-image-error-alt"},f={class:"yc-image-footer-caption"},y=["title"],g=["title"],h={key:0,class:"yc-image-footer-extra"},w=e.defineComponent({name:"Image",__name:"Image",props:{src:{default:""},width:{},height:{},title:{default:""},description:{default:""},fit:{},alt:{},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{default:()=>({})},footerClass:{default:""}},emits:["update:previewVisible","preview-visible-change"],setup(w,{emit:k}){const V=w,B=k,{src:E,preview:N,previewVisible:j,defaultPreviewVisible:C}=e.toRefs(V),{hasGroupFather:q,handleClick:x}=l().inject(),{t:P}=o.useI18n(),S=r(j,C.value,e=>{B("update:previewVisible",e),B("preview-visible-change",e)}),b=e.ref(!1),_=e.ref(!1),$=()=>{_.value=!1,b.value=!1},I=()=>{_.value=!1,b.value=!0},z=()=>{if(q.value)return x(E.value);N.value&&(S.value=!0)};return e.watch(()=>E.value,()=>{_.value=!0,b.value=!1},{immediate:!0}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-image",style:e.normalizeStyle({width:e.unref(t.valueToPx)(o.width),height:e.unref(t.valueToPx)(o.height)})},[e.createElementVNode("img",{src:e.unref(E),title:o.title,alt:o.alt??o.description,style:e.normalizeStyle({width:e.unref(t.valueToPx)(o.width),height:e.unref(t.valueToPx)(o.height),objectFit:o.fit}),class:"yc-image-img",onLoad:$,onError:I,onClick:z},null,44,n),e.unref(N)?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0,visible:e.unref(S),"onUpdate:visible":r[0]||(r[0]=t=>e.isRef(S)?S.value=t:null),src:e.unref(E)},o.previewProps),e.createSlots({_:2},[o.$slots["preview-actions"]?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"preview-actions")]),key:"0"}:void 0]),1040,["visible","src"])):e.createCommentVNode("",!0),(o.showLoader||o.$slots.loader)&&_.value?(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",d,[e.renderSlot(o.$slots,"loader",{},()=>[e.createVNode(e.unref(a),{size:30,tip:e.unref(P)("image.loading")},null,8,["tip"])])])])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(o.$slots,"error",{},()=>[e.createElementVNode("div",m,[e.renderSlot(o.$slots,"error-icon",{},()=>[e.createElementVNode("div",v,[e.createVNode(e.unref(i),{size:60})])]),e.createElementVNode("div",p,e.toDisplayString(o.alt??o.description),1)])])])):e.createCommentVNode("",!0),!o.hideFooter&&(o.title||o.description||o.$slots.extra)?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["yc-image-footer","inner"==o.footerPosition?"yc-image-footer-inner":"yc-image-footer-outer",o.footerClass])},[e.createElementVNode("div",f,[e.createElementVNode("div",{class:"yc-image-footer-caption-title",title:o.title},e.toDisplayString(o.title),9,y),e.createElementVNode("div",{class:"yc-image-footer-caption-description",title:o.description},e.toDisplayString(o.description),9,g)]),o.$slots.extra?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(o.$slots,"extra")])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],4))}});module.exports=w;
|
@@ -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")
|
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 a=require("../_shared/utils/control.js");;/* empty css */const t=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,popupContainer:b}=e.toRefs(d),{zIndex:C,popupContainer:z}=o.getGlobalConfig(d),B=e.ref(),S=a(e.ref(),y.value),V=e.ref(0),{outerVisible:_,innerVisible:q,handleClose:j,handleAfterLeave:I}=l({visible:m,defaultVisible:v,escToClose:w,maskClosable:p,onBeforeOk:()=>!0,onBeforeCancel:()=>!0,emits:f}),L=e=>{switch(e){case"rotateRight":V.value+=90;break;case"rotateLeft":V.value-=90;break;case"zoomIn":S.value*=h.value;break;case"zoomOut":S.value/=h.value;break;case"originalSize":S.value=y.value,V.value=0;break;case"fullScreen":{const{offsetWidth:e,offsetHeight:o}=B.value;S.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;S.value*=Math.pow(h.value,o)}),g.value){const e={ArrowUp:"zoomIn",ArrowDown:"zoomOut"," ":"originalSize"};r.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{L(e[o.key])})}})(),(o,a)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(z)},[e.unref(_)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-image-preview",o.$attrs.class,{"yc-image-preview-absolute":e.unref(b)}]),style:e.normalizeStyle({zIndex:e.unref(C),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",i,null,512),[[e.vShow,e.unref(q)]])]),_: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:a[2]||(a[2]=e.withModifiers(o=>e.unref(j)("mask",o,!1),["self"]))},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`scale(${e.unref(S)}, ${e.unref(S)})`}),class:"yc-image-preview-img-container",onClick:a[0]||(a[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(${V.value}deg)`}),class:"yc-image-preview-img",ref_key:"imageRef",ref:B},null,12,n)],4),e.createVNode(s,{actionsLayout:o.actionsLayout,onClick:L},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:a[1]||(a[1]=o=>e.unref(j)("closeBtn",o))},[e.createVNode(e.unref(t))])):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(q)]])]),_: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("../Empty/index.js");/* 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
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js"),require("../_shared/utils/locale.js");/* 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"),require("../Empty/index.js")
|
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("../Empty/index.js");const o=require("../_shared/utils/locale.js");;/* empty css */const r=require("../_shared/icons/IconFullScreen.vue2.js"),t=require("../_shared/icons/IconOriginSize.vue2.js"),n=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:n,zoomIn:s,zoomOut:c,originalSize:t};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 +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 r=require("../../_shared/utils/vue-utils.js");require("../../Empty/index.js")
|
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 r=require("../../_shared/utils/vue-utils.js");require("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const u=require("../../_shared/utils/control.js"),s=require("../Image.vue.js");;/* empty css */const t="image-context";module.exports=()=>({provide:(i,l)=>{const{srcList:n,current:o,defaultCurrent:a,visible:d,defaultVisible:c}=e.toRefs(i),v=e.useSlots(),m=e.computed(()=>{var e;if(n.value.length)return n.value;if(!v.default)return[];return r.findComponentsFromVnodes((null==(e=v.default)?void 0:e.call(v))||[],s.name).map(e=>{var r;return null==(r=null==e?void 0:e.props)?void 0:r.src})}),p=u(o,a.value,e=>{l("update:current",e),l("change",e)}),h=u(d,c.value,e=>{l("update:visible",e),l("visible-change",e)}),j=e.computed(()=>m.value[p.value]);return e.provide(t,{hasGroupFather:e.ref(!0),handleClick:e=>{const r=m.value.findIndex(r=>r==e);p.value=r,h.value=!0}}),{src:j,srcList:m,computedCurrent:p,computedVisible:h}},inject:()=>e.inject(t,{hasGroupFather:e.ref(!1),handleClick:()=>{}})});
|
package/lib/Image/index.d.ts
CHANGED
@@ -16,13 +16,13 @@ declare const Image: {
|
|
16
16
|
"update:previewVisible": (visible: boolean) => any;
|
17
17
|
"preview-visible-change": (visible: boolean) => any;
|
18
18
|
}, import('vue').PublicProps, {
|
19
|
-
description: string;
|
20
|
-
preview: boolean;
|
21
19
|
title: string;
|
20
|
+
description: string;
|
22
21
|
src: string;
|
23
22
|
hideFooter: import('./type').HideFooter;
|
24
23
|
footerPosition: import('./type').FooterPostion;
|
25
24
|
showLoader: boolean;
|
25
|
+
preview: boolean;
|
26
26
|
previewVisible: boolean;
|
27
27
|
defaultPreviewVisible: boolean;
|
28
28
|
previewProps: import('./type').ImagePreviewProps;
|
@@ -38,13 +38,13 @@ declare const Image: {
|
|
38
38
|
"onUpdate:previewVisible"?: ((visible: boolean) => any) | undefined;
|
39
39
|
"onPreview-visible-change"?: ((visible: boolean) => any) | undefined;
|
40
40
|
}>, {}, {}, {}, {}, {
|
41
|
-
description: string;
|
42
|
-
preview: boolean;
|
43
41
|
title: string;
|
42
|
+
description: string;
|
44
43
|
src: string;
|
45
44
|
hideFooter: import('./type').HideFooter;
|
46
45
|
footerPosition: import('./type').FooterPostion;
|
47
46
|
showLoader: boolean;
|
47
|
+
preview: boolean;
|
48
48
|
previewVisible: boolean;
|
49
49
|
defaultPreviewVisible: boolean;
|
50
50
|
previewProps: import('./type').ImagePreviewProps;
|
@@ -60,13 +60,13 @@ declare const Image: {
|
|
60
60
|
"update:previewVisible": (visible: boolean) => any;
|
61
61
|
"preview-visible-change": (visible: boolean) => any;
|
62
62
|
}, string, {
|
63
|
-
description: string;
|
64
|
-
preview: boolean;
|
65
63
|
title: string;
|
64
|
+
description: string;
|
66
65
|
src: string;
|
67
66
|
hideFooter: import('./type').HideFooter;
|
68
67
|
footerPosition: import('./type').FooterPostion;
|
69
68
|
showLoader: boolean;
|
69
|
+
preview: boolean;
|
70
70
|
previewVisible: boolean;
|
71
71
|
defaultPreviewVisible: boolean;
|
72
72
|
previewProps: import('./type').ImagePreviewProps;
|
package/lib/Input/Input.vue.d.ts
CHANGED
@@ -35,13 +35,13 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
|
|
35
35
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
36
36
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
37
37
|
}>, {
|
38
|
-
error: boolean;
|
39
|
-
placeholder: string;
|
40
|
-
maxLength: import('./type').MaxLength;
|
41
38
|
size: import('..').Size;
|
42
39
|
disabled: boolean;
|
40
|
+
error: boolean;
|
41
|
+
placeholder: string;
|
43
42
|
modelValue: string;
|
44
43
|
defaultValue: string;
|
44
|
+
maxLength: import('./type').MaxLength;
|
45
45
|
showWordLimit: boolean;
|
46
46
|
allowClear: boolean;
|
47
47
|
readonly: 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")
|
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=require("../_shared/components/IconButton.vue.js");;/* empty css */const s=require("../_shared/components/PreventFocus.vue.js");,/* 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:C,maxLength:g,error:x,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(x),"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(C),"max-length":e.unref(g),"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");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconEyeClose.vue2.js"),t=require("../_shared/icons/IconEyeOpen.vue2.js"),i=require("../_shared/components/IconButton.vue.js");;/* empty css */const s=require("../_shared/components/PreventFocus.vue.js");;/* empty css */const 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,
|
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("../Empty/index.js"),require("../_shared/utils/locale.js");/* empty css */const o=require("../_shared/icons/IconEyeClose.vue2.js"),t=require("../_shared/icons/IconEyeOpen.vue2.js"),i=require("../_shared/components/IconButton.vue.js");;/* empty css */const s=require("../_shared/components/PreventFocus.vue.js");;/* empty css */const 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(s),{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(i),{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(t),{key:0})):(e.openBlock(),e.createBlock(e.unref(o),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});module.exports=r;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js");const u=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js");const u=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const l=require("../../_shared/utils/control.js"),a=require("./useCursor.js");module.exports=r=>{const{props:t,emits:o,inputRef:s}=r,{modelValue:n,defaultValue:i,disabled:v,readonly:d,allowClear:c,error:m,showWordLimit:p,maxLength:h}=e.toRefs(t),{wordLength:g,wordSlice:q}=t,{setCursor:f,recordCursor:j}=a(s),y=e.computed(()=>{var e;return u.isNumber(h.value)?h.value:null==(e=h.value)?void 0:e.length}),w=e.computed(()=>{var e;return!u.isNumber(h.value)&&(null==(e=h.value)?void 0:e.errorOnly)}),_=l(m,!1),x=l(n,i.value,e=>{o("update:modelValue",e)}),C=e.computed(()=>u.isNumber(y.value)&&p.value),L=e.computed(()=>c.value&&!v.value&&!d.value&&!!x.value.length);let b=0;const V=e.computed(()=>T(x.value)),N=e.ref(!1);function T(e){return u.isFunction(g)?g(e):(null==e?void 0:e.length)||0}const E=async()=>{j(),await e.nextTick(),s.value&&x.value!==s.value.value&&(s.value.value=x.value,f())},I=(e,u)=>{y.value&&T(e)>y.value?w.value?(x.value=e,_.value=!0):x.value=q(e,b):x.value=e,o("input",e,u),E()};return{computedValue:x,showClearBtn:L,showWordLimit:C,curLength:V,error:_,disabled:v,maxLength:y,handleInput:async e=>{const{value:u}=e.target;if(!N.value){if(V.value==y.value&&(b=x.value.length),y.value&&!w.value&&V.value>=y.value&&T(u)>y.value&&"insertText"===e.inputType)return E();I(u,e)}},handleComposition:e=>{const{value:l,selectionStart:a,selectionEnd:r}=e.target;if(N.value="compositionend"!==e.type,!N.value)return y.value&&!w.value&&V.value>=y.value&&T(l)>y.value&&a===r?E():void I(l,e);u.isUndefined(y.value)&&(o("input",l,e),x.value=l)}}};
|
package/lib/Input/index.d.ts
CHANGED
@@ -30,13 +30,13 @@ declare const Input: {
|
|
30
30
|
"visibility-change": (value: boolean) => any;
|
31
31
|
pressEnter: (ev: KeyboardEvent) => any;
|
32
32
|
}, import('vue').PublicProps, {
|
33
|
-
error: boolean;
|
34
|
-
placeholder: string;
|
35
|
-
maxLength: import('./type').MaxLength;
|
36
33
|
size: import('..').Size;
|
37
34
|
disabled: boolean;
|
35
|
+
error: boolean;
|
36
|
+
placeholder: string;
|
38
37
|
modelValue: string;
|
39
38
|
defaultValue: string;
|
39
|
+
maxLength: import('./type').MaxLength;
|
40
40
|
showWordLimit: boolean;
|
41
41
|
allowClear: boolean;
|
42
42
|
readonly: boolean;
|
@@ -73,13 +73,13 @@ declare const Input: {
|
|
73
73
|
blur(): void;
|
74
74
|
getInputRef(): HTMLInputElement;
|
75
75
|
}, {}, {}, {}, {
|
76
|
-
error: boolean;
|
77
|
-
placeholder: string;
|
78
|
-
maxLength: import('./type').MaxLength;
|
79
76
|
size: import('..').Size;
|
80
77
|
disabled: boolean;
|
78
|
+
error: boolean;
|
79
|
+
placeholder: string;
|
81
80
|
modelValue: string;
|
82
81
|
defaultValue: string;
|
82
|
+
maxLength: import('./type').MaxLength;
|
83
83
|
showWordLimit: boolean;
|
84
84
|
allowClear: boolean;
|
85
85
|
readonly: boolean;
|
@@ -122,13 +122,13 @@ declare const Input: {
|
|
122
122
|
"visibility-change": (value: boolean) => any;
|
123
123
|
pressEnter: (ev: KeyboardEvent) => any;
|
124
124
|
}, string, {
|
125
|
-
error: boolean;
|
126
|
-
placeholder: string;
|
127
|
-
maxLength: import('./type').MaxLength;
|
128
125
|
size: import('..').Size;
|
129
126
|
disabled: boolean;
|
127
|
+
error: boolean;
|
128
|
+
placeholder: string;
|
130
129
|
modelValue: string;
|
131
130
|
defaultValue: string;
|
131
|
+
maxLength: import('./type').MaxLength;
|
132
132
|
showWordLimit: boolean;
|
133
133
|
allowClear: boolean;
|
134
134
|
readonly: boolean;
|