@vunk/form 2.10.1 → 2.10.3
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/index.cjs +37 -36
- package/components/api-tables-select/index.d.ts +4 -0
- package/components/api-tables-select/index.mjs +37 -36
- package/components/api-tables-select/src/ctx.d.ts +374 -0
- package/components/api-tables-select/src/index.vue.d.ts +1335 -0
- package/components/api-tables-select/src/types.d.ts +19 -0
- package/components/button/index.d.ts +4 -0
- package/components/button/src/ctx.d.ts +190 -0
- package/components/button/src/index.vue.d.ts +822 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/card-input-collection/index.cjs +67 -70
- package/components/card-input-collection/index.d.ts +4 -0
- package/components/card-input-collection/index.mjs +68 -71
- package/components/card-input-collection/src/ctx.d.ts +119 -0
- package/components/card-input-collection/src/index.vue.d.ts +1043 -0
- package/components/card-input-collection/src/types.d.ts +10 -0
- package/components/cascader/index.d.ts +6 -0
- package/components/cascader/src/ctx.d.ts +297 -0
- package/components/cascader/src/index.vue.d.ts +650 -0
- package/components/cascader/src/types.d.ts +19 -0
- package/components/cascader/src/use.d.ts +5 -0
- package/components/checkbox/index.cjs +2 -3
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/index.mjs +2 -3
- package/components/checkbox/src/ctx.d.ts +151 -0
- package/components/checkbox/src/index.vue.d.ts +1362 -0
- package/components/checkbox/src/types.d.ts +8 -0
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/src/ctx.d.ts +153 -0
- package/components/color-picker/src/index.vue.d.ts +341 -0
- package/components/color-picker/src/types.d.ts +7 -0
- package/components/date-picker/index.d.ts +5 -0
- package/components/date-picker/src/ctx.d.ts +325 -0
- package/components/date-picker/src/index.vue.d.ts +1422 -0
- package/components/date-picker/src/types.d.ts +20 -0
- package/components/date-picker-range/index.d.ts +4 -0
- package/components/date-picker-range/src/ctx.d.ts +328 -0
- package/components/date-picker-range/src/index.vue.d.ts +717 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.d.ts +4 -0
- package/components/download-plus/index.mjs +4 -4
- package/components/download-plus/src/api.d.ts +13 -0
- package/components/download-plus/src/const.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +129 -0
- package/components/download-plus/src/index.vue.d.ts +1432 -0
- package/components/download-plus/src/types.d.ts +17 -0
- package/components/editable-text/index.d.ts +4 -0
- package/components/editable-text/src/ctx.d.ts +132 -0
- package/components/editable-text/src/index.vue.d.ts +3399 -0
- package/components/editable-text/src/types.d.ts +1 -0
- package/components/esri-input-geojson/index.d.ts +6 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1179 -0
- package/components/esri-input-geojson/src/const.d.ts +12 -0
- package/components/esri-input-geojson/src/ctx.d.ts +340 -0
- package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +1459 -0
- package/components/esri-input-geojson/src/types.d.ts +22 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +427 -0
- package/components/fieldset/index.d.ts +4 -0
- package/components/fieldset/src/ctx.d.ts +12 -0
- package/components/fieldset/src/index.vue.d.ts +23 -0
- package/components/fieldset/src/types.d.ts +1 -0
- package/components/fieldset/src/use.d.ts +5 -0
- package/components/form/index.d.ts +5 -0
- package/components/form/src/ctx.d.ts +132 -0
- package/components/form/src/index.vue.d.ts +4007 -0
- package/components/form/src/types.d.ts +25 -0
- package/components/form/src/utils.d.ts +15 -0
- package/components/form-item/index.d.ts +5 -0
- package/components/form-item/src/ctx.d.ts +107 -0
- package/components/form-item/src/index.vue.d.ts +961 -0
- package/components/form-item/src/types.d.ts +9 -0
- package/components/form-item-renderer/index.d.ts +4 -0
- package/components/form-item-renderer/src/core.vue.d.ts +38 -0
- package/components/form-item-renderer/src/ctx.d.ts +16 -0
- package/components/form-item-renderer/src/index.vue.d.ts +93 -0
- package/components/form-item-renderer/src/types.d.ts +5 -0
- package/components/form-item-renderer/src/utils.d.ts +5 -0
- package/components/form-item-renderer-template/index.d.ts +4 -0
- package/components/form-item-renderer-template/src/ctx.d.ts +7 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +16 -0
- package/components/form-item-renderer-template/src/types.d.ts +55 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/src/ctx.d.ts +13 -0
- package/components/information/src/index.vue.d.ts +23 -0
- package/components/information/src/types.d.ts +3 -0
- package/components/information-collection/index.d.ts +4 -0
- package/components/information-collection/src/ctx.d.ts +147 -0
- package/components/information-collection/src/index.vue.d.ts +302 -0
- package/components/information-collection/src/types.d.ts +6 -0
- package/components/information-tag/index.d.ts +4 -0
- package/components/information-tag/src/ctx.d.ts +64 -0
- package/components/information-tag/src/index.vue.d.ts +134 -0
- package/components/information-tag/src/types.d.ts +1 -0
- package/components/information-templates-default/index.d.ts +4 -0
- package/components/information-templates-default/src/ctx.d.ts +2 -0
- package/components/information-templates-default/src/index.vue.d.ts +2 -0
- package/components/information-templates-default/src/types.d.ts +1 -0
- package/components/input/index.d.ts +5 -0
- package/components/input/src/ctx.d.ts +269 -0
- package/components/input/src/index.vue.d.ts +1192 -0
- package/components/input/src/types.d.ts +13 -0
- package/components/input-collection/index.cjs +105 -74
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/index.mjs +107 -76
- package/components/input-collection/src/ctx.d.ts +137 -0
- package/components/input-collection/src/index.vue.d.ts +1141 -0
- package/components/input-collection/src/types.d.ts +29 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/src/ctx.d.ts +273 -0
- package/components/input-link/src/index.vue.d.ts +577 -0
- package/components/input-link/src/types.d.ts +7 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/src/ctx.d.ts +208 -0
- package/components/input-number/src/index.vue.d.ts +816 -0
- package/components/input-number/src/types.d.ts +12 -0
- package/components/input-tag/index.d.ts +5 -0
- package/components/input-tag/src/ctx.d.ts +239 -0
- package/components/input-tag/src/index.vue.d.ts +991 -0
- package/components/input-tag/src/types.d.ts +22 -0
- package/components/monaco-editor/index.d.ts +4 -0
- package/components/monaco-editor/src/ctx.d.ts +115 -0
- package/components/monaco-editor/src/index.vue.d.ts +303 -0
- package/components/monaco-editor/src/types.d.ts +7 -0
- package/components/radio/index.cjs +2 -3
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.mjs +2 -3
- package/components/radio/src/ctx.d.ts +162 -0
- package/components/radio/src/index.vue.d.ts +1311 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/renderer-data/index.d.ts +4 -0
- package/components/renderer-data/src/ctx.d.ts +12 -0
- package/components/renderer-data/src/index.vue.d.ts +20 -0
- package/components/renderer-data/src/types.d.ts +1 -0
- package/components/select/index.d.ts +5 -0
- package/components/select/src/ctx.d.ts +225 -0
- package/components/select/src/index.vue.d.ts +1043 -0
- package/components/select/src/types.d.ts +11 -0
- package/components/slider/index.d.ts +4 -0
- package/components/slider/src/ctx.d.ts +253 -0
- package/components/slider/src/index.vue.d.ts +588 -0
- package/components/slider/src/types.d.ts +7 -0
- package/components/switch/index.d.ts +4 -0
- package/components/switch/src/ctx.d.ts +208 -0
- package/components/switch/src/index.vue.d.ts +895 -0
- package/components/switch/src/types.d.ts +8 -0
- package/components/tables-select/index.d.ts +5 -0
- package/components/tables-select/src/ctx.d.ts +420 -0
- package/components/tables-select/src/index.vue.d.ts +5411 -0
- package/components/tables-select/src/types.d.ts +9 -0
- package/components/template-instances-provider/index.d.ts +3 -0
- package/components/template-instances-provider/src/index.vue.d.ts +6 -0
- package/components/templates-default/index.d.ts +4 -0
- package/components/templates-default/src/ctx.d.ts +19 -0
- package/components/templates-default/src/index.vue.d.ts +187 -0
- package/components/templates-default/src/types.d.ts +55 -0
- package/components/templates-element-plus/index.d.ts +4 -0
- package/components/templates-element-plus/src/ctx.d.ts +9 -0
- package/components/templates-element-plus/src/index.vue.d.ts +301 -0
- package/components/templates-element-plus/src/types.d.ts +13 -0
- package/components/templates-esri/index.d.ts +4 -0
- package/components/templates-esri/src/ctx.d.ts +11 -0
- package/components/templates-esri/src/index.vue.d.ts +43 -0
- package/components/templates-esri/src/types.d.ts +2 -0
- package/components/templates-layout/index.d.ts +4 -0
- package/components/templates-layout/src/ctx.d.ts +9 -0
- package/components/templates-layout/src/index.vue.d.ts +446 -0
- package/components/templates-layout/src/types.d.ts +32 -0
- package/components/templates-variant/index.d.ts +4 -0
- package/components/templates-variant/src/ctx.d.ts +11 -0
- package/components/templates-variant/src/index.vue.d.ts +43 -0
- package/components/templates-variant/src/types.d.ts +2 -0
- package/components/upload/index.cjs +2 -2
- package/components/upload/index.d.ts +5 -0
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/ctx.d.ts +294 -0
- package/components/upload/src/file.vue.d.ts +492 -0
- package/components/upload/src/index.vue.d.ts +1935 -0
- package/components/upload/src/types.d.ts +13 -0
- package/components/upload-plus/index.cjs +79 -86
- package/components/upload-plus/index.d.ts +6 -0
- package/components/upload-plus/index.mjs +79 -86
- package/components/upload-plus/src/api.d.ts +38 -0
- package/components/upload-plus/src/const.d.ts +9 -0
- package/components/upload-plus/src/ctx.d.ts +148 -0
- package/components/upload-plus/src/index.vue.d.ts +1754 -0
- package/components/upload-plus/src/types.d.ts +32 -0
- package/components/van-cascader/index.d.ts +4 -0
- package/components/van-cascader/src/ctx.d.ts +284 -0
- package/components/van-cascader/src/index.vue.d.ts +2116 -0
- package/components/van-cascader/src/types.d.ts +1 -0
- package/components/var-datetime-picker/index.d.ts +4 -0
- package/components/var-datetime-picker/src/const.d.ts +10 -0
- package/components/var-datetime-picker/src/ctx.d.ts +112 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +1482 -0
- package/components/var-datetime-picker/src/types.d.ts +22 -0
- package/components/vditor/index.d.ts +4 -0
- package/components/vditor/src/ctx.d.ts +122 -0
- package/components/vditor/src/index.vue.d.ts +418 -0
- package/components/vditor/src/types.d.ts +7 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +111 -30
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/shared';
|
|
3
|
+
import type Core from './index.vue';
|
|
4
|
+
export interface SelectMedia {
|
|
5
|
+
label: string;
|
|
6
|
+
value: [string, string];
|
|
7
|
+
}
|
|
8
|
+
export interface Source<P extends string = string> extends VueComponentPropsType<typeof Core>, BasicSource {
|
|
9
|
+
endprop?: P | P[];
|
|
10
|
+
startprop?: P | P[];
|
|
11
|
+
templateType: 'VkfDatePickerRange';
|
|
12
|
+
}
|
|
@@ -401,8 +401,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
401
401
|
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
402
402
|
vue.createTextVNode(" \u6682\u505C ")
|
|
403
403
|
])),
|
|
404
|
-
_: 1
|
|
405
|
-
|
|
404
|
+
_: 1,
|
|
405
|
+
__: [0]
|
|
406
406
|
}, 8, ["onClick"])) : (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
407
407
|
key: 1,
|
|
408
408
|
type: "primary",
|
|
@@ -411,8 +411,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
411
411
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
412
412
|
vue.createTextVNode(" \u4E0B\u8F7D ")
|
|
413
413
|
])),
|
|
414
|
-
_: 1
|
|
415
|
-
|
|
414
|
+
_: 1,
|
|
415
|
+
__: [1]
|
|
416
416
|
}, 8, ["onClick"]))
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
@@ -397,8 +397,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
397
397
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
398
398
|
createTextVNode(" \u6682\u505C ")
|
|
399
399
|
])),
|
|
400
|
-
_: 1
|
|
401
|
-
|
|
400
|
+
_: 1,
|
|
401
|
+
__: [0]
|
|
402
402
|
}, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
|
|
403
403
|
key: 1,
|
|
404
404
|
type: "primary",
|
|
@@ -407,8 +407,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
407
407
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
408
408
|
createTextVNode(" \u4E0B\u8F7D ")
|
|
409
409
|
])),
|
|
410
|
-
_: 1
|
|
411
|
-
|
|
410
|
+
_: 1,
|
|
411
|
+
__: [1]
|
|
412
412
|
}, 8, ["onClick"]))
|
|
413
413
|
]),
|
|
414
414
|
_: 1
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RestFetch } from '@vunk/core/shared/utils-fetch';
|
|
2
|
+
export declare const restFetch: RestFetch;
|
|
3
|
+
export declare const downChunk: (params: {
|
|
4
|
+
fileId: string;
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
fileServiceType?: string;
|
|
8
|
+
}, init?: {
|
|
9
|
+
onprogress?: XMLHttpRequestEventTarget["onprogress"];
|
|
10
|
+
xhrs?: XMLHttpRequest[];
|
|
11
|
+
}) => Promise<{
|
|
12
|
+
data: Blob;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { FileServiceType } from './types';
|
|
2
|
+
import { Status } from './const';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
fileId: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
url: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @description 分片大小
|
|
15
|
+
*/
|
|
16
|
+
chunkSize: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
fileServiceType: {
|
|
21
|
+
type: PropType<FileServiceType>;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @description
|
|
26
|
+
* v-model:fileStatus 当前文件状态: wait, doPause, pause, doDownload, downloading, error, done
|
|
27
|
+
*/
|
|
28
|
+
fileStatus: {
|
|
29
|
+
type: PropType<Status>;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
required: {
|
|
33
|
+
readonly type: PropType<boolean>;
|
|
34
|
+
readonly required: false;
|
|
35
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
|
+
__epPropKey: true;
|
|
37
|
+
} & {
|
|
38
|
+
readonly default: undefined;
|
|
39
|
+
};
|
|
40
|
+
formItemSize: {
|
|
41
|
+
type: PropType<"default" | "small" | "large">;
|
|
42
|
+
default: "default" | "small" | "large";
|
|
43
|
+
};
|
|
44
|
+
formItemSlots: {
|
|
45
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
46
|
+
default: any;
|
|
47
|
+
};
|
|
48
|
+
elRef: {
|
|
49
|
+
type: PropType<any>;
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
inline: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
readonly: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
formItemTip: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
formItemTipClass: any;
|
|
65
|
+
labelTip: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
information: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
label: StringConstructor;
|
|
74
|
+
labelWidth: {
|
|
75
|
+
readonly type: PropType<string | number>;
|
|
76
|
+
readonly required: false;
|
|
77
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
|
+
__epPropKey: true;
|
|
79
|
+
} & {
|
|
80
|
+
readonly default: "";
|
|
81
|
+
};
|
|
82
|
+
labelPosition: {
|
|
83
|
+
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
84
|
+
readonly required: false;
|
|
85
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
|
+
__epPropKey: true;
|
|
87
|
+
} & {
|
|
88
|
+
readonly default: "";
|
|
89
|
+
};
|
|
90
|
+
prop: {
|
|
91
|
+
readonly type: PropType<import("element-plus").FormItemProp>;
|
|
92
|
+
readonly required: false;
|
|
93
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
94
|
+
__epPropKey: true;
|
|
95
|
+
};
|
|
96
|
+
rules: {
|
|
97
|
+
readonly type: PropType<unknown>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
100
|
+
__epPropKey: true;
|
|
101
|
+
};
|
|
102
|
+
error: StringConstructor;
|
|
103
|
+
validateStatus: {
|
|
104
|
+
readonly type: PropType<"" | "error" | "success" | "validating">;
|
|
105
|
+
readonly required: false;
|
|
106
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
107
|
+
__epPropKey: true;
|
|
108
|
+
};
|
|
109
|
+
for: StringConstructor;
|
|
110
|
+
inlineMessage: {
|
|
111
|
+
readonly type: PropType<string | boolean>;
|
|
112
|
+
readonly required: false;
|
|
113
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
114
|
+
__epPropKey: true;
|
|
115
|
+
} & {
|
|
116
|
+
readonly default: "";
|
|
117
|
+
};
|
|
118
|
+
showMessage: {
|
|
119
|
+
readonly type: PropType<boolean>;
|
|
120
|
+
readonly required: false;
|
|
121
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
122
|
+
__epPropKey: true;
|
|
123
|
+
} & {
|
|
124
|
+
readonly default: true;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export declare const emits: {
|
|
128
|
+
'update:fileStatus': any;
|
|
129
|
+
};
|