yc-design-vue 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/es/Alert/index.d.ts +3 -3
- package/es/Alert/index.vue.d.ts +1 -1
- package/es/Alert/type.d.ts +2 -2
- package/es/Anchor/Anchor.vue.d.ts +1 -1
- package/es/Anchor/hooks/useContext.d.ts +1 -1
- package/es/Anchor/index.d.ts +3 -3
- package/es/Anchor/type.d.ts +3 -2
- package/es/AutoComplete/index.d.ts +18 -9
- package/es/AutoComplete/index.vue.d.ts +36 -18
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/index.d.ts +3 -3
- package/es/Avatar/type.d.ts +3 -2
- package/es/Badge/index.d.ts +3 -3
- package/es/Badge/index.vue.d.ts +1 -1
- package/es/Badge/type.d.ts +2 -2
- package/es/Button/Button.vue.d.ts +2 -2
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/hooks/useContext.d.ts +3 -3
- package/es/Button/index.d.ts +9 -9
- package/es/Button/type.d.ts +6 -6
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/index.d.ts +3 -3
- package/es/Card/type.d.ts +1 -2
- package/es/Carousel/Carousel.vue.d.ts +2 -2
- package/es/Carousel/hooks/useContext.d.ts +3 -3
- package/es/Carousel/index.d.ts +6 -6
- package/es/Carousel/type.d.ts +6 -6
- package/es/Cascader/Cascader.vue.d.ts +7 -7
- package/es/Cascader/index.d.ts +6 -6
- package/es/Collapse/hooks/useContext.d.ts +2 -13
- package/es/Collapse/hooks/useContext.js +0 -1
- package/es/Collapse/type.d.ts +2 -1
- package/es/Descriptions/Descriptions.vue.d.ts +3 -3
- package/es/Descriptions/hooks/useContext.d.ts +1 -1
- package/es/Descriptions/index.d.ts +9 -9
- package/es/Descriptions/type.d.ts +7 -6
- package/es/Divider/index.d.ts +6 -6
- package/es/Divider/index.vue.d.ts +2 -2
- package/es/Divider/type.d.ts +4 -3
- package/es/Drawer/Drawer.vue.d.ts +1 -1
- package/es/Drawer/DrawerService.vue.d.ts +1 -1
- package/es/Drawer/index.d.ts +5 -9
- package/es/Drawer/type.d.ts +8 -4
- package/es/Dropdown/Dropdown.vue.d.ts +1 -1
- package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
- package/es/Dropdown/index.d.ts +9 -9
- package/es/Dropdown/type.d.ts +4 -6
- package/es/Grid/hooks/useContext.d.ts +0 -11
- package/es/Grid/hooks/useContext.js +0 -1
- package/es/Image/Image.vue.d.ts +2 -2
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/index.d.ts +6 -6
- package/es/Image/type.d.ts +3 -2
- package/es/Input/Input.vue.d.ts +1 -1
- package/es/Input/InputSuffix.vue.js +1 -1
- package/es/Input/index.d.ts +3 -3
- package/es/InputNumber/InputNumber.vue.d.ts +8 -8
- package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
- package/es/InputNumber/index.d.ts +9 -9
- package/es/InputNumber/type.d.ts +5 -4
- package/es/InputTag/index.d.ts +15 -6
- package/es/InputTag/index.vue.d.ts +5 -2
- package/es/InputTag/type.d.ts +2 -1
- package/es/Layout/LayoutSider.vue.d.ts +3 -3
- package/es/Layout/index.d.ts +8 -8
- package/es/Layout/type.d.ts +3 -4
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/type.d.ts +2 -2
- package/es/List/List.vue.d.ts +7 -7
- package/es/List/index.d.ts +6 -6
- package/es/List/type.d.ts +2 -3
- package/es/Mention/index.d.ts +21 -12
- package/es/Mention/index.vue.d.ts +37 -19
- package/es/Mention/type.d.ts +3 -2
- package/es/Menu/Menu.vue.d.ts +2 -2
- package/es/Menu/index.d.ts +5 -5
- package/es/Menu/type.d.ts +2 -2
- package/es/Message/type.d.ts +3 -3
- package/es/Modal/Modal.vue.d.ts +1 -1
- package/es/Modal/ModalService.vue.d.ts +1 -1
- package/es/Modal/index.d.ts +13 -13
- package/es/Modal/index.js +1 -4
- package/es/Modal/type.d.ts +6 -9
- package/es/Notification/Notification.vue.d.ts +1 -1
- package/es/Notification/index.d.ts +4 -4
- package/es/Notification/type.d.ts +3 -4
- package/es/OverflowList/index.d.ts +3 -3
- package/es/OverflowList/index.vue.d.ts +1 -1
- package/es/OverflowList/type.d.ts +3 -2
- package/es/Popconfirm/index.d.ts +3 -3
- package/es/Popconfirm/index.vue.d.ts +1 -1
- package/es/Popconfirm/type.d.ts +2 -3
- package/es/Progress/Progress.vue.d.ts +1 -1
- package/es/Progress/ProgressCircle.vue.d.ts +3 -3
- package/es/Progress/ProgressLine.vue.d.ts +3 -3
- package/es/Progress/index.d.ts +3 -3
- package/es/Progress/type.d.ts +2 -3
- package/es/Radio/type.d.ts +1 -1
- package/es/ResizeBox/index.d.ts +3 -3
- package/es/ResizeBox/index.vue.d.ts +2 -2
- package/es/ResizeBox/type.d.ts +4 -4
- package/es/Result/index.d.ts +3 -3
- package/es/Result/index.vue.d.ts +1 -1
- package/es/Result/type.d.ts +3 -2
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Scrollbar/type.d.ts +2 -1
- package/es/Select/Select.vue.d.ts +31 -13
- package/es/Select/hooks/useContext.d.ts +2 -2
- package/es/Select/hooks/useSelectOptions.d.ts +2 -2
- package/es/Select/index.d.ts +18 -9
- package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
- package/es/Skeleton/index.d.ts +2 -2
- package/es/Skeleton/type.d.ts +2 -4
- package/es/Space/index.d.ts +6 -6
- package/es/Space/index.vue.d.ts +2 -2
- package/es/Space/type.d.ts +5 -4
- package/es/Switch/index.d.ts +9 -9
- package/es/Switch/index.vue.d.ts +3 -3
- package/es/Switch/type.d.ts +4 -4
- package/es/Tabs/Tabs.vue.d.ts +1 -1
- package/es/Tabs/hooks/useContext.d.ts +4 -4
- package/es/Tabs/index.d.ts +3 -3
- package/es/Tabs/type.d.ts +2 -3
- package/es/Tag/index.d.ts +3 -3
- package/es/Tag/index.vue.d.ts +1 -1
- package/es/Tag/type.d.ts +1 -2
- package/es/Textarea/type.d.ts +2 -2
- package/es/TimePicker/TimePicker.vue.d.ts +1 -1
- package/es/TimePicker/index.d.ts +3 -3
- package/es/Timeline/TimelineItem.vue.d.ts +1 -1
- package/es/Timeline/index.d.ts +3 -3
- package/es/Timeline/type.d.ts +3 -4
- package/es/Transfer/TransferPanel.vue.js +1 -1
- package/es/Typography/TypographyBase.vue.d.ts +7 -7
- package/es/Typography/TypographyBase.vue.js +2 -2
- package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/es/Typography/TypographyTitle.vue.d.ts +1 -1
- package/es/Typography/type.d.ts +5 -4
- package/es/Upload/Upload.vue.d.ts +53 -0
- package/es/Upload/Upload.vue.js +110 -0
- package/es/Upload/Upload.vue3.js +5 -0
- package/es/Upload/UploadButton.vue.d.ts +2 -0
- package/es/Upload/UploadButton.vue.js +39 -0
- package/es/Upload/UploadButton.vue3.js +5 -0
- package/es/Upload/UploadDrag.vue.d.ts +2 -0
- package/es/Upload/UploadDrag.vue.js +37 -0
- package/es/Upload/UploadDrag.vue3.js +5 -0
- package/es/Upload/UploadFileList.vue.d.ts +24 -0
- package/es/Upload/UploadFileList.vue.js +7 -0
- package/es/Upload/UploadFileList.vue2.js +126 -0
- package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
- package/es/Upload/UploadPictureCard.vue.js +7 -0
- package/es/Upload/UploadPictureCard.vue2.js +132 -0
- package/es/Upload/hooks/useContext.d.ts +49 -0
- package/es/Upload/hooks/useContext.js +92 -0
- package/es/Upload/hooks/useUpload.d.ts +47 -0
- package/es/Upload/hooks/useUpload.js +80 -0
- package/es/Upload/index.css +1 -0
- package/es/Upload/index.d.ts +123 -0
- package/es/Upload/index.js +10 -0
- package/es/Upload/type.d.ts +72 -0
- package/es/VerificationCode/index.d.ts +3 -3
- package/es/VerificationCode/index.vue.d.ts +1 -1
- package/es/VerificationCode/type.d.ts +5 -4
- package/es/_shared/icons/IconCopy.vue.js +1 -19
- package/es/_shared/icons/IconCopy.vue2.js +19 -1
- package/es/_shared/icons/IconDelete.vue.js +19 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -19
- package/es/_shared/icons/IconEdit.vue.js +1 -19
- package/es/_shared/icons/IconEdit.vue2.js +19 -1
- package/es/_shared/icons/IconEyeClose.vue.js +23 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -23
- package/es/_shared/icons/IconFile.vue.d.ts +2 -0
- package/es/_shared/icons/IconFile.vue.js +22 -0
- package/es/_shared/icons/IconFile.vue2.js +4 -0
- package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
- package/es/_shared/icons/IconUpload.vue.js +22 -0
- package/es/_shared/icons/IconUpload.vue2.js +4 -0
- package/es/_shared/icons/index.d.ts +2 -0
- package/es/_shared/type/index.d.ts +3 -1
- package/es/_shared/utils/vue-utils.d.ts +1 -1
- package/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/es/index.d.ts +31 -30
- package/es/index.js +5 -3
- package/es/node_modules/@vueuse/core/index.js +171 -9
- package/es/node_modules/@vueuse/shared/index.js +29 -0
- package/es/style.css +1 -1
- package/lib/Alert/index.d.ts +3 -3
- package/lib/Alert/index.vue.d.ts +1 -1
- package/lib/Alert/type.d.ts +2 -2
- package/lib/Anchor/Anchor.vue.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +1 -1
- package/lib/Anchor/index.d.ts +3 -3
- package/lib/Anchor/type.d.ts +3 -2
- package/lib/AutoComplete/index.d.ts +18 -9
- package/lib/AutoComplete/index.vue.d.ts +36 -18
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/Avatar/type.d.ts +3 -2
- package/lib/Badge/index.d.ts +3 -3
- package/lib/Badge/index.vue.d.ts +1 -1
- package/lib/Badge/type.d.ts +2 -2
- package/lib/Button/Button.vue.d.ts +2 -2
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/hooks/useContext.d.ts +3 -3
- package/lib/Button/index.d.ts +9 -9
- package/lib/Button/type.d.ts +6 -6
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/index.d.ts +3 -3
- package/lib/Card/type.d.ts +1 -2
- package/lib/Carousel/Carousel.vue.d.ts +2 -2
- package/lib/Carousel/hooks/useContext.d.ts +3 -3
- package/lib/Carousel/index.d.ts +6 -6
- package/lib/Carousel/type.d.ts +6 -6
- package/lib/Cascader/Cascader.vue.d.ts +7 -7
- package/lib/Cascader/index.d.ts +6 -6
- package/lib/Collapse/hooks/useContext.d.ts +2 -13
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/Collapse/type.d.ts +2 -1
- package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
- package/lib/Descriptions/hooks/useContext.d.ts +1 -1
- package/lib/Descriptions/index.d.ts +9 -9
- package/lib/Descriptions/type.d.ts +7 -6
- package/lib/Divider/index.d.ts +6 -6
- package/lib/Divider/index.vue.d.ts +2 -2
- package/lib/Divider/type.d.ts +4 -3
- package/lib/Drawer/Drawer.vue.d.ts +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +1 -1
- package/lib/Drawer/index.d.ts +5 -9
- package/lib/Drawer/type.d.ts +8 -4
- package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
- package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
- package/lib/Dropdown/index.d.ts +9 -9
- package/lib/Dropdown/type.d.ts +4 -6
- package/lib/Grid/hooks/useContext.d.ts +0 -11
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Image/Image.vue.d.ts +2 -2
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/index.d.ts +6 -6
- package/lib/Image/type.d.ts +3 -2
- package/lib/Input/Input.vue.d.ts +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/index.d.ts +3 -3
- package/lib/InputNumber/InputNumber.vue.d.ts +8 -8
- package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
- package/lib/InputNumber/index.d.ts +9 -9
- package/lib/InputNumber/type.d.ts +5 -4
- package/lib/InputTag/index.d.ts +15 -6
- package/lib/InputTag/index.vue.d.ts +5 -2
- package/lib/InputTag/type.d.ts +2 -1
- package/lib/Layout/LayoutSider.vue.d.ts +3 -3
- package/lib/Layout/index.d.ts +8 -8
- package/lib/Layout/type.d.ts +3 -4
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/type.d.ts +2 -2
- package/lib/List/List.vue.d.ts +7 -7
- package/lib/List/index.d.ts +6 -6
- package/lib/List/type.d.ts +2 -3
- package/lib/Mention/index.d.ts +21 -12
- package/lib/Mention/index.vue.d.ts +37 -19
- package/lib/Mention/type.d.ts +3 -2
- package/lib/Menu/Menu.vue.d.ts +2 -2
- package/lib/Menu/index.d.ts +5 -5
- package/lib/Menu/type.d.ts +2 -2
- package/lib/Message/type.d.ts +3 -3
- package/lib/Modal/Modal.vue.d.ts +1 -1
- package/lib/Modal/ModalService.vue.d.ts +1 -1
- package/lib/Modal/index.d.ts +13 -13
- package/lib/Modal/index.js +1 -1
- package/lib/Modal/type.d.ts +6 -9
- package/lib/Notification/Notification.vue.d.ts +1 -1
- package/lib/Notification/index.d.ts +4 -4
- package/lib/Notification/type.d.ts +3 -4
- package/lib/OverflowList/index.d.ts +3 -3
- package/lib/OverflowList/index.vue.d.ts +1 -1
- package/lib/OverflowList/type.d.ts +3 -2
- package/lib/Popconfirm/index.d.ts +3 -3
- package/lib/Popconfirm/index.vue.d.ts +1 -1
- package/lib/Popconfirm/type.d.ts +2 -3
- package/lib/Progress/Progress.vue.d.ts +1 -1
- package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
- package/lib/Progress/ProgressLine.vue.d.ts +3 -3
- package/lib/Progress/index.d.ts +3 -3
- package/lib/Progress/type.d.ts +2 -3
- package/lib/Radio/type.d.ts +1 -1
- package/lib/ResizeBox/index.d.ts +3 -3
- package/lib/ResizeBox/index.vue.d.ts +2 -2
- package/lib/ResizeBox/type.d.ts +4 -4
- package/lib/Result/index.d.ts +3 -3
- package/lib/Result/index.vue.d.ts +1 -1
- package/lib/Result/type.d.ts +3 -2
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Scrollbar/type.d.ts +2 -1
- package/lib/Select/Select.vue.d.ts +31 -13
- package/lib/Select/hooks/useContext.d.ts +2 -2
- package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
- package/lib/Select/index.d.ts +18 -9
- package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
- package/lib/Skeleton/index.d.ts +2 -2
- package/lib/Skeleton/type.d.ts +2 -4
- package/lib/Space/index.d.ts +6 -6
- package/lib/Space/index.vue.d.ts +2 -2
- package/lib/Space/type.d.ts +5 -4
- package/lib/Switch/index.d.ts +9 -9
- package/lib/Switch/index.vue.d.ts +3 -3
- package/lib/Switch/type.d.ts +4 -4
- package/lib/Tabs/Tabs.vue.d.ts +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +4 -4
- package/lib/Tabs/index.d.ts +3 -3
- package/lib/Tabs/type.d.ts +2 -3
- package/lib/Tag/index.d.ts +3 -3
- package/lib/Tag/index.vue.d.ts +1 -1
- package/lib/Tag/type.d.ts +1 -2
- package/lib/Textarea/type.d.ts +2 -2
- package/lib/TimePicker/TimePicker.vue.d.ts +1 -1
- package/lib/TimePicker/index.d.ts +3 -3
- package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
- package/lib/Timeline/index.d.ts +3 -3
- package/lib/Timeline/type.d.ts +3 -4
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +7 -7
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
- package/lib/Typography/type.d.ts +5 -4
- package/lib/Upload/Upload.vue.d.ts +53 -0
- package/lib/Upload/Upload.vue.js +1 -0
- package/lib/Upload/Upload.vue3.js +1 -0
- package/lib/Upload/UploadButton.vue.d.ts +2 -0
- package/lib/Upload/UploadButton.vue.js +1 -0
- package/lib/Upload/UploadButton.vue3.js +1 -0
- package/lib/Upload/UploadDrag.vue.d.ts +2 -0
- package/lib/Upload/UploadDrag.vue.js +1 -0
- package/lib/Upload/UploadDrag.vue3.js +1 -0
- package/lib/Upload/UploadFileList.vue.d.ts +24 -0
- package/lib/Upload/UploadFileList.vue.js +1 -0
- package/lib/Upload/UploadFileList.vue2.js +1 -0
- package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
- package/lib/Upload/UploadPictureCard.vue.js +1 -0
- package/lib/Upload/UploadPictureCard.vue2.js +1 -0
- package/lib/Upload/hooks/useContext.d.ts +49 -0
- package/lib/Upload/hooks/useContext.js +1 -0
- package/lib/Upload/hooks/useUpload.d.ts +47 -0
- package/lib/Upload/hooks/useUpload.js +1 -0
- package/lib/Upload/index.css +1 -0
- package/lib/Upload/index.d.ts +123 -0
- package/lib/Upload/index.js +1 -0
- package/lib/Upload/type.d.ts +72 -0
- package/lib/VerificationCode/index.d.ts +3 -3
- package/lib/VerificationCode/index.vue.d.ts +1 -1
- package/lib/VerificationCode/type.d.ts +5 -4
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
- package/lib/_shared/icons/IconFile.vue.js +1 -0
- package/lib/_shared/icons/IconFile.vue2.js +1 -0
- package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
- package/lib/_shared/icons/IconUpload.vue.js +1 -0
- package/lib/_shared/icons/IconUpload.vue2.js +1 -0
- package/lib/_shared/icons/index.d.ts +2 -0
- package/lib/_shared/type/index.d.ts +3 -1
- package/lib/_shared/utils/vue-utils.d.ts +1 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/lib/index.d.ts +31 -30
- package/lib/index.js +1 -1
- package/lib/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/@vueuse/shared/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -23,7 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownProps, {
|
|
23
23
|
popupVisible: boolean;
|
24
24
|
defaultPopupVisible: boolean;
|
25
25
|
alignPoint: boolean;
|
26
|
-
position: import('
|
26
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
27
27
|
triggerProps: import('../Trigger').TriggerProps;
|
28
28
|
hideOnSelect: boolean;
|
29
29
|
popupMaxHeight: import('..').PopupMaxHeight;
|
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
|
|
22
22
|
popupVisible: boolean;
|
23
23
|
defaultPopupVisible: boolean;
|
24
24
|
disabled: boolean;
|
25
|
-
position: import('
|
25
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
26
26
|
hideOnSelect: boolean;
|
27
27
|
buttonProps: import('../Button').ButtonProps;
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
@@ -321,7 +321,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
321
321
|
popupVisible: boolean;
|
322
322
|
defaultPopupVisible: boolean;
|
323
323
|
disabled: boolean;
|
324
|
-
position: import('
|
324
|
+
position: Extract<import('..').PopupPosition, "rt" | "lt">;
|
325
325
|
triggerProps: import('../Trigger').TriggerProps;
|
326
326
|
popupMaxHeight: import('..').PopupMaxHeight;
|
327
327
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
package/lib/Dropdown/index.d.ts
CHANGED
@@ -28,7 +28,7 @@ declare const Dropdown: {
|
|
28
28
|
popupVisible: boolean;
|
29
29
|
defaultPopupVisible: boolean;
|
30
30
|
alignPoint: boolean;
|
31
|
-
position: import('
|
31
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
32
32
|
triggerProps: import('..').TriggerProps;
|
33
33
|
hideOnSelect: boolean;
|
34
34
|
popupMaxHeight: import('..').PopupMaxHeight;
|
@@ -52,7 +52,7 @@ declare const Dropdown: {
|
|
52
52
|
popupVisible: boolean;
|
53
53
|
defaultPopupVisible: boolean;
|
54
54
|
alignPoint: boolean;
|
55
|
-
position: import('
|
55
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
56
56
|
triggerProps: import('..').TriggerProps;
|
57
57
|
hideOnSelect: boolean;
|
58
58
|
popupMaxHeight: import('..').PopupMaxHeight;
|
@@ -77,7 +77,7 @@ declare const Dropdown: {
|
|
77
77
|
popupVisible: boolean;
|
78
78
|
defaultPopupVisible: boolean;
|
79
79
|
alignPoint: boolean;
|
80
|
-
position: import('
|
80
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
81
81
|
triggerProps: import('..').TriggerProps;
|
82
82
|
hideOnSelect: boolean;
|
83
83
|
popupMaxHeight: import('..').PopupMaxHeight;
|
@@ -153,7 +153,7 @@ declare const Dropdown: {
|
|
153
153
|
popupVisible: boolean;
|
154
154
|
defaultPopupVisible: boolean;
|
155
155
|
disabled: boolean;
|
156
|
-
position: import('
|
156
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
157
157
|
hideOnSelect: boolean;
|
158
158
|
buttonProps: import('..').ButtonProps;
|
159
159
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -175,7 +175,7 @@ declare const Dropdown: {
|
|
175
175
|
popupVisible: boolean;
|
176
176
|
defaultPopupVisible: boolean;
|
177
177
|
disabled: boolean;
|
178
|
-
position: import('
|
178
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
179
179
|
hideOnSelect: boolean;
|
180
180
|
buttonProps: import('..').ButtonProps;
|
181
181
|
}>;
|
@@ -198,7 +198,7 @@ declare const Dropdown: {
|
|
198
198
|
popupVisible: boolean;
|
199
199
|
defaultPopupVisible: boolean;
|
200
200
|
disabled: boolean;
|
201
|
-
position: import('
|
201
|
+
position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
|
202
202
|
hideOnSelect: boolean;
|
203
203
|
buttonProps: import('..').ButtonProps;
|
204
204
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -219,7 +219,7 @@ declare const Dropdown: {
|
|
219
219
|
popupVisible: boolean;
|
220
220
|
defaultPopupVisible: boolean;
|
221
221
|
disabled: boolean;
|
222
|
-
position: import('
|
222
|
+
position: Extract<import('..').PopupPosition, "rt" | "lt">;
|
223
223
|
triggerProps: import('..').TriggerProps;
|
224
224
|
popupMaxHeight: import('..').PopupMaxHeight;
|
225
225
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
@@ -540,7 +540,7 @@ declare const Dropdown: {
|
|
540
540
|
popupVisible: boolean;
|
541
541
|
defaultPopupVisible: boolean;
|
542
542
|
disabled: boolean;
|
543
|
-
position: import('
|
543
|
+
position: Extract<import('..').PopupPosition, "rt" | "lt">;
|
544
544
|
triggerProps: import('..').TriggerProps;
|
545
545
|
popupMaxHeight: import('..').PopupMaxHeight;
|
546
546
|
}>;
|
@@ -561,7 +561,7 @@ declare const Dropdown: {
|
|
561
561
|
popupVisible: boolean;
|
562
562
|
defaultPopupVisible: boolean;
|
563
563
|
disabled: boolean;
|
564
|
-
position: import('
|
564
|
+
position: Extract<import('..').PopupPosition, "rt" | "lt">;
|
565
565
|
triggerProps: import('..').TriggerProps;
|
566
566
|
popupMaxHeight: import('..').PopupMaxHeight;
|
567
567
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
package/lib/Dropdown/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { EventTrigger, RecordType, PopupContainer, PopupMaxHeight, Size } from '../_shared/type';
|
1
|
+
import { EventTrigger, RecordType, PopupContainer, PopupMaxHeight, PopupPosition, Size } from '../_shared/type';
|
2
2
|
import { TriggerProps, TriggerType } from '../Trigger';
|
3
3
|
import { ButtonProps, ButtonType } from '../Button';
|
4
4
|
import { VNode } from 'vue';
|
@@ -6,7 +6,7 @@ export interface DropdownProps {
|
|
6
6
|
popupVisible?: boolean;
|
7
7
|
defaultPopupVisible?: boolean;
|
8
8
|
trigger?: TriggerType;
|
9
|
-
position?:
|
9
|
+
position?: Extract<PopupPosition, 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl'>;
|
10
10
|
popupContainer?: PopupContainer;
|
11
11
|
hideOnSelect?: boolean;
|
12
12
|
alignPoint?: boolean;
|
@@ -41,7 +41,7 @@ export interface DoptionSlots {
|
|
41
41
|
export interface DsubmenuProps {
|
42
42
|
disabled?: boolean;
|
43
43
|
trigger?: EventTrigger;
|
44
|
-
position?:
|
44
|
+
position?: Extract<PopupPosition, 'rt' | 'lt'>;
|
45
45
|
popupVisible?: boolean;
|
46
46
|
defaultPopupVisible?: boolean;
|
47
47
|
triggerProps?: TriggerProps;
|
@@ -67,7 +67,7 @@ export interface DropdownButtonProps {
|
|
67
67
|
popupVisible?: boolean;
|
68
68
|
defaultPopupVisible?: boolean;
|
69
69
|
trigger?: TriggerType;
|
70
|
-
position?:
|
70
|
+
position?: Extract<PopupPosition, 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl'>;
|
71
71
|
popupContainer?: PopupContainer;
|
72
72
|
disabled?: boolean;
|
73
73
|
type?: ButtonType;
|
@@ -81,5 +81,3 @@ export interface DropdownButtonSlots {
|
|
81
81
|
icon?: () => VNode[];
|
82
82
|
}
|
83
83
|
export type DoptionValue = string | number | boolean | RecordType;
|
84
|
-
export type DropdownPosition = 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl';
|
85
|
-
export type DsubmenuPosition = 'rt' | 'lt';
|
@@ -1,17 +1,6 @@
|
|
1
1
|
import { Ref, Reactive } from 'vue';
|
2
2
|
import { GridRowGutter } from '../type';
|
3
3
|
import { RecordType, BreakpointName } from '../../_shared/type';
|
4
|
-
export declare const GRID_CONTEXT_KEY = "grid-context";
|
5
|
-
export type GridContext = {
|
6
|
-
breakpoint: Ref<BreakpointName>;
|
7
|
-
div: Ref<boolean>;
|
8
|
-
gutter: Ref<number[]>;
|
9
|
-
cols: Ref<number>;
|
10
|
-
colGap: Ref<number>;
|
11
|
-
spanMap: Reactive<SpanMap>;
|
12
|
-
collapsed: Ref<boolean>;
|
13
|
-
collapsedRows: Ref<number>;
|
14
|
-
};
|
15
4
|
export type SpanMap = Map<string, {
|
16
5
|
id: string;
|
17
6
|
span: number;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),o=require("../../_shared/utils/dom.js"),t="grid-context";exports.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),o=require("../../_shared/utils/dom.js"),t="grid-context";exports.default=function(){return{provide:r=>{const{gutter:l=e.ref(0),cols:u=e.ref(24),rowGap:s=e.ref(0),colGap:p=e.ref(0),collapsed:n=e.ref(!1),collapsedRows:i=e.ref(1),div:c=e.ref(!1)}=e.toRefs(r),d=e.reactive(new Map),f=e.ref("xxl"),v=e.computed(()=>o.getBreakpointValue(f.value,u.value,24)),g=e.computed(()=>o.getBreakpointValue(f.value,s.value)),m=e.computed(()=>o.getBreakpointValue(f.value,p.value,0)),w=e.computed(()=>a.isArray(l.value)?l.value.map(e=>o.getBreakpointValue(f.value,e,0)):[o.getBreakpointValue(f.value,l.value,0),0]);return e.provide(t,{breakpoint:f,gutter:w,div:c,spanMap:d,cols:v,colGap:m,collapsed:n,collapsedRows:i}),{breakpoint:f,cols:v,colGap:m,rowGap:g,gutter:w}},inject:()=>{const a=e.inject(t,{gutter:e.ref([0,0]),breakpoint:e.ref("xs"),div:e.ref(!1),colGap:e.ref(0),cols:e.ref(24),collapsed:e.ref(!1),collapsedRows:e.ref(1),spanMap:new Map}),{spanMap:o}=a;return{...a,collectSpan:(a,t)=>{const l=r.nanoid();return e.watchEffect(()=>{o.set(l,{id:l,suffix:t.value,span:a.value})}),e.onBeforeUnmount(()=>{o.delete(l)}),{id:l}}}}}};
|
package/lib/Image/Image.vue.d.ts
CHANGED
@@ -16,8 +16,8 @@ declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {},
|
|
16
16
|
title: string;
|
17
17
|
description: string;
|
18
18
|
src: string;
|
19
|
-
hideFooter:
|
20
|
-
footerPosition:
|
19
|
+
hideFooter: boolean | "never";
|
20
|
+
footerPosition: "outer" | "inner";
|
21
21
|
showLoader: boolean;
|
22
22
|
preview: boolean;
|
23
23
|
previewVisible: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../_shared/utils/dom.js"),/* empty css */,/* empty css */;/* empty css */const o=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/utils/control.js"),t=require("../_shared/utils/global-config.js"),l=require("../node_modules/@vueuse/core/index.js"),r=require("../Modal/hooks/useModalClose.js"),s=require("./ImagePreviewToolbar.vue.js");;/* empty css */const i={class:"yc-image-preview-mask"},n=["src"],u=e.defineComponent({name:"ImagePreview",inheritAttrs:!1,__name:"ImagePreview",props:{src:{default:""},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{default:void 0},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{default:1},zoomRate:{default:1.1}},emits:["update:visible","close"],setup(u,{emit:c}){const d=e.useSlots(),f=u,m=c,{visible:v,defaultVisible:p,maskClosable:w,escToClose:y,defaultScale:g,zoomRate:h,wheelZoom:k,keyboard:b}=e.toRefs(f),{zIndex:C,popupContainer:S,isAbsolute:z}=t.getGlobalConfig(f),B=e.ref(),V=a.useControlValue(e.ref(),g.value),_=e.ref(0),{outerVisible:j,innerVisible:q,handleClose:x,handleAfterLeave:I}=r.default({visible:v,defaultVisible:p,escToClose:y,maskClosable:w,onBeforeOk:()=>!0,onBeforeCancel:()=>!0,emits:m}),L=e=>{switch(e){case"rotateRight":_.value+=90;break;case"rotateLeft":_.value-=90;break;case"zoomIn":V.value*=h.value;break;case"zoomOut":V.value/=h.value;break;case"originalSize":V.value=g.value,_.value=0;break;case"fullScreen":{const{offsetWidth:e,offsetHeight:o}=B.value;V.value=e>o?window.innerHeight/o:window.innerHeight/e}}};return(()=>{if(k.value&&l.useEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const o=e.deltaY<0?1:-1;V.value*=Math.pow(h.value,o)}),b.value){const e={ArrowUp:"zoomIn",ArrowDown:"zoomOut"," ":"originalSize"};l.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{L(e[o.key])})}})(),(a,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(S)},[e.unref(j)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-image-preview",a.$attrs.class,{"yc-image-preview-absolute":e.unref(z)}]),style:e.normalizeStyle({zIndex:e.unref(C),...a.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",i,null,512),[[e.vShow,e.unref(q)]])]),_:1}),e.createVNode(e.Transition,{name:"fade",onAfterLeave:e.unref(I)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-image-preview-wrapper",onClick:t[2]||(t[2]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`scale(${e.unref(V)}, ${e.unref(V)})`}),class:"yc-image-preview-img-container",onClick:t[0]||(t[0]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("img",{src:a.src,style:e.normalizeStyle({transform:`translate(-50%, -50%) rotate(${_.value}deg)`}),class:"yc-image-preview-img",ref_key:"imageRef",ref:B},null,12,n)],4),e.createVNode(s.default,{actionsLayout:a.actionsLayout,onClick:L},e.createSlots({_:2},[d.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"actions")]),key:"0"}:void 0]),1032,["actionsLayout"]),e.renderSlot(a.$slots,"arrow"),a.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-image-preview-close-btn",onClick:t[1]||(t[1]=o=>e.unref(x)("closeBtn",o))},[e.createVNode(e.unref(o.default))])):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(q)]])]),_:3},8,["onAfterLeave"])],6)):e.createCommentVNode("",!0)],8,["to"]))}});exports.default=u;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../_shared/utils/dom.js"),/* empty css */,/* empty css */;/* empty css */const o=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/utils/control.js"),t=require("../_shared/utils/global-config.js"),l=require("../node_modules/@vueuse/core/index.js"),r=require("../Modal/hooks/useModalClose.js"),s=require("./ImagePreviewToolbar.vue.js");;/* empty css */const i={class:"yc-image-preview-mask"},n=["src"],u=e.defineComponent({name:"ImagePreview",inheritAttrs:!1,__name:"ImagePreview",props:{src:{default:""},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{default:void 0},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{default:1},zoomRate:{default:1.1}},emits:["update:visible","close"],setup(u,{emit:c}){const d=e.useSlots(),f=u,m=c,{visible:v,defaultVisible:p,maskClosable:w,escToClose:y,defaultScale:g,zoomRate:h,wheelZoom:k,keyboard:b}=e.toRefs(f),{zIndex:C,popupContainer:S,isAbsolute:z}=t.getGlobalConfig(f),B=e.ref(),V=a.useControlValue(e.ref(),g.value),_=e.ref(0),{outerVisible:j,innerVisible:q,handleClose:x,handleAfterLeave:I}=r.default({visible:v,defaultVisible:p,escToClose:y,maskClosable:w,onBeforeOk:()=>!0,onBeforeCancel:()=>!0,emits:m}),L=e=>{switch(e){case"rotateRight":_.value+=90;break;case"rotateLeft":_.value-=90;break;case"zoomIn":V.value*=h.value;break;case"zoomOut":V.value/=h.value;break;case"originalSize":V.value=g.value,_.value=0;break;case"fullScreen":{const{offsetWidth:e,offsetHeight:o}=B.value;V.value=e>o?window.innerHeight/o:window.innerHeight/e}}};return(()=>{if(k.value&&l.useEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const o=e.deltaY<0?1:-1;V.value*=Math.pow(h.value,o)}),b.value){const e={ArrowUp:"zoomIn",ArrowDown:"zoomOut"," ":"originalSize"};l.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{L(e[o.key])})}})(),(a,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(S)},[e.unref(j)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-image-preview",a.$attrs.class,{"yc-image-preview-absolute":e.unref(z)}]),style:e.normalizeStyle({zIndex:e.unref(C),...a.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",i,null,512),[[e.vShow,e.unref(q)]])]),_:1}),e.createVNode(e.Transition,{name:"fade",onAfterLeave:e.unref(I)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-image-preview-wrapper",onClick:t[2]||(t[2]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`scale(${e.unref(V)}, ${e.unref(V)})`}),class:"yc-image-preview-img-container",onClick:t[0]||(t[0]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("img",{src:a.src,style:e.normalizeStyle({transform:`translate(-50%, -50%) rotate(${_.value}deg)`}),class:"yc-image-preview-img",ref_key:"imageRef",ref:B},null,12,n)],4),e.createVNode(s.default,{actionsLayout:a.actionsLayout,onClick:L},e.createSlots({_:2},[d.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"actions")]),key:"0"}:void 0]),1032,["actionsLayout"]),e.renderSlot(a.$slots,"arrow"),a.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-image-preview-close-btn",onClick:t[1]||(t[1]=o=>e.unref(x)("closeBtn",o,!1))},[e.createVNode(e.unref(o.default))])):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(q)]])]),_:3},8,["onAfterLeave"])],6)):e.createCommentVNode("",!0)],8,["to"]))}});exports.default=u;
|
package/lib/Image/index.d.ts
CHANGED
@@ -19,8 +19,8 @@ declare const Image: {
|
|
19
19
|
title: string;
|
20
20
|
description: string;
|
21
21
|
src: string;
|
22
|
-
hideFooter:
|
23
|
-
footerPosition:
|
22
|
+
hideFooter: boolean | "never";
|
23
|
+
footerPosition: "outer" | "inner";
|
24
24
|
showLoader: boolean;
|
25
25
|
preview: boolean;
|
26
26
|
previewVisible: boolean;
|
@@ -41,8 +41,8 @@ declare const Image: {
|
|
41
41
|
title: string;
|
42
42
|
description: string;
|
43
43
|
src: string;
|
44
|
-
hideFooter:
|
45
|
-
footerPosition:
|
44
|
+
hideFooter: boolean | "never";
|
45
|
+
footerPosition: "outer" | "inner";
|
46
46
|
showLoader: boolean;
|
47
47
|
preview: boolean;
|
48
48
|
previewVisible: boolean;
|
@@ -63,8 +63,8 @@ declare const Image: {
|
|
63
63
|
title: string;
|
64
64
|
description: string;
|
65
65
|
src: string;
|
66
|
-
hideFooter:
|
67
|
-
footerPosition:
|
66
|
+
hideFooter: boolean | "never";
|
67
|
+
footerPosition: "outer" | "inner";
|
68
68
|
showLoader: boolean;
|
69
69
|
preview: boolean;
|
70
70
|
previewVisible: boolean;
|
package/lib/Image/type.d.ts
CHANGED
@@ -78,5 +78,6 @@ export interface ImagePreviewActionEmits {
|
|
78
78
|
export interface ImagePreviewActionSlots {
|
79
79
|
default?: () => VNode[];
|
80
80
|
}
|
81
|
-
|
82
|
-
|
81
|
+
type HideFooter = boolean | 'never';
|
82
|
+
type FooterPostion = 'inner' | 'outer';
|
83
|
+
export {};
|
package/lib/Input/Input.vue.d.ts
CHANGED
@@ -35,8 +35,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
|
|
35
35
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
36
36
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
37
37
|
}>, {
|
38
|
-
size: import('..').Size;
|
39
38
|
error: boolean;
|
39
|
+
size: import('..').Size;
|
40
40
|
disabled: boolean;
|
41
41
|
placeholder: string;
|
42
42
|
modelValue: string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=;/* empty css */;/* empty css */const t=;/* empty css */require("../_shared/utils/dom.js"),/* empty css */;/* empty css */const i=require("../_shared/icons/IconEyeClose.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=;/* empty css */;/* empty css */const t=;/* empty css */require("../_shared/utils/dom.js"),/* empty css */;/* empty css */const i=require("../_shared/icons/IconEyeClose.vue.js"),n=require("../_shared/icons/IconEyeOpen.vue2.js"),s={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,u)=>(e.openBlock(),e.createBlock(e.unref(t.default),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",s,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(o.default),{key:1,size:14,onClick:u[0]||(u[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0})):(e.openBlock(),e.createBlock(e.unref(i.default),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});exports.default=r;
|
package/lib/Input/index.d.ts
CHANGED
@@ -30,8 +30,8 @@ declare const Input: {
|
|
30
30
|
"visibility-change": (value: boolean) => any;
|
31
31
|
pressEnter: (ev: KeyboardEvent) => any;
|
32
32
|
}, import('vue').PublicProps, {
|
33
|
-
size: import('..').Size;
|
34
33
|
error: boolean;
|
34
|
+
size: import('..').Size;
|
35
35
|
disabled: boolean;
|
36
36
|
placeholder: string;
|
37
37
|
modelValue: string;
|
@@ -73,8 +73,8 @@ declare const Input: {
|
|
73
73
|
blur(): void;
|
74
74
|
getInputRef(): HTMLInputElement;
|
75
75
|
}, {}, {}, {}, {
|
76
|
-
size: import('..').Size;
|
77
76
|
error: boolean;
|
77
|
+
size: import('..').Size;
|
78
78
|
disabled: boolean;
|
79
79
|
placeholder: string;
|
80
80
|
modelValue: string;
|
@@ -122,8 +122,8 @@ declare const Input: {
|
|
122
122
|
"visibility-change": (value: boolean) => any;
|
123
123
|
pressEnter: (ev: KeyboardEvent) => any;
|
124
124
|
}, string, {
|
125
|
-
size: import('..').Size;
|
126
125
|
error: boolean;
|
126
|
+
size: import('..').Size;
|
127
127
|
disabled: boolean;
|
128
128
|
placeholder: string;
|
129
129
|
modelValue: string;
|
@@ -79,8 +79,8 @@ declare function __VLS_template(): {
|
|
79
79
|
"visibility-change": (value: boolean) => any;
|
80
80
|
pressEnter: (ev: KeyboardEvent) => any;
|
81
81
|
}, string, {
|
82
|
-
size: import('..').Size;
|
83
82
|
error: boolean;
|
83
|
+
size: import('..').Size;
|
84
84
|
disabled: boolean;
|
85
85
|
placeholder: string;
|
86
86
|
modelValue: string;
|
@@ -118,8 +118,8 @@ declare function __VLS_template(): {
|
|
118
118
|
$nextTick: typeof import('vue').nextTick;
|
119
119
|
$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;
|
120
120
|
} & Readonly<{
|
121
|
-
size: import('..').Size;
|
122
121
|
error: boolean;
|
122
|
+
size: import('..').Size;
|
123
123
|
disabled: boolean;
|
124
124
|
placeholder: string;
|
125
125
|
modelValue: string;
|
@@ -147,7 +147,7 @@ declare function __VLS_template(): {
|
|
147
147
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
148
148
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
149
149
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
150
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
150
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
151
151
|
focus(): void;
|
152
152
|
blur(): void;
|
153
153
|
getInputRef(): HTMLInputElement;
|
@@ -180,9 +180,9 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
180
180
|
"onUpdate:modelValue"?: ((value: InputNumberValue) => any) | undefined;
|
181
181
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
182
182
|
}>, {
|
183
|
-
size: import('..').Size;
|
184
183
|
error: boolean;
|
185
|
-
|
184
|
+
size: import('..').Size;
|
185
|
+
mode: import('./type').ButtonMode;
|
186
186
|
disabled: boolean;
|
187
187
|
placeholder: string;
|
188
188
|
modelValue: InputNumberValue;
|
@@ -272,8 +272,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
272
272
|
"visibility-change": (value: boolean) => any;
|
273
273
|
pressEnter: (ev: KeyboardEvent) => any;
|
274
274
|
}, string, {
|
275
|
-
size: import('..').Size;
|
276
275
|
error: boolean;
|
276
|
+
size: import('..').Size;
|
277
277
|
disabled: boolean;
|
278
278
|
placeholder: string;
|
279
279
|
modelValue: string;
|
@@ -311,8 +311,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
311
311
|
$nextTick: typeof import('vue').nextTick;
|
312
312
|
$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;
|
313
313
|
} & Readonly<{
|
314
|
-
size: import('..').Size;
|
315
314
|
error: boolean;
|
315
|
+
size: import('..').Size;
|
316
316
|
disabled: boolean;
|
317
317
|
placeholder: string;
|
318
318
|
modelValue: string;
|
@@ -340,7 +340,7 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
|
|
340
340
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
341
341
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
342
342
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
343
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
343
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
344
344
|
focus(): void;
|
345
345
|
blur(): void;
|
346
346
|
getInputRef(): HTMLInputElement;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { ButtonMode, InputNumberValue } from './type';
|
2
2
|
import { Size } from '../_shared/type';
|
3
3
|
type __VLS_Props = {
|
4
|
-
mode:
|
4
|
+
mode: ButtonMode;
|
5
5
|
type: 'minus' | 'plus';
|
6
6
|
disabled: boolean;
|
7
7
|
computedValue: InputNumberValue;
|
@@ -25,9 +25,9 @@ declare const InputNumber: {
|
|
25
25
|
"update:modelValue": (value: import('./type').InputNumberValue) => any;
|
26
26
|
pressEnter: (ev: KeyboardEvent) => any;
|
27
27
|
}, import('vue').PublicProps, {
|
28
|
-
size: import('..').Size;
|
29
28
|
error: boolean;
|
30
|
-
|
29
|
+
size: import('..').Size;
|
30
|
+
mode: import('./type').ButtonMode;
|
31
31
|
disabled: boolean;
|
32
32
|
placeholder: string;
|
33
33
|
modelValue: import('./type').InputNumberValue;
|
@@ -117,8 +117,8 @@ declare const InputNumber: {
|
|
117
117
|
"visibility-change": (value: boolean) => any;
|
118
118
|
pressEnter: (ev: KeyboardEvent) => any;
|
119
119
|
}, string, {
|
120
|
-
size: import('..').Size;
|
121
120
|
error: boolean;
|
121
|
+
size: import('..').Size;
|
122
122
|
disabled: boolean;
|
123
123
|
placeholder: string;
|
124
124
|
modelValue: string;
|
@@ -156,8 +156,8 @@ declare const InputNumber: {
|
|
156
156
|
$nextTick: typeof import('vue').nextTick;
|
157
157
|
$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;
|
158
158
|
} & Readonly<{
|
159
|
-
size: import('..').Size;
|
160
159
|
error: boolean;
|
160
|
+
size: import('..').Size;
|
161
161
|
disabled: boolean;
|
162
162
|
placeholder: string;
|
163
163
|
modelValue: string;
|
@@ -185,7 +185,7 @@ declare const InputNumber: {
|
|
185
185
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
186
186
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
187
187
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
188
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
188
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
189
189
|
focus(): void;
|
190
190
|
blur(): void;
|
191
191
|
getInputRef(): HTMLInputElement;
|
@@ -212,9 +212,9 @@ declare const InputNumber: {
|
|
212
212
|
focus(): void;
|
213
213
|
blur(): void;
|
214
214
|
}, {}, {}, {}, {
|
215
|
-
size: import('..').Size;
|
216
215
|
error: boolean;
|
217
|
-
|
216
|
+
size: import('..').Size;
|
217
|
+
mode: import('./type').ButtonMode;
|
218
218
|
disabled: boolean;
|
219
219
|
placeholder: string;
|
220
220
|
modelValue: import('./type').InputNumberValue;
|
@@ -253,9 +253,9 @@ declare const InputNumber: {
|
|
253
253
|
"update:modelValue": (value: import('./type').InputNumberValue) => any;
|
254
254
|
pressEnter: (ev: KeyboardEvent) => any;
|
255
255
|
}, string, {
|
256
|
-
size: import('..').Size;
|
257
256
|
error: boolean;
|
258
|
-
|
257
|
+
size: import('..').Size;
|
258
|
+
mode: import('./type').ButtonMode;
|
259
259
|
disabled: boolean;
|
260
260
|
placeholder: string;
|
261
261
|
modelValue: import('./type').InputNumberValue;
|
@@ -3,7 +3,7 @@ import { VNode } from 'vue';
|
|
3
3
|
export interface InputNumberProps {
|
4
4
|
modelValue?: InputNumberValue;
|
5
5
|
defaultValue?: InputNumberValue;
|
6
|
-
mode?:
|
6
|
+
mode?: ButtonMode;
|
7
7
|
precision?: number;
|
8
8
|
step?: number;
|
9
9
|
disabled?: boolean;
|
@@ -15,7 +15,7 @@ export interface InputNumberProps {
|
|
15
15
|
size?: Size;
|
16
16
|
allowClear?: boolean;
|
17
17
|
formatter?: Format<string>;
|
18
|
-
parser?:
|
18
|
+
parser?: Parser;
|
19
19
|
readonly?: boolean;
|
20
20
|
inputAttrs?: RecordType;
|
21
21
|
}
|
@@ -43,5 +43,6 @@ export interface InputNumberExpose {
|
|
43
43
|
blur(): void;
|
44
44
|
}
|
45
45
|
export type InputNumberValue = number | string;
|
46
|
-
export type
|
47
|
-
|
46
|
+
export type ButtonMode = 'embed' | 'button';
|
47
|
+
type Parser = (value: string) => string;
|
48
|
+
export {};
|
package/lib/InputTag/index.d.ts
CHANGED
@@ -27,8 +27,8 @@ declare const InputTag: {
|
|
27
27
|
"input-value-change": (value: string, ev: Event) => any;
|
28
28
|
"press-enter": (ev: KeyboardEvent) => any;
|
29
29
|
}, import('vue').PublicProps, {
|
30
|
-
size: import('..').Size;
|
31
30
|
error: boolean;
|
31
|
+
size: import('..').Size;
|
32
32
|
disabled: boolean;
|
33
33
|
placeholder: string;
|
34
34
|
modelValue: import('./type').InputTagValue;
|
@@ -41,7 +41,10 @@ declare const InputTag: {
|
|
41
41
|
allowCreate: boolean;
|
42
42
|
maxTagCount: number;
|
43
43
|
tagNowrap: boolean;
|
44
|
-
retainInputValue:
|
44
|
+
retainInputValue: boolean | {
|
45
|
+
create?: boolean;
|
46
|
+
blur?: boolean;
|
47
|
+
};
|
45
48
|
uniqueValue: boolean;
|
46
49
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
47
50
|
mirrorRef: HTMLDivElement;
|
@@ -67,8 +70,8 @@ declare const InputTag: {
|
|
67
70
|
focus(): void;
|
68
71
|
blur(): void;
|
69
72
|
}, {}, {}, {}, {
|
70
|
-
size: import('..').Size;
|
71
73
|
error: boolean;
|
74
|
+
size: import('..').Size;
|
72
75
|
disabled: boolean;
|
73
76
|
placeholder: string;
|
74
77
|
modelValue: import('./type').InputTagValue;
|
@@ -81,7 +84,10 @@ declare const InputTag: {
|
|
81
84
|
allowCreate: boolean;
|
82
85
|
maxTagCount: number;
|
83
86
|
tagNowrap: boolean;
|
84
|
-
retainInputValue:
|
87
|
+
retainInputValue: boolean | {
|
88
|
+
create?: boolean;
|
89
|
+
blur?: boolean;
|
90
|
+
};
|
85
91
|
uniqueValue: boolean;
|
86
92
|
}>;
|
87
93
|
__isFragment?: never;
|
@@ -111,8 +117,8 @@ declare const InputTag: {
|
|
111
117
|
"input-value-change": (value: string, ev: Event) => any;
|
112
118
|
"press-enter": (ev: KeyboardEvent) => any;
|
113
119
|
}, string, {
|
114
|
-
size: import('..').Size;
|
115
120
|
error: boolean;
|
121
|
+
size: import('..').Size;
|
116
122
|
disabled: boolean;
|
117
123
|
placeholder: string;
|
118
124
|
modelValue: import('./type').InputTagValue;
|
@@ -125,7 +131,10 @@ declare const InputTag: {
|
|
125
131
|
allowCreate: boolean;
|
126
132
|
maxTagCount: number;
|
127
133
|
tagNowrap: boolean;
|
128
|
-
retainInputValue:
|
134
|
+
retainInputValue: boolean | {
|
135
|
+
create?: boolean;
|
136
|
+
blur?: boolean;
|
137
|
+
};
|
129
138
|
uniqueValue: boolean;
|
130
139
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
131
140
|
$slots: any;
|
@@ -33,8 +33,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputTagProps, {
|
|
33
33
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
34
34
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
35
35
|
}>, {
|
36
|
-
size: import('../_shared/type').Size;
|
37
36
|
error: boolean;
|
37
|
+
size: import('../_shared/type').Size;
|
38
38
|
disabled: boolean;
|
39
39
|
placeholder: string;
|
40
40
|
modelValue: InputTagValue;
|
@@ -47,7 +47,10 @@ declare const __VLS_component: import('vue').DefineComponent<InputTagProps, {
|
|
47
47
|
allowCreate: boolean;
|
48
48
|
maxTagCount: number;
|
49
49
|
tagNowrap: boolean;
|
50
|
-
retainInputValue:
|
50
|
+
retainInputValue: boolean | {
|
51
|
+
create?: boolean;
|
52
|
+
blur?: boolean;
|
53
|
+
};
|
51
54
|
uniqueValue: boolean;
|
52
55
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
53
56
|
mirrorRef: HTMLDivElement;
|
package/lib/InputTag/type.d.ts
CHANGED
@@ -7,11 +7,11 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<LayoutSiderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
10
|
-
collapse: (collapsed: boolean, type:
|
10
|
+
collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
|
11
11
|
"update:collapsed": (collapsed: boolean) => any;
|
12
12
|
breakpoint: (collapsed: boolean) => any;
|
13
13
|
}, string, import('vue').PublicProps, Readonly<LayoutSiderProps> & Readonly<{
|
14
|
-
onCollapse?: ((collapsed: boolean, type:
|
14
|
+
onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
|
15
15
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
16
16
|
onBreakpoint?: ((collapsed: boolean) => any) | undefined;
|
17
17
|
}>, {
|
@@ -24,7 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<LayoutSiderProps, {
|
|
24
24
|
collapsible: boolean;
|
25
25
|
reverseArrow: boolean;
|
26
26
|
hideTrigger: boolean;
|
27
|
-
resizeDirections: import('
|
27
|
+
resizeDirections: import('..').Position[];
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
29
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
30
30
|
export default _default;
|