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
@@ -19,14 +19,14 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
|
|
19
19
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
20
20
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
21
21
|
}>, {
|
22
|
-
long: boolean;
|
23
|
-
loading: boolean;
|
24
|
-
type: import('./type').ButtonType;
|
25
22
|
size: import('..').Size;
|
26
23
|
disabled: boolean;
|
24
|
+
loading: boolean;
|
25
|
+
type: import('./type').ButtonType;
|
27
26
|
href: string;
|
28
27
|
shape: import('./type').ButtonShape;
|
29
28
|
status: import('./type').ButtonStatus;
|
29
|
+
long: boolean;
|
30
30
|
htmlType: import('./type').ButtonHtmlType;
|
31
31
|
autofocus: boolean;
|
32
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
@@ -7,9 +7,9 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
10
|
-
type: import('./type').ButtonType;
|
11
10
|
size: import('..').Size;
|
12
11
|
disabled: boolean;
|
12
|
+
type: import('./type').ButtonType;
|
13
13
|
shape: import('./type').ButtonShape;
|
14
14
|
status: import('./type').ButtonStatus;
|
15
15
|
}, {}, {}, {}, 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");const s=require("../../_shared/utils/is.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");const s=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js");const t=require("../../_shared/utils/global-config.js");require("../../_shared/utils/locale.js");const u="button-group-context";module.exports=()=>({provide:s=>{const{type:i,status:a,shape:r,disabled:l}=e.toRefs(s),{size:o}=t.getGlobalConfig(s);e.provide(u,{type:i,status:a,size:o,shape:r,disabled:l})},inject:i=>{const{size:a}=t.getGlobalConfig(i),{type:r,status:l,shape:o,size:d,disabled:n}=e.toRefs(i),{type:p,status:c,shape:v,disabled:f,size:h}=e.inject(u,{type:e.ref("secondary"),status:e.ref("normal"),shape:e.ref("square"),disabled:e.ref(!1)});return{disabled:e.computed(()=>n.value??f.value),type:e.computed(()=>r.value??p.value),status:e.computed(()=>l.value??c.value),shape:e.computed(()=>o.value??v.value),size:e.computed(()=>{return e=d.value,t=null==h?void 0:h.value,u=a.value,s.isUndefined(e)?s.isUndefined(u)?t:s.isUndefined(t)?u:t:e;var e,t,u})}}});
|
package/lib/Button/index.d.ts
CHANGED
@@ -18,14 +18,14 @@ declare const Button: {
|
|
18
18
|
mousedown: (event: MouseEvent) => any;
|
19
19
|
mouseup: (event: MouseEvent) => any;
|
20
20
|
}, import('vue').PublicProps, {
|
21
|
-
long: boolean;
|
22
|
-
loading: boolean;
|
23
|
-
type: import('./type').ButtonType;
|
24
21
|
size: import('..').Size;
|
25
22
|
disabled: boolean;
|
23
|
+
loading: boolean;
|
24
|
+
type: import('./type').ButtonType;
|
26
25
|
href: string;
|
27
26
|
shape: import('./type').ButtonShape;
|
28
27
|
status: import('./type').ButtonStatus;
|
28
|
+
long: boolean;
|
29
29
|
htmlType: import('./type').ButtonHtmlType;
|
30
30
|
autofocus: boolean;
|
31
31
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
@@ -42,14 +42,14 @@ declare const Button: {
|
|
42
42
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
43
43
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
44
44
|
}>, {}, {}, {}, {}, {
|
45
|
-
long: boolean;
|
46
|
-
loading: boolean;
|
47
|
-
type: import('./type').ButtonType;
|
48
45
|
size: import('..').Size;
|
49
46
|
disabled: boolean;
|
47
|
+
loading: boolean;
|
48
|
+
type: import('./type').ButtonType;
|
50
49
|
href: string;
|
51
50
|
shape: import('./type').ButtonShape;
|
52
51
|
status: import('./type').ButtonStatus;
|
52
|
+
long: boolean;
|
53
53
|
htmlType: import('./type').ButtonHtmlType;
|
54
54
|
autofocus: boolean;
|
55
55
|
}>;
|
@@ -69,14 +69,14 @@ declare const Button: {
|
|
69
69
|
mousedown: (event: MouseEvent) => any;
|
70
70
|
mouseup: (event: MouseEvent) => any;
|
71
71
|
}, string, {
|
72
|
-
long: boolean;
|
73
|
-
loading: boolean;
|
74
|
-
type: import('./type').ButtonType;
|
75
72
|
size: import('..').Size;
|
76
73
|
disabled: boolean;
|
74
|
+
loading: boolean;
|
75
|
+
type: import('./type').ButtonType;
|
77
76
|
href: string;
|
78
77
|
shape: import('./type').ButtonShape;
|
79
78
|
status: import('./type').ButtonStatus;
|
79
|
+
long: boolean;
|
80
80
|
htmlType: import('./type').ButtonHtmlType;
|
81
81
|
autofocus: boolean;
|
82
82
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -84,9 +84,9 @@ declare const Button: {
|
|
84
84
|
}) & {
|
85
85
|
group: {
|
86
86
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
87
|
-
type: import('./type').ButtonType;
|
88
87
|
size: import('..').Size;
|
89
88
|
disabled: boolean;
|
89
|
+
type: import('./type').ButtonType;
|
90
90
|
shape: import('./type').ButtonShape;
|
91
91
|
status: import('./type').ButtonStatus;
|
92
92
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -97,9 +97,9 @@ declare const Button: {
|
|
97
97
|
M: {};
|
98
98
|
Defaults: {};
|
99
99
|
}, Readonly<import('./type').ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
100
|
-
type: import('./type').ButtonType;
|
101
100
|
size: import('..').Size;
|
102
101
|
disabled: boolean;
|
102
|
+
type: import('./type').ButtonType;
|
103
103
|
shape: import('./type').ButtonShape;
|
104
104
|
status: import('./type').ButtonStatus;
|
105
105
|
}>;
|
@@ -107,9 +107,9 @@ declare const Button: {
|
|
107
107
|
__isTeleport?: never;
|
108
108
|
__isSuspense?: never;
|
109
109
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
110
|
-
type: import('./type').ButtonType;
|
111
110
|
size: import('..').Size;
|
112
111
|
disabled: boolean;
|
112
|
+
type: import('./type').ButtonType;
|
113
113
|
shape: import('./type').ButtonShape;
|
114
114
|
status: import('./type').ButtonStatus;
|
115
115
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),a=require("../node_modules/dayjs/dayjs.min.js")
|
1
|
+
"use strict";const e=require("vue"),a=require("../node_modules/dayjs/dayjs.min.js");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/IconArrowRight.vue.js"),r=require("../_shared/utils/locale.js"),o=require("../_shared/utils/control.js"),l=require("../_shared/components/IconButton.vue.js");,/* empty css */;/* empty css */const n=require("../Button/index.js");require("../Radio/index.js");const d=require("./CalendarMonth.vue.js");;/* empty css */const u=require("./CalendarYear.vue.js");;/* empty css */const s=require("../Radio/RadioGroup.vue.js");;/* empty css */const c={class:"yc-calendar-header"},i={class:"yc-calendar-header-left"},m={class:"yc-calendar-header-value"},v={class:"yc-calendar-header-right"},f={class:"yc-calendar-body"},h=e.defineComponent({name:"Calendar",__name:"Calendar",props:{modelValue:{default:void 0},defaultValue:{default:()=>new Date},mode:{default:void 0},defaultMode:{default:"month"},modes:{default:()=>["month","year"]}},emits:["update:modelValue","update:mode","change","panel-change"],setup(h,{emit:p}){const y=h,j=p,{modelValue:V,defaultValue:q,mode:C,defaultMode:_,modes:x}=e.toRefs(y),k=o(V,q.value,e=>{j("update:modelValue",e),j("change",e)}),{t:N}=r.useI18n(),w=e.ref({}),g=e.computed(()=>{const{year:e,month:t}=w.value;return a().set("year",e).set("month",t).format(N("calendar.formatMonth"))});e.watch(()=>k.value,e=>{const t=e?a(e):a();w.value={year:t.year(),month:t.month()+1,day:t.date()}},{immediate:!0});const R=o(C,_.value,e=>{j("update:mode",e),j("panel-change",k.value)}),z=e.computed(()=>x.value.map(e=>({label:N(`calendar.view.${e}`),value:e}))),B=e=>{k.value=new Date(e.fullDate)},D=e=>{if("today"==e)return void(k.value=new Date);const{year:a,month:t}=w.value;if("next"==e){const e=t+1>12?1:t+1,r=t+1>12||"year"==R.value?1:0;if(w.value.year=a+r,"year"==R.value)return;w.value.month=e}else{const e=t-1<1?12:t-1,r=t-1<1||"year"==R.value?-1:0;if(w.value.year=a+r,"year"==R.value)return;w.value.month=e}};return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-calendar",`yc-calendar-mode-${e.unref(R)}`])},[e.createElementVNode("div",c,[e.createElementVNode("div",i,[e.createVNode(e.unref(l),{class:"yc-calendar-header-icon",role:"button",tabindex:"0",size:28,"hover-size":28,onClick:r[0]||(r[0]=e=>D("pre"))},{default:e.withCtx(()=>[e.createVNode(e.unref(t),{rotate:180})]),_:1}),e.createElementVNode("div",m,[e.renderSlot(a.$slots,"header",{year:w.value.year,month:w.value.month},()=>[e.createTextVNode(e.toDisplayString(g.value),1)])]),e.createVNode(e.unref(l),{role:"button",tabindex:"0",class:"yc-calendar-header-icon",size:28,"hover-size":28,onClick:r[1]||(r[1]=e=>D("next"))},{default:e.withCtx(()=>[e.createVNode(e.unref(t))]),_:1}),e.createVNode(e.unref(n.default),{onClick:r[2]||(r[2]=e=>D("today")),size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("calendar.today")),1)]),_:1})]),e.createElementVNode("div",v,[e.createVNode(e.unref(s),{modelValue:e.unref(R),"onUpdate:modelValue":r[3]||(r[3]=a=>e.isRef(R)?R.value=a:null),options:z.value,type:"button",size:"small"},null,8,["modelValue","options"])])]),e.createElementVNode("div",f,["month"==e.unref(R)?(e.openBlock(),e.createBlock(d,{key:0,"computed-value":e.unref(k),recordDate:w.value,onCellClick:B},e.createSlots({_:2},[a.$slots.default?{name:"default",fn:e.withCtx(t=>[e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(t)))]),key:"0"}:void 0]),1032,["computed-value","recordDate"])):(e.openBlock(),e.createBlock(u,{key:1,"computed-value":e.unref(k),"record-date":w.value,onCellClick:B},e.createSlots({_:2},[a.$slots.default?{name:"default",fn:e.withCtx(t=>[e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(t)))]),key:"0"}:void 0]),1032,["computed-value","record-date"]))])],2))}});module.exports=h;
|
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
24
24
|
"onCell-click"?: ((col: CalendarCellData) => any) | undefined;
|
25
25
|
}>, {
|
26
|
-
calendar: CalendarCellData[][];
|
27
26
|
small: boolean;
|
27
|
+
calendar: CalendarCellData[][];
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
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"),
|
1
|
+
"use strict";const e=require("vue"),a=require("../node_modules/dayjs/dayjs.min.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const t=require("../_shared/utils/locale.js"),n=require("../_shared/utils/control.js"),r={class:"yc-calendar-week-list"},c={class:"yc-calendar-month-cell-body"},o=["onClick"],s={class:"yc-calendar-date"},d={class:"yc-calendar-date-value"},i={class:"yc-calendar-date-circle"},u=e.defineComponent({__name:"CalendarMonth",props:{computedValue:{},recordDate:{},calendar:{default:void 0},small:{type:Boolean,default:!1}},emits:["cell-click"],setup(u){const m=u,{computedValue:y,calendar:h,small:k,recordDate:v}=e.toRefs(m),{t:p}=t.useI18n(),B=e.computed(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(e=>p(`calendar.week.${k.value?"short":"long"}.${e}`))),E=n(h,[]);e.watch(()=>v.value.month,()=>{if(h.value)return;const{year:e,month:a}=v.value;E.value=l.generateMonthCalendar(e,a)},{immediate:!0});const g=e=>{const{day:l,year:t,month:n}=e,r=a(),c=r.date(),o=r.month(),s=r.year();return l==c&&n==o&&t==s},j=e=>{const a=y.value.getFullYear(),l=y.value.getMonth(),t=y.value.getDate(),{day:n,year:r,month:c,isCurrentMonth:o}=e,s=t==n&&l==c&&a==r;return k.value?s&&o:s};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-calendar-month",{"yc-calendar-month-small":e.unref(k)}])},[e.createElementVNode("div",r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,a=>(e.openBlock(),e.createElementBlock("div",{class:"yc-calendar-week-list-item",key:a},e.toDisplayString(a),1))),128))]),e.createElementVNode("div",c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),(l,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"yc-calendar-month-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,(l,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["yc-calendar-cell",{"yc-calendar-cell-today":g(l),"yc-calendar-cell-selected":j(l),"yc-calendar-cell-in-view":l.isCurrentMonth}]),onClick:e=>a.$emit("cell-click",l)},[e.renderSlot(a.$slots,"default",{year:l.year,month:l.month,day:l.day},()=>[e.createElementVNode("div",s,[e.createElementVNode("div",d,[e.createElementVNode("div",i,e.toDisplayString(l.day),1)])])])],10,o))),128))]))),128))])],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");const r=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const l=require("./CalendarMonth.vue.js");;/* empty css */const
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const l=require("../_shared/utils/locale.js"),a=require("./CalendarMonth.vue.js");;/* empty css */const t={class:"yc-calendar-year"},c={class:"yc-calendar-year-cell-title"},o=e.defineComponent({__name:"CalendarYear",props:{computedValue:{},recordDate:{}},emits:["cell-click"],setup(o){const n=o,{computedValue:s,recordDate:u}=e.toRefs(n),{t:d}=l.useI18n(),i=e.ref([]),m=e.computed(()=>["January","February","March","April","May","June","July","August","September","October","November","December"].map(e=>d(`calendar.month.short.${e}`)));return e.watch(()=>u.value.year,()=>{const{year:e}=u.value;i.value=[];const l=[];for(let a=1;a<=12;a++)l.push(r.generateMonthCalendar(e,a)),4==l.length&&(i.value.push([...l]),l.splice(0))},{immediate:!0}),(r,l)=>(e.openBlock(),e.createElementBlock("div",t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"yc-calendar-year-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"yc-calendar-year-cell"},[e.createElementVNode("div",c,e.toDisplayString(m.value[4*o+n]),1),e.createVNode(a,{"computed-value":e.unref(s),calendar:t,"record-date":e.unref(u),small:"",class:"yc-calendar-year-cell-body",onCellClick:l[0]||(l[0]=e=>r.$emit("cell-click",e))},e.createSlots({_:2},[r.$slots.default?{name:"default",fn:e.withCtx(({year:l,month:a,day:t})=>[e.renderSlot(r.$slots,"default",{year:l,month:a,day:t})]),key:"0"}:void 0]),1032,["computed-value","calendar","record-date"])]))),128))]))),128))]))}});module.exports=o;
|
package/lib/Card/Card.vue.d.ts
CHANGED
@@ -7,8 +7,8 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
10
|
-
loading: boolean;
|
11
10
|
size: import('./type').CardSize;
|
11
|
+
loading: boolean;
|
12
12
|
title: string;
|
13
13
|
hoverable: boolean;
|
14
14
|
bordered: boolean;
|
package/lib/Card/Card.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/vue-utils.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/vue-utils.js"),r=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),l=require("../Spin/index.js"),a=require("./CardGrid.vue.js");;/* empty css */const s=require("./CardMeta.vue.js");;/* empty css */const d={key:0,class:"yc-card-header-title text-ellipsis"},c={key:1,class:"yc-card-header-extra text-ellipsis"},i={key:1,class:"yc-card-cover"},n={key:2,class:"yc-card-actions"},u={class:"yc-card-actions-right text-ellipsis"},m=e.defineComponent({name:"Card",__name:"Card",props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{default:void 0},headerStyle:{default:()=>({})},bodyStyle:{default:()=>({})},title:{default:""},extra:{default:""}},setup(m){const y=m,{size:v}=r.getGlobalConfig(y),{slots:p}=o().provide(),k=e.computed(()=>{var e;return(null==(e=p.default)?void 0:e.call(p))||[]}),f=e.computed(()=>!!t.findComponentsFromVnodes(k.value,s.name).length),h=e.computed(()=>!!t.findComponentsFromVnodes(k.value,a.name).length);return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-card",`yc-card-size-${e.unref(v)}`,{"yc-card-bordered":t.bordered,"yc-card-hoverable":t.hoverable,"yc-card-loading":t.loading,"yc-card-contain-grid":h.value}])},[t.title||t.extra||t.$slots.title||t.$slots.extra?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-card-header",style:e.normalizeStyle(t.headerStyle)},[t.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0),t.extra||t.$slots.extra?(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(t.$slots,"extra",{},()=>[e.createTextVNode(e.toDisplayString(t.extra),1)])])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),t.$slots.cover?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(t.$slots,"cover")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-card-body",style:e.normalizeStyle(t.bodyStyle)},[t.loading?(e.openBlock(),e.createBlock(e.unref(l),{key:0,"is-size-inherit":"",loading:""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3})):e.renderSlot(t.$slots,"default",{key:1}),t.$slots.actions&&!f.value?(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",u,[e.renderSlot(t.$slots,"actions")])])):e.createCommentVNode("",!0)],4)],2))}});module.exports=m;
|
@@ -7,8 +7,8 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<CardMetaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardMetaProps> & Readonly<{}>, {
|
10
|
-
description: string;
|
11
10
|
title: string;
|
11
|
+
description: string;
|
12
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
13
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
14
14
|
export default _default;
|
package/lib/Card/CardMeta.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/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 t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),s={class:"yc-card-meta"},r={class:"yc-card-meta-content"},c={key:0,class:"yc-card-meta-title text-ellipsis"},a={key:1,class:"yc-card-meta-description"},l={class:"yc-card-meta-footer"},i={key:0,class:"yc-card-meta-avatar"},n={key:1,class:"yc-card-actions"},d={class:"yc-card-actions-right text-ellipsis"},m=e.defineComponent({name:"CardMeta",__name:"CardMeta",props:{title:{default:""},description:{default:""}},setup(m){const{slots:u}=o().inject();return(o,m)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",r,[o.$slots.title||o.title?(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])])):e.createCommentVNode("",!0),o.$slots.description||o.description?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(o.description),1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",l,[o.$slots.avatar?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(o.$slots,"avatar")])):e.createCommentVNode("",!0),e.unref(u).actions?(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t.getSlotFunction)(e.unref(u).actions))))])])):e.createCommentVNode("",!0)])]))}});module.exports=m;
|
package/lib/Card/index.d.ts
CHANGED
@@ -8,8 +8,8 @@ export type CardGridInstance = InstanceType<typeof _CardGrid>;
|
|
8
8
|
export * from './type';
|
9
9
|
declare const Card: {
|
10
10
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
11
|
-
loading: boolean;
|
12
11
|
size: import('./type').CardSize;
|
12
|
+
loading: boolean;
|
13
13
|
title: string;
|
14
14
|
hoverable: boolean;
|
15
15
|
bordered: boolean;
|
@@ -24,8 +24,8 @@ declare const Card: {
|
|
24
24
|
M: {};
|
25
25
|
Defaults: {};
|
26
26
|
}, Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, {
|
27
|
-
loading: boolean;
|
28
27
|
size: import('./type').CardSize;
|
28
|
+
loading: boolean;
|
29
29
|
title: string;
|
30
30
|
hoverable: boolean;
|
31
31
|
bordered: boolean;
|
@@ -37,8 +37,8 @@ declare const Card: {
|
|
37
37
|
__isTeleport?: never;
|
38
38
|
__isSuspense?: never;
|
39
39
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
40
|
-
loading: boolean;
|
41
40
|
size: import('./type').CardSize;
|
41
|
+
loading: boolean;
|
42
42
|
title: string;
|
43
43
|
hoverable: boolean;
|
44
44
|
bordered: boolean;
|
@@ -50,8 +50,8 @@ declare const Card: {
|
|
50
50
|
}) & {
|
51
51
|
meta: {
|
52
52
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').CardMetaProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
53
|
-
description: string;
|
54
53
|
title: string;
|
54
|
+
description: string;
|
55
55
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
56
56
|
P: {};
|
57
57
|
B: {};
|
@@ -60,15 +60,15 @@ declare const Card: {
|
|
60
60
|
M: {};
|
61
61
|
Defaults: {};
|
62
62
|
}, Readonly<import('./type').CardMetaProps> & Readonly<{}>, {}, {}, {}, {}, {
|
63
|
-
description: string;
|
64
63
|
title: string;
|
64
|
+
description: string;
|
65
65
|
}>;
|
66
66
|
__isFragment?: never;
|
67
67
|
__isTeleport?: never;
|
68
68
|
__isSuspense?: never;
|
69
69
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').CardMetaProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
70
|
-
description: string;
|
71
70
|
title: string;
|
71
|
+
description: string;
|
72
72
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
73
73
|
$slots: Readonly<import('./type').CardMetaSlots> & import('./type').CardMetaSlots;
|
74
74
|
});
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=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 r=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),t=require("./CarouselArrow.vue.js");;/* empty css */const a=require("./CarouselIndicator.vue.js");;/* empty css */const i={key:0,class:"yc-carousel-indicator-wrapper"},n={key:1,class:"yc-carousel-arrow-wrapper"},l=e.defineComponent({name:"Carousel",__name:"Carousel",props:{current:{default:void 0},defaultCurrent:{default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{default:500},animationName:{default:"slide"},trigger:{default:"click"},direction:{default:"horizontal"},showArrow:{default:"always"},arrowClass:{default:""},indicatorType:{default:"dot"},indicatorPosition:{default:"bottom"},indicatorClass:{default:""},transitionTimingFunction:{default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:["update:current","change"],setup(l,{emit:s}){const u=l,c=s,{slideTo:d,computedCurrent:m,autoPlay:v,carouselItems:p}=o().provide(u,c),y=e.ref(0),f=()=>{y.value&&(clearInterval(y.value),y.value=0)},C=()=>{var e;v.value&&(f(),y.value=window.setInterval(()=>{d(m.value+1)},(null==(e=v.value)?void 0:e.interval)??3e3))},h=async e=>{f(),await d(e),C()};return e.watch(()=>v.value,()=>{f(),C()},{immediate:!0}),e.onBeforeUnmount(()=>{f()}),(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel",`yc-carousel-animation-${o.animationName}`,{"yc-carousel-indicator-outer":"outer"==o.indicatorPosition}])},[e.createElementVNode("div",{class:e.normalizeClass(["yc-carousel-slide",`yc-carousel-direction-${o.direction}`]),onMouseenter:l[0]||(l[0]=o=>{var t;return e.unref(r.isObject)(e.unref(v))&&(null==(t=e.unref(v))?void 0:t.hoverToPause)&&f()}),onMouseleave:l[1]||(l[1]=o=>{var t;return e.unref(r.isObject)(e.unref(v))&&(null==(t=e.unref(v))?void 0:t.hoverToPause)&&C()})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(r,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{index:o+1},null,8,["index"]))),256))],34),"never"!=o.indicatorType?(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(a,{"indicator-class":o.indicatorClass,trigger:o.trigger,"indicator-position":o.indicatorPosition,"indicator-type":o.indicatorType,onChange:h},null,8,["indicator-class","trigger","indicator-position","indicator-type"])])):e.createCommentVNode("",!0),"never"!=o.showArrow?(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(t,{type:"pre",onChange:h}),e.createVNode(t,{type:"next",onChange:h})])):e.createCommentVNode("",!0)],2))}});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"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("./hooks/useContext.js"),t=e.defineComponent({__name:"CarouselArrow",props:{type:{}},emits:["change"],setup(t){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 r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("./hooks/useContext.js"),t=e.defineComponent({__name:"CarouselArrow",props:{type:{}},emits:["change"],setup(t){const s=t,{type:u}=e.toRefs(s),{showArrow:a,direction:n,arrowClass:l,computedCurrent:c}=o().inject(),i=e.computed(()=>"next"==u.value?"horizontal"==n.value?0:90:"horizontal"==n.value?180:-90),h=e.computed(()=>"next"==u.value?"horizontal"==n.value?"yc-carousel-arrow-right":"yc-carousel-arrow-bottom":"horizontal"==n.value?"yc-carousel-arrow-left":"yc-carousel-arrow-top");return(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel-arrow",h.value,e.unref(l),{"yc-carousel-arrow-show-hover":"hover"==e.unref(a)}]),onClick:t[0]||(t[0]=r=>o.$emit("change","next"==e.unref(u)?e.unref(c)+1:e.unref(c)-1))},[e.createVNode(e.unref(r),{rotate:i.value},null,8,["rotate"])],2))}});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=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 o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const r=require("./hooks/useContext.js"),i=["onMouseenter","onClick"],t=e.defineComponent({__name:"CarouselIndicator",props:{trigger:{},indicatorType:{},indicatorPosition:{},indicatorClass:{}},emits:["change"],setup(t){const{length:n,computedCurrent:c}=r().inject();return(r,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel-indicator",`yc-carousel-indicator-shape-${r.indicatorType}`,`yc-carousel-indicator-position-${r.indicatorPosition}`,r.indicatorClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["yc-carousel-indicator-item",{"yc-carousel-indicator-item-active":e.unref(c)==o}]),onMouseenter:i=>"hover"==r.trigger&&e.unref(c)!=o&&r.$emit("change",o),onClick:i=>"click"==r.trigger&&e.unref(c)!=o&&r.$emit("change",o)},null,42,i))),128)),"slider"==r.indicatorType?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-carousel-indicator-item-slider",style:e.normalizeStyle({width:["top","bottom","outer"].includes(r.indicatorPosition)?e.unref(o.valueToPx)(48/e.unref(n)):"",height:["left","right"].includes(r.indicatorPosition)?e.unref(o.valueToPx)(48/e.unref(n)):"",transform:["top","bottom","outer"].includes(r.indicatorPosition)?`translateX(calc(${e.unref(o.valueToPx)(48/e.unref(n)*e.unref(c))} - 100%))`:`translateY(calc(${e.unref(o.valueToPx)(48/e.unref(n)*e.unref(c))} - 100%))`})},null,4)):e.createCommentVNode("",!0)],2))}});module.exports=t;
|
@@ -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");const t=require("../../_shared/utils/vue-utils.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");const t=require("../../_shared/utils/vue-utils.js");require("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const o=require("../../_shared/utils/control.js"),i=require("../CarouselItem.vue.js");;/* empty css */const n="carousel-context";module.exports=()=>({provide:(u,s)=>{const{current:a,defaultCurrent:l,transitionTimingFunction:d,animationName:c,moveSpeed:v,direction:m,showArrow:p,arrowClass:f,autoPlay:h}=e.toRefs(u),j=e.useSlots(),g=e.computed(()=>{var e;return t.findComponentsFromVnodes((null==(e=j.default)?void 0:e.call(j))||[],i.name)}),q=e.computed(()=>g.value.length),w=o(a,l.value,e=>{s("update:current",e)}),C=e.ref("positive"),y=e.ref(w.value);let I=!1;const x=e=>e<0?q.value-1:e>q.value?e%q.value:e;return e.provide(n,{length:q,computedCurrent:w,transitionTimingFunction:d,animationName:c,moveSpeed:v,direction:m,showArrow:p,arrowClass:f,moveType:C,preIndex:y,getValidIndex:x}),{carouselItems:g,computedCurrent:w,length:q,autoPlay:h,slideTo:async e=>{I||e==w.value||(C.value=e>w.value?"positive":"negative",y.value=w.value,w.value=x(e),s("change",w.value,y.value,!0),I=!0,await r.sleep(v.value),I=!1)}}},inject:()=>e.inject(n,{length:e.ref(0),computedCurrent:e.ref(1),transitionTimingFunction:e.ref("cubic-bezier(0.34, 0.69, 0.1, 1)"),animationName:e.ref("slide"),moveSpeed:e.ref(500),direction:e.ref("horizontal"),showArrow:e.ref("always"),arrowClass:e.ref(""),preIndex:e.ref(0),moveType:e.ref("positive"),getValidIndex:()=>0})});
|
@@ -100,13 +100,13 @@ declare function __VLS_template(): {
|
|
100
100
|
"visibility-change": (value: boolean) => any;
|
101
101
|
pressEnter: (ev: KeyboardEvent) => any;
|
102
102
|
}, string, {
|
103
|
-
error: boolean;
|
104
|
-
placeholder: string;
|
105
|
-
maxLength: import('../Input').MaxLength;
|
106
103
|
size: import('..').Size;
|
107
104
|
disabled: boolean;
|
105
|
+
error: boolean;
|
106
|
+
placeholder: string;
|
108
107
|
modelValue: string;
|
109
108
|
defaultValue: string;
|
109
|
+
maxLength: import('../Input').MaxLength;
|
110
110
|
showWordLimit: boolean;
|
111
111
|
allowClear: boolean;
|
112
112
|
readonly: boolean;
|
@@ -139,13 +139,13 @@ declare function __VLS_template(): {
|
|
139
139
|
$nextTick: typeof import('vue').nextTick;
|
140
140
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
141
141
|
} & Readonly<{
|
142
|
-
error: boolean;
|
143
|
-
placeholder: string;
|
144
|
-
maxLength: import('../Input').MaxLength;
|
145
142
|
size: import('..').Size;
|
146
143
|
disabled: boolean;
|
144
|
+
error: boolean;
|
145
|
+
placeholder: string;
|
147
146
|
modelValue: string;
|
148
147
|
defaultValue: string;
|
148
|
+
maxLength: import('../Input').MaxLength;
|
149
149
|
showWordLimit: boolean;
|
150
150
|
allowClear: boolean;
|
151
151
|
readonly: boolean;
|
@@ -168,7 +168,7 @@ declare function __VLS_template(): {
|
|
168
168
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
169
169
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
170
170
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
171
|
-
}>, "focus" | "blur" | "getInputRef" | ("
|
171
|
+
}>, "focus" | "blur" | "getInputRef" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
172
172
|
focus(): void;
|
173
173
|
blur(): void;
|
174
174
|
getInputRef(): HTMLInputElement;
|
@@ -202,15 +202,15 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
202
202
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
203
203
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
204
204
|
}>, {
|
205
|
-
loading: boolean;
|
206
|
-
error: boolean;
|
207
|
-
placeholder: string;
|
208
205
|
size: import('..').Size;
|
209
206
|
popupVisible: boolean;
|
210
207
|
defaultPopupVisible: boolean;
|
211
208
|
disabled: boolean;
|
212
209
|
popupContainer: import('..').PopupContainer;
|
210
|
+
loading: boolean;
|
211
|
+
error: boolean;
|
213
212
|
multiple: boolean;
|
213
|
+
placeholder: string;
|
214
214
|
modelValue: import('./type').CascaderValue;
|
215
215
|
defaultValue: import('./type').CascaderValue;
|
216
216
|
allowClear: boolean;
|
@@ -309,13 +309,13 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
309
309
|
"visibility-change": (value: boolean) => any;
|
310
310
|
pressEnter: (ev: KeyboardEvent) => any;
|
311
311
|
}, string, {
|
312
|
-
error: boolean;
|
313
|
-
placeholder: string;
|
314
|
-
maxLength: import('../Input').MaxLength;
|
315
312
|
size: import('..').Size;
|
316
313
|
disabled: boolean;
|
314
|
+
error: boolean;
|
315
|
+
placeholder: string;
|
317
316
|
modelValue: string;
|
318
317
|
defaultValue: string;
|
318
|
+
maxLength: import('../Input').MaxLength;
|
319
319
|
showWordLimit: boolean;
|
320
320
|
allowClear: boolean;
|
321
321
|
readonly: boolean;
|
@@ -348,13 +348,13 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
348
348
|
$nextTick: typeof import('vue').nextTick;
|
349
349
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
350
350
|
} & Readonly<{
|
351
|
-
error: boolean;
|
352
|
-
placeholder: string;
|
353
|
-
maxLength: import('../Input').MaxLength;
|
354
351
|
size: import('..').Size;
|
355
352
|
disabled: boolean;
|
353
|
+
error: boolean;
|
354
|
+
placeholder: string;
|
356
355
|
modelValue: string;
|
357
356
|
defaultValue: string;
|
357
|
+
maxLength: import('../Input').MaxLength;
|
358
358
|
showWordLimit: boolean;
|
359
359
|
allowClear: boolean;
|
360
360
|
readonly: boolean;
|
@@ -377,7 +377,7 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
377
377
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
378
378
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
379
379
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
380
|
-
}>, "focus" | "blur" | "getInputRef" | ("
|
380
|
+
}>, "focus" | "blur" | "getInputRef" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
381
381
|
focus(): void;
|
382
382
|
blur(): void;
|
383
383
|
getInputRef(): HTMLInputElement;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=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 l=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const a=require("./hooks/useContext.js"),u=require("../Input/index.js"),o=require("../InputTag/index.js"),r=require("../Trigger/index.js"),t=require("./CascaderPanel.vue.js");;/* empty css */const n=require("./CascaderSearchPanel.vue.js");;/* empty css */const i=;/* empty css */;/* empty css */const s=e.defineComponent({name:"Cascader",__name:"Cascader",props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{default:void 0},defaultValue:{default:e=>e.multiple?[]:""},options:{default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{default:void 0},allowSearch:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},inputValue:{default:void 0},defaultInputValue:{default:""},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},expandTrigger:{default:"click"},placeholder:{default:""},filterOption:{type:Function,default:(e,l)=>(l.label??"").toLowerCase().includes(e.toLowerCase())},popupContainer:{default:void 0},maxTagCount:{default:0},formatLabel:{type:Function,default:void 0},triggerProps:{default:()=>({})},loadMore:{type:Function,default:void 0},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{default:500},fieldNames:{default:()=>({})},valueKey:{default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:["update:modelValue","update:inputValue","update:popupVisible","change","input-value-change","clear","search","popup-visible-change","focus","blur"],setup(s,{emit:d}){const p=s,c=d,f=e.ref(),{computedValue:v,computedInputValue:h,computedVisible:m,selectOptions:y,searchDelay:b,multiple:g,pathMode:w,disabled:C,allowClear:x,allowSearch:k,loading:B,curLevel:V,curPath:q,getValueKey:j,getOption:S}=a.default().provide(p,c,f),P=e.computed(()=>{let e=!0;return e=w.value?g.value?v.value.flat(1).length:v.value.length:g.value?v.value.length:v.value,x.value&&!C.value&&!B.value&&!!e}),_=e.computed(()=>!k.value||B.value),z=e.computed(()=>k.value&&h.value),I=async(e,a="")=>{var u,o;switch(e){case"clear":v.value=g.value||w.value?[]:"",c("clear");break;case"search":await l.sleep(b.value),c("search",a);break;case"focus":{if(C.value)return;if(m.value)return null==(u=f.value)?void 0:u.blur();const e=j(g.value?v.value[0]:v.value),a=e?S(e):null;a?(q.value=a.nodePath.map(e=>e.index),V.value=a.level):(q.value=[],V.value=1),m.value=!0,await l.sleep(0),null==(o=f.value)||o.focus()}break;case"blur":m.value=!1;break;case"updateValue":v.value=a.map(e=>e.value)}};return(l,a)=>(e.openBlock(),e.createBlock(e.unref(r),e.mergeProps({"popup-visible":e.unref(m),"onUpdate:popupVisible":a[11]||(a[11]=l=>e.isRef(m)?m.value=l:null),"popup-offset":4,"popup-container":l.popupContainer,disabled:e.unref(C),"content-style":{background:"transparent"},position:"bl",trigger:"focus","animation-name":"slide-dynamic-origin","prevent-focus":""},l.triggerProps),{content:e.withCtx(()=>[z.value?(e.openBlock(),e.createBlock(n,{key:0})):(e.openBlock(),e.createBlock(t,{key:1}))]),default:e.withCtx(()=>{var r,t;return[e.createElementVNode("div",{class:e.normalizeClass(["yc-cascader",{"yc-cascader-allow-clear":P.value,"yc-cascader-allow-search":e.unref(k)},l.$attrs.class]),style:e.normalizeStyle(l.$attrs.style)},[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(o),{key:0,"input-value":e.unref(h),"onUpdate:inputValue":a[1]||(a[1]=l=>e.isRef(h)?h.value=l:null),"model-value":e.unref(y),placeholder:l.placeholder,readonly:_.value,disabled:e.unref(C),size:l.size,error:l.error,"max-tag-count":l.maxTagCount,"tag-nowrap":l.tagNowrap,ref_key:"inputRef",ref:f,onFocus:a[2]||(a[2]=e=>I("focus")),onBlur:a[3]||(a[3]=e=>I("blur")),onInput:a[4]||(a[4]=e=>I("search",e)),"onUpdate:modelValue":a[5]||(a[5]=e=>I("updateValue",e))},e.createSlots({suffix:e.withCtx(()=>[e.createVNode(i,{"popup-visible":e.unref(m),"allow-search":e.unref(k),loading:e.unref(B),"show-clear-btn":P.value,onClear:a[0]||(a[0]=e=>I("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:2},[l.$slots.label?{name:"tag",fn:e.withCtx(a=>[e.renderSlot(l.$slots,"label",e.normalizeProps(e.guardReactiveProps(a)))]),key:"0"}:void 0,l.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"prefix")]),key:"1"}:void 0]),1032,["input-value","model-value","placeholder","readonly","disabled","size","error","max-tag-count","tag-nowrap"])):(e.openBlock(),e.createBlock(e.unref(u),{key:1,modelValue:e.unref(h),"onUpdate:modelValue":a[7]||(a[7]=l=>e.isRef(h)?h.value=l:null),"show-input":e.unref(m),readonly:_.value,disabled:e.unref(C),size:l.size,error:l.error,placeholder:(null==(t=null==(r=e.unref(y)[0])?void 0:r.label)?void 0:t.toString())||"",ref_key:"inputRef",ref:f,onClick:a[8]||(a[8]=e=>I("focus")),onBlur:a[9]||(a[9]=e=>I("blur")),onInput:a[10]||(a[10]=e=>I("search",e))},e.createSlots({label:e.withCtx(()=>[e.renderSlot(l.$slots,"label",{data:e.unref(y)[0]},()=>{var a,u;return[e.createElementVNode("span",{class:e.normalizeClass([{"yc-input-placeholder":!(null==(a=e.unref(y)[0])?void 0:a.label)}])},e.toDisplayString((null==(u=e.unref(y)[0])?void 0:u.label)||l.placeholder),3)]})]),suffix:e.withCtx(()=>[e.createVNode(i,{"popup-visible":e.unref(m),"allow-search":e.unref(k),loading:e.unref(B),"show-clear-btn":P.value,onClear:a[6]||(a[6]=e=>I("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:2},[l.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","show-input","readonly","disabled","size","error","placeholder"]))],6)]}),_:3},16,["popup-visible","popup-container","disabled"]))}});module.exports=s;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const c=require("../_shared/components/IconButton.vue.js");,/* empty css */;/* empty css */const r=require("../Spin/index.js"),s={class:"yc-cascader-suffix-icon"},t={key:0,class:"yc-cascader-search-icon"},a=e.defineComponent({__name:"CascaderIcon",props:{loading:{type:Boolean},popupVisible:{type:Boolean},showClearBtn:{type:Boolean},allowSearch:{type:Boolean}},emits:["clear"],setup(a){const{slots:
|
1
|
+
"use strict";const e=require("vue"),o=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js");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 c=require("../_shared/components/IconButton.vue.js");,/* empty css */;/* empty css */const r=require("../Spin/index.js"),s={class:"yc-cascader-suffix-icon"},t={key:0,class:"yc-cascader-search-icon"},a=e.defineComponent({__name:"CascaderIcon",props:{loading:{type:Boolean},popupVisible:{type:Boolean},showClearBtn:{type:Boolean},allowSearch:{type:Boolean}},emits:["clear"],setup(a){const{slots:l}=o.default().inject(),i=e=>l[e];return(o,a)=>{const u=e.resolveComponent("icon-search");return o.loading?(e.openBlock(),e.createBlock(e.unref(r),{key:0,size:12,class:"yc-cascader-loading-icon"},e.createSlots({_:2},[o.$slots["loading-icon"]?{name:"icon",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i("loading-icon"))))]),key:"0"}:void 0]),1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",s,[e.unref(l)["arrow-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i("arrow-icon")),{key:0})):(e.openBlock(),e.createBlock(e.unref(n),{key:1,rotate:o.popupVisible?180:0},null,8,["rotate"]))]),o.allowSearch?(e.openBlock(),e.createElementBlock("div",t,[e.unref(l)["search-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i("search-icon")),{key:0})):(e.openBlock(),e.createBlock(u,{key:1}))])):e.createCommentVNode("",!0),o.showClearBtn?(e.openBlock(),e.createBlock(e.unref(c),{key:1,class:"yc-cascader-clear-icon",onClick:a[0]||(a[0]=e.withModifiers(e=>o.$emit("clear"),["stop"]))})):e.createCommentVNode("",!0)],64))}}});module.exports=a;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const u=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../_shared/icons/IconLoading.vue.js"),t=require("../Checkbox/index.js"),n=require("./hooks/useContext.js"),v=e.defineComponent({__name:"CascaderOption",props:{level:{default:-1},index:{default:-1},nodePath:{default:()=>[]},label:{default:""},value:{default:""},render:{type:Function,default:void 0},disabled:{type:Boolean,default:!1},tagProps:{default:()=>({})},children:{default:()=>[]},isLeaf:{type:Boolean,default:!1}},setup(v){const r=v,{label:i,value:d,disabled:s,level:c,isLeaf:m,children:p,nodePath:f}=e.toRefs(r),{totalOptions:h,computedValue:k,pathMode:y,curLevel:b,curPath:j,multiple:g,expandTrigger:x,expandChild:B,slots:q,getOption:C,getValueKey:P,blur:_,loadMore:O}=n.default().inject(),V=e.ref(!1),E=e.computed(()=>a.isFunction(O)?!V.value&&!m.value&&!p.value.length:p.value.length),L=e.computed(()=>p.value.length?n.getLeafNodes(p.value):[C(d.value)]),N=e.computed(()=>!p.value.length),w=e.computed(()=>{var e;if(!k.value)return!1;if(!g.value){return null==(e=(C(k.value)??{}).nodePath)?void 0:e.some(e=>P(e.value)==P(d.value))}const l=k.value.map(e=>C(e)??{});if(N.value)return l.some(e=>P(null==e?void 0:e.value)==P(d.value));const a=Object.fromEntries(l.map(e=>[P(null==e?void 0:e.value),e]));return L.value.every(e=>a[P(e.value)])}),F=e.computed(()=>{if(N.value||!g.value)return!1;const e=k.value.map(e=>C(e)??{}),l=Object.fromEntries(e.map(e=>[P(e.value),e]));return L.value.some(e=>l[P(e.value)])}),I=e=>{var l,a,u,o,t;const n=k.value;if(e){const e=Object.fromEntries(n.map(e=>[P(e),e]));k.value=[...n,...L.value.map(e=>y.value?e.nodePath.map(e=>e.value):e.value).filter(l=>!e[P(l)])],b.value=(null==(a=null==(l=L.value)?void 0:l[0])?void 0:a.level)??b.value,j.value=(null==(t=null==(o=null==(u=L.value)?void 0:u[0])?void 0:o.nodePath)?void 0:t.map(e=>e.index))??j.value}else{const e=Object.fromEntries(L.value.map(e=>y.value?e.nodePath.map(e=>e.value):e.value).map(e=>[P(e),e]));k.value=n.filter(l=>!e[P(l)]),b.value=c.value,j.value=f.value.map(e=>e.index)}},M=async e=>{if(!s.value&&!V.value){if(E.value&&a.isFunction(O)&&x.value==e){V.value=!0;const e=n.findOptionByValueAndLevel(h.value,d.value,c.value);await new Promise(l=>{O(e,a=>{e.children=(null==a?void 0:a.length)?a:[],l("")})}),V.value=!1,await l.sleep(0)}N.value||x.value!=e||(b.value=B.value?L.value[0].level:c.value+1,j.value=B.value?L.value[0].nodePath.map(e=>e.index):f.value.map(e=>e.index)),N.value&&"click"==e&&!g.value&&(k.value=y.value?f.value.map(e=>e.value):d.value,_())}},A=()=>{var e;return(null==(e=q.option)?void 0:e.call(q,{data:r}))??i.value};return(l,a)=>(e.openBlock(),e.createElementBlock("li",{tabindex:"0",role:"menuitem",class:e.normalizeClass(["yc-cascader-option",{"yc-cascader-option-selected":w.value||F.value,"yc-cascader-option-disabled":e.unref(s)}])},[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(t.default),{key:0,disabled:e.unref(s),"model-value":w.value,indeterminate:F.value,"onUpdate:modelValue":I},null,8,["disabled","model-value","indeterminate"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-cascader-option-label text-ellipsis",onMouseenter:a[0]||(a[0]=e=>M("hover")),onClick:a[1]||(a[1]=e=>M("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A))),E.value?(e.openBlock(),e.createBlock(e.unref(u),{key:0})):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createBlock(e.unref(o),{key:1,color:"rgb(22,93,255)",spin:""})):e.createCommentVNode("",!0)],32)],2))}});module.exports=v;
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),require("../_shared/utils/locale.js");/* empty css */const u=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../_shared/icons/IconLoading.vue.js"),t=require("../Checkbox/index.js"),n=require("./hooks/useContext.js"),v=e.defineComponent({__name:"CascaderOption",props:{level:{default:-1},index:{default:-1},nodePath:{default:()=>[]},label:{default:""},value:{default:""},render:{type:Function,default:void 0},disabled:{type:Boolean,default:!1},tagProps:{default:()=>({})},children:{default:()=>[]},isLeaf:{type:Boolean,default:!1}},setup(v){const r=v,{label:i,value:d,disabled:s,level:c,isLeaf:m,children:p,nodePath:f}=e.toRefs(r),{totalOptions:h,computedValue:k,pathMode:y,curLevel:b,curPath:j,multiple:g,expandTrigger:x,expandChild:B,slots:q,getOption:C,getValueKey:P,blur:_,loadMore:O}=n.default().inject(),V=e.ref(!1),E=e.computed(()=>a.isFunction(O)?!V.value&&!m.value&&!p.value.length:p.value.length),L=e.computed(()=>p.value.length?n.getLeafNodes(p.value):[C(d.value)]),N=e.computed(()=>!p.value.length),w=e.computed(()=>{var e;if(!k.value)return!1;if(!g.value){return null==(e=(C(k.value)??{}).nodePath)?void 0:e.some(e=>P(e.value)==P(d.value))}const l=k.value.map(e=>C(e)??{});if(N.value)return l.some(e=>P(null==e?void 0:e.value)==P(d.value));const a=Object.fromEntries(l.map(e=>[P(null==e?void 0:e.value),e]));return L.value.every(e=>a[P(e.value)])}),F=e.computed(()=>{if(N.value||!g.value)return!1;const e=k.value.map(e=>C(e)??{}),l=Object.fromEntries(e.map(e=>[P(e.value),e]));return L.value.some(e=>l[P(e.value)])}),I=e=>{var l,a,u,o,t;const n=k.value;if(e){const e=Object.fromEntries(n.map(e=>[P(e),e]));k.value=[...n,...L.value.map(e=>y.value?e.nodePath.map(e=>e.value):e.value).filter(l=>!e[P(l)])],b.value=(null==(a=null==(l=L.value)?void 0:l[0])?void 0:a.level)??b.value,j.value=(null==(t=null==(o=null==(u=L.value)?void 0:u[0])?void 0:o.nodePath)?void 0:t.map(e=>e.index))??j.value}else{const e=Object.fromEntries(L.value.map(e=>y.value?e.nodePath.map(e=>e.value):e.value).map(e=>[P(e),e]));k.value=n.filter(l=>!e[P(l)]),b.value=c.value,j.value=f.value.map(e=>e.index)}},M=async e=>{if(!s.value&&!V.value){if(E.value&&a.isFunction(O)&&x.value==e){V.value=!0;const e=n.findOptionByValueAndLevel(h.value,d.value,c.value);await new Promise(l=>{O(e,a=>{e.children=(null==a?void 0:a.length)?a:[],l("")})}),V.value=!1,await l.sleep(0)}N.value||x.value!=e||(b.value=B.value?L.value[0].level:c.value+1,j.value=B.value?L.value[0].nodePath.map(e=>e.index):f.value.map(e=>e.index)),N.value&&"click"==e&&!g.value&&(k.value=y.value?f.value.map(e=>e.value):d.value,_())}},A=()=>{var e;return(null==(e=q.option)?void 0:e.call(q,{data:r}))??i.value};return(l,a)=>(e.openBlock(),e.createElementBlock("li",{tabindex:"0",role:"menuitem",class:e.normalizeClass(["yc-cascader-option",{"yc-cascader-option-selected":w.value||F.value,"yc-cascader-option-disabled":e.unref(s)}])},[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(t.default),{key:0,disabled:e.unref(s),"model-value":w.value,indeterminate:F.value,"onUpdate:modelValue":I},null,8,["disabled","model-value","indeterminate"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-cascader-option-label text-ellipsis",onMouseenter:a[0]||(a[0]=e=>M("hover")),onClick:a[1]||(a[1]=e=>M("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A))),E.value?(e.openBlock(),e.createBlock(e.unref(u),{key:0})):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createBlock(e.unref(o),{key:1,color:"rgb(22,93,255)",spin:""})):e.createCommentVNode("",!0)],32)],2))}});module.exports=v;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./hooks/useContext.js"),n=require("./CascaderOption.vue.js");;/* empty css */const o=require("../Scrollbar/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js")
|
1
|
+
"use strict";const e=require("vue"),r=require("./hooks/useContext.js"),n=require("./CascaderOption.vue.js");;/* empty css */const o=require("../Scrollbar/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("../Spin/index.js"),c={role:"menu",class:"yc-cascader-list"},s=e.defineComponent({__name:"CascaderPanel",setup(s){const{renderEmpty:a}=l.getGlobalConfig(),{options:i,curLevel:u,curPath:d,maxLevel:m,loading:f,slots:p}=r.default().inject();return(l,s)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{tag:"div",name:"cascader-slide",class:"yc-cascader-panel"},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(t),{key:0,loading:e.unref(f)},null,8,["loading"])):e.unref(i).length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(e.unref(m),l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l,style:e.normalizeStyle({zIndex:e.unref(m)+1-l}),class:"yc-cascader-panel-column"},[e.createVNode(e.unref(o),{class:"yc-cascader-column-content"},{default:e.withCtx(()=>[e.createElementVNode("ul",c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r.findOptions)(e.unref(i),l,e.unref(d).slice(0,l-1)),(r,o)=>(e.openBlock(),e.createBlock(n,e.mergeProps({key:o},{ref_for:!0},r),null,16))),128))])]),_:2},1024)],4)),[[e.vShow,e.unref(u)>=l]])),128)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p).empty||e.unref(a)("Select")),{key:1}))]),_:1}))}});module.exports=s;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./hooks/useContext.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const c=require("../_shared/utils/global-config.js")
|
1
|
+
"use strict";const e=require("vue"),r=require("./hooks/useContext.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const c=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const o=require("./CascaderOption.vue.js");;/* empty css */const s=require("../Scrollbar/index.js"),t={class:"yc-cascader-panel yc-cascader-search-panel"},n={key:0,class:"yc-cascader-empty"},l={role:"menu",class:"yc-cascader-list"},a=e.defineComponent({__name:"CascaderSearchPanel",setup(a){const{renderEmpty:u}=c.getGlobalConfig(),{searchOptions:i,slots:d}=r.default().inject();return(r,c)=>(e.openBlock(),e.createElementBlock("div",t,[e.unref(i).length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",n,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d).empty||e.unref(u)("Select"))))])),e.createVNode(e.unref(s),{class:"yc-cascader-column-content"},{default:e.withCtx(()=>[e.createElementVNode("ul",l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(r,c)=>(e.openBlock(),e.createBlock(o,e.mergeProps({key:c},{ref_for:!0},r),null,16))),128))])]),_:1})]))}});module.exports=a;
|
@@ -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"),require("../../_shared/utils/dom.js");const l=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"),require("../../_shared/utils/dom.js");const l=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const a=require("../../_shared/utils/control.js"),r="cascader-context",t=(e,l=1,a=[])=>e.map((e,r)=>{const n={...e,index:r,level:l},i=[...a,n],o={...n,nodePath:i};return o.children&&o.children.length>0&&(o.children=t(o.children,l+1,i)),o}),n=e=>{const l=[],a=e=>{e.forEach(e=>{l.push(e),e.children&&e.children.length>0&&a(e.children)})};return a(e),l};function i(e,l){return e.map(e=>{const a={};return a.label=e[l.label]??e.label,a.value=e[l.value]??e.value,l.render&&(a.render=e[l.render]??e.render),l.disabled&&(a.disabled=e[l.disabled]??e.disabled),l.tagProps&&(a.tagProps=e[l.tagProps]??e.tagProps),l.isLeaf&&(a.isLeaf=e[l.isLeaf]??e.isLeaf),l.children&&e[l.children]?a.children=i(e[l.children],l):e.children&&(a.children=i(e.children,l)),a})}exports.default=()=>({provide:(o,u,d)=>{const{modelValue:s,defaultValue:p,inputValue:c,defaultInputValue:h,popupVisible:v,defaultPopupVisible:f,pathMode:m,searchDelay:g,multiple:b,disabled:x,allowClear:V,allowSearch:j,loading:O,fieldNames:P,valueKey:L,expandTrigger:y,expandChild:M,searchOptionOnlyLabel:q,options:_}=e.toRefs(o),{formatLabel:E,fallback:w,filterOption:C,loadMore:I}=o,S=a(s,p.value,e=>{u("update:modelValue",e),u("change",e)}),K=a(c,h.value,e=>{u("update:inputValue",e),u("input-value-change",e)}),T=a(v,f.value,e=>{u("update:popupVisible",e),u("popup-visible-change",e)}),k=e.ref([..._.value]),A=e.computed(()=>{const e=Object.fromEntries(["label","value","render","disabled","tagProps","children","isLeaf"].map(e=>{var l;return[e,(null==(l=P.value)?void 0:l[e])??e]}));return n(t(i(k.value,e)))}),B=e.computed(()=>Object.fromEntries([...A.value.map(e=>[Q(e.nodePath.map(e=>e.value)),e]),...A.value.map(e=>[Q(e),e])])),D=e.computed(()=>A.value.filter(e=>{var l;return!(null==(l=e.children)?void 0:l.length)})),F=e.computed(()=>D.value.filter(e=>C(K.value,e)).map(e=>{var l;return{...e,label:q.value?e.label:null==(l=e.nodePath)?void 0:l.map(e=>e.label).join(" / ")}})),N=e.computed(()=>(b.value?S.value:[S.value].map(e=>e)).map(e=>{var a,r;const t=U(e);return t?{...t,id:null==(a=t.nodePath)?void 0:a.map(e=>e.index).join("-"),label:(null==E?void 0:E(t.nodePath))??(null==(r=t.nodePath)?void 0:r.map(e=>e.label).join(" / "))}:l.isBoolean(w)&&w||l.isFunction(w)?{id:Q(e),label:l.isFunction(w)?w(e):Q(e),value:Q(e)}:null}).filter(e=>e)),R=e.ref(1),z=e.computed(()=>Math.max(...D.value.map(e=>e.level))||0),G=e.ref([]),H=e.useSlots(),J=e=>l.isObject(e)?e[L.value]:e,Q=e=>l.isArray(e)?e.map(e=>J(e)).join(" / "):J(e),U=e=>B.value[Q(e)];return e.watch(_,()=>{k.value=_.value},{deep:!0}),e.provide(r,{computedValue:S,computedInputValue:K,options:A,totalOptions:k,searchOptions:F,curLevel:R,maxLevel:z,curPath:G,expandTrigger:y,expandChild:M,pathMode:m,multiple:b,loading:O,slots:H,blur:function(){var e;null==(e=d.value)||e.blur()},getValueKey:Q,getOption:U,loadMore:I}),{computedValue:S,computedInputValue:K,computedVisible:T,options:A,optionMap:B,selectOptions:N,curLevel:R,curPath:G,multiple:b,pathMode:m,disabled:x,allowClear:V,allowSearch:j,searchDelay:g,loading:O,getValue:J,getValueKey:Q,getOption:U}},inject:()=>e.inject(r,{computedValue:e.ref(""),computedInputValue:e.ref(""),options:e.ref([]),totalOptions:e.ref([]),searchOptions:e.ref([]),expandTrigger:e.ref("click"),expandChild:e.ref(!1),curLevel:e.ref(1),maxLevel:e.ref(0),curPath:e.ref([]),pathMode:e.ref(!1),multiple:e.ref(!1),loading:e.ref(!1),slots:{},blur:()=>{},getValueKey:()=>"",getOption:()=>({})})}),exports.findOptionByValueAndLevel=function e(l,a,r,t=1){if(!(t>r))for(const n of l){if(t===r&&n.value===a)return n;if(n.children&&n.children.length>0){const l=e(n.children,a,r,t+1);if(l)return l}}},exports.findOptions=(e,l,a)=>1==l?e.filter(e=>e.level==l):e.filter(e=>{var r;return e.level==l&&(null==(r=e.nodePath)?void 0:r.slice(0,e.nodePath.length-1).map(e=>e.index).join(""))==a.join("")}),exports.flattenOptions=n,exports.getLeafNodes=e=>{const l=[];function a(e){e.children&&0!==e.children.length?e.children.forEach(e=>a(e)):l.push(e)}return e.forEach(e=>a(e)),l},exports.transformOptions=t;
|