@polyv/vue-components 1.10.0 → 1.11.0
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/package.json +1 -1
- package/vue2/index.es.js +11206 -10719
- package/vue2/src/components/business/external-links/use-external-links.d.ts +1 -0
- package/vue2/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +1 -0
- package/vue2/src/components/exports.d.ts +1 -0
- package/vue2/src/components/form/date-picker/index.d.ts +9 -0
- package/vue2/src/components/form/date-picker/src/components/picker-popper/vertical-pick-popper.vue.d.ts +2 -0
- package/vue2/src/components/form/date-picker/src/components/time-select/time-input-select.vue.d.ts +2 -0
- package/vue2/src/components/form/date-picker/src/date-picker.vue.d.ts +9 -0
- package/vue2/src/components/form/date-picker/src/hooks/props-define.d.ts +11 -0
- package/vue2/src/components/form/date-picker/src/types/index.d.ts +3 -1
- package/vue2/src/components/form/file-upload/index.d.ts +38 -0
- package/vue2/src/components/form/file-upload/src/file-upload.vue.d.ts +13 -0
- package/vue2/src/components/form/file-upload/src/hooks/props-define.d.ts +6 -0
- package/vue2/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +1 -0
- package/vue2/src/components/form/form-submit-button/index.d.ts +1 -1
- package/vue2/src/components/form/form-submit-button/src/form-submit-button.vue.d.ts +1 -1
- package/vue2/src/components/form/image-upload/index.d.ts +12 -0
- package/vue2/src/components/form/image-upload/src/hooks/props-define.d.ts +6 -0
- package/vue2/src/components/form/image-upload/src/image-upload.vue.d.ts +12 -0
- package/vue2/src/components/form/select/index.d.ts +32 -0
- package/vue2/src/components/form/select/src/props-define.d.ts +15 -0
- package/vue2/src/components/form/select/src/select.vue.d.ts +11 -0
- package/vue2/src/components/form/timezone-picker/index.d.ts +42 -0
- package/vue2/src/components/form/timezone-picker/src/hooks/props-define.d.ts +22 -0
- package/vue2/src/components/form/timezone-picker/src/timezone-picker.vue.d.ts +42 -0
- package/vue2/src/components/form/types/index.d.ts +0 -1
- package/vue2/src/components/icons/icons/crop-two/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/email/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/location/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/number/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/option/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/phone/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/qa/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/qa-one/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/text/index.d.ts +6 -0
- package/vue2/src/components/icons/map.d.ts +9 -0
- package/vue2/src/components/image-cropper/index.d.ts +27 -1
- package/vue2/src/components/image-cropper/src/hooks/props-define.d.ts +34 -0
- package/vue2/src/components/image-cropper/src/hooks/use-image-cropper.d.ts +7 -14
- package/vue2/src/components/image-cropper/src/image-cropper-preview.vue.d.ts +16 -0
- package/vue2/src/components/image-cropper/src/image-cropper.vue.d.ts +13 -3
- package/vue2/src/components/image-preview/hooks/props-define.d.ts +7 -0
- package/vue2/src/components/image-preview/hooks/use-image-preview.d.ts +5 -0
- package/vue2/src/components/image-preview/image-preview.vue.d.ts +7 -0
- package/vue2/src/components/sensitive-text/index.d.ts +5 -5
- package/vue2/src/components/sensitive-text/src/props-define.d.ts +2 -2
- package/vue2/src/components/sensitive-text/src/sensitive-text.vue.d.ts +5 -5
- package/vue2/src/components/space/index.d.ts +76 -0
- package/vue2/src/components/space/src/props-define.d.ts +36 -0
- package/vue2/src/components/space/src/space.vue.d.ts +41 -0
- package/vue2/src/components/swiper/hooks/use-swiper-wrapper.d.ts +2 -0
- package/vue2/src/components/table/index.d.ts +48 -26
- package/vue2/src/components/table/src/components/table-body-row/use-table-body-row.d.ts +6 -1
- package/vue2/src/components/table/src/hooks/props-define.d.ts +39 -3
- package/vue2/src/components/table/src/hooks/use-table/use-table-render-data.d.ts +1 -0
- package/vue2/src/components/table/src/hooks/use-table/use-table-request.d.ts +1 -1
- package/vue2/src/components/table/src/hooks/use-table/use-table.d.ts +2 -1
- package/vue2/src/components/table/src/table-column.vue.d.ts +7 -7
- package/vue2/src/components/table/src/table.vue.d.ts +14 -7
- package/vue2/src/components/tabs/index.d.ts +14 -14
- package/vue2/src/components/tabs/src/props-define.d.ts +2 -2
- package/vue2/src/components/tabs/src/tabs.vue.d.ts +5 -5
- package/vue2/src/index.d.ts +5 -0
- package/vue2/src/lang/internal/en.json.d.ts +2 -1
- package/vue2/src/lang/internal/index.d.ts +1 -0
- package/vue2/src/lang/internal/ja.json.d.ts +2 -1
- package/vue2/src/lang/internal/ko.json.d.ts +2 -1
- package/vue2/src/lang/internal/ru.json.d.ts +2 -1
- package/vue2/src/lang/internal/zh-CN.json.d.ts +2 -1
- package/vue2/src/lang/internal/zh-TW.json.d.ts +2 -1
- package/vue3/index.es.js +7080 -6593
- package/vue3/src/components/business/external-links/use-external-links.d.ts +1 -0
- package/vue3/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +1 -0
- package/vue3/src/components/exports.d.ts +1 -0
- package/vue3/src/components/form/date-picker/index.d.ts +9 -0
- package/vue3/src/components/form/date-picker/src/components/picker-popper/vertical-pick-popper.vue.d.ts +2 -0
- package/vue3/src/components/form/date-picker/src/components/time-select/time-input-select.vue.d.ts +2 -0
- package/vue3/src/components/form/date-picker/src/date-picker.vue.d.ts +9 -0
- package/vue3/src/components/form/date-picker/src/hooks/props-define.d.ts +11 -0
- package/vue3/src/components/form/date-picker/src/types/index.d.ts +3 -1
- package/vue3/src/components/form/file-upload/index.d.ts +38 -0
- package/vue3/src/components/form/file-upload/src/file-upload.vue.d.ts +13 -0
- package/vue3/src/components/form/file-upload/src/hooks/props-define.d.ts +6 -0
- package/vue3/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +1 -0
- package/vue3/src/components/form/form-submit-button/index.d.ts +1 -1
- package/vue3/src/components/form/form-submit-button/src/form-submit-button.vue.d.ts +1 -1
- package/vue3/src/components/form/image-upload/index.d.ts +12 -0
- package/vue3/src/components/form/image-upload/src/hooks/props-define.d.ts +6 -0
- package/vue3/src/components/form/image-upload/src/image-upload.vue.d.ts +12 -0
- package/vue3/src/components/form/select/index.d.ts +32 -0
- package/vue3/src/components/form/select/src/props-define.d.ts +15 -0
- package/vue3/src/components/form/select/src/select.vue.d.ts +11 -0
- package/vue3/src/components/form/timezone-picker/index.d.ts +42 -0
- package/vue3/src/components/form/timezone-picker/src/hooks/props-define.d.ts +22 -0
- package/vue3/src/components/form/timezone-picker/src/timezone-picker.vue.d.ts +42 -0
- package/vue3/src/components/form/types/index.d.ts +0 -1
- package/vue3/src/components/icons/icons/crop-two/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/email/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/location/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/number/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/option/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/phone/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/qa/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/qa-one/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/text/index.d.ts +6 -0
- package/vue3/src/components/icons/map.d.ts +9 -0
- package/vue3/src/components/image-cropper/index.d.ts +27 -1
- package/vue3/src/components/image-cropper/src/hooks/props-define.d.ts +34 -0
- package/vue3/src/components/image-cropper/src/hooks/use-image-cropper.d.ts +7 -14
- package/vue3/src/components/image-cropper/src/image-cropper-preview.vue.d.ts +16 -0
- package/vue3/src/components/image-cropper/src/image-cropper.vue.d.ts +13 -3
- package/vue3/src/components/image-preview/hooks/props-define.d.ts +7 -0
- package/vue3/src/components/image-preview/hooks/use-image-preview.d.ts +5 -0
- package/vue3/src/components/image-preview/image-preview.vue.d.ts +7 -0
- package/vue3/src/components/sensitive-text/index.d.ts +5 -5
- package/vue3/src/components/sensitive-text/src/props-define.d.ts +2 -2
- package/vue3/src/components/sensitive-text/src/sensitive-text.vue.d.ts +5 -5
- package/vue3/src/components/space/index.d.ts +76 -0
- package/vue3/src/components/space/src/props-define.d.ts +36 -0
- package/vue3/src/components/space/src/space.vue.d.ts +41 -0
- package/vue3/src/components/swiper/hooks/use-swiper-wrapper.d.ts +2 -0
- package/vue3/src/components/table/index.d.ts +48 -26
- package/vue3/src/components/table/src/components/table-body-row/use-table-body-row.d.ts +6 -1
- package/vue3/src/components/table/src/hooks/props-define.d.ts +39 -3
- package/vue3/src/components/table/src/hooks/use-table/use-table-render-data.d.ts +1 -0
- package/vue3/src/components/table/src/hooks/use-table/use-table-request.d.ts +1 -1
- package/vue3/src/components/table/src/hooks/use-table/use-table.d.ts +2 -1
- package/vue3/src/components/table/src/table-column.vue.d.ts +7 -7
- package/vue3/src/components/table/src/table.vue.d.ts +14 -7
- package/vue3/src/components/tabs/index.d.ts +14 -14
- package/vue3/src/components/tabs/src/props-define.d.ts +2 -2
- package/vue3/src/components/tabs/src/tabs.vue.d.ts +5 -5
- package/vue3/src/index.d.ts +5 -0
- package/vue3/src/lang/internal/en.json.d.ts +2 -1
- package/vue3/src/lang/internal/index.d.ts +1 -0
- package/vue3/src/lang/internal/ja.json.d.ts +2 -1
- package/vue3/src/lang/internal/ko.json.d.ts +2 -1
- package/vue3/src/lang/internal/ru.json.d.ts +2 -1
- package/vue3/src/lang/internal/zh-CN.json.d.ts +2 -1
- package/vue3/src/lang/internal/zh-TW.json.d.ts +2 -1
|
@@ -29,6 +29,7 @@ export { default as PwcIconComputerFilled } from './icons/computer-filled';
|
|
|
29
29
|
export { default as PwcIconComputerPlay } from './icons/computer-play';
|
|
30
30
|
export { default as PwcIconCopy } from './icons/copy';
|
|
31
31
|
export { default as PwcIconCrop } from './icons/crop';
|
|
32
|
+
export { default as PwcIconCropTwo } from './icons/crop-two';
|
|
32
33
|
export { default as PwcIconCustomerService } from './icons/customer-service';
|
|
33
34
|
export { default as PwcIconDataExport } from './icons/data-export';
|
|
34
35
|
export { default as PwcIconDataExportTwo } from './icons/data-export-two';
|
|
@@ -40,6 +41,7 @@ export { default as PwcIconDrag } from './icons/drag';
|
|
|
40
41
|
export { default as PwcIconEdit } from './icons/edit';
|
|
41
42
|
export { default as PwcIconEditTwo } from './icons/edit-two';
|
|
42
43
|
export { default as PwcIconEffect } from './icons/effect';
|
|
44
|
+
export { default as PwcIconEmail } from './icons/email';
|
|
43
45
|
export { default as PwcIconEmptyPrize } from './icons/empty-prize';
|
|
44
46
|
export { default as PwcIconError } from './icons/error';
|
|
45
47
|
export { default as PwcIconErrorCircleFilled } from './icons/error-circle-filled';
|
|
@@ -65,6 +67,7 @@ export { default as PwcIconLeft } from './icons/left';
|
|
|
65
67
|
export { default as PwcIconLink } from './icons/link';
|
|
66
68
|
export { default as PwcIconList } from './icons/list';
|
|
67
69
|
export { default as PwcIconLoading } from './icons/loading';
|
|
70
|
+
export { default as PwcIconLocation } from './icons/location';
|
|
68
71
|
export { default as PwcIconMenuExpand } from './icons/menu-expand';
|
|
69
72
|
export { default as PwcIconMenuFoldUp } from './icons/menu-fold-up';
|
|
70
73
|
export { default as PwcIconMinus } from './icons/minus';
|
|
@@ -73,8 +76,11 @@ export { default as PwcIconMoney } from './icons/money';
|
|
|
73
76
|
export { default as PwcIconMore } from './icons/more';
|
|
74
77
|
export { default as PwcIconMoveDown } from './icons/move-down';
|
|
75
78
|
export { default as PwcIconMoveUp } from './icons/move-up';
|
|
79
|
+
export { default as PwcIconNumber } from './icons/number';
|
|
80
|
+
export { default as PwcIconOption } from './icons/option';
|
|
76
81
|
export { default as PwcIconPause } from './icons/pause';
|
|
77
82
|
export { default as PwcIconPeoples } from './icons/peoples';
|
|
83
|
+
export { default as PwcIconPhone } from './icons/phone';
|
|
78
84
|
export { default as PwcIconPlatform } from './icons/platform';
|
|
79
85
|
export { default as PwcIconPlatformFilled } from './icons/platform-filled';
|
|
80
86
|
export { default as PwcIconPlay } from './icons/play';
|
|
@@ -85,6 +91,8 @@ export { default as PwcIconPreviewClose } from './icons/preview-close';
|
|
|
85
91
|
export { default as PwcIconPreviewOpen } from './icons/preview-open';
|
|
86
92
|
export { default as PwcIconProduct } from './icons/product';
|
|
87
93
|
export { default as PwcIconProtect } from './icons/protect';
|
|
94
|
+
export { default as PwcIconQa } from './icons/qa';
|
|
95
|
+
export { default as PwcIconQaOne } from './icons/qa-one';
|
|
88
96
|
export { default as PwcIconQuestionCircleFilled } from './icons/question-circle-filled';
|
|
89
97
|
export { default as PwcIconQuestionCircleOutline } from './icons/question-circle-outline';
|
|
90
98
|
export { default as PwcIconRefresh } from './icons/refresh';
|
|
@@ -104,6 +112,7 @@ export { default as PwcIconSuccess } from './icons/success';
|
|
|
104
112
|
export { default as PwcIconSuccessCircleFilled } from './icons/success-circle-filled';
|
|
105
113
|
export { default as PwcIconSuccessCircleOutline } from './icons/success-circle-outline';
|
|
106
114
|
export { default as PwcIconTag } from './icons/tag';
|
|
115
|
+
export { default as PwcIconText } from './icons/text';
|
|
107
116
|
export { default as PwcIconTransfer } from './icons/transfer';
|
|
108
117
|
export { default as PwcIconTranslate } from './icons/translate';
|
|
109
118
|
export { default as PwcIconUp } from './icons/up';
|
|
@@ -8,10 +8,17 @@ export declare const PwcImageCropper: import('../../vue-utils/install-utils').SF
|
|
|
8
8
|
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
9
9
|
default: boolean;
|
|
10
10
|
};
|
|
11
|
+
chessboard: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
11
14
|
}, {
|
|
12
15
|
getCropperData: () => import('./src/hooks/props-define').ImageCropperData | undefined;
|
|
16
|
+
setCropperData: (data: import('./src/hooks/props-define').ImageCropperData) => void;
|
|
13
17
|
resetSelection: () => void;
|
|
14
|
-
|
|
18
|
+
waitImageInited: () => Promise<void>;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
change: (arg: import('./src/hooks/props-define').ImageCropperData) => void;
|
|
21
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
15
22
|
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
16
23
|
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
17
24
|
default: "image" | "canvas";
|
|
@@ -21,8 +28,27 @@ export declare const PwcImageCropper: import('../../vue-utils/install-utils').SF
|
|
|
21
28
|
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
22
29
|
default: boolean;
|
|
23
30
|
};
|
|
31
|
+
chessboard: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
24
34
|
}>>, {
|
|
25
35
|
within: "image" | "canvas";
|
|
26
36
|
resizeBox: boolean;
|
|
37
|
+
chessboard: boolean;
|
|
38
|
+
}>, import('../../vue-utils/install-utils').InstallOptions>;
|
|
39
|
+
export declare const PwcImageCropperPreview: import('../../vue-utils/install-utils').SFCInstall<import('vue').DefineComponent<{
|
|
40
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
41
|
+
cropperData: import('vue-types').VueTypeValidableDef<import('./src/hooks/props-define').ImageCropperData, import('vue-types/dist/types').ValidatorFunction<import('./src/hooks/props-define').ImageCropperData>>;
|
|
42
|
+
mode: import('vue-types').VueTypeDef<"contain" | "cover"> & {
|
|
43
|
+
default: "contain" | "cover";
|
|
44
|
+
};
|
|
45
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
47
|
+
cropperData: import('vue-types').VueTypeValidableDef<import('./src/hooks/props-define').ImageCropperData, import('vue-types/dist/types').ValidatorFunction<import('./src/hooks/props-define').ImageCropperData>>;
|
|
48
|
+
mode: import('vue-types').VueTypeDef<"contain" | "cover"> & {
|
|
49
|
+
default: "contain" | "cover";
|
|
50
|
+
};
|
|
51
|
+
}>>, {
|
|
52
|
+
mode: "contain" | "cover";
|
|
27
53
|
}>, import('../../vue-utils/install-utils').InstallOptions>;
|
|
28
54
|
export * from './src/hooks/props-define';
|
|
@@ -41,15 +41,49 @@ export declare const imageCropperProps: () => {
|
|
|
41
41
|
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* 是否显示棋盘背景
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
chessboard: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
44
51
|
};
|
|
45
52
|
export type ImageCropperProps = FormatProps<typeof imageCropperProps>;
|
|
53
|
+
export declare const imageCropperEmits: () => {
|
|
54
|
+
change: import('../../../../vue-utils').EmitFuncType<ImageCropperData>;
|
|
55
|
+
};
|
|
46
56
|
export interface ImageCropperExpose {
|
|
47
57
|
/**
|
|
48
58
|
* 获取裁切数据
|
|
49
59
|
*/
|
|
50
60
|
getCropperData: () => ImageCropperData | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* 设置裁切数据(基于图片原始坐标)
|
|
63
|
+
*/
|
|
64
|
+
setCropperData: (data: ImageCropperData) => void;
|
|
51
65
|
/**
|
|
52
66
|
* 重置选区
|
|
53
67
|
*/
|
|
54
68
|
resetSelection: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* 等待图片初始化
|
|
71
|
+
*/
|
|
72
|
+
waitImageInited: () => Promise<void>;
|
|
55
73
|
}
|
|
74
|
+
export declare const imageCropperPreviewProps: () => {
|
|
75
|
+
/**
|
|
76
|
+
* 裁切目标
|
|
77
|
+
*/
|
|
78
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
79
|
+
/**
|
|
80
|
+
* 裁剪数据
|
|
81
|
+
*/
|
|
82
|
+
cropperData: import('vue-types').VueTypeValidableDef<ImageCropperData, import('vue-types/dist/types').ValidatorFunction<ImageCropperData>>;
|
|
83
|
+
/**
|
|
84
|
+
* 模式
|
|
85
|
+
*/
|
|
86
|
+
mode: import('vue-types').VueTypeDef<"contain" | "cover"> & {
|
|
87
|
+
default: "contain" | "cover";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VueProps } from '../../../../vue-utils';
|
|
2
|
-
import { imageCropperProps } from './props-define';
|
|
1
|
+
import { VueEmit, VueProps } from '../../../../vue-utils';
|
|
2
|
+
import { ImageCropperData, imageCropperEmits, imageCropperProps } from './props-define';
|
|
3
3
|
import { ComputedRef, Ref } from 'vue';
|
|
4
4
|
export interface CropBox {
|
|
5
5
|
x: number;
|
|
@@ -38,20 +38,13 @@ export interface ImageCropperInjectData {
|
|
|
38
38
|
}
|
|
39
39
|
export declare const useImageCropper: (options: {
|
|
40
40
|
props: VueProps<typeof imageCropperProps>;
|
|
41
|
+
emit: VueEmit<typeof imageCropperEmits>;
|
|
41
42
|
}) => {
|
|
42
43
|
containerRef: Ref<HTMLDivElement | undefined>;
|
|
43
44
|
canRender: Ref<boolean>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
height: number;
|
|
49
|
-
}>;
|
|
50
|
-
imageDisplayRect: ComputedRef<ImageDisplayRect>;
|
|
51
|
-
imageSize: Ref<{
|
|
52
|
-
width: number;
|
|
53
|
-
height: number;
|
|
54
|
-
}>;
|
|
55
|
-
resetCropBox: () => void;
|
|
45
|
+
getCropperData: () => ImageCropperData | undefined;
|
|
46
|
+
setCropperData: (data: ImageCropperData) => Promise<void>;
|
|
47
|
+
resetSelection: () => void;
|
|
48
|
+
waitImageInited: () => Promise<void>;
|
|
56
49
|
};
|
|
57
50
|
export declare const useImageCropperInject: () => ImageCropperInjectData;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
3
|
+
cropperData: import('vue-types').VueTypeValidableDef<import('./hooks/props-define').ImageCropperData, import('vue-types/dist/types').ValidatorFunction<import('./hooks/props-define').ImageCropperData>>;
|
|
4
|
+
mode: import('vue-types').VueTypeDef<"contain" | "cover"> & {
|
|
5
|
+
default: "contain" | "cover";
|
|
6
|
+
};
|
|
7
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
9
|
+
cropperData: import('vue-types').VueTypeValidableDef<import('./hooks/props-define').ImageCropperData, import('vue-types/dist/types').ValidatorFunction<import('./hooks/props-define').ImageCropperData>>;
|
|
10
|
+
mode: import('vue-types').VueTypeDef<"contain" | "cover"> & {
|
|
11
|
+
default: "contain" | "cover";
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
mode: "contain" | "cover";
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ImageCropperData } from './hooks/props-define';
|
|
2
1
|
declare const _default: import('vue').DefineComponent<{
|
|
3
2
|
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
4
3
|
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
@@ -9,10 +8,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
9
8
|
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
10
9
|
default: boolean;
|
|
11
10
|
};
|
|
11
|
+
chessboard: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
12
14
|
}, {
|
|
13
|
-
getCropperData: () => ImageCropperData | undefined;
|
|
15
|
+
getCropperData: () => import('./hooks/props-define').ImageCropperData | undefined;
|
|
16
|
+
setCropperData: (data: import('./hooks/props-define').ImageCropperData) => void;
|
|
14
17
|
resetSelection: () => void;
|
|
15
|
-
|
|
18
|
+
waitImageInited: () => Promise<void>;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
change: (arg: import('./hooks/props-define').ImageCropperData) => void;
|
|
21
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
16
22
|
target: import('vue-types').VueTypeDef<string | File | Blob>;
|
|
17
23
|
within: import('vue-types').VueTypeDef<"image" | "canvas"> & {
|
|
18
24
|
default: "image" | "canvas";
|
|
@@ -22,8 +28,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
28
|
resizeBox: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
23
29
|
default: boolean;
|
|
24
30
|
};
|
|
31
|
+
chessboard: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
25
34
|
}>>, {
|
|
26
35
|
within: "image" | "canvas";
|
|
27
36
|
resizeBox: boolean;
|
|
37
|
+
chessboard: boolean;
|
|
28
38
|
}>;
|
|
29
39
|
export default _default;
|
|
@@ -19,6 +19,13 @@ export declare const imagePreviewProps: () => {
|
|
|
19
19
|
initialIndex: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
20
20
|
default: number;
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* 是否循环切换
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
loop: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
22
29
|
};
|
|
23
30
|
export declare const imagePreviewEmits: () => {
|
|
24
31
|
/**
|
|
@@ -5,6 +5,11 @@ export interface ImagePreviewOptions {
|
|
|
5
5
|
* @default 0
|
|
6
6
|
*/
|
|
7
7
|
initialIndex?: number;
|
|
8
|
+
/**
|
|
9
|
+
* 是否循环切换
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
loop?: boolean;
|
|
8
13
|
}
|
|
9
14
|
export declare function useImagePreview(): {
|
|
10
15
|
previewImage: (images?: ImagePreviewData, options?: ImagePreviewOptions) => ImagePreviewInstance;
|
|
@@ -8,6 +8,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
8
8
|
initialIndex: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
9
9
|
default: number;
|
|
10
10
|
};
|
|
11
|
+
loop: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
11
14
|
}, {
|
|
12
15
|
open(): void;
|
|
13
16
|
close(): void;
|
|
@@ -23,8 +26,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
23
26
|
initialIndex: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
24
27
|
default: number;
|
|
25
28
|
};
|
|
29
|
+
loop: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
26
32
|
}>>, {
|
|
27
33
|
"v-model-key": boolean;
|
|
34
|
+
loop: boolean;
|
|
28
35
|
images: import('./types').ImagePreviewData;
|
|
29
36
|
initialIndex: number;
|
|
30
37
|
}>;
|
|
@@ -7,8 +7,8 @@ export declare const PwcSensitiveText: import('../../vue-utils/install-utils').S
|
|
|
7
7
|
defaultShow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
-
type: import('vue-types').VueTypeDef<"
|
|
11
|
-
default: "
|
|
10
|
+
type: import('vue-types').VueTypeDef<"phone" | "password"> & {
|
|
11
|
+
default: "phone" | "password";
|
|
12
12
|
};
|
|
13
13
|
showIcon: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
14
14
|
default: boolean;
|
|
@@ -24,14 +24,14 @@ export declare const PwcSensitiveText: import('../../vue-utils/install-utils').S
|
|
|
24
24
|
defaultShow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
25
25
|
default: boolean;
|
|
26
26
|
};
|
|
27
|
-
type: import('vue-types').VueTypeDef<"
|
|
28
|
-
default: "
|
|
27
|
+
type: import('vue-types').VueTypeDef<"phone" | "password"> & {
|
|
28
|
+
default: "phone" | "password";
|
|
29
29
|
};
|
|
30
30
|
showIcon: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
33
|
}>>, {
|
|
34
|
-
type: "
|
|
34
|
+
type: "phone" | "password";
|
|
35
35
|
content: string;
|
|
36
36
|
showIcon: boolean;
|
|
37
37
|
defaultShow: boolean;
|
|
@@ -23,8 +23,8 @@ export declare const sensitiveTextProps: () => {
|
|
|
23
23
|
* 掩码类型
|
|
24
24
|
* @default 'password'
|
|
25
25
|
*/
|
|
26
|
-
type: import('vue-types').VueTypeDef<"
|
|
27
|
-
default: "
|
|
26
|
+
type: import('vue-types').VueTypeDef<"phone" | "password"> & {
|
|
27
|
+
default: "phone" | "password";
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* 显示图标
|
|
@@ -7,8 +7,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
defaultShow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
-
type: import('vue-types').VueTypeDef<"
|
|
11
|
-
default: "
|
|
10
|
+
type: import('vue-types').VueTypeDef<"phone" | "password"> & {
|
|
11
|
+
default: "phone" | "password";
|
|
12
12
|
};
|
|
13
13
|
showIcon: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
14
14
|
default: boolean;
|
|
@@ -24,14 +24,14 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
24
24
|
defaultShow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
25
25
|
default: boolean;
|
|
26
26
|
};
|
|
27
|
-
type: import('vue-types').VueTypeDef<"
|
|
28
|
-
default: "
|
|
27
|
+
type: import('vue-types').VueTypeDef<"phone" | "password"> & {
|
|
28
|
+
default: "phone" | "password";
|
|
29
29
|
};
|
|
30
30
|
showIcon: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
33
|
}>>, {
|
|
34
|
-
type: "
|
|
34
|
+
type: "phone" | "password";
|
|
35
35
|
content: string;
|
|
36
36
|
showIcon: boolean;
|
|
37
37
|
defaultShow: boolean;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare const PwcSpace: import('../../vue-utils/install-utils').SFCInstall<import('vue/types/v3-component-public-instance').ComponentPublicInstanceConstructor<import('vue/types/v3-component-public-instance').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{
|
|
2
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
3
|
+
default: "vertical" | "horizontal";
|
|
4
|
+
};
|
|
5
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
6
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
7
|
+
};
|
|
8
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
}>>, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
13
|
+
default: "vertical" | "horizontal";
|
|
14
|
+
};
|
|
15
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
16
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
17
|
+
};
|
|
18
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>>, {}, {
|
|
22
|
+
size: number | "small" | "large" | "mini" | "medium";
|
|
23
|
+
direction: "vertical" | "horizontal";
|
|
24
|
+
wrap: boolean;
|
|
25
|
+
}, true, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
27
|
+
default: "vertical" | "horizontal";
|
|
28
|
+
};
|
|
29
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
30
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
31
|
+
};
|
|
32
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}>>> & import('vue').ShallowUnwrapRef<{}> & import('vue/types/v3-component-options').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{
|
|
36
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
37
|
+
default: "vertical" | "horizontal";
|
|
38
|
+
};
|
|
39
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
40
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
41
|
+
};
|
|
42
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}>>> & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
47
|
+
default: "vertical" | "horizontal";
|
|
48
|
+
};
|
|
49
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
50
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
51
|
+
};
|
|
52
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
56
|
+
size: number | "small" | "large" | "mini" | "medium";
|
|
57
|
+
direction: "vertical" | "horizontal";
|
|
58
|
+
wrap: boolean;
|
|
59
|
+
}> & {
|
|
60
|
+
props: {
|
|
61
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
62
|
+
default: "vertical" | "horizontal";
|
|
63
|
+
};
|
|
64
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
65
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
66
|
+
};
|
|
67
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
} & (new () => {
|
|
72
|
+
$scopedSlots: {
|
|
73
|
+
default?(_: {}): any;
|
|
74
|
+
};
|
|
75
|
+
}), import('../../vue-utils/install-utils').InstallOptions>;
|
|
76
|
+
export * from './src/props-define';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const spaceDirections: readonly ["horizontal", "vertical"];
|
|
2
|
+
export type SpaceDirection = (typeof spaceDirections)[number];
|
|
3
|
+
export declare const spaceSizes: readonly ["mini", "small", "medium", "large"];
|
|
4
|
+
export type SpaceSize = (typeof spaceSizes)[number];
|
|
5
|
+
export declare const spaceSizeMap: Record<SpaceSize, number>;
|
|
6
|
+
export declare const spaceProps: () => {
|
|
7
|
+
/**
|
|
8
|
+
* 间距方向
|
|
9
|
+
* @propType SpaceDirection
|
|
10
|
+
* @default 'horizontal'
|
|
11
|
+
*/
|
|
12
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
13
|
+
default: "vertical" | "horizontal";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* 间距大小,传入 number 类型时单位为 px
|
|
17
|
+
* @propType SpaceSize | number
|
|
18
|
+
* @default 'small'
|
|
19
|
+
*/
|
|
20
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
21
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 是否允许折行
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export interface SpaceSlots {
|
|
32
|
+
/**
|
|
33
|
+
* 间距内容插槽
|
|
34
|
+
*/
|
|
35
|
+
default: void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
12
|
+
default: "vertical" | "horizontal";
|
|
13
|
+
};
|
|
14
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
15
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
16
|
+
};
|
|
17
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
direction: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
22
|
+
default: "vertical" | "horizontal";
|
|
23
|
+
};
|
|
24
|
+
size: import('vue-types').VueTypeDef<number | "small" | "large" | "mini" | "medium"> & {
|
|
25
|
+
default: number | "small" | "large" | "mini" | "medium";
|
|
26
|
+
};
|
|
27
|
+
wrap: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>>, {
|
|
31
|
+
size: number | "small" | "large" | "mini" | "medium";
|
|
32
|
+
direction: "vertical" | "horizontal";
|
|
33
|
+
wrap: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$scopedSlots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|