@vunk/form 1.1.76 → 1.1.79
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/components/_plugin-vue_export-helper.mjs +9 -0
- package/components/button/{index.js → index.mjs} +33 -29
- package/components/button/src/ctx.d.ts +30 -30
- package/components/button/src/index.vue.d.ts +69 -69
- package/components/cascader/index.css +0 -2
- package/components/cascader/{index.js → index.mjs} +22 -22
- package/components/cascader/src/ctx.d.ts +37 -45
- package/components/cascader/src/index.vue.d.ts +92 -92
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.css +0 -9
- package/components/checkbox/{index.js → index.mjs} +45 -42
- package/components/checkbox/src/ctx.d.ts +29 -32
- package/components/checkbox/src/index.vue.d.ts +65 -65
- package/components/color-picker/{index.js → index.mjs} +24 -23
- package/components/color-picker/src/ctx.d.ts +29 -29
- package/components/color-picker/src/index.vue.d.ts +77 -64
- package/components/date-picker/{index.js → index.mjs} +28 -25
- package/components/date-picker/src/ctx.d.ts +49 -49
- package/components/date-picker/src/index.vue.d.ts +104 -104
- package/components/download-plus/index.css +0 -6
- package/components/download-plus/{index.js → index.mjs} +119 -147
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +27 -26
- package/components/download-plus/src/index.vue.d.ts +59 -59
- package/components/esri-input-geojson/index.css +0 -10
- package/components/esri-input-geojson/index.mjs +1109 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +49 -72
- package/components/esri-input-geojson/src/index.vue.d.ts +138 -158
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +18 -19
- package/components/form/{index.js → index.mjs} +31 -27
- package/components/form/src/ctx.d.ts +13 -297
- package/components/form/src/index.vue.d.ts +97 -659
- package/components/form-item/index.css +0 -8
- package/components/form-item/{index.js → index.mjs} +22 -19
- package/components/form-item/src/ctx.d.ts +13 -11
- package/components/form-item/src/index.vue.d.ts +20 -20
- package/components/form-item-renderer/{index.js → index.mjs} +9 -7
- package/components/form-item-renderer/src/index.vue.d.ts +1 -1
- package/components/form-item-renderer-template/{index.js → index.mjs} +7 -7
- package/components/geoinput/{index.js → index.mjs} +10 -17
- package/components/geoinput/src/ctx.d.ts +48 -60
- package/components/geoinput/src/index.vue.d.ts +114 -132
- package/components/geoinput-read/index.css +0 -2
- package/components/geoinput-read/{index.js → index.mjs} +101 -109
- package/components/geoinput-read/src/core.vue.d.ts +123 -142
- package/components/geoinput-read/src/ctx.d.ts +50 -74
- package/components/geoinput-read/src/index.vue.d.ts +102 -120
- package/components/geoinput-update/index.css +0 -6
- package/components/geoinput-update/index.mjs +399 -0
- package/components/geoinput-update/src/ctx.d.ts +49 -69
- package/components/geoinput-update/src/index.vue.d.ts +126 -141
- package/components/index.mjs +11 -0
- package/components/index2.mjs +306 -0
- package/components/index3.mjs +484 -0
- package/components/input/{index.js → index.mjs} +31 -27
- package/components/input/src/ctx.d.ts +47 -66
- package/components/input/src/index.vue.d.ts +101 -113
- package/components/input-link/index.css +0 -2
- package/components/input-link/index.mjs +151 -0
- package/components/input-link/src/ctx.d.ts +40 -56
- package/components/input-link/src/index.vue.d.ts +89 -101
- package/components/input-number/index.css +0 -2
- package/components/input-number/{index.js → index.mjs} +25 -25
- package/components/input-number/src/ctx.d.ts +31 -37
- package/components/input-number/src/index.vue.d.ts +71 -71
- package/components/radio/index.css +0 -6
- package/components/radio/{index.js → index.mjs} +50 -47
- package/components/radio/src/ctx.d.ts +29 -29
- package/components/radio/src/index.vue.d.ts +64 -64
- package/components/select/index.css +0 -2
- package/components/select/{index.js → index.mjs} +49 -48
- package/components/select/src/ctx.d.ts +31 -85
- package/components/select/src/index.vue.d.ts +121 -230
- package/components/slider/{index.js → index.mjs} +28 -24
- package/components/slider/src/ctx.d.ts +35 -35
- package/components/slider/src/index.vue.d.ts +93 -93
- package/components/switch/index.css +0 -2
- package/components/switch/{index.js → index.mjs} +29 -24
- package/components/switch/src/ctx.d.ts +40 -40
- package/components/switch/src/index.vue.d.ts +91 -91
- package/components/templates-default/index.mjs +302 -0
- package/components/templates-default/src/ctx.d.ts +2 -4
- package/components/templates-default/src/index.vue.d.ts +2 -8
- package/components/templates-element-plus/index.mjs +106 -0
- package/components/templates-esri/index.mjs +59 -0
- package/components/templates-layout/index.css +0 -3
- package/components/templates-layout/index.mjs +131 -0
- package/components/templates-mapbox/index.mjs +59 -0
- package/components/upload/index.css +0 -7
- package/components/upload/index.mjs +501 -0
- package/components/upload/src/ctx.d.ts +36 -38
- package/components/upload/src/file.vue.d.ts +22 -21
- package/components/upload/src/index.vue.d.ts +78 -78
- package/components/upload-plus/index.css +4 -8
- package/components/upload-plus/{index.js → index.mjs} +9497 -926
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +25 -28
- package/components/upload-plus/src/index.vue.d.ts +58 -58
- package/components/van-cascader/index.css +0 -2
- package/components/van-cascader/{index.js → index.mjs} +41 -44
- package/components/van-cascader/src/ctx.d.ts +35 -35
- package/components/van-cascader/src/index.vue.d.ts +82 -82
- package/components/var-datetime-picker/index.css +0 -2
- package/components/var-datetime-picker/index.mjs +324 -0
- package/components/var-datetime-picker/src/ctx.d.ts +27 -26
- package/components/var-datetime-picker/src/index.vue.d.ts +57 -57
- package/components/vditor/{index.js → index.mjs} +9 -14
- package/components/vditor/src/ctx.d.ts +2 -1
- package/components/vditor/src/index.vue.d.ts +2 -3
- package/composables/index.mjs +85 -0
- package/composables/useSourceManager.d.ts +2 -2
- package/defaults.d.ts +1 -1
- package/index.css +4 -169
- package/index.d.ts +1 -1
- package/index.esm.js +44 -1
- package/package.json +246 -2
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.mjs +56 -0
- package/shared/element-plus/ctx.d.ts +26 -94
- package/shared/element-plus/index.mjs +285 -0
- package/shared/element-plus/instances.d.ts +29 -28
- package/shared/form/index.mjs +30 -0
- package/shared/helper/index.mjs +9 -0
- package/shared/index.mjs +1 -0
- package/shared/infer-prop/index.mjs +34 -0
- package/shared/progress-it/index.mjs +38 -0
- package/shared/rules/index.mjs +53 -0
- package/shared/upload/index.mjs +771 -0
- package/components/button/src/ctx.js +0 -1
- package/components/cascader/src/ctx.js +0 -1
- package/components/cascader/src/types.js +0 -1
- package/components/cascader/src/use.js +0 -1
- package/components/checkbox/src/ctx.js +0 -1
- package/components/checkbox/src/index.css +0 -1
- package/components/checkbox/src/types.js +0 -1
- package/components/color-picker/index.css +0 -1
- package/components/color-picker/src/ctx.js +0 -1
- package/components/color-picker/src/index.css +0 -1
- package/components/color-picker/src/types.js +0 -1
- package/components/date-picker/index.css +0 -1
- package/components/date-picker/src/ctx.js +0 -1
- package/components/date-picker/src/index.css +0 -1
- package/components/date-picker/src/types.js +0 -1
- package/components/download-plus/src/api.js +0 -1
- package/components/download-plus/src/const.js +0 -1
- package/components/download-plus/src/ctx.js +0 -1
- package/components/download-plus/src/index.css +0 -1
- package/components/download-plus/src/types.js +0 -1
- package/components/esri-input-geojson/index.js +0 -1563
- package/components/esri-input-geojson/src/const.js +0 -1
- package/components/esri-input-geojson/src/ctx.js +0 -1
- package/components/esri-input-geojson/src/index.css +0 -1
- package/components/esri-input-geojson/src/types.js +0 -1
- package/components/form/index.css +0 -1
- package/components/form/src/ctx.js +0 -1
- package/components/form/src/index.css +0 -1
- package/components/form/src/types.js +0 -1
- package/components/form/src/utils.js +0 -1
- package/components/form-item/src/ctx.js +0 -1
- package/components/form-item/src/index.css +0 -1
- package/components/form-item/src/types.js +0 -1
- package/components/form-item-renderer/index.css +0 -1
- package/components/form-item-renderer/src/ctx.js +0 -1
- package/components/form-item-renderer/src/index.css +0 -1
- package/components/form-item-renderer/src/symbols.js +0 -1
- package/components/form-item-renderer/src/types.js +0 -1
- package/components/form-item-renderer-template/index.css +0 -1
- package/components/form-item-renderer-template/src/ctx.js +0 -1
- package/components/form-item-renderer-template/src/index.css +0 -1
- package/components/form-item-renderer-template/src/types.js +0 -1
- package/components/geoinput/index.css +0 -1
- package/components/geoinput/src/ctx.js +0 -1
- package/components/geoinput/src/index.css +0 -1
- package/components/geoinput/src/types.js +0 -1
- package/components/geoinput-read/src/ctx.js +0 -1
- package/components/geoinput-read/src/index.css +0 -1
- package/components/geoinput-read/src/types.js +0 -1
- package/components/geoinput-update/index.js +0 -930
- package/components/geoinput-update/src/ctx.js +0 -1
- package/components/geoinput-update/src/index.css +0 -1
- package/components/geoinput-update/src/types.js +0 -1
- package/components/input/index.css +0 -1
- package/components/input/src/ctx.js +0 -1
- package/components/input/src/index.css +0 -1
- package/components/input/src/types.js +0 -1
- package/components/input-link/index.js +0 -163
- package/components/input-link/src/ctx.js +0 -1
- package/components/input-link/src/index.css +0 -1
- package/components/input-link/src/types.js +0 -1
- package/components/input-number/src/ctx.js +0 -1
- package/components/input-number/src/index.css +0 -1
- package/components/input-number/src/types.js +0 -1
- package/components/radio/src/ctx.js +0 -1
- package/components/radio/src/index.css +0 -1
- package/components/radio/src/types.js +0 -1
- package/components/select/src/ctx.js +0 -1
- package/components/select/src/index.css +0 -1
- package/components/select/src/types.js +0 -1
- package/components/slider/index.css +0 -1
- package/components/slider/src/ctx.js +0 -1
- package/components/slider/src/index.css +0 -1
- package/components/slider/src/types.js +0 -1
- package/components/switch/src/ctx.js +0 -1
- package/components/switch/src/index.css +0 -1
- package/components/switch/src/types.js +0 -1
- package/components/templates-default/index.css +0 -1
- package/components/templates-default/index.js +0 -347
- package/components/templates-default/src/ctx.js +0 -1
- package/components/templates-default/src/index.css +0 -1
- package/components/templates-default/src/types.js +0 -1
- package/components/templates-element-plus/index.css +0 -1
- package/components/templates-element-plus/index.js +0 -110
- package/components/templates-element-plus/src/ctx.js +0 -1
- package/components/templates-element-plus/src/index.css +0 -1
- package/components/templates-element-plus/src/types.js +0 -1
- package/components/templates-esri/index.css +0 -1
- package/components/templates-esri/index.js +0 -65
- package/components/templates-esri/src/ctx.js +0 -1
- package/components/templates-esri/src/index.css +0 -1
- package/components/templates-esri/src/types.js +0 -1
- package/components/templates-layout/index.js +0 -141
- package/components/templates-layout/src/ctx.js +0 -1
- package/components/templates-layout/src/index.css +0 -1
- package/components/templates-layout/src/types.js +0 -1
- package/components/templates-mapbox/index.css +0 -1
- package/components/templates-mapbox/index.js +0 -65
- package/components/templates-mapbox/src/ctx.js +0 -1
- package/components/templates-mapbox/src/index.css +0 -1
- package/components/templates-mapbox/src/types.js +0 -1
- package/components/upload/index.js +0 -565
- package/components/upload/src/ctx.js +0 -1
- package/components/upload/src/index.css +0 -1
- package/components/upload/src/types.js +0 -1
- package/components/upload-plus/src/api.js +0 -28
- package/components/upload-plus/src/const.js +0 -1
- package/components/upload-plus/src/ctx.js +0 -1
- package/components/upload-plus/src/index.css +0 -1
- package/components/upload-plus/src/types.js +0 -1
- package/components/van-cascader/src/ctx.js +0 -1
- package/components/van-cascader/src/index.css +0 -1
- package/components/van-cascader/src/types.js +0 -1
- package/components/var-datetime-picker/index.js +0 -299
- package/components/var-datetime-picker/src/const.js +0 -1
- package/components/var-datetime-picker/src/ctx.js +0 -1
- package/components/var-datetime-picker/src/index.css +0 -1
- package/components/var-datetime-picker/src/types.js +0 -1
- package/components/vditor/index.css +0 -1
- package/components/vditor/src/ctx.js +0 -1
- package/components/vditor/src/index.css +0 -1
- package/components/vditor/src/types.js +0 -1
- package/composables/index.css +0 -1
- package/composables/index.js +0 -1
- package/shared/const/index.css +0 -1
- package/shared/const/index.js +0 -1
- package/shared/element-plus/index.css +0 -1
- package/shared/element-plus/index.js +0 -1
- package/shared/form/index.css +0 -1
- package/shared/form/index.js +0 -1
- package/shared/helper/index.css +0 -1
- package/shared/helper/index.js +0 -1
- package/shared/index.css +0 -1
- package/shared/index.js +0 -1
- package/shared/infer-prop/index.css +0 -1
- package/shared/infer-prop/index.js +0 -1
- package/shared/progress-it/index.css +0 -1
- package/shared/progress-it/index.js +0 -1
- package/shared/rules/index.css +0 -1
- package/shared/rules/index.js +0 -1
- package/shared/types/form/index.css +0 -1
- package/shared/types/form/index.js +0 -1
- package/shared/types/index.css +0 -1
- package/shared/types/index.js +0 -1
- package/shared/types/source/index.css +0 -1
- package/shared/types/source/index.js +0 -1
- package/shared/types/source-manager/index.css +0 -1
- package/shared/types/source-manager/index.js +0 -1
- package/shared/upload/index.css +0 -1
- package/shared/upload/index.js +0 -1
- /package/{components/button/index.css → shared/types/form/index.mjs} +0 -0
- /package/{components/button/src/index.css → shared/types/index.mjs} +0 -0
- /package/{components/cascader/src/index.css → shared/types/source/index.mjs} +0 -0
- /package/{components/button/src/types.js → shared/types/source-manager/index.mjs} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Func } from '@vunk/core';
|
|
1
2
|
import { UploadFile } from 'element-plus';
|
|
2
3
|
import { PropType } from 'vue';
|
|
3
4
|
export declare const props: {
|
|
@@ -14,13 +15,13 @@ export declare const props: {
|
|
|
14
15
|
default: any;
|
|
15
16
|
};
|
|
16
17
|
onDownload: {
|
|
17
|
-
type: PropType<
|
|
18
|
+
type: PropType<Func<UploadFile>>;
|
|
18
19
|
default: any;
|
|
19
20
|
};
|
|
20
21
|
beforeRemove: {
|
|
21
|
-
readonly type: PropType<(uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
22
|
+
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
22
23
|
readonly required: false;
|
|
23
|
-
readonly validator: (val: unknown) => boolean;
|
|
24
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
25
|
__epPropKey: true;
|
|
25
26
|
};
|
|
26
27
|
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
@@ -87,20 +88,20 @@ export declare const props: {
|
|
|
87
88
|
readonly prototype: any;
|
|
88
89
|
})[], unknown, unknown, () => void, boolean>;
|
|
89
90
|
crossorigin: {
|
|
90
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
91
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
91
92
|
readonly required: false;
|
|
92
|
-
readonly validator: (val: unknown) => boolean;
|
|
93
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
94
|
__epPropKey: true;
|
|
94
95
|
};
|
|
95
96
|
action: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
96
97
|
headers: {
|
|
97
|
-
readonly type: PropType<unknown
|
|
98
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
98
99
|
readonly required: false;
|
|
99
|
-
readonly validator: (val: unknown) => boolean;
|
|
100
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
100
101
|
__epPropKey: true;
|
|
101
102
|
};
|
|
102
103
|
method: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
103
|
-
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus
|
|
104
|
+
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
104
105
|
multiple: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
105
106
|
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
106
107
|
drag: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -121,37 +122,13 @@ export declare const props: {
|
|
|
121
122
|
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
122
123
|
disabled: BooleanConstructor;
|
|
123
124
|
limit: NumberConstructor;
|
|
124
|
-
label: StringConstructor;
|
|
125
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
126
|
-
prop: {
|
|
127
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
128
|
-
readonly required: false;
|
|
129
|
-
readonly validator: (val: unknown) => boolean;
|
|
130
|
-
__epPropKey: true;
|
|
131
|
-
};
|
|
132
125
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
133
|
-
rules: {
|
|
134
|
-
readonly type: PropType<unknown>;
|
|
135
|
-
readonly required: false;
|
|
136
|
-
readonly validator: (val: unknown) => boolean;
|
|
137
|
-
__epPropKey: true;
|
|
138
|
-
};
|
|
139
|
-
error: StringConstructor;
|
|
140
|
-
validateStatus: {
|
|
141
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
142
|
-
readonly required: false;
|
|
143
|
-
readonly validator: (val: unknown) => boolean;
|
|
144
|
-
__epPropKey: true;
|
|
145
|
-
};
|
|
146
|
-
for: StringConstructor;
|
|
147
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
148
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
149
126
|
formItemSize: {
|
|
150
127
|
type: PropType<"default" | "small" | "large">;
|
|
151
128
|
default: "default" | "small" | "large";
|
|
152
129
|
};
|
|
153
130
|
formItemSlots: {
|
|
154
|
-
type: PropType<import("
|
|
131
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
155
132
|
default: any;
|
|
156
133
|
};
|
|
157
134
|
elRef: {
|
|
@@ -170,13 +147,34 @@ export declare const props: {
|
|
|
170
147
|
type: PropType<"right">;
|
|
171
148
|
default: string;
|
|
172
149
|
};
|
|
150
|
+
label: StringConstructor;
|
|
151
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
152
|
+
prop: {
|
|
153
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
154
|
+
readonly required: false;
|
|
155
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
156
|
+
__epPropKey: true;
|
|
157
|
+
};
|
|
158
|
+
rules: {
|
|
159
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
160
|
+
readonly required: false;
|
|
161
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
162
|
+
__epPropKey: true;
|
|
163
|
+
};
|
|
164
|
+
error: StringConstructor;
|
|
165
|
+
validateStatus: {
|
|
166
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
167
|
+
readonly required: false;
|
|
168
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
169
|
+
__epPropKey: true;
|
|
170
|
+
};
|
|
171
|
+
for: StringConstructor;
|
|
172
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
173
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
173
174
|
};
|
|
174
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"
|
|
175
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"disabled", keyof T2> | Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"drag", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"disabled" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "labelPosition" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "name" | "data" | "multiple" | "onChange" | "withCredentials" | "drag" | "beforeUpload" | "beforeRemove" | "onRemove" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit" | "onDownload" | "preview" | "tip", keyof T2>, KE> : Extract<"disabled" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "labelPosition" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "name" | "data" | "multiple" | "onChange" | "withCredentials" | "drag" | "beforeUpload" | "beforeRemove" | "onRemove" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit" | "onDownload" | "preview" | "tip", keyof T2>]: { [k in Extract<"disabled" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "labelPosition" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "name" | "data" | "multiple" | "onChange" | "withCredentials" | "drag" | "beforeUpload" | "beforeRemove" | "onRemove" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit" | "onDownload" | "preview" | "tip", keyof T2>]: T2[k]; }[P]; }>;
|
|
175
176
|
export declare const emits: {
|
|
176
177
|
'update:fileList': any;
|
|
177
178
|
remove: (e: UploadFile) => UploadFile;
|
|
178
179
|
};
|
|
179
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("remove" | "update:fileList")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"remove"
|
|
180
|
-
'update:fileList': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
181
|
-
remove: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
182
|
-
}[P]; };
|
|
180
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("remove" | "update:fileList")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"remove" | "update:fileList", KE> : "remove" | "update:fileList"]: { [k in "remove" | "update:fileList"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { UploadFile } from 'element-plus';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
+
import { Func } from '@vunk/core';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
listType: {
|
|
5
|
-
type: PropType<"
|
|
6
|
+
type: PropType<"picture" | "picture-card" | "text">;
|
|
6
7
|
default: string;
|
|
7
8
|
};
|
|
8
9
|
file: {
|
|
@@ -14,11 +15,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
15
|
default: boolean;
|
|
15
16
|
};
|
|
16
17
|
onPreview: {
|
|
17
|
-
type: PropType<
|
|
18
|
+
type: PropType<Func<UploadFile>>;
|
|
18
19
|
default: () => () => void;
|
|
19
20
|
};
|
|
20
21
|
onDownload: {
|
|
21
|
-
type: PropType<
|
|
22
|
+
type: PropType<Func<UploadFile>>;
|
|
22
23
|
default: any;
|
|
23
24
|
};
|
|
24
25
|
preview: {
|
|
@@ -31,14 +32,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
32
|
nsIcon: {
|
|
32
33
|
namespace: import("vue").ComputedRef<string>;
|
|
33
34
|
b: (blockSuffix?: string) => string;
|
|
34
|
-
e: (element?: string) => string;
|
|
35
|
-
m: (modifier?: string) => string;
|
|
36
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
37
|
-
em: (element?: string, modifier?: string) => string;
|
|
38
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
39
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
35
|
+
e: (element?: string | undefined) => string;
|
|
36
|
+
m: (modifier?: string | undefined) => string;
|
|
37
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
38
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
39
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
40
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
40
41
|
is: {
|
|
41
|
-
(name: string, state: boolean): string;
|
|
42
|
+
(name: string, state: boolean | undefined): string;
|
|
42
43
|
(name: string): string;
|
|
43
44
|
};
|
|
44
45
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -49,14 +50,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
50
|
nsUpload: {
|
|
50
51
|
namespace: import("vue").ComputedRef<string>;
|
|
51
52
|
b: (blockSuffix?: string) => string;
|
|
52
|
-
e: (element?: string) => string;
|
|
53
|
-
m: (modifier?: string) => string;
|
|
54
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
55
|
-
em: (element?: string, modifier?: string) => string;
|
|
56
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
57
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
53
|
+
e: (element?: string | undefined) => string;
|
|
54
|
+
m: (modifier?: string | undefined) => string;
|
|
55
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
56
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
57
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
58
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
58
59
|
is: {
|
|
59
|
-
(name: string, state: boolean): string;
|
|
60
|
+
(name: string, state: boolean | undefined): string;
|
|
60
61
|
(name: string): string;
|
|
61
62
|
};
|
|
62
63
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -69,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
70
|
remove: (e: UploadFile) => UploadFile;
|
|
70
71
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
72
|
listType: {
|
|
72
|
-
type: PropType<"
|
|
73
|
+
type: PropType<"picture" | "picture-card" | "text">;
|
|
73
74
|
default: string;
|
|
74
75
|
};
|
|
75
76
|
file: {
|
|
@@ -81,11 +82,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
82
|
default: boolean;
|
|
82
83
|
};
|
|
83
84
|
onPreview: {
|
|
84
|
-
type: PropType<
|
|
85
|
+
type: PropType<Func<UploadFile>>;
|
|
85
86
|
default: () => () => void;
|
|
86
87
|
};
|
|
87
88
|
onDownload: {
|
|
88
|
-
type: PropType<
|
|
89
|
+
type: PropType<Func<UploadFile>>;
|
|
89
90
|
default: any;
|
|
90
91
|
};
|
|
91
92
|
preview: {
|
|
@@ -96,9 +97,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
97
|
onRemove?: (e: UploadFile) => any;
|
|
97
98
|
}, {
|
|
98
99
|
disabled: boolean;
|
|
100
|
+
file: UploadFile;
|
|
99
101
|
onPreview: (arg: UploadFile) => any;
|
|
100
102
|
listType: "text" | "picture" | "picture-card";
|
|
101
|
-
file: UploadFile;
|
|
102
103
|
onDownload: (arg: UploadFile) => any;
|
|
103
104
|
preview: boolean;
|
|
104
105
|
}, {}>;
|
|
@@ -18,13 +18,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
default: any;
|
|
19
19
|
};
|
|
20
20
|
onDownload: {
|
|
21
|
-
type: import("vue").PropType<(
|
|
21
|
+
type: import("vue").PropType<import("@vunk/core").Func<UploadFile>>;
|
|
22
22
|
default: any;
|
|
23
23
|
};
|
|
24
24
|
beforeRemove: {
|
|
25
25
|
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
26
26
|
readonly required: false;
|
|
27
|
-
readonly validator: (val: unknown) => boolean;
|
|
27
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
28
|
__epPropKey: true;
|
|
29
29
|
};
|
|
30
30
|
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
@@ -91,20 +91,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
readonly prototype: any;
|
|
92
92
|
})[], unknown, unknown, () => void, boolean>;
|
|
93
93
|
crossorigin: {
|
|
94
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
94
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
95
95
|
readonly required: false;
|
|
96
|
-
readonly validator: (val: unknown) => boolean;
|
|
96
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
97
|
__epPropKey: true;
|
|
98
98
|
};
|
|
99
99
|
action: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
100
100
|
headers: {
|
|
101
|
-
readonly type: import("vue").PropType<unknown
|
|
101
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
102
102
|
readonly required: false;
|
|
103
|
-
readonly validator: (val: unknown) => boolean;
|
|
103
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
104
|
__epPropKey: true;
|
|
105
105
|
};
|
|
106
106
|
method: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
107
|
-
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>> | ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus
|
|
107
|
+
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
108
108
|
multiple: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
109
109
|
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
110
110
|
drag: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -125,37 +125,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
125
|
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
126
126
|
disabled: BooleanConstructor;
|
|
127
127
|
limit: NumberConstructor;
|
|
128
|
-
label: StringConstructor;
|
|
129
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
130
|
-
prop: {
|
|
131
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
132
|
-
readonly required: false;
|
|
133
|
-
readonly validator: (val: unknown) => boolean;
|
|
134
|
-
__epPropKey: true;
|
|
135
|
-
};
|
|
136
128
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
137
|
-
rules: {
|
|
138
|
-
readonly type: import("vue").PropType<unknown>;
|
|
139
|
-
readonly required: false;
|
|
140
|
-
readonly validator: (val: unknown) => boolean;
|
|
141
|
-
__epPropKey: true;
|
|
142
|
-
};
|
|
143
|
-
error: StringConstructor;
|
|
144
|
-
validateStatus: {
|
|
145
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
146
|
-
readonly required: false;
|
|
147
|
-
readonly validator: (val: unknown) => boolean;
|
|
148
|
-
__epPropKey: true;
|
|
149
|
-
};
|
|
150
|
-
for: StringConstructor;
|
|
151
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
152
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
153
129
|
formItemSize: {
|
|
154
130
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
155
131
|
default: "default" | "small" | "large";
|
|
156
132
|
};
|
|
157
133
|
formItemSlots: {
|
|
158
|
-
type: import("vue").PropType<import("
|
|
134
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
159
135
|
default: any;
|
|
160
136
|
};
|
|
161
137
|
elRef: {
|
|
@@ -174,6 +150,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
150
|
type: import("vue").PropType<"right">;
|
|
175
151
|
default: string;
|
|
176
152
|
};
|
|
153
|
+
label: StringConstructor;
|
|
154
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
155
|
+
prop: {
|
|
156
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
157
|
+
readonly required: false;
|
|
158
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
159
|
+
__epPropKey: true;
|
|
160
|
+
};
|
|
161
|
+
rules: {
|
|
162
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
163
|
+
readonly required: false;
|
|
164
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
165
|
+
__epPropKey: true;
|
|
166
|
+
};
|
|
167
|
+
error: StringConstructor;
|
|
168
|
+
validateStatus: {
|
|
169
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
170
|
+
readonly required: false;
|
|
171
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
|
+
__epPropKey: true;
|
|
173
|
+
};
|
|
174
|
+
for: StringConstructor;
|
|
175
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
176
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
177
177
|
}, {
|
|
178
178
|
formItemBindProps: import("vue").ComputedRef<{}>;
|
|
179
179
|
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
|
|
@@ -182,21 +182,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
182
|
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
183
183
|
coreBindProps: import("vue").ComputedRef<{
|
|
184
184
|
name: string;
|
|
185
|
-
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
186
|
-
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
187
185
|
data: import("element-plus/es/utils").Mutable<{}>;
|
|
186
|
+
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
187
|
+
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
188
|
+
withCredentials: boolean;
|
|
189
|
+
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
188
190
|
beforeRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>;
|
|
189
191
|
onRemove: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => void) & ((e: UploadFile) => any);
|
|
190
192
|
onPreview: (uploadFile: UploadFile) => void;
|
|
191
193
|
onProgress: (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
192
194
|
onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
193
195
|
onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
194
|
-
crossorigin: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
|
|
196
|
+
crossorigin: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
|
|
195
197
|
action: string;
|
|
196
198
|
headers: unknown;
|
|
197
199
|
method: string;
|
|
198
|
-
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
199
|
-
withCredentials: boolean;
|
|
200
200
|
showFileList: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
201
201
|
accept: string;
|
|
202
202
|
autoUpload: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -229,13 +229,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
229
|
default: any;
|
|
230
230
|
};
|
|
231
231
|
onDownload: {
|
|
232
|
-
type: import("vue").PropType<(
|
|
232
|
+
type: import("vue").PropType<import("@vunk/core").Func<UploadFile>>;
|
|
233
233
|
default: any;
|
|
234
234
|
};
|
|
235
235
|
beforeRemove: {
|
|
236
236
|
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
237
237
|
readonly required: false;
|
|
238
|
-
readonly validator: (val: unknown) => boolean;
|
|
238
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
239
239
|
__epPropKey: true;
|
|
240
240
|
};
|
|
241
241
|
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
@@ -302,20 +302,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
302
|
readonly prototype: any;
|
|
303
303
|
})[], unknown, unknown, () => void, boolean>;
|
|
304
304
|
crossorigin: {
|
|
305
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
305
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
306
306
|
readonly required: false;
|
|
307
|
-
readonly validator: (val: unknown) => boolean;
|
|
307
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
308
308
|
__epPropKey: true;
|
|
309
309
|
};
|
|
310
310
|
action: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
311
311
|
headers: {
|
|
312
|
-
readonly type: import("vue").PropType<unknown
|
|
312
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
313
313
|
readonly required: false;
|
|
314
|
-
readonly validator: (val: unknown) => boolean;
|
|
314
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
315
315
|
__epPropKey: true;
|
|
316
316
|
};
|
|
317
317
|
method: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
318
|
-
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>> | ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus
|
|
318
|
+
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
319
319
|
multiple: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
320
320
|
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
321
321
|
drag: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -336,37 +336,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
336
336
|
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
337
337
|
disabled: BooleanConstructor;
|
|
338
338
|
limit: NumberConstructor;
|
|
339
|
-
label: StringConstructor;
|
|
340
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
341
|
-
prop: {
|
|
342
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
343
|
-
readonly required: false;
|
|
344
|
-
readonly validator: (val: unknown) => boolean;
|
|
345
|
-
__epPropKey: true;
|
|
346
|
-
};
|
|
347
339
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
348
|
-
rules: {
|
|
349
|
-
readonly type: import("vue").PropType<unknown>;
|
|
350
|
-
readonly required: false;
|
|
351
|
-
readonly validator: (val: unknown) => boolean;
|
|
352
|
-
__epPropKey: true;
|
|
353
|
-
};
|
|
354
|
-
error: StringConstructor;
|
|
355
|
-
validateStatus: {
|
|
356
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
357
|
-
readonly required: false;
|
|
358
|
-
readonly validator: (val: unknown) => boolean;
|
|
359
|
-
__epPropKey: true;
|
|
360
|
-
};
|
|
361
|
-
for: StringConstructor;
|
|
362
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
363
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
364
340
|
formItemSize: {
|
|
365
341
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
366
342
|
default: "default" | "small" | "large";
|
|
367
343
|
};
|
|
368
344
|
formItemSlots: {
|
|
369
|
-
type: import("vue").PropType<import("
|
|
345
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
370
346
|
default: any;
|
|
371
347
|
};
|
|
372
348
|
elRef: {
|
|
@@ -385,24 +361,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
385
361
|
type: import("vue").PropType<"right">;
|
|
386
362
|
default: string;
|
|
387
363
|
};
|
|
364
|
+
label: StringConstructor;
|
|
365
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
366
|
+
prop: {
|
|
367
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
368
|
+
readonly required: false;
|
|
369
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
370
|
+
__epPropKey: true;
|
|
371
|
+
};
|
|
372
|
+
rules: {
|
|
373
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
374
|
+
readonly required: false;
|
|
375
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
376
|
+
__epPropKey: true;
|
|
377
|
+
};
|
|
378
|
+
error: StringConstructor;
|
|
379
|
+
validateStatus: {
|
|
380
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
381
|
+
readonly required: false;
|
|
382
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
383
|
+
__epPropKey: true;
|
|
384
|
+
};
|
|
385
|
+
for: StringConstructor;
|
|
386
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
387
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
388
388
|
}>> & {
|
|
389
389
|
onRemove?: (e: UploadFile) => any;
|
|
390
390
|
"onUpdate:fileList"?: (...args: any[] | unknown[]) => any;
|
|
391
391
|
}, {
|
|
392
|
-
|
|
392
|
+
disabled: boolean;
|
|
393
393
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
394
|
-
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
395
|
-
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
396
394
|
formItemSize: "default" | "small" | "large";
|
|
397
|
-
formItemSlots: import("
|
|
395
|
+
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
398
396
|
inline: boolean;
|
|
399
397
|
readonly: boolean;
|
|
400
398
|
labelPosition: "right";
|
|
399
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
400
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
401
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
401
402
|
name: string;
|
|
402
|
-
disabled: boolean;
|
|
403
|
-
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
404
|
-
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
405
403
|
data: import("element-plus/es/utils").Mutable<{}>;
|
|
404
|
+
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
405
|
+
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
406
|
+
withCredentials: boolean;
|
|
407
|
+
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
406
408
|
beforeUpload: Function;
|
|
407
409
|
onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
408
410
|
onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -412,8 +414,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
412
414
|
onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
413
415
|
action: string;
|
|
414
416
|
method: string;
|
|
415
|
-
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
416
|
-
withCredentials: boolean;
|
|
417
417
|
showFileList: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
418
418
|
accept: string;
|
|
419
419
|
fileList: import("element-plus").UploadUserFile[];
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
1
|
@keyframes hide {
|
|
3
|
-
|
|
2
|
+
0% {
|
|
4
3
|
opacity: 1; /* 初始状态为完全显示 */
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
7
6
|
opacity: 0; /* 最终状态为完全隐藏 */
|
|
8
7
|
display: none; /* 同时隐藏元素 */
|
|
9
|
-
}
|
|
10
8
|
}
|
|
11
|
-
|
|
9
|
+
}
|
|
12
10
|
.vkf-upload-plus{
|
|
13
11
|
--vkf-upload-plus-height: 34px;
|
|
14
12
|
}
|
|
@@ -54,7 +52,6 @@
|
|
|
54
52
|
.vkf-upload-plus-cube .error{
|
|
55
53
|
background: var(--el-color-danger);
|
|
56
54
|
}
|
|
57
|
-
|
|
58
55
|
.vkf-upload-plus-btng >.el-button:first-child{
|
|
59
56
|
border-radius: 0;
|
|
60
57
|
}
|
|
@@ -85,4 +82,3 @@
|
|
|
85
82
|
.vkf-upload-plus-input{
|
|
86
83
|
display: none;
|
|
87
84
|
}
|
|
88
|
-
|