@vunk/form 2.19.0 → 2.19.1
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/api-tables-select/src/ctx.d.ts +16 -22
- package/components/api-tables-select/src/index.vue.d.ts +39 -43
- package/components/button/index.mjs +1 -2
- package/components/button/src/ctx.d.ts +7 -7
- package/components/button/src/index.vue.d.ts +64 -63
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +7 -7
- package/components/card-input-collection/src/core.vue.d.ts +12 -8
- package/components/card-input-collection/src/ctx.d.ts +2 -2
- package/components/card-input-collection/src/index.vue.d.ts +7 -6
- package/components/cascader/src/ctx.d.ts +33 -25
- package/components/cascader/src/index.vue.d.ts +67 -50
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.mjs +3 -3
- package/components/checkbox/src/ctx.d.ts +19 -19
- package/components/checkbox/src/index.vue.d.ts +128 -127
- package/components/cloneDeep.cjs +1 -1
- package/components/color-picker/src/ctx.d.ts +22 -14
- package/components/color-picker/src/index.vue.d.ts +52 -32
- package/components/date-picker/src/ctx.d.ts +32 -24
- package/components/date-picker/src/index.vue.d.ts +68 -51
- package/components/date-picker-range/src/ctx.d.ts +23 -15
- package/components/date-picker-range/src/index.vue.d.ts +131 -98
- package/components/dialog/src/ctx.d.ts +5 -5
- package/components/dialog/src/index.vue.d.ts +18 -16
- package/components/dialog-input-collection/index.mjs +9 -9
- package/components/dialog-input-collection/src/ctx.d.ts +4 -3
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +12 -8
- package/components/dialog-input-collection/src/index.vue.d.ts +13 -11
- package/components/dialog-input-collection/src/layout.vue.d.ts +8 -4
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +21 -22
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +4 -3
- package/components/download-plus/src/index.vue.d.ts +81 -78
- package/components/editable-text/src/ctx.d.ts +2 -6
- package/components/editable-text/src/index.vue.d.ts +14 -10
- package/components/el-slider/index.mjs +4 -4
- package/components/el-slider/src/button.vue.d.ts +2 -1
- package/components/el-slider/src/composables/use-slide.d.ts +1 -1
- package/components/el-slider/src/composables/use-slider-button.d.ts +1 -1
- package/components/el-slider/src/composables/use-watch.d.ts +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +7 -6
- package/components/el-slider/src/slider.d.ts +2 -1
- package/components/esri-input-geojson/index.mjs +40 -55
- package/components/esri-input-geojson/src/append.vue.d.ts +97 -96
- package/components/esri-input-geojson/src/ctx.d.ts +21 -22
- package/components/esri-input-geojson/src/default-view.vue.d.ts +7 -3
- package/components/esri-input-geojson/src/index.vue.d.ts +593 -186
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +406 -40
- package/components/fieldset/index.mjs +2 -4
- package/components/fieldset/src/index.vue.d.ts +3 -2
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +68 -67
- package/components/form-item/index.mjs +6 -7
- package/components/form-item/src/core.vue.d.ts +12 -10
- package/components/form-item/src/ctx.d.ts +6 -4
- package/components/form-item/src/index.vue.d.ts +7 -6
- package/components/form-item-renderer/index.mjs +2 -3
- package/components/form-item-renderer/src/core.vue.d.ts +3 -2
- package/components/form-item-renderer/src/index.vue.d.ts +7 -5
- package/components/form-item-renderer-template/index.mjs +1 -2
- package/components/form-item-renderer-template/src/index.vue.d.ts +3 -2
- package/components/forms-provider/src/index.vue.d.ts +5 -2
- package/components/forms-provider/src/segment.vue.d.ts +7 -3
- package/components/forms-provider/src/view.vue.d.ts +11 -7
- package/components/index2.cjs +1 -1
- package/components/information/src/index.vue.d.ts +3 -2
- package/components/information-collection/src/ctx.d.ts +17 -11
- package/components/information-collection/src/index.vue.d.ts +36 -27
- package/components/information-renderer/index.d.ts +9 -9
- package/components/information-tag/src/ctx.d.ts +4 -3
- package/components/information-tag/src/index.vue.d.ts +12 -11
- package/components/information-templates-default/src/index.vue.d.ts +2 -1
- package/components/input/src/ctx.d.ts +20 -20
- package/components/input/src/index.vue.d.ts +70 -69
- package/components/input-array/src/ctx.d.ts +2 -2
- package/components/input-array/src/form-template.vue.d.ts +2 -1
- package/components/input-array/src/index.vue.d.ts +6 -5
- package/components/input-collection/src/core.vue.d.ts +17 -15
- package/components/input-collection/src/ctx.d.ts +4 -4
- package/components/input-collection/src/index.vue.d.ts +13 -12
- package/components/input-file/src/index.vue.d.ts +51 -50
- package/components/input-file/src/template.vue.d.ts +2 -1
- package/components/input-link/src/ctx.d.ts +19 -21
- package/components/input-link/src/index.vue.d.ts +111 -110
- package/components/input-number/src/ctx.d.ts +5 -5
- package/components/input-number/src/index.vue.d.ts +39 -38
- package/components/input-tag/src/ctx.d.ts +10 -10
- package/components/input-tag/src/index.vue.d.ts +48 -47
- package/components/monaco-editor/src/ctx.d.ts +2 -2
- package/components/monaco-editor/src/index.vue.d.ts +17 -16
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.mjs +2 -2
- package/components/radio/src/ctx.d.ts +3 -3
- package/components/radio/src/index.vue.d.ts +32 -31
- package/components/radio/src/option.vue.d.ts +12 -10
- package/components/radio/src/wraper.vue.d.ts +9 -8
- package/components/renderer-data/src/index.vue.d.ts +3 -2
- package/components/select/src/core.vue.d.ts +99 -239
- package/components/select/src/ctx.d.ts +23 -95
- package/components/select/src/index.vue.d.ts +76 -75
- package/components/select/src/options.vue.d.ts +3 -2
- package/components/slider/src/ctx.d.ts +10 -10
- package/components/slider/src/index.vue.d.ts +29 -25
- package/components/style.css +1 -1
- package/components/switch/src/ctx.d.ts +11 -11
- package/components/switch/src/index.vue.d.ts +24 -20
- package/components/tables-select/index.mjs +1 -2
- package/components/tables-select/src/ctx.d.ts +27 -43
- package/components/tables-select/src/index.vue.d.ts +57 -71
- package/components/template-instances-provider/src/index.vue.d.ts +3 -2
- package/components/templates-default/src/ctx.d.ts +3 -5
- package/components/templates-default/src/index.vue.d.ts +778 -727
- package/components/templates-element-plus/index.mjs +3 -3
- package/components/templates-element-plus/src/index.vue.d.ts +27 -26
- package/components/templates-esri/src/index.vue.d.ts +600 -193
- package/components/templates-layout/index.mjs +3 -3
- package/components/templates-layout/src/index.vue.d.ts +14 -13
- package/components/templates-variant/src/index.vue.d.ts +132 -99
- package/components/time-picker/src/ctx.d.ts +31 -23
- package/components/time-picker/src/index.vue.d.ts +66 -49
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +45 -45
- package/components/upload/src/ctx.d.ts +24 -22
- package/components/upload/src/file.vue.d.ts +75 -73
- package/components/upload/src/index.vue.d.ts +188 -187
- package/components/upload/src/wraper.vue.d.ts +48 -47
- package/components/upload-plus/index.cjs +7 -7
- package/components/upload-plus/index.mjs +1911 -1937
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +2 -5
- package/components/upload-plus/src/index.vue.d.ts +6 -5
- package/components/use-watch.cjs +1 -1
- package/components/van-cascader/src/ctx.d.ts +33 -25
- package/components/van-cascader/src/index.vue.d.ts +67 -50
- package/components/var-datetime-picker/index.cjs +1 -1
- package/components/var-datetime-picker/index.mjs +18 -20
- package/components/var-datetime-picker/src/ctx.d.ts +4 -3
- package/components/var-datetime-picker/src/index.vue.d.ts +144 -179
- package/components/vditor/src/ctx.d.ts +2 -3
- package/components/vditor/src/index.vue.d.ts +19 -19
- package/composables/index.mjs +3 -5
- package/composables/useSourceManager.d.ts +2 -2
- package/index.css +1 -1
- package/package.json +1 -1
- package/shared/element-plus/instances.d.ts +60 -43
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var X = Object.defineProperty;
|
|
2
2
|
var J = (e, o, u) => o in e ? X(e, o, { enumerable: !0, configurable: !0, writable: !0, value: u }) : e[o] = u;
|
|
3
|
-
var U = (e, o, u) =>
|
|
3
|
+
var U = (e, o, u) => J(e, typeof o != "symbol" ? o + "" : o, u);
|
|
4
4
|
import { _VkfFormItemCtx as M, VkfFormItem as K } from "@vunk/form/components/form-item";
|
|
5
|
-
import { defineComponent as Q, watchEffect as W, ref as
|
|
5
|
+
import { defineComponent as Q, watchEffect as W, ref as C, watch as L, computed as Y, onBeforeUnmount as $, resolveComponent as R, openBlock as S, createBlock as E, mergeProps as Z, withCtx as P, createElementVNode as F, createVNode as z, normalizeClass as B, createElementBlock as D, Fragment as ee, renderList as oe, normalizeStyle as H, createCommentVNode as te, createTextVNode as q, toDisplayString as N } from "vue";
|
|
6
6
|
import { rFile as ne } from "@skzz/platform/api/basic";
|
|
7
7
|
import { restFetch as O } from "@skzz/platform/shared/fetch/platform";
|
|
8
|
-
import {
|
|
8
|
+
import { ElInput as re, ElButton as se, ElButtonGroup as le, ElMessage as ae } from "element-plus";
|
|
9
9
|
import { RestFetch as de } from "@vunk/core/shared/utils-fetch";
|
|
10
10
|
import { g as x } from "../index2.cjs";
|
|
11
11
|
import { useModelComputed as ue } from "@vunk/core/composables";
|
|
@@ -67,8 +67,7 @@ const A = new de({
|
|
|
67
67
|
u({
|
|
68
68
|
data: h.response
|
|
69
69
|
});
|
|
70
|
-
} else
|
|
71
|
-
t.status === 500 && v(h.response);
|
|
70
|
+
} else t.status === 500 && v(h.response);
|
|
72
71
|
}, t.onerror = () => {
|
|
73
72
|
v(t.response);
|
|
74
73
|
};
|
|
@@ -82,9 +81,9 @@ const A = new de({
|
|
|
82
81
|
name: "VkfDownloadPlus",
|
|
83
82
|
components: {
|
|
84
83
|
VkfFormItem: K,
|
|
85
|
-
ElButtonGroup:
|
|
84
|
+
ElButtonGroup: le,
|
|
86
85
|
ElButton: se,
|
|
87
|
-
ElInput:
|
|
86
|
+
ElInput: re
|
|
88
87
|
},
|
|
89
88
|
props: ve,
|
|
90
89
|
emits: he,
|
|
@@ -93,8 +92,8 @@ const A = new de({
|
|
|
93
92
|
W(() => {
|
|
94
93
|
A.baseURL = e.url || O.baseURL;
|
|
95
94
|
});
|
|
96
|
-
const t =
|
|
97
|
-
k(),
|
|
95
|
+
const t = C();
|
|
96
|
+
k(), L(() => e.fileId, k);
|
|
98
97
|
function k() {
|
|
99
98
|
e.fileId && ne({
|
|
100
99
|
fileId: e.fileId
|
|
@@ -102,7 +101,7 @@ const A = new de({
|
|
|
102
101
|
t.value = l;
|
|
103
102
|
});
|
|
104
103
|
}
|
|
105
|
-
const y = Y(() => a.value === n.error ? ie : fe), r =
|
|
104
|
+
const y = Y(() => a.value === n.error ? ie : fe), r = C([]), h = C([]), a = ue({
|
|
106
105
|
default: n.wait,
|
|
107
106
|
key: "fileStatus"
|
|
108
107
|
}, e, o), w = () => {
|
|
@@ -145,7 +144,7 @@ const A = new de({
|
|
|
145
144
|
a.value = n.error, ae.error(v("vkf.downloadPlus.downloadFailed", "下载失败"));
|
|
146
145
|
});
|
|
147
146
|
};
|
|
148
|
-
|
|
147
|
+
L(() => a.value, (l) => {
|
|
149
148
|
l === n.doDownload && w();
|
|
150
149
|
});
|
|
151
150
|
function p(l, g = 4, I = 10) {
|
|
@@ -186,15 +185,15 @@ const A = new de({
|
|
|
186
185
|
b();
|
|
187
186
|
});
|
|
188
187
|
}
|
|
189
|
-
const
|
|
188
|
+
const T = () => {
|
|
190
189
|
h.value.forEach((l) => {
|
|
191
190
|
l.abort();
|
|
192
191
|
}), h.value = [], a.value = n.pause;
|
|
193
192
|
};
|
|
194
|
-
|
|
195
|
-
l === n.doPause &&
|
|
193
|
+
L(() => a.value, (l) => {
|
|
194
|
+
l === n.doPause && T();
|
|
196
195
|
}), $(() => {
|
|
197
|
-
|
|
196
|
+
T();
|
|
198
197
|
});
|
|
199
198
|
class j extends ce {
|
|
200
199
|
constructor(I) {
|
|
@@ -217,7 +216,7 @@ const A = new de({
|
|
|
217
216
|
formItemBindProps: u,
|
|
218
217
|
fileInfo: t,
|
|
219
218
|
handleDownload: w,
|
|
220
|
-
handlePause:
|
|
219
|
+
handlePause: T,
|
|
221
220
|
Status: n,
|
|
222
221
|
chunks: r,
|
|
223
222
|
fileStatus: a,
|
|
@@ -231,12 +230,12 @@ const A = new de({
|
|
|
231
230
|
};
|
|
232
231
|
function Se(e, o, u, v, t, k) {
|
|
233
232
|
const y = R("ElInput"), r = R("el-button"), h = R("el-button-group"), a = R("VkfFormItem");
|
|
234
|
-
return S(),
|
|
233
|
+
return S(), E(a, Z(e.formItemBindProps, { class: "vkf-download-plus" }), {
|
|
235
234
|
default: P(() => {
|
|
236
235
|
var w;
|
|
237
236
|
return [
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
F("div", ke, [
|
|
238
|
+
F("label", ye, [
|
|
240
239
|
z(y, {
|
|
241
240
|
class: B({
|
|
242
241
|
"is-error": e.fileStatus === e.Status.error
|
|
@@ -255,7 +254,7 @@ function Se(e, o, u, v, t, k) {
|
|
|
255
254
|
width: 100 / e.chunks.length + "%"
|
|
256
255
|
})
|
|
257
256
|
}, [
|
|
258
|
-
|
|
257
|
+
F("div", {
|
|
259
258
|
class: B({
|
|
260
259
|
uploading: p.progress > 0 && p.progress < 100,
|
|
261
260
|
success: p.progress == 100
|
|
@@ -269,7 +268,7 @@ function Se(e, o, u, v, t, k) {
|
|
|
269
268
|
]),
|
|
270
269
|
z(h, { class: "vkf-download-plus-btng" }, {
|
|
271
270
|
default: P(() => [
|
|
272
|
-
e.fileStatus === e.Status.downloading ? (S(),
|
|
271
|
+
e.fileStatus === e.Status.downloading ? (S(), E(r, {
|
|
273
272
|
key: 0,
|
|
274
273
|
type: "danger",
|
|
275
274
|
onClick: e.handlePause
|
|
@@ -278,7 +277,7 @@ function Se(e, o, u, v, t, k) {
|
|
|
278
277
|
q(N(e.tr("vkf.common.pause", "暂停")), 1)
|
|
279
278
|
]),
|
|
280
279
|
_: 1
|
|
281
|
-
}, 8, ["onClick"])) : (S(),
|
|
280
|
+
}, 8, ["onClick"])) : (S(), E(r, {
|
|
282
281
|
key: 1,
|
|
283
282
|
type: "primary",
|
|
284
283
|
onClick: e.handleDownload
|
|
@@ -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 type { 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: undefined;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
@@ -73,14 +74,14 @@ export declare const props: {
|
|
|
73
74
|
};
|
|
74
75
|
labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
|
|
75
76
|
rules: {
|
|
76
|
-
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | null)[], unknown, unknown>>;
|
|
77
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
|
|
77
78
|
readonly required: false;
|
|
78
79
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
80
|
__epPropKey: true;
|
|
80
81
|
};
|
|
81
82
|
error: StringConstructor;
|
|
82
83
|
validateStatus: {
|
|
83
|
-
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "
|
|
84
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
84
85
|
readonly required: false;
|
|
85
86
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
87
|
__epPropKey: true;
|