yc-design-vue 2.0.5 → 2.0.7
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/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/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 +55 -0
- package/es/Upload/Upload.vue.js +120 -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 +122 -0
- package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
- package/es/Upload/UploadPictureCard.vue.js +7 -0
- package/es/Upload/UploadPictureCard.vue2.js +128 -0
- package/es/Upload/hooks/useContext.d.ts +53 -0
- package/es/Upload/hooks/useContext.js +109 -0
- package/es/Upload/hooks/useUpload.d.ts +51 -0
- package/es/Upload/hooks/useUpload.js +85 -0
- package/es/Upload/index.css +1 -0
- package/es/Upload/index.d.ts +129 -0
- package/es/Upload/index.js +10 -0
- package/es/Upload/type.d.ts +76 -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/IconEdit.vue.js +1 -19
- package/es/_shared/icons/IconEdit.vue2.js +19 -1
- package/es/_shared/icons/IconFile.vue.d.ts +2 -0
- package/es/_shared/icons/IconFile.vue.js +4 -0
- package/es/_shared/icons/IconFile.vue2.js +22 -0
- package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
- package/es/_shared/icons/IconUpload.vue.js +4 -0
- package/es/_shared/icons/IconUpload.vue2.js +22 -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 +33 -31
- package/es/index.js +6 -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/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/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 +55 -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 +53 -0
- package/lib/Upload/hooks/useContext.js +1 -0
- package/lib/Upload/hooks/useUpload.d.ts +51 -0
- package/lib/Upload/hooks/useUpload.js +1 -0
- package/lib/Upload/index.css +1 -0
- package/lib/Upload/index.d.ts +129 -0
- package/lib/Upload/index.js +1 -0
- package/lib/Upload/type.d.ts +76 -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/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.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 +33 -31
- 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
package/es/Tag/type.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { VNode } from 'vue';
|
|
2
2
|
import { Size } from '../_shared/type';
|
3
3
|
export interface TagProps {
|
4
4
|
color?: string;
|
5
|
-
size?:
|
5
|
+
size?: Exclude<Size, 'mini'>;
|
6
6
|
bordered?: boolean;
|
7
7
|
visible?: boolean;
|
8
8
|
defaultVisible?: boolean;
|
@@ -24,4 +24,3 @@ export interface TagSlots {
|
|
24
24
|
icon?: () => VNode[];
|
25
25
|
'close-icon'?: () => VNode[];
|
26
26
|
}
|
27
|
-
export type TagSize = Exclude<Size, 'mini'>;
|
package/es/Textarea/type.d.ts
CHANGED
@@ -24,12 +24,12 @@ export interface TextareaEmits {
|
|
24
24
|
(e: 'blur', ev: FocusEvent): void;
|
25
25
|
(e: 'keydown', ev: KeyboardEvent): void;
|
26
26
|
}
|
27
|
-
export
|
27
|
+
export interface TextareaExpose {
|
28
28
|
focus(): void;
|
29
29
|
blur(): void;
|
30
30
|
getInputRef(): HTMLTextAreaElement;
|
31
31
|
getMirrorRef(): HTMLDivElement;
|
32
|
-
}
|
32
|
+
}
|
33
33
|
export type AutoSize = boolean | {
|
34
34
|
minRows?: number;
|
35
35
|
maxRows?: number;
|
@@ -69,9 +69,9 @@ declare const __VLS_component: import('vue').DefineComponent<TimePickerProps, {}
|
|
69
69
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
70
70
|
"onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
|
71
71
|
}>, {
|
72
|
+
error: boolean;
|
72
73
|
size: import('..').Size;
|
73
74
|
type: import('./type').TimePickerType;
|
74
|
-
error: boolean;
|
75
75
|
popupContainer: import('..').PopupContainer;
|
76
76
|
popupVisible: boolean;
|
77
77
|
defaultPopupVisible: boolean;
|
package/es/TimePicker/index.d.ts
CHANGED
@@ -18,9 +18,9 @@ declare const TimePicker: {
|
|
18
18
|
"popup-visible-change": (value: boolean) => any;
|
19
19
|
"update:modelValue": (value: import('./type').TimePickerValue) => any;
|
20
20
|
}, import('vue').PublicProps, {
|
21
|
+
error: boolean;
|
21
22
|
size: import('..').Size;
|
22
23
|
type: import('./type').TimePickerType;
|
23
|
-
error: boolean;
|
24
24
|
popupContainer: import('..').PopupContainer;
|
25
25
|
popupVisible: boolean;
|
26
26
|
defaultPopupVisible: boolean;
|
@@ -101,9 +101,9 @@ declare const TimePicker: {
|
|
101
101
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
102
102
|
"onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
|
103
103
|
}>, {}, {}, {}, {}, {
|
104
|
+
error: boolean;
|
104
105
|
size: import('..').Size;
|
105
106
|
type: import('./type').TimePickerType;
|
106
|
-
error: boolean;
|
107
107
|
popupContainer: import('..').PopupContainer;
|
108
108
|
popupVisible: boolean;
|
109
109
|
defaultPopupVisible: boolean;
|
@@ -140,9 +140,9 @@ declare const TimePicker: {
|
|
140
140
|
"popup-visible-change": (value: boolean) => any;
|
141
141
|
"update:modelValue": (value: import('./type').TimePickerValue) => any;
|
142
142
|
}, string, {
|
143
|
+
error: boolean;
|
143
144
|
size: import('..').Size;
|
144
145
|
type: import('./type').TimePickerType;
|
145
|
-
error: boolean;
|
146
146
|
popupContainer: import('..').PopupContainer;
|
147
147
|
popupVisible: boolean;
|
148
148
|
defaultPopupVisible: boolean;
|
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<TimelineItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
|
10
10
|
label: string;
|
11
|
-
position: import('
|
11
|
+
position: import('..').Position;
|
12
12
|
dotColor: string;
|
13
13
|
dotType: import('./type').TimelineDotType;
|
14
14
|
lineType: import('./type').TimelineLineType;
|
package/es/Timeline/index.d.ts
CHANGED
@@ -40,7 +40,7 @@ declare const Timeline: {
|
|
40
40
|
item: {
|
41
41
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
42
42
|
label: string;
|
43
|
-
position: import('
|
43
|
+
position: import('..').Position;
|
44
44
|
dotColor: string;
|
45
45
|
dotType: import('./type').TimelineDotType;
|
46
46
|
lineType: import('./type').TimelineLineType;
|
@@ -55,7 +55,7 @@ declare const Timeline: {
|
|
55
55
|
Defaults: {};
|
56
56
|
}, Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, {
|
57
57
|
label: string;
|
58
|
-
position: import('
|
58
|
+
position: import('..').Position;
|
59
59
|
dotColor: string;
|
60
60
|
dotType: import('./type').TimelineDotType;
|
61
61
|
lineType: import('./type').TimelineLineType;
|
@@ -67,7 +67,7 @@ declare const Timeline: {
|
|
67
67
|
__isSuspense?: never;
|
68
68
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
69
69
|
label: string;
|
70
|
-
position: import('
|
70
|
+
position: import('..').Position;
|
71
71
|
dotColor: string;
|
72
72
|
dotType: import('./type').TimelineDotType;
|
73
73
|
lineType: import('./type').TimelineLineType;
|
package/es/Timeline/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Direction } from '../_shared/type';
|
1
|
+
import { Direction, Position } from '../_shared/type';
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface TimelineProps {
|
4
4
|
reverse?: boolean;
|
@@ -17,7 +17,7 @@ export interface TimelineItemProps {
|
|
17
17
|
lineType?: TimelineLineType;
|
18
18
|
lineColor?: string;
|
19
19
|
label?: string;
|
20
|
-
position?:
|
20
|
+
position?: Position;
|
21
21
|
isGhost?: boolean;
|
22
22
|
}
|
23
23
|
export interface TimelineItemSlots {
|
@@ -25,8 +25,7 @@ export interface TimelineItemSlots {
|
|
25
25
|
label?: () => VNode[];
|
26
26
|
default?: () => VNode[];
|
27
27
|
}
|
28
|
-
export type TimelineMode =
|
28
|
+
export type TimelineMode = Position | 'alternate';
|
29
29
|
export type TimelineLabelPosition = 'relative' | 'same';
|
30
30
|
export type TimelineDotType = 'hollow' | 'solid';
|
31
31
|
export type TimelineLineType = 'solid' | 'dashed' | 'dotted';
|
32
|
-
export type TimelinePositon = 'left' | 'right' | 'top' | 'bottom';
|
@@ -80,8 +80,8 @@ declare function __VLS_template(): {
|
|
80
80
|
"visibility-change": (value: boolean) => any;
|
81
81
|
pressEnter: (ev: KeyboardEvent) => any;
|
82
82
|
}, string, {
|
83
|
-
size: import('..').Size;
|
84
83
|
error: boolean;
|
84
|
+
size: import('..').Size;
|
85
85
|
disabled: boolean;
|
86
86
|
placeholder: string;
|
87
87
|
modelValue: string;
|
@@ -119,8 +119,8 @@ declare function __VLS_template(): {
|
|
119
119
|
$nextTick: typeof import('vue').nextTick;
|
120
120
|
$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;
|
121
121
|
} & Readonly<{
|
122
|
-
size: import('..').Size;
|
123
122
|
error: boolean;
|
123
|
+
size: import('..').Size;
|
124
124
|
disabled: boolean;
|
125
125
|
placeholder: string;
|
126
126
|
modelValue: string;
|
@@ -148,7 +148,7 @@ declare function __VLS_template(): {
|
|
148
148
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
149
149
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
150
150
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
151
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
151
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
152
152
|
focus(): void;
|
153
153
|
blur(): void;
|
154
154
|
getInputRef(): HTMLInputElement;
|
@@ -175,7 +175,7 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
175
175
|
"onEdit-end"?: (() => any) | undefined;
|
176
176
|
}>, {
|
177
177
|
delete: boolean;
|
178
|
-
type:
|
178
|
+
type: "success" | "warning" | "danger" | "primary" | "secondary";
|
179
179
|
code: boolean;
|
180
180
|
mark: boolean;
|
181
181
|
bold: boolean;
|
@@ -268,8 +268,8 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
268
268
|
"visibility-change": (value: boolean) => any;
|
269
269
|
pressEnter: (ev: KeyboardEvent) => any;
|
270
270
|
}, string, {
|
271
|
-
size: import('..').Size;
|
272
271
|
error: boolean;
|
272
|
+
size: import('..').Size;
|
273
273
|
disabled: boolean;
|
274
274
|
placeholder: string;
|
275
275
|
modelValue: string;
|
@@ -307,8 +307,8 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
307
307
|
$nextTick: typeof import('vue').nextTick;
|
308
308
|
$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;
|
309
309
|
} & Readonly<{
|
310
|
-
size: import('..').Size;
|
311
310
|
error: boolean;
|
311
|
+
size: import('..').Size;
|
312
312
|
disabled: boolean;
|
313
313
|
placeholder: string;
|
314
314
|
modelValue: string;
|
@@ -336,7 +336,7 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
|
|
336
336
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
337
337
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
338
338
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
339
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
339
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
340
340
|
focus(): void;
|
341
341
|
blur(): void;
|
342
342
|
getInputRef(): HTMLInputElement;
|
@@ -6,8 +6,8 @@ import { useClipboard } from "../node_modules/@vueuse/core/index.js";
|
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|
9
|
-
import _sfc_main$3 from "../_shared/icons/IconCopy.
|
10
|
-
import _sfc_main$1 from "../_shared/icons/IconEdit.
|
9
|
+
import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
|
10
|
+
import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
|
11
11
|
import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
|
12
12
|
import Input from "../Input/index.js";
|
13
13
|
import Tooltip from "../Tooltip/index.js";
|
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<TypographyParagraphProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyParagraphProps> & Readonly<{}>, {
|
10
10
|
blockquote: boolean;
|
11
|
-
spacing:
|
11
|
+
spacing: "close" | "default";
|
12
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
13
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
14
14
|
export default _default;
|
@@ -7,7 +7,7 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<TypographyTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyTitleProps> & Readonly<{}>, {
|
10
|
-
heading:
|
10
|
+
heading: 1 | 2 | 3 | 4 | 5 | 6;
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
12
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
13
13
|
export default _default;
|
package/es/Typography/type.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { TooltipProps } from '../Tooltip';
|
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface TypographyBaseProps {
|
4
4
|
tag?: string;
|
5
|
-
type?:
|
5
|
+
type?: BaseType;
|
6
6
|
bold?: boolean;
|
7
7
|
disabled?: boolean;
|
8
8
|
mark?: boolean;
|
@@ -43,6 +43,7 @@ export interface TypographyParagraphProps {
|
|
43
43
|
export interface TypographyTitleProps {
|
44
44
|
heading?: Heading;
|
45
45
|
}
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
type Heading = 1 | 2 | 3 | 4 | 5 | 6;
|
47
|
+
type Spacing = 'default' | 'close';
|
48
|
+
type BaseType = 'success' | 'warning' | 'danger' | 'primary' | 'secondary';
|
49
|
+
export {};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { UploadProps } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: any;
|
5
|
+
refs: {
|
6
|
+
uploadRef: HTMLDivElement;
|
7
|
+
};
|
8
|
+
rootEl: HTMLDivElement;
|
9
|
+
};
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<UploadProps, {
|
12
|
+
updateFile: (id: string, File: File) => void;
|
13
|
+
upload: (files: File[]) => void;
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
15
|
+
change: (fileList: import('./type').FileItem[], files: File[]) => any;
|
16
|
+
preview: (fileItem: import('./type').FileItem) => any;
|
17
|
+
"update:fileList": (value: import('./type').FileItem[]) => any;
|
18
|
+
"exceed-limit": (fileList: import('./type').FileItem[], files: File[]) => any;
|
19
|
+
}, string, import('vue').PublicProps, Readonly<UploadProps> & Readonly<{
|
20
|
+
onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
21
|
+
onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
|
22
|
+
"onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
|
23
|
+
"onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
|
24
|
+
}>, {
|
25
|
+
name: import('./type').FileName;
|
26
|
+
disabled: boolean;
|
27
|
+
multiple: boolean;
|
28
|
+
tip: string;
|
29
|
+
limit: number;
|
30
|
+
draggable: boolean;
|
31
|
+
fileList: import('./type').FileItem[];
|
32
|
+
defaultFileList: import('./type').FileItem[];
|
33
|
+
directory: boolean;
|
34
|
+
listType: import('./type').FileListType;
|
35
|
+
imageLoading: import('./type').ImageLoading;
|
36
|
+
download: boolean;
|
37
|
+
showLink: boolean;
|
38
|
+
customIcon: import('./type').CustomIcon;
|
39
|
+
showRemoveButton: boolean;
|
40
|
+
showPreviewButton: boolean;
|
41
|
+
accept: string;
|
42
|
+
showFileList: boolean;
|
43
|
+
showUploadButton: boolean;
|
44
|
+
onBeforeUpload: import('./type').OnBeforeUpload;
|
45
|
+
onBeforeRemove: import('./type').OnBeforeRemove;
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
47
|
+
uploadRef: HTMLDivElement;
|
48
|
+
}, HTMLDivElement>;
|
49
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
50
|
+
export default _default;
|
51
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
52
|
+
new (): {
|
53
|
+
$slots: S;
|
54
|
+
};
|
55
|
+
};
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeClass, unref, createBlock, Fragment, createCommentVNode, renderSlot, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
|
2
|
+
import useUpload from "./hooks/useUpload.js";
|
3
|
+
import _sfc_main$2 from "./UploadButton.vue.js";
|
4
|
+
/* empty css */
|
5
|
+
import _sfc_main$1 from "./UploadDrag.vue.js";
|
6
|
+
/* empty css */
|
7
|
+
import UploadFileList from "./UploadFileList.vue.js";
|
8
|
+
import UploadPictureCard from "./UploadPictureCard.vue.js";
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
+
...{
|
11
|
+
name: "Upload"
|
12
|
+
},
|
13
|
+
__name: "Upload",
|
14
|
+
props: {
|
15
|
+
fileList: { default: void 0 },
|
16
|
+
defaultFileList: { default: () => [] },
|
17
|
+
accept: { default: void 0 },
|
18
|
+
disabled: { type: Boolean, default: false },
|
19
|
+
multiple: { type: Boolean, default: false },
|
20
|
+
directory: { type: Boolean, default: false },
|
21
|
+
draggable: { type: Boolean, default: false },
|
22
|
+
tip: { default: "" },
|
23
|
+
name: { type: [String, Function], default: void 0 },
|
24
|
+
limit: { default: 0 },
|
25
|
+
showFileList: { type: Boolean, default: true },
|
26
|
+
showRemoveButton: { type: Boolean, default: true },
|
27
|
+
showUploadButton: { type: Boolean, default: true },
|
28
|
+
showPreviewButton: { type: Boolean, default: true },
|
29
|
+
download: { type: Boolean, default: false },
|
30
|
+
showLink: { type: Boolean, default: true },
|
31
|
+
imageLoading: { default: "lazy" },
|
32
|
+
listType: { default: "text" },
|
33
|
+
customIcon: { default: () => ({}) },
|
34
|
+
imagePreview: { type: Boolean },
|
35
|
+
onBeforeUpload: { type: Function, default: () => true },
|
36
|
+
onBeforeRemove: { type: Function, default: () => Promise.resolve(true) }
|
37
|
+
},
|
38
|
+
emits: ["update:fileList", "exceed-limit", "change", "preview"],
|
39
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
40
|
+
const $slots = useSlots();
|
41
|
+
const props = __props;
|
42
|
+
const emits = __emit;
|
43
|
+
const uploadRef = ref();
|
44
|
+
const {
|
45
|
+
computedFileList,
|
46
|
+
limit,
|
47
|
+
draggable,
|
48
|
+
disabled,
|
49
|
+
handleFiles,
|
50
|
+
handleUpload
|
51
|
+
} = useUpload(uploadRef, props, emits);
|
52
|
+
__expose({
|
53
|
+
updateFile(id, file) {
|
54
|
+
const index = computedFileList.value.findIndex((item) => item.uid == id);
|
55
|
+
if (index == -1) return;
|
56
|
+
computedFileList.value[index] = {
|
57
|
+
...computedFileList.value[index],
|
58
|
+
name: file.name,
|
59
|
+
file,
|
60
|
+
status: "init",
|
61
|
+
percent: 0,
|
62
|
+
url: URL.createObjectURL(file)
|
63
|
+
};
|
64
|
+
},
|
65
|
+
upload(files) {
|
66
|
+
handleFiles(files);
|
67
|
+
}
|
68
|
+
});
|
69
|
+
return (_ctx, _cache) => {
|
70
|
+
return openBlock(), createElementBlock("div", {
|
71
|
+
class: normalizeClass([
|
72
|
+
"yc-upload-wrapper",
|
73
|
+
`yc-upload-wrapper-type-${_ctx.listType}`,
|
74
|
+
{
|
75
|
+
"yc-upload-disabled": unref(disabled)
|
76
|
+
}
|
77
|
+
])
|
78
|
+
}, [
|
79
|
+
_ctx.listType != "picture-card" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
80
|
+
_ctx.showUploadButton ? (openBlock(), createElementBlock("div", {
|
81
|
+
key: 0,
|
82
|
+
class: normalizeClass([
|
83
|
+
"yc-upload",
|
84
|
+
{
|
85
|
+
"yc-upload-draggable": unref(draggable)
|
86
|
+
}
|
87
|
+
]),
|
88
|
+
ref_key: "uploadRef",
|
89
|
+
ref: uploadRef,
|
90
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
91
|
+
(...args) => unref(handleUpload) && unref(handleUpload)(...args))
|
92
|
+
}, [
|
93
|
+
unref(limit) <= 0 || unref(computedFileList).length < unref(limit) ? renderSlot(_ctx.$slots, "upload-button", { key: 0 }, () => [
|
94
|
+
unref(draggable) ? (openBlock(), createBlock(_sfc_main$1, { key: 0 })) : (openBlock(), createBlock(_sfc_main$2, { key: 1 }))
|
95
|
+
]) : createCommentVNode("", true)
|
96
|
+
], 2)) : createCommentVNode("", true),
|
97
|
+
_ctx.showFileList && unref(computedFileList).length ? (openBlock(), createBlock(UploadFileList, { key: 1 }, createSlots({ _: 2 }, [
|
98
|
+
$slots["extra-button"] ? {
|
99
|
+
name: "extra-button",
|
100
|
+
fn: withCtx((scope) => [
|
101
|
+
renderSlot(_ctx.$slots, "extra-button", normalizeProps(guardReactiveProps(scope)))
|
102
|
+
]),
|
103
|
+
key: "0"
|
104
|
+
} : void 0,
|
105
|
+
$slots["upload-item"] ? {
|
106
|
+
name: "upload-item",
|
107
|
+
fn: withCtx((scope) => [
|
108
|
+
renderSlot(_ctx.$slots, "upload-item", normalizeProps(guardReactiveProps(scope)))
|
109
|
+
]),
|
110
|
+
key: "1"
|
111
|
+
} : void 0
|
112
|
+
]), 1024)) : createCommentVNode("", true)
|
113
|
+
], 64)) : (openBlock(), createBlock(UploadPictureCard, { key: 1 }))
|
114
|
+
], 2);
|
115
|
+
};
|
116
|
+
}
|
117
|
+
});
|
118
|
+
export {
|
119
|
+
_sfc_main as default
|
120
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createCommentVNode, unref, withCtx, createTextVNode, toDisplayString } from "vue";
|
2
|
+
import useUploadContext from "./hooks/useContext.js";
|
3
|
+
import "../_shared/utils/dom.js";
|
4
|
+
/* empty css */
|
5
|
+
/* empty css */
|
6
|
+
/* empty css */
|
7
|
+
import _sfc_main$1 from "../_shared/icons/IconUpload.vue2.js";
|
8
|
+
import Button from "../Button/index.js";
|
9
|
+
const _hoisted_1 = { class: "yc-upload-button" };
|
10
|
+
const _hoisted_2 = {
|
11
|
+
key: 0,
|
12
|
+
class: "yc-upload-tip text-ellipsis"
|
13
|
+
};
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
|
+
__name: "UploadButton",
|
16
|
+
setup(__props) {
|
17
|
+
const { tip, disabled } = useUploadContext().inject();
|
18
|
+
return (_ctx, _cache) => {
|
19
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
20
|
+
createVNode(unref(Button), {
|
21
|
+
disabled: unref(disabled),
|
22
|
+
type: "primary"
|
23
|
+
}, {
|
24
|
+
icon: withCtx(() => [
|
25
|
+
createVNode(unref(_sfc_main$1))
|
26
|
+
]),
|
27
|
+
default: withCtx(() => [
|
28
|
+
_cache[0] || (_cache[0] = createTextVNode(" 点击上传 ", -1))
|
29
|
+
]),
|
30
|
+
_: 1
|
31
|
+
}, 8, ["disabled"]),
|
32
|
+
unref(tip) ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(tip)), 1)) : createCommentVNode("", true)
|
33
|
+
]);
|
34
|
+
};
|
35
|
+
}
|
36
|
+
});
|
37
|
+
export {
|
38
|
+
_sfc_main as default
|
39
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createVNode, toDisplayString } from "vue";
|
2
|
+
import useUploadContext from "./hooks/useContext.js";
|
3
|
+
import "../_shared/utils/dom.js";
|
4
|
+
/* empty css */
|
5
|
+
/* empty css */
|
6
|
+
/* empty css */
|
7
|
+
import _sfc_main$1 from "../_shared/icons/IconPlus.vue.js";
|
8
|
+
const _hoisted_1 = { class: "yc-upload-drag-icon" };
|
9
|
+
const _hoisted_2 = {
|
10
|
+
key: 0,
|
11
|
+
class: "yc-upload-tip text-ellipsis"
|
12
|
+
};
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
14
|
+
__name: "UploadDrag",
|
15
|
+
setup(__props) {
|
16
|
+
const { tip, disabled } = useUploadContext().inject();
|
17
|
+
return (_ctx, _cache) => {
|
18
|
+
return openBlock(), createElementBlock("div", {
|
19
|
+
class: normalizeClass([
|
20
|
+
"yc-upload-drag",
|
21
|
+
{
|
22
|
+
"yc-upload-drag-disabled": unref(disabled)
|
23
|
+
}
|
24
|
+
])
|
25
|
+
}, [
|
26
|
+
createElementVNode("div", _hoisted_1, [
|
27
|
+
createVNode(unref(_sfc_main$1))
|
28
|
+
]),
|
29
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "yc-upload-drag-text" }, "点击或拖拽文件到此处上传", -1)),
|
30
|
+
unref(tip) ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(tip)), 1)) : createCommentVNode("", true)
|
31
|
+
], 2);
|
32
|
+
};
|
33
|
+
}
|
34
|
+
});
|
35
|
+
export {
|
36
|
+
_sfc_main as default
|
37
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FileItem } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
'upload-item'?(_: {
|
6
|
+
fileItem: FileItem;
|
7
|
+
index: number;
|
8
|
+
}): any;
|
9
|
+
'extra-button'?(_: {
|
10
|
+
fileItem: FileItem;
|
11
|
+
}): any;
|
12
|
+
};
|
13
|
+
refs: {};
|
14
|
+
rootEl: HTMLDivElement;
|
15
|
+
};
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
19
|
+
export default _default;
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
21
|
+
new (): {
|
22
|
+
$slots: S;
|
23
|
+
};
|
24
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./UploadFileList.vue2.js";
|
2
|
+
/* empty css */
|
3
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const UploadFileList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b2e07dc"]]);
|
5
|
+
export {
|
6
|
+
UploadFileList as default
|
7
|
+
};
|