@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,11 +1,14 @@
|
|
|
1
1
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
-
import { defineComponent,
|
|
2
|
+
import { defineComponent, watchEffect, ref, watch, computed, onBeforeUnmount, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, createElementBlock, Fragment, renderList, normalizeStyle, createCommentVNode, createTextVNode } from 'vue';
|
|
3
3
|
import { rFile } from '@skzz/platform/api/basic';
|
|
4
4
|
import { restFetch as restFetch$1 } from '@skzz/platform/shared/fetch/platform';
|
|
5
5
|
import { ElButtonGroup, ElButton, ElInput, ElMessage } from 'element-plus';
|
|
6
6
|
import { RestFetch } from '@vunk/core/shared/utils-fetch';
|
|
7
|
+
import { g as getToken } from '../index.mjs';
|
|
7
8
|
import { useModelComputed } from '@vunk/core/composables';
|
|
9
|
+
import { c as circle_close_filled_default, d as download_default } from '../index2.mjs';
|
|
8
10
|
import { ToggleHandler } from '@vunk/core/shared/utils-class';
|
|
11
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
9
12
|
|
|
10
13
|
const props = {
|
|
11
14
|
..._VkfFormItemCtx.props,
|
|
@@ -52,15 +55,6 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
52
55
|
return Status2;
|
|
53
56
|
})(Status || {});
|
|
54
57
|
|
|
55
|
-
const KeyConfig = {
|
|
56
|
-
TokenKey: "VUNK_SKZZ_REST_TOKEN",
|
|
57
|
-
ApplicationKey: "VUNK_SKZZ_REST_APPLICATION",
|
|
58
|
-
TenantKey: "VUNK_SKZZ_REST_TENANT"
|
|
59
|
-
};
|
|
60
|
-
function getToken() {
|
|
61
|
-
return localStorage.getItem(KeyConfig.TokenKey) || "";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
58
|
const restFetch = new RestFetch({
|
|
65
59
|
baseURL: restFetch$1.baseURL,
|
|
66
60
|
presetRequestInit: (config) => {
|
|
@@ -118,48 +112,7 @@ const downChunk = (params, init) => {
|
|
|
118
112
|
});
|
|
119
113
|
};
|
|
120
114
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
var circle_close_filled_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
|
|
124
|
-
name: "CircleCloseFilled",
|
|
125
|
-
__name: "circle-close-filled",
|
|
126
|
-
setup(__props) {
|
|
127
|
-
return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
|
|
128
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
129
|
-
viewBox: "0 0 1024 1024"
|
|
130
|
-
}, [createElementVNode("path", {
|
|
131
|
-
fill: "currentColor",
|
|
132
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
133
|
-
})]));
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
// src/components/circle-close-filled.vue
|
|
138
|
-
var circle_close_filled_default = circle_close_filled_vue_vue_type_script_setup_true_lang_default;
|
|
139
|
-
var download_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
|
|
140
|
-
name: "Download",
|
|
141
|
-
__name: "download",
|
|
142
|
-
setup(__props) {
|
|
143
|
-
return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
|
|
144
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
145
|
-
viewBox: "0 0 1024 1024"
|
|
146
|
-
}, [createElementVNode("path", {
|
|
147
|
-
fill: "currentColor",
|
|
148
|
-
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
|
|
149
|
-
})]));
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
// src/components/download.vue
|
|
154
|
-
var download_default = download_vue_vue_type_script_setup_true_lang_default;
|
|
155
|
-
|
|
156
|
-
var __defProp = Object.defineProperty;
|
|
157
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
158
|
-
var __publicField = (obj, key, value) => {
|
|
159
|
-
__defNormalProp(obj, key + "" , value);
|
|
160
|
-
return value;
|
|
161
|
-
};
|
|
162
|
-
var script = defineComponent({
|
|
115
|
+
var _sfc_main = defineComponent({
|
|
163
116
|
name: "VkfDownloadPlus",
|
|
164
117
|
components: {
|
|
165
118
|
VkfFormItem,
|
|
@@ -169,9 +122,7 @@ var script = defineComponent({
|
|
|
169
122
|
},
|
|
170
123
|
props,
|
|
171
124
|
emits,
|
|
172
|
-
setup(props2, {
|
|
173
|
-
emit
|
|
174
|
-
}) {
|
|
125
|
+
setup(props2, { emit }) {
|
|
175
126
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
176
127
|
watchEffect(() => {
|
|
177
128
|
restFetch.baseURL = props2.url || restFetch$1.baseURL;
|
|
@@ -208,11 +159,12 @@ var script = defineComponent({
|
|
|
208
159
|
const fileSize = fileInfo.value.size;
|
|
209
160
|
const fileId = fileInfo.value.id;
|
|
210
161
|
const chunksLength = Math.ceil(fileSize / props2.chunkSize);
|
|
211
|
-
chunks.value = Array.from({
|
|
212
|
-
length: chunksLength
|
|
213
|
-
}, (_, i) => {
|
|
162
|
+
chunks.value = Array.from({ length: chunksLength }, (_, i) => {
|
|
214
163
|
const start = i * props2.chunkSize;
|
|
215
|
-
const end = Math.min(
|
|
164
|
+
const end = Math.min(
|
|
165
|
+
start + props2.chunkSize,
|
|
166
|
+
fileSize
|
|
167
|
+
) - 1;
|
|
216
168
|
let downloadedChunk = {};
|
|
217
169
|
if (chunks.value[i] && chunks.value[i].start === start && chunks.value[i].end === end && chunks.value[i].status === Status.done) {
|
|
218
170
|
downloadedChunk = chunks.value[i];
|
|
@@ -229,14 +181,17 @@ var script = defineComponent({
|
|
|
229
181
|
};
|
|
230
182
|
});
|
|
231
183
|
fileStatus.value = Status.downloading;
|
|
232
|
-
const needDownloadChunks = chunks.value.filter(
|
|
184
|
+
const needDownloadChunks = chunks.value.filter(
|
|
185
|
+
(v) => v.status === Status.wait || v.status === Status.error
|
|
186
|
+
);
|
|
233
187
|
rChunkFiles(needDownloadChunks).then(() => {
|
|
234
188
|
const blobs = chunks.value.map((item) => {
|
|
235
189
|
return item.data;
|
|
236
190
|
});
|
|
237
|
-
return new Blob(
|
|
238
|
-
|
|
239
|
-
|
|
191
|
+
return new Blob(
|
|
192
|
+
blobs,
|
|
193
|
+
{ type: "application/octet-stream" }
|
|
194
|
+
);
|
|
240
195
|
}).then((blob) => {
|
|
241
196
|
const url = URL.createObjectURL(blob);
|
|
242
197
|
const a = document.createElement("a");
|
|
@@ -267,7 +222,9 @@ var script = defineComponent({
|
|
|
267
222
|
const start = async () => {
|
|
268
223
|
while (counter < len && max > 0) {
|
|
269
224
|
max--;
|
|
270
|
-
const i = chunks2.findIndex(
|
|
225
|
+
const i = chunks2.findIndex(
|
|
226
|
+
(v) => v.status === Status.wait || v.status === Status.error
|
|
227
|
+
);
|
|
271
228
|
const currentChunk = chunks2[i];
|
|
272
229
|
if (currentChunk) {
|
|
273
230
|
currentChunk.status = Status.downloading;
|
|
@@ -294,7 +251,12 @@ var script = defineComponent({
|
|
|
294
251
|
retryArr[index] = 0;
|
|
295
252
|
}
|
|
296
253
|
retryArr[index]++;
|
|
297
|
-
console.warn(
|
|
254
|
+
console.warn(
|
|
255
|
+
index,
|
|
256
|
+
currentChunk,
|
|
257
|
+
retryArr[index],
|
|
258
|
+
"\u6B21\u62A5\u9519"
|
|
259
|
+
);
|
|
298
260
|
currentChunk.progress = -1;
|
|
299
261
|
if (retryArr[index] >= retrys) {
|
|
300
262
|
return reject();
|
|
@@ -326,7 +288,6 @@ var script = defineComponent({
|
|
|
326
288
|
class OnlineToggle extends ToggleHandler {
|
|
327
289
|
constructor(listener) {
|
|
328
290
|
super();
|
|
329
|
-
__publicField(this, "listener");
|
|
330
291
|
this.listener = listener;
|
|
331
292
|
}
|
|
332
293
|
add() {
|
|
@@ -358,93 +319,103 @@ var script = defineComponent({
|
|
|
358
319
|
}
|
|
359
320
|
});
|
|
360
321
|
|
|
361
|
-
const _hoisted_1 = {
|
|
362
|
-
|
|
363
|
-
};
|
|
364
|
-
const _hoisted_2 = {
|
|
365
|
-
class: "vkf-download-plus-label"
|
|
366
|
-
};
|
|
322
|
+
const _hoisted_1 = { class: "vkf-download-plus-main" };
|
|
323
|
+
const _hoisted_2 = { class: "vkf-download-plus-label" };
|
|
367
324
|
const _hoisted_3 = {
|
|
368
325
|
key: 0,
|
|
369
326
|
class: "vkf-download-plus-cube-x"
|
|
370
327
|
};
|
|
371
|
-
function
|
|
328
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
372
329
|
const _component_ElInput = resolveComponent("ElInput");
|
|
373
330
|
const _component_el_button = resolveComponent("el-button");
|
|
374
331
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
375
332
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
376
333
|
return openBlock(), createBlock(
|
|
377
334
|
_component_VkfFormItem,
|
|
378
|
-
mergeProps(_ctx.formItemBindProps, {
|
|
379
|
-
class: "vkf-download-plus"
|
|
380
|
-
}),
|
|
335
|
+
mergeProps(_ctx.formItemBindProps, { class: "vkf-download-plus" }),
|
|
381
336
|
{
|
|
382
|
-
default: withCtx(() => [
|
|
383
|
-
|
|
384
|
-
"
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
337
|
+
default: withCtx(() => [
|
|
338
|
+
createElementVNode("div", _hoisted_1, [
|
|
339
|
+
createElementVNode("label", _hoisted_2, [
|
|
340
|
+
createVNode(_component_ElInput, {
|
|
341
|
+
class: normalizeClass({
|
|
342
|
+
"is-error": _ctx.fileStatus === _ctx.Status.error
|
|
343
|
+
}),
|
|
344
|
+
"prefix-icon": _ctx.filePrefixIcon,
|
|
345
|
+
"model-value": _ctx.fileInfo?.realName,
|
|
346
|
+
readonly: ""
|
|
347
|
+
}, null, 8, ["class", "prefix-icon", "model-value"]),
|
|
348
|
+
_ctx.fileStatus === _ctx.Status.downloading || _ctx.fileStatus === _ctx.Status.pause ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
349
|
+
(openBlock(true), createElementBlock(
|
|
350
|
+
Fragment,
|
|
351
|
+
null,
|
|
352
|
+
renderList(_ctx.chunks, (chunk) => {
|
|
353
|
+
return openBlock(), createElementBlock(
|
|
354
|
+
"div",
|
|
355
|
+
{
|
|
356
|
+
key: chunk.fileId + "-" + chunk.index,
|
|
357
|
+
class: normalizeClass(["vkf-download-plus-cube", {
|
|
358
|
+
"error": chunk.status == _ctx.Status.error
|
|
359
|
+
}]),
|
|
360
|
+
style: normalizeStyle({
|
|
361
|
+
width: 100 / _ctx.chunks.length + "%"
|
|
362
|
+
})
|
|
363
|
+
},
|
|
364
|
+
[
|
|
365
|
+
createElementVNode(
|
|
366
|
+
"div",
|
|
367
|
+
{
|
|
368
|
+
class: normalizeClass({
|
|
369
|
+
"uploading": chunk.progress > 0 && chunk.progress < 100,
|
|
370
|
+
"success": chunk.progress == 100
|
|
371
|
+
}),
|
|
372
|
+
style: normalizeStyle({
|
|
373
|
+
height: chunk.progress + "%"
|
|
374
|
+
})
|
|
375
|
+
},
|
|
376
|
+
null,
|
|
377
|
+
6
|
|
378
|
+
/* CLASS, STYLE */
|
|
379
|
+
)
|
|
380
|
+
],
|
|
381
|
+
6
|
|
382
|
+
/* CLASS, STYLE */
|
|
383
|
+
);
|
|
410
384
|
}),
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
_: 1
|
|
446
|
-
/* STABLE */
|
|
447
|
-
})])]),
|
|
385
|
+
128
|
|
386
|
+
/* KEYED_FRAGMENT */
|
|
387
|
+
))
|
|
388
|
+
])) : createCommentVNode("v-if", true)
|
|
389
|
+
]),
|
|
390
|
+
createVNode(_component_el_button_group, { class: "vkf-download-plus-btng" }, {
|
|
391
|
+
default: withCtx(() => [
|
|
392
|
+
_ctx.fileStatus === _ctx.Status.downloading ? (openBlock(), createBlock(_component_el_button, {
|
|
393
|
+
key: 0,
|
|
394
|
+
type: "danger",
|
|
395
|
+
onClick: _ctx.handlePause
|
|
396
|
+
}, {
|
|
397
|
+
default: withCtx(() => [
|
|
398
|
+
createTextVNode(" \u6682\u505C ")
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
/* STABLE */
|
|
402
|
+
}, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
|
|
403
|
+
key: 1,
|
|
404
|
+
type: "primary",
|
|
405
|
+
onClick: _ctx.handleDownload
|
|
406
|
+
}, {
|
|
407
|
+
default: withCtx(() => [
|
|
408
|
+
createTextVNode(" \u4E0B\u8F7D ")
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
/* STABLE */
|
|
412
|
+
}, 8, ["onClick"]))
|
|
413
|
+
]),
|
|
414
|
+
_: 1
|
|
415
|
+
/* STABLE */
|
|
416
|
+
})
|
|
417
|
+
])
|
|
418
|
+
]),
|
|
448
419
|
_: 1
|
|
449
420
|
/* STABLE */
|
|
450
421
|
},
|
|
@@ -452,16 +423,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
452
423
|
/* FULL_PROPS */
|
|
453
424
|
);
|
|
454
425
|
}
|
|
455
|
-
|
|
456
|
-
script.render = render;
|
|
457
|
-
script.__file = "download-plus/src/index.vue";
|
|
426
|
+
var VkfDownloadPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\download-plus\\src\\index.vue"]]);
|
|
458
427
|
|
|
459
428
|
var types = /*#__PURE__*/Object.freeze({
|
|
460
429
|
__proto__: null
|
|
461
430
|
});
|
|
462
431
|
|
|
463
|
-
|
|
464
|
-
app.component(
|
|
432
|
+
VkfDownloadPlus.install = (app) => {
|
|
433
|
+
app.component(
|
|
434
|
+
VkfDownloadPlus.name || "VkfDownloadPlus",
|
|
435
|
+
VkfDownloadPlus
|
|
436
|
+
);
|
|
465
437
|
};
|
|
466
438
|
|
|
467
|
-
export {
|
|
439
|
+
export { VkfDownloadPlus, types as __VkfDownloadPlus, VkfDownloadPlus as default };
|
|
@@ -6,7 +6,7 @@ export declare const downChunk: (params: {
|
|
|
6
6
|
end: number;
|
|
7
7
|
fileServiceType?: string;
|
|
8
8
|
}, init?: {
|
|
9
|
-
onprogress?: XMLHttpRequestEventTarget[
|
|
9
|
+
onprogress?: XMLHttpRequestEventTarget["onprogress"];
|
|
10
10
|
xhrs?: XMLHttpRequest[];
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
data: Blob;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FileServiceType } from './types';
|
|
1
2
|
import { Status } from './const';
|
|
2
3
|
import { PropType } from 'vue';
|
|
3
4
|
export declare const props: {
|
|
@@ -17,7 +18,7 @@ export declare const props: {
|
|
|
17
18
|
default: number;
|
|
18
19
|
};
|
|
19
20
|
fileServiceType: {
|
|
20
|
-
type: PropType<
|
|
21
|
+
type: PropType<FileServiceType>;
|
|
21
22
|
default: any;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
@@ -28,37 +29,13 @@ export declare const props: {
|
|
|
28
29
|
type: PropType<Status>;
|
|
29
30
|
default: any;
|
|
30
31
|
};
|
|
31
|
-
label: StringConstructor;
|
|
32
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
33
|
-
prop: {
|
|
34
|
-
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>>;
|
|
35
|
-
readonly required: false;
|
|
36
|
-
readonly validator: (val: unknown) => boolean;
|
|
37
|
-
__epPropKey: true;
|
|
38
|
-
};
|
|
39
32
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
40
|
-
rules: {
|
|
41
|
-
readonly type: PropType<unknown>;
|
|
42
|
-
readonly required: false;
|
|
43
|
-
readonly validator: (val: unknown) => boolean;
|
|
44
|
-
__epPropKey: true;
|
|
45
|
-
};
|
|
46
|
-
error: StringConstructor;
|
|
47
|
-
validateStatus: {
|
|
48
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
49
|
-
readonly required: false;
|
|
50
|
-
readonly validator: (val: unknown) => boolean;
|
|
51
|
-
__epPropKey: true;
|
|
52
|
-
};
|
|
53
|
-
for: StringConstructor;
|
|
54
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
55
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
56
33
|
formItemSize: {
|
|
57
34
|
type: PropType<"default" | "small" | "large">;
|
|
58
35
|
default: "default" | "small" | "large";
|
|
59
36
|
};
|
|
60
37
|
formItemSlots: {
|
|
61
|
-
type: PropType<import("
|
|
38
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
62
39
|
default: any;
|
|
63
40
|
};
|
|
64
41
|
elRef: {
|
|
@@ -77,6 +54,30 @@ export declare const props: {
|
|
|
77
54
|
type: PropType<"right">;
|
|
78
55
|
default: string;
|
|
79
56
|
};
|
|
57
|
+
label: StringConstructor;
|
|
58
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
59
|
+
prop: {
|
|
60
|
+
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>>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
+
__epPropKey: true;
|
|
64
|
+
};
|
|
65
|
+
rules: {
|
|
66
|
+
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>>;
|
|
67
|
+
readonly required: false;
|
|
68
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
|
+
__epPropKey: true;
|
|
70
|
+
};
|
|
71
|
+
error: StringConstructor;
|
|
72
|
+
validateStatus: {
|
|
73
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
|
+
__epPropKey: true;
|
|
77
|
+
};
|
|
78
|
+
for: StringConstructor;
|
|
79
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
80
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
80
81
|
};
|
|
81
82
|
export declare const emits: {
|
|
82
83
|
'update:fileStatus': any;
|
|
@@ -13,44 +13,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
default: number;
|
|
14
14
|
};
|
|
15
15
|
fileServiceType: {
|
|
16
|
-
type: import("vue").PropType<import("
|
|
16
|
+
type: import("vue").PropType<import("./types").FileServiceType>;
|
|
17
17
|
default: any;
|
|
18
18
|
};
|
|
19
19
|
fileStatus: {
|
|
20
20
|
type: import("vue").PropType<Status>;
|
|
21
21
|
default: any;
|
|
22
22
|
};
|
|
23
|
-
label: StringConstructor;
|
|
24
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
25
|
-
prop: {
|
|
26
|
-
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>>;
|
|
27
|
-
readonly required: false;
|
|
28
|
-
readonly validator: (val: unknown) => boolean;
|
|
29
|
-
__epPropKey: true;
|
|
30
|
-
};
|
|
31
23
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
32
|
-
rules: {
|
|
33
|
-
readonly type: import("vue").PropType<unknown>;
|
|
34
|
-
readonly required: false;
|
|
35
|
-
readonly validator: (val: unknown) => boolean;
|
|
36
|
-
__epPropKey: true;
|
|
37
|
-
};
|
|
38
|
-
error: StringConstructor;
|
|
39
|
-
validateStatus: {
|
|
40
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
41
|
-
readonly required: false;
|
|
42
|
-
readonly validator: (val: unknown) => boolean;
|
|
43
|
-
__epPropKey: true;
|
|
44
|
-
};
|
|
45
|
-
for: StringConstructor;
|
|
46
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
47
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
48
24
|
formItemSize: {
|
|
49
25
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
50
26
|
default: "default" | "small" | "large";
|
|
51
27
|
};
|
|
52
28
|
formItemSlots: {
|
|
53
|
-
type: import("vue").PropType<import("
|
|
29
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
54
30
|
default: any;
|
|
55
31
|
};
|
|
56
32
|
elRef: {
|
|
@@ -69,6 +45,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
45
|
type: import("vue").PropType<"right">;
|
|
70
46
|
default: string;
|
|
71
47
|
};
|
|
48
|
+
label: StringConstructor;
|
|
49
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
50
|
+
prop: {
|
|
51
|
+
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>>;
|
|
52
|
+
readonly required: false;
|
|
53
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
54
|
+
__epPropKey: true;
|
|
55
|
+
};
|
|
56
|
+
rules: {
|
|
57
|
+
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>>;
|
|
58
|
+
readonly required: false;
|
|
59
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
60
|
+
__epPropKey: true;
|
|
61
|
+
};
|
|
62
|
+
error: StringConstructor;
|
|
63
|
+
validateStatus: {
|
|
64
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
65
|
+
readonly required: false;
|
|
66
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
|
+
__epPropKey: true;
|
|
68
|
+
};
|
|
69
|
+
for: StringConstructor;
|
|
70
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
71
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
72
72
|
}, {
|
|
73
73
|
formItemBindProps: import("vue").ComputedRef<{}>;
|
|
74
74
|
fileInfo: import("vue").Ref<{
|
|
@@ -100,7 +100,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
100
|
end: number;
|
|
101
101
|
status: Status;
|
|
102
102
|
index: number;
|
|
103
|
-
fileServiceType?: import("
|
|
103
|
+
fileServiceType?: import("./types").FileServiceType;
|
|
104
104
|
progress: number;
|
|
105
105
|
data?: {
|
|
106
106
|
readonly size: number;
|
|
@@ -129,44 +129,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
129
|
default: number;
|
|
130
130
|
};
|
|
131
131
|
fileServiceType: {
|
|
132
|
-
type: import("vue").PropType<import("
|
|
132
|
+
type: import("vue").PropType<import("./types").FileServiceType>;
|
|
133
133
|
default: any;
|
|
134
134
|
};
|
|
135
135
|
fileStatus: {
|
|
136
136
|
type: import("vue").PropType<Status>;
|
|
137
137
|
default: any;
|
|
138
138
|
};
|
|
139
|
-
label: StringConstructor;
|
|
140
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
141
|
-
prop: {
|
|
142
|
-
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>>;
|
|
143
|
-
readonly required: false;
|
|
144
|
-
readonly validator: (val: unknown) => boolean;
|
|
145
|
-
__epPropKey: true;
|
|
146
|
-
};
|
|
147
139
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
148
|
-
rules: {
|
|
149
|
-
readonly type: import("vue").PropType<unknown>;
|
|
150
|
-
readonly required: false;
|
|
151
|
-
readonly validator: (val: unknown) => boolean;
|
|
152
|
-
__epPropKey: true;
|
|
153
|
-
};
|
|
154
|
-
error: StringConstructor;
|
|
155
|
-
validateStatus: {
|
|
156
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
157
|
-
readonly required: false;
|
|
158
|
-
readonly validator: (val: unknown) => boolean;
|
|
159
|
-
__epPropKey: true;
|
|
160
|
-
};
|
|
161
|
-
for: StringConstructor;
|
|
162
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
163
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
164
140
|
formItemSize: {
|
|
165
141
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
166
142
|
default: "default" | "small" | "large";
|
|
167
143
|
};
|
|
168
144
|
formItemSlots: {
|
|
169
|
-
type: import("vue").PropType<import("
|
|
145
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
170
146
|
default: any;
|
|
171
147
|
};
|
|
172
148
|
elRef: {
|
|
@@ -185,22 +161,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
161
|
type: import("vue").PropType<"right">;
|
|
186
162
|
default: string;
|
|
187
163
|
};
|
|
164
|
+
label: StringConstructor;
|
|
165
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
166
|
+
prop: {
|
|
167
|
+
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>>;
|
|
168
|
+
readonly required: false;
|
|
169
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
170
|
+
__epPropKey: true;
|
|
171
|
+
};
|
|
172
|
+
rules: {
|
|
173
|
+
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>>;
|
|
174
|
+
readonly required: false;
|
|
175
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
176
|
+
__epPropKey: true;
|
|
177
|
+
};
|
|
178
|
+
error: StringConstructor;
|
|
179
|
+
validateStatus: {
|
|
180
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
181
|
+
readonly required: false;
|
|
182
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
183
|
+
__epPropKey: true;
|
|
184
|
+
};
|
|
185
|
+
for: StringConstructor;
|
|
186
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
187
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
188
188
|
}>> & {
|
|
189
189
|
"onUpdate:fileStatus"?: (...args: any[] | unknown[]) => any;
|
|
190
190
|
}, {
|
|
191
|
-
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
192
191
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
193
|
-
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
194
|
-
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
195
192
|
formItemSize: "default" | "small" | "large";
|
|
196
|
-
formItemSlots: import("
|
|
193
|
+
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
197
194
|
inline: boolean;
|
|
198
195
|
readonly: boolean;
|
|
199
196
|
labelPosition: "right";
|
|
197
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
198
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
199
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
200
200
|
url: string;
|
|
201
201
|
chunkSize: number;
|
|
202
|
-
fileServiceType: import("
|
|
203
|
-
fileStatus: Status;
|
|
202
|
+
fileServiceType: import("@vunk/form/components/upload-plus/src/types").FileServiceType;
|
|
204
203
|
fileId: string;
|
|
204
|
+
fileStatus: Status;
|
|
205
205
|
}, {}>;
|
|
206
206
|
export default _default;
|