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
package/lib/Button/type.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
-
import { Shape, Size } from '../_shared/type';
|
2
|
+
import { Shape, Size, Status } from '../_shared/type';
|
3
3
|
export interface ButtonProps {
|
4
4
|
type?: ButtonType;
|
5
5
|
shape?: Shape;
|
6
|
-
status?:
|
6
|
+
status?: Status;
|
7
7
|
size?: Size;
|
8
8
|
long?: boolean;
|
9
9
|
loading?: boolean;
|
10
10
|
disabled?: boolean;
|
11
|
-
htmlType?:
|
11
|
+
htmlType?: HtmlType;
|
12
12
|
autofocus?: boolean;
|
13
13
|
href?: string;
|
14
14
|
}
|
@@ -25,7 +25,7 @@ export interface ButtonSlots {
|
|
25
25
|
}
|
26
26
|
export interface ButtonGroupProps {
|
27
27
|
type?: ButtonType;
|
28
|
-
status?:
|
28
|
+
status?: Status;
|
29
29
|
shape?: Shape;
|
30
30
|
size?: Size;
|
31
31
|
disabled?: boolean;
|
@@ -33,6 +33,6 @@ export interface ButtonGroupProps {
|
|
33
33
|
export interface ButtonGroupSlots {
|
34
34
|
default?: () => VNode[];
|
35
35
|
}
|
36
|
-
export type ButtonStatus = 'success' | 'warning' | 'danger' | 'normal';
|
37
36
|
export type ButtonType = 'primary' | 'secondary' | 'dashed' | 'outline' | 'text';
|
38
|
-
|
37
|
+
type HtmlType = 'button' | 'reset' | 'submit';
|
38
|
+
export {};
|
package/lib/Card/Card.vue.d.ts
CHANGED
@@ -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<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
10
|
-
size: import('
|
10
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
11
11
|
title: string;
|
12
12
|
hoverable: boolean;
|
13
13
|
loading: boolean;
|
package/lib/Card/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export type CardGridInstance = InstanceType<typeof _CardGrid>;
|
|
8
8
|
export * from './type';
|
9
9
|
declare const Card: {
|
10
10
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
11
|
-
size: import('
|
11
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
12
12
|
title: string;
|
13
13
|
hoverable: boolean;
|
14
14
|
loading: boolean;
|
@@ -24,7 +24,7 @@ declare const Card: {
|
|
24
24
|
M: {};
|
25
25
|
Defaults: {};
|
26
26
|
}, Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, {
|
27
|
-
size: import('
|
27
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
28
28
|
title: string;
|
29
29
|
hoverable: boolean;
|
30
30
|
loading: boolean;
|
@@ -37,7 +37,7 @@ declare const Card: {
|
|
37
37
|
__isTeleport?: never;
|
38
38
|
__isSuspense?: never;
|
39
39
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
40
|
-
size: import('
|
40
|
+
size: Exclude<import('..').Size, "mini" | "large">;
|
41
41
|
title: string;
|
42
42
|
hoverable: boolean;
|
43
43
|
loading: boolean;
|
package/lib/Card/type.d.ts
CHANGED
@@ -4,7 +4,7 @@ export interface CardProps {
|
|
4
4
|
bordered?: boolean;
|
5
5
|
loading?: boolean;
|
6
6
|
hoverable?: boolean;
|
7
|
-
size?:
|
7
|
+
size?: Exclude<Size, 'mini' | 'large'>;
|
8
8
|
headerStyle?: CSSProperties;
|
9
9
|
bodyStyle?: CSSProperties;
|
10
10
|
title?: string;
|
@@ -32,4 +32,3 @@ export interface CardGridProps {
|
|
32
32
|
export interface CardGridSlots {
|
33
33
|
default?: () => VNode[];
|
34
34
|
}
|
35
|
-
export type CardSize = Exclude<Size, 'mini' | 'large'>;
|
@@ -14,9 +14,9 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {},
|
|
14
14
|
"onUpdate:current"?: ((index: number) => any) | undefined;
|
15
15
|
}>, {
|
16
16
|
trigger: import('..').EventTrigger;
|
17
|
-
showArrow: import('./type').
|
17
|
+
showArrow: import('./type').ShowArrow;
|
18
18
|
arrowClass: import('..').ClassName;
|
19
|
-
animationName: import('./type').
|
19
|
+
animationName: import('./type').AnimationName;
|
20
20
|
direction: import('..').Direction;
|
21
21
|
transitionTimingFunction: string;
|
22
22
|
moveSpeed: number;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
import {
|
2
|
+
import { CarouselEmits, AnimationName, ShowArrow } from '../type';
|
3
3
|
import { ClassName, Direction, RecordType } from '../../_shared/type';
|
4
4
|
type CarouselContext = {
|
5
5
|
length: Ref<number>;
|
6
6
|
computedCurrent: Ref<number>;
|
7
7
|
transitionTimingFunction: Ref<string>;
|
8
|
-
animationName: Ref<
|
8
|
+
animationName: Ref<AnimationName>;
|
9
9
|
moveType: Ref<MoveType>;
|
10
10
|
preIndex: Ref<number>;
|
11
11
|
moveSpeed: Ref<number>;
|
12
12
|
direction: Ref<Direction>;
|
13
|
-
showArrow: Ref<
|
13
|
+
showArrow: Ref<ShowArrow>;
|
14
14
|
arrowClass: Ref<ClassName>;
|
15
15
|
getValidIndex: (val: number) => number;
|
16
16
|
};
|
package/lib/Carousel/index.d.ts
CHANGED
@@ -13,9 +13,9 @@ declare const Carousel: {
|
|
13
13
|
"update:current": (index: number) => any;
|
14
14
|
}, import('vue').PublicProps, {
|
15
15
|
trigger: import('..').EventTrigger;
|
16
|
-
showArrow: import('./type').
|
16
|
+
showArrow: import('./type').ShowArrow;
|
17
17
|
arrowClass: import('..').ClassName;
|
18
|
-
animationName: import('./type').
|
18
|
+
animationName: import('./type').AnimationName;
|
19
19
|
direction: import('..').Direction;
|
20
20
|
transitionTimingFunction: string;
|
21
21
|
moveSpeed: number;
|
@@ -37,9 +37,9 @@ declare const Carousel: {
|
|
37
37
|
"onUpdate:current"?: ((index: number) => any) | undefined;
|
38
38
|
}>, {}, {}, {}, {}, {
|
39
39
|
trigger: import('..').EventTrigger;
|
40
|
-
showArrow: import('./type').
|
40
|
+
showArrow: import('./type').ShowArrow;
|
41
41
|
arrowClass: import('..').ClassName;
|
42
|
-
animationName: import('./type').
|
42
|
+
animationName: import('./type').AnimationName;
|
43
43
|
direction: import('..').Direction;
|
44
44
|
transitionTimingFunction: string;
|
45
45
|
moveSpeed: number;
|
@@ -61,9 +61,9 @@ declare const Carousel: {
|
|
61
61
|
"update:current": (index: number) => any;
|
62
62
|
}, string, {
|
63
63
|
trigger: import('..').EventTrigger;
|
64
|
-
showArrow: import('./type').
|
64
|
+
showArrow: import('./type').ShowArrow;
|
65
65
|
arrowClass: import('..').ClassName;
|
66
|
-
animationName: import('./type').
|
66
|
+
animationName: import('./type').AnimationName;
|
67
67
|
direction: import('..').Direction;
|
68
68
|
transitionTimingFunction: string;
|
69
69
|
moveSpeed: number;
|
package/lib/Carousel/type.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
-
import { ClassName, Direction, EventTrigger } from '../_shared/type';
|
2
|
+
import { ClassName, Direction, EventTrigger, Position } from '../_shared/type';
|
3
3
|
export interface CarouselProps {
|
4
4
|
current?: number;
|
5
5
|
defaultCurrent?: number;
|
6
6
|
autoPlay?: AutoPlay;
|
7
7
|
moveSpeed?: number;
|
8
|
-
animationName?:
|
8
|
+
animationName?: AnimationName;
|
9
9
|
trigger?: EventTrigger;
|
10
10
|
direction?: Direction;
|
11
|
-
showArrow?:
|
11
|
+
showArrow?: ShowArrow;
|
12
12
|
arrowClass?: ClassName;
|
13
13
|
indicatorType?: IndicatorType;
|
14
14
|
indicatorPosition?: IndicatorPosition;
|
@@ -25,11 +25,11 @@ export interface CarouselSlots {
|
|
25
25
|
export interface CarouselItemSlots {
|
26
26
|
default?: () => VNode[];
|
27
27
|
}
|
28
|
-
export type
|
29
|
-
export type
|
28
|
+
export type AnimationName = 'slide' | 'fade';
|
29
|
+
export type ShowArrow = 'always' | 'hover' | 'never';
|
30
30
|
export type AutoPlay = boolean | {
|
31
31
|
interval?: number;
|
32
32
|
hoverToPause?: boolean;
|
33
33
|
};
|
34
|
-
export type IndicatorPosition =
|
34
|
+
export type IndicatorPosition = Position | 'outer';
|
35
35
|
export type IndicatorType = 'line' | 'dot' | 'slider' | 'never';
|
@@ -86,8 +86,8 @@ declare function __VLS_template(): {
|
|
86
86
|
"visibility-change": (value: boolean) => any;
|
87
87
|
pressEnter: (ev: KeyboardEvent) => any;
|
88
88
|
}, string, {
|
89
|
-
size: import('..').Size;
|
90
89
|
error: boolean;
|
90
|
+
size: import('..').Size;
|
91
91
|
disabled: boolean;
|
92
92
|
placeholder: string;
|
93
93
|
modelValue: string;
|
@@ -125,8 +125,8 @@ declare function __VLS_template(): {
|
|
125
125
|
$nextTick: typeof import('vue').nextTick;
|
126
126
|
$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;
|
127
127
|
} & Readonly<{
|
128
|
-
size: import('..').Size;
|
129
128
|
error: boolean;
|
129
|
+
size: import('..').Size;
|
130
130
|
disabled: boolean;
|
131
131
|
placeholder: string;
|
132
132
|
modelValue: string;
|
@@ -154,7 +154,7 @@ declare function __VLS_template(): {
|
|
154
154
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
155
155
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
156
156
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
157
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
157
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
158
158
|
focus(): void;
|
159
159
|
blur(): void;
|
160
160
|
getInputRef(): HTMLInputElement;
|
@@ -188,8 +188,8 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
188
188
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
189
189
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
190
190
|
}>, {
|
191
|
-
size: import('..').Size;
|
192
191
|
error: boolean;
|
192
|
+
size: import('..').Size;
|
193
193
|
popupContainer: import('..').PopupContainer;
|
194
194
|
popupVisible: boolean;
|
195
195
|
defaultPopupVisible: boolean;
|
@@ -295,8 +295,8 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
295
295
|
"visibility-change": (value: boolean) => any;
|
296
296
|
pressEnter: (ev: KeyboardEvent) => any;
|
297
297
|
}, string, {
|
298
|
-
size: import('..').Size;
|
299
298
|
error: boolean;
|
299
|
+
size: import('..').Size;
|
300
300
|
disabled: boolean;
|
301
301
|
placeholder: string;
|
302
302
|
modelValue: string;
|
@@ -334,8 +334,8 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
334
334
|
$nextTick: typeof import('vue').nextTick;
|
335
335
|
$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;
|
336
336
|
} & Readonly<{
|
337
|
-
size: import('..').Size;
|
338
337
|
error: boolean;
|
338
|
+
size: import('..').Size;
|
339
339
|
disabled: boolean;
|
340
340
|
placeholder: string;
|
341
341
|
modelValue: string;
|
@@ -363,7 +363,7 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
363
363
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
364
364
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
365
365
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
366
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
366
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
367
367
|
focus(): void;
|
368
368
|
blur(): void;
|
369
369
|
getInputRef(): HTMLInputElement;
|
package/lib/Cascader/index.d.ts
CHANGED
@@ -26,8 +26,8 @@ declare const Cascader: {
|
|
26
26
|
"update:inputValue": (value: string) => any;
|
27
27
|
"input-value-change": (value: string) => any;
|
28
28
|
}, import('vue').PublicProps, {
|
29
|
-
size: import('..').Size;
|
30
29
|
error: boolean;
|
30
|
+
size: import('..').Size;
|
31
31
|
popupContainer: import('..').PopupContainer;
|
32
32
|
popupVisible: boolean;
|
33
33
|
defaultPopupVisible: boolean;
|
@@ -133,8 +133,8 @@ declare const Cascader: {
|
|
133
133
|
"visibility-change": (value: boolean) => any;
|
134
134
|
pressEnter: (ev: KeyboardEvent) => any;
|
135
135
|
}, string, {
|
136
|
-
size: import('..').Size;
|
137
136
|
error: boolean;
|
137
|
+
size: import('..').Size;
|
138
138
|
disabled: boolean;
|
139
139
|
placeholder: string;
|
140
140
|
modelValue: string;
|
@@ -172,8 +172,8 @@ declare const Cascader: {
|
|
172
172
|
$nextTick: typeof import('vue').nextTick;
|
173
173
|
$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;
|
174
174
|
} & Readonly<{
|
175
|
-
size: import('..').Size;
|
176
175
|
error: boolean;
|
176
|
+
size: import('..').Size;
|
177
177
|
disabled: boolean;
|
178
178
|
placeholder: string;
|
179
179
|
modelValue: string;
|
@@ -201,7 +201,7 @@ declare const Cascader: {
|
|
201
201
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
202
202
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
203
203
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
204
|
-
}>, "blur" | "focus" | "getInputRef" | ("
|
204
|
+
}>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
205
205
|
focus(): void;
|
206
206
|
blur(): void;
|
207
207
|
getInputRef(): HTMLInputElement;
|
@@ -227,8 +227,8 @@ declare const Cascader: {
|
|
227
227
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
228
228
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
229
229
|
}>, {}, {}, {}, {}, {
|
230
|
-
size: import('..').Size;
|
231
230
|
error: boolean;
|
231
|
+
size: import('..').Size;
|
232
232
|
popupContainer: import('..').PopupContainer;
|
233
233
|
popupVisible: boolean;
|
234
234
|
defaultPopupVisible: boolean;
|
@@ -284,8 +284,8 @@ declare const Cascader: {
|
|
284
284
|
"update:inputValue": (value: string) => any;
|
285
285
|
"input-value-change": (value: string) => any;
|
286
286
|
}, string, {
|
287
|
-
size: import('..').Size;
|
288
287
|
error: boolean;
|
288
|
+
size: import('..').Size;
|
289
289
|
popupContainer: import('..').PopupContainer;
|
290
290
|
popupVisible: boolean;
|
291
291
|
defaultPopupVisible: boolean;
|
@@ -1,17 +1,6 @@
|
|
1
1
|
import { Ref, Slots } from 'vue';
|
2
|
-
import {
|
3
|
-
import { RecordType
|
4
|
-
export declare const COLLAPSE_CONTEXT_KEY = "collapse-context";
|
5
|
-
export type CollapseContext = {
|
6
|
-
computedActiveKey: Ref<CollapseValue[]>;
|
7
|
-
accordion: Ref<boolean>;
|
8
|
-
expandIconPosition: Ref<ExpandIconPosition>;
|
9
|
-
showExpandIcon: Ref<boolean>;
|
10
|
-
destroyOnHide: Ref<boolean>;
|
11
|
-
slots: Slots;
|
12
|
-
};
|
13
|
-
export type CollapseProps = Required<_CollapseProps>;
|
14
|
-
export type CollapseItemProps = Required<_CollapseItemProps>;
|
2
|
+
import { CollapseEmits, CollapseValue, ExpandIconPosition } from '../type';
|
3
|
+
import { RecordType } from '../../_shared/type';
|
15
4
|
export default function useCollapseContext(): {
|
16
5
|
provide: (props: RecordType, emits: CollapseEmits) => void;
|
17
6
|
inject: (props: RecordType) => {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../_shared/utils/control.js"),t="collapse-context";exports.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../_shared/utils/control.js"),t="collapse-context";exports.default=function(){return{provide:(n,d)=>{const{activeKey:s,defaultActiveKey:c,accordion:r,expandIconPosition:i,showExpandIcon:a,destroyOnHide:u}=e.toRefs(n),l=e.useSlots(),p=o.useControlValue(s,c.value,e=>{d("update:activekey",e),d("change",e)});e.provide(t,{computedActiveKey:p,accordion:r,expandIconPosition:i,showExpandIcon:a,destroyOnHide:u,slots:l})},inject:o=>{const{showExpandIcon:n,destroyOnHide:d}=e.toRefs(o),s=e.inject(t,{computedActiveKey:e.ref([]),accordion:e.ref(!1),expandIconPosition:e.ref("left"),showExpandIcon:e.ref(!0),destroyOnHide:e.ref(!1),slots:{}}),{showExpandIcon:c,destroyOnHide:r}=s;return{...s,showExpandIcon:e.computed(()=>n.value??c.value),destroyOnHide:e.computed(()=>d.value??r.value)}}}};
|
package/lib/Collapse/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Position } from '../_shared/type';
|
1
2
|
import { VNode } from 'vue';
|
2
3
|
export interface CollapseProps {
|
3
4
|
activeKey?: CollapseValue[];
|
@@ -38,4 +39,4 @@ export interface CollapseItemSlots {
|
|
38
39
|
}) => VNode[];
|
39
40
|
}
|
40
41
|
export type CollapseValue = string | number;
|
41
|
-
export type ExpandIconPosition = '
|
42
|
+
export type ExpandIconPosition = Exclude<Position, 'top' | 'bottom'>;
|
@@ -10,10 +10,10 @@ declare const __VLS_component: import('vue').DefineComponent<DescriptionsProps,
|
|
10
10
|
size: import('..').Size;
|
11
11
|
data: DescData[];
|
12
12
|
title: string;
|
13
|
-
column: import('
|
14
|
-
layout:
|
13
|
+
column: number | import('..').ResponsiveValue;
|
14
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
15
15
|
bordered: boolean;
|
16
|
-
tableLayout:
|
16
|
+
tableLayout: "auto" | "fixed";
|
17
17
|
align: import('./type').DescriptionsAlign;
|
18
18
|
labelStyle: import('vue').CSSProperties;
|
19
19
|
valueStyle: import('vue').CSSProperties;
|
@@ -14,7 +14,7 @@ export default function useDescContext(): {
|
|
14
14
|
data: import('vue').ComputedRef<DescData[]>;
|
15
15
|
size: import('vue').ComputedRef<any>;
|
16
16
|
column: import('vue').ComputedRef<number>;
|
17
|
-
layout: Ref<
|
17
|
+
layout: Ref<"vertical" | "horizontal" | "inline-horizontal" | "inline-vertical", "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical">;
|
18
18
|
};
|
19
19
|
inject: () => DescriptionsContext;
|
20
20
|
};
|
@@ -9,10 +9,10 @@ declare const Descriptions: {
|
|
9
9
|
size: import('..').Size;
|
10
10
|
data: import('./type').DescData[];
|
11
11
|
title: string;
|
12
|
-
column: import('
|
13
|
-
layout:
|
12
|
+
column: number | import('..').ResponsiveValue;
|
13
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
14
14
|
bordered: boolean;
|
15
|
-
tableLayout:
|
15
|
+
tableLayout: "auto" | "fixed";
|
16
16
|
align: import('./type').DescriptionsAlign;
|
17
17
|
labelStyle: import('vue').CSSProperties;
|
18
18
|
valueStyle: import('vue').CSSProperties;
|
@@ -27,10 +27,10 @@ declare const Descriptions: {
|
|
27
27
|
size: import('..').Size;
|
28
28
|
data: import('./type').DescData[];
|
29
29
|
title: string;
|
30
|
-
column: import('
|
31
|
-
layout:
|
30
|
+
column: number | import('..').ResponsiveValue;
|
31
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
32
32
|
bordered: boolean;
|
33
|
-
tableLayout:
|
33
|
+
tableLayout: "auto" | "fixed";
|
34
34
|
align: import('./type').DescriptionsAlign;
|
35
35
|
labelStyle: import('vue').CSSProperties;
|
36
36
|
valueStyle: import('vue').CSSProperties;
|
@@ -42,10 +42,10 @@ declare const Descriptions: {
|
|
42
42
|
size: import('..').Size;
|
43
43
|
data: import('./type').DescData[];
|
44
44
|
title: string;
|
45
|
-
column: import('
|
46
|
-
layout:
|
45
|
+
column: number | import('..').ResponsiveValue;
|
46
|
+
layout: "vertical" | "horizontal" | "inline-horizontal" | "inline-vertical";
|
47
47
|
bordered: boolean;
|
48
|
-
tableLayout:
|
48
|
+
tableLayout: "auto" | "fixed";
|
49
49
|
align: import('./type').DescriptionsAlign;
|
50
50
|
labelStyle: import('vue').CSSProperties;
|
51
51
|
valueStyle: import('vue').CSSProperties;
|
@@ -2,9 +2,9 @@ import { CSSProperties, VNode } from 'vue';
|
|
2
2
|
import { RenderContent, Size, ResponsiveValue } from '../_shared/type';
|
3
3
|
export interface DescriptionsProps {
|
4
4
|
data?: DescData[];
|
5
|
-
column?:
|
5
|
+
column?: Column;
|
6
6
|
title?: string;
|
7
|
-
layout?:
|
7
|
+
layout?: Layout;
|
8
8
|
align?: DescriptionsAlign;
|
9
9
|
size?: Size;
|
10
10
|
bordered?: boolean;
|
@@ -39,11 +39,12 @@ export interface DescData {
|
|
39
39
|
value?: string | RenderContent;
|
40
40
|
span?: number;
|
41
41
|
}
|
42
|
-
|
42
|
+
type TextAlign = 'left' | 'right' | 'center';
|
43
43
|
export type DescriptionsAlign = TextAlign | {
|
44
44
|
label?: TextAlign;
|
45
45
|
value?: TextAlign;
|
46
46
|
};
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
type Column = number | ResponsiveValue;
|
48
|
+
type Layout = 'horizontal' | 'vertical' | 'inline-horizontal' | 'inline-vertical';
|
49
|
+
type TableLayout = 'auto' | 'fixed';
|
50
|
+
export {};
|
package/lib/Divider/index.d.ts
CHANGED
@@ -5,10 +5,10 @@ export * from './type';
|
|
5
5
|
declare const Divider: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
7
|
size: number;
|
8
|
-
type:
|
8
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
9
9
|
direction: import('..').Direction;
|
10
10
|
margin: number | string;
|
11
|
-
orientation:
|
11
|
+
orientation: "left" | "right" | "center";
|
12
12
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
13
13
|
P: {};
|
14
14
|
B: {};
|
@@ -18,20 +18,20 @@ declare const Divider: {
|
|
18
18
|
Defaults: {};
|
19
19
|
}, Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, {
|
20
20
|
size: number;
|
21
|
-
type:
|
21
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
22
22
|
direction: import('..').Direction;
|
23
23
|
margin: number | string;
|
24
|
-
orientation:
|
24
|
+
orientation: "left" | "right" | "center";
|
25
25
|
}>;
|
26
26
|
__isFragment?: never;
|
27
27
|
__isTeleport?: never;
|
28
28
|
__isSuspense?: never;
|
29
29
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
30
30
|
size: number;
|
31
|
-
type:
|
31
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
32
32
|
direction: import('..').Direction;
|
33
33
|
margin: number | string;
|
34
|
-
orientation:
|
34
|
+
orientation: "left" | "right" | "center";
|
35
35
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
36
36
|
$slots: any;
|
37
37
|
}) & {
|
@@ -8,10 +8,10 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
10
10
|
size: number;
|
11
|
-
type:
|
11
|
+
type: "dashed" | "dotted" | "double" | "solid";
|
12
12
|
direction: import('..').Direction;
|
13
13
|
margin: number | string;
|
14
|
-
orientation:
|
14
|
+
orientation: "left" | "right" | "center";
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
17
17
|
export default _default;
|
package/lib/Divider/type.d.ts
CHANGED
@@ -3,12 +3,13 @@ import { VNode } from 'vue';
|
|
3
3
|
export interface DividerProps {
|
4
4
|
direction?: Direction;
|
5
5
|
orientation?: Orientation;
|
6
|
-
type?:
|
6
|
+
type?: Type;
|
7
7
|
size?: number;
|
8
8
|
margin?: number | string;
|
9
9
|
}
|
10
10
|
export interface DividerSlots {
|
11
11
|
default?: () => VNode[];
|
12
12
|
}
|
13
|
-
|
14
|
-
|
13
|
+
type Orientation = 'left' | 'center' | 'right';
|
14
|
+
type Type = 'solid' | 'dashed' | 'dotted' | 'double';
|
15
|
+
export {};
|
@@ -46,7 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}
|
|
46
46
|
escToClose: boolean;
|
47
47
|
onBeforeCancel: import('..').OnBeforeCancel;
|
48
48
|
onBeforeOk: import('..').OnBeforeOk;
|
49
|
-
placement: import('
|
49
|
+
placement: import('..').Position;
|
50
50
|
drawerStyle: CSSProperties;
|
51
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
52
52
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<DrawerServiceProps, {}, {}
|
|
19
19
|
escToClose: boolean;
|
20
20
|
onBeforeCancel: import('..').OnBeforeCancel;
|
21
21
|
onBeforeOk: import('..').OnBeforeOk;
|
22
|
-
placement: import('
|
22
|
+
placement: import('..').Position;
|
23
23
|
drawerStyle: import('vue').CSSProperties;
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
25
25
|
export default _default;
|
package/lib/Drawer/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { App } from 'vue';
|
2
|
-
import { DrawerConfig } from './type';
|
2
|
+
import { DrawerConfig, DrawerMethod } from './type';
|
3
3
|
import { default as _Drawer } from './Drawer.vue';
|
4
4
|
export type DrawerInstance = InstanceType<typeof _Drawer>;
|
5
5
|
export * from './type';
|
@@ -43,7 +43,7 @@ declare const Drawer: {
|
|
43
43
|
escToClose: boolean;
|
44
44
|
onBeforeCancel: import('..').OnBeforeCancel;
|
45
45
|
onBeforeOk: import('..').OnBeforeOk;
|
46
|
-
placement: import('
|
46
|
+
placement: import('..').Position;
|
47
47
|
drawerStyle: import('vue').CSSProperties;
|
48
48
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
49
49
|
P: {};
|
@@ -83,7 +83,7 @@ declare const Drawer: {
|
|
83
83
|
escToClose: boolean;
|
84
84
|
onBeforeCancel: import('..').OnBeforeCancel;
|
85
85
|
onBeforeOk: import('..').OnBeforeOk;
|
86
|
-
placement: import('
|
86
|
+
placement: import('..').Position;
|
87
87
|
drawerStyle: import('vue').CSSProperties;
|
88
88
|
}>;
|
89
89
|
__isFragment?: never;
|
@@ -128,7 +128,7 @@ declare const Drawer: {
|
|
128
128
|
escToClose: boolean;
|
129
129
|
onBeforeCancel: import('..').OnBeforeCancel;
|
130
130
|
onBeforeOk: import('..').OnBeforeOk;
|
131
|
-
placement: import('
|
131
|
+
placement: import('..').Position;
|
132
132
|
drawerStyle: import('vue').CSSProperties;
|
133
133
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
134
134
|
$slots: Readonly<import('./type').DrawerSlots> & import('./type').DrawerSlots;
|
@@ -145,11 +145,7 @@ declare module 'vue' {
|
|
145
145
|
}
|
146
146
|
declare module '@vue/runtime-core' {
|
147
147
|
interface ComponentCustomProperties {
|
148
|
-
$drawer:
|
149
|
-
open: (props: DrawerConfig) => {
|
150
|
-
close: () => void;
|
151
|
-
};
|
152
|
-
};
|
148
|
+
$drawer: DrawerMethod;
|
153
149
|
}
|
154
150
|
}
|
155
151
|
export default Drawer;
|
package/lib/Drawer/type.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { CSSProperties, VNode } from 'vue';
|
2
2
|
import { ButtonProps } from '../Button';
|
3
3
|
import { OnBeforeCancel, OnBeforeOk } from '../Modal';
|
4
|
-
import { RenderContent, PopupContainer } from '../_shared/type';
|
4
|
+
import { RenderContent, PopupContainer, Position } from '../_shared/type';
|
5
5
|
export interface DrawerProps {
|
6
6
|
visible?: boolean;
|
7
7
|
defaultVisible?: boolean;
|
8
|
-
placement?:
|
8
|
+
placement?: Position;
|
9
9
|
title?: string;
|
10
10
|
mask?: boolean;
|
11
11
|
maskClosable?: boolean;
|
@@ -53,8 +53,12 @@ export type DrawerConfig = Omit<DrawerProps, 'visible' | 'defaultVisible' | 'pop
|
|
53
53
|
onBeforeOpen?: () => void;
|
54
54
|
onBeforeClose?: () => void;
|
55
55
|
};
|
56
|
-
export declare type DrawerUpdateConfig = Omit<DrawerConfig, 'title' | 'content' | 'onOk' | 'onCancel' | 'onBeforeOk' | 'onBeforeCancel' | 'onOpen' | 'onClose' | 'onBeforeOpen' | 'onBeforeClose' | 'header' | 'footer'>;
|
57
56
|
export type DrawerServiceProps = DrawerConfig & {
|
58
57
|
serviceClose?: () => void;
|
59
58
|
};
|
60
|
-
export type
|
59
|
+
export type DrawerMethod = {
|
60
|
+
open: (props: DrawerConfig) => DrawerReturn;
|
61
|
+
};
|
62
|
+
export type DrawerReturn = {
|
63
|
+
close: () => void;
|
64
|
+
};
|