@vunk/form 2.16.8 → 2.16.10
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 +16 -10
- package/components/api-tables-select/index.mjs +17 -11
- package/components/api-tables-select/src/ctx.d.ts +5 -0
- package/components/api-tables-select/src/index.vue.d.ts +19 -3
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +1 -1
- package/components/upload/index.cjs +23 -10
- package/components/upload/index.mjs +23 -10
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/file.vue.d.ts +9 -0
- package/components/upload/src/index.vue.d.ts +18 -0
- package/components/upload/src/wraper.vue.d.ts +9 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var tablesSelect = require('@vunk/form/components/tables-select');
|
|
7
7
|
var object = require('@vunk/shared/object');
|
|
8
8
|
var form = require('@vunk/form');
|
|
9
|
-
var
|
|
9
|
+
var composables = require('@vunk/core/composables');
|
|
10
10
|
var isObject = require('../isObject.cjs');
|
|
11
11
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
12
12
|
|
|
@@ -42,10 +42,15 @@ const props = {
|
|
|
42
42
|
queryItems: {
|
|
43
43
|
type: Array,
|
|
44
44
|
default: () => []
|
|
45
|
+
},
|
|
46
|
+
query: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: void 0
|
|
45
49
|
}
|
|
46
50
|
};
|
|
47
51
|
const emits = {
|
|
48
|
-
...tablesSelect._VkfTablesSelectCtx.emits
|
|
52
|
+
...tablesSelect._VkfTablesSelectCtx.emits,
|
|
53
|
+
"setData:query": null
|
|
49
54
|
};
|
|
50
55
|
|
|
51
56
|
/** `Object#toString` result references. */
|
|
@@ -386,7 +391,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
386
391
|
const debounceRead = debounce(read, 300);
|
|
387
392
|
const coreProps = tablesSelect._VkfTablesSelectCtx.createBindProps(props, ["getRows"]);
|
|
388
393
|
const coreEmits = tablesSelect._VkfTablesSelectCtx.createOnEmits(emit);
|
|
389
|
-
const queryData =
|
|
394
|
+
const [queryData, setQueryData] = composables.useDataComputed({
|
|
395
|
+
default: {},
|
|
396
|
+
key: "query"
|
|
397
|
+
}, props, emit);
|
|
390
398
|
const tableState = vue.reactive({
|
|
391
399
|
data: [],
|
|
392
400
|
total: 0
|
|
@@ -411,12 +419,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
411
419
|
});
|
|
412
420
|
return rows;
|
|
413
421
|
};
|
|
414
|
-
const __returned__ = { props, emit, debounceRead, coreProps, coreEmits, queryData, tableState, pagination, read, defaultGetRows, get VkfTablesSelect() {
|
|
422
|
+
const __returned__ = { props, emit, debounceRead, coreProps, coreEmits, queryData, setQueryData, tableState, pagination, read, defaultGetRows, get VkfTablesSelect() {
|
|
415
423
|
return tablesSelect.VkfTablesSelect;
|
|
416
424
|
}, get VkfForm() {
|
|
417
425
|
return form.VkfForm;
|
|
418
|
-
}, get setData() {
|
|
419
|
-
return core.setData;
|
|
420
426
|
} };
|
|
421
427
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
422
428
|
return __returned__;
|
|
@@ -426,9 +432,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
426
432
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
427
433
|
return vue.openBlock(), vue.createBlock($setup["VkfTablesSelect"], vue.mergeProps({
|
|
428
434
|
start: $setup.pagination.start,
|
|
429
|
-
"onUpdate:start": _cache[
|
|
435
|
+
"onUpdate:start": _cache[0] || (_cache[0] = ($event) => $setup.pagination.start = $event),
|
|
430
436
|
"page-size": $setup.pagination.pageSize,
|
|
431
|
-
"onUpdate:pageSize": _cache[
|
|
437
|
+
"onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => $setup.pagination.pageSize = $event),
|
|
432
438
|
data: $setup.tableState.data,
|
|
433
439
|
total: $setup.tableState.total,
|
|
434
440
|
"get-rows": _ctx.getRows || $setup.defaultGetRows
|
|
@@ -438,8 +444,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
444
|
"form-items": _ctx.queryItems,
|
|
439
445
|
inline: true,
|
|
440
446
|
data: $setup.queryData,
|
|
441
|
-
onSetData:
|
|
442
|
-
}, null, 8, ["form-items", "data"]),
|
|
447
|
+
onSetData: $setup.setQueryData
|
|
448
|
+
}, null, 8, ["form-items", "data", "onSetData"]),
|
|
443
449
|
vue.renderSlot(_ctx.$slots, "dialog")
|
|
444
450
|
]),
|
|
445
451
|
_: 3
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, reactive, ref, watch, openBlock, createBlock, mergeProps, toHandlers, withCtx, createVNode, renderSlot } from 'vue';
|
|
2
2
|
import { _VkfTablesSelectCtx, VkfTablesSelect } from '@vunk/form/components/tables-select';
|
|
3
3
|
import { pickObject } from '@vunk/shared/object';
|
|
4
4
|
import { VkfForm } from '@vunk/form';
|
|
5
|
-
import {
|
|
5
|
+
import { useDataComputed } from '@vunk/core/composables';
|
|
6
6
|
import { i as isObjectLike, b as baseGetTag, a as isObject, r as root } from '../isObject.mjs';
|
|
7
7
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
8
8
|
|
|
@@ -38,10 +38,15 @@ const props = {
|
|
|
38
38
|
queryItems: {
|
|
39
39
|
type: Array,
|
|
40
40
|
default: () => []
|
|
41
|
+
},
|
|
42
|
+
query: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: void 0
|
|
41
45
|
}
|
|
42
46
|
};
|
|
43
47
|
const emits = {
|
|
44
|
-
..._VkfTablesSelectCtx.emits
|
|
48
|
+
..._VkfTablesSelectCtx.emits,
|
|
49
|
+
"setData:query": null
|
|
45
50
|
};
|
|
46
51
|
|
|
47
52
|
/** `Object#toString` result references. */
|
|
@@ -382,7 +387,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
382
387
|
const debounceRead = debounce(read, 300);
|
|
383
388
|
const coreProps = _VkfTablesSelectCtx.createBindProps(props, ["getRows"]);
|
|
384
389
|
const coreEmits = _VkfTablesSelectCtx.createOnEmits(emit);
|
|
385
|
-
const queryData =
|
|
390
|
+
const [queryData, setQueryData] = useDataComputed({
|
|
391
|
+
default: {},
|
|
392
|
+
key: "query"
|
|
393
|
+
}, props, emit);
|
|
386
394
|
const tableState = reactive({
|
|
387
395
|
data: [],
|
|
388
396
|
total: 0
|
|
@@ -407,12 +415,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
407
415
|
});
|
|
408
416
|
return rows;
|
|
409
417
|
};
|
|
410
|
-
const __returned__ = { props, emit, debounceRead, coreProps, coreEmits, queryData, tableState, pagination, read, defaultGetRows, get VkfTablesSelect() {
|
|
418
|
+
const __returned__ = { props, emit, debounceRead, coreProps, coreEmits, queryData, setQueryData, tableState, pagination, read, defaultGetRows, get VkfTablesSelect() {
|
|
411
419
|
return VkfTablesSelect;
|
|
412
420
|
}, get VkfForm() {
|
|
413
421
|
return VkfForm;
|
|
414
|
-
}, get setData() {
|
|
415
|
-
return setData;
|
|
416
422
|
} };
|
|
417
423
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
418
424
|
return __returned__;
|
|
@@ -422,9 +428,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
422
428
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
423
429
|
return openBlock(), createBlock($setup["VkfTablesSelect"], mergeProps({
|
|
424
430
|
start: $setup.pagination.start,
|
|
425
|
-
"onUpdate:start": _cache[
|
|
431
|
+
"onUpdate:start": _cache[0] || (_cache[0] = ($event) => $setup.pagination.start = $event),
|
|
426
432
|
"page-size": $setup.pagination.pageSize,
|
|
427
|
-
"onUpdate:pageSize": _cache[
|
|
433
|
+
"onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => $setup.pagination.pageSize = $event),
|
|
428
434
|
data: $setup.tableState.data,
|
|
429
435
|
total: $setup.tableState.total,
|
|
430
436
|
"get-rows": _ctx.getRows || $setup.defaultGetRows
|
|
@@ -434,8 +440,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
434
440
|
"form-items": _ctx.queryItems,
|
|
435
441
|
inline: true,
|
|
436
442
|
data: $setup.queryData,
|
|
437
|
-
onSetData:
|
|
438
|
-
}, null, 8, ["form-items", "data"]),
|
|
443
|
+
onSetData: $setup.setQueryData
|
|
444
|
+
}, null, 8, ["form-items", "data", "onSetData"]),
|
|
439
445
|
renderSlot(_ctx.$slots, "dialog")
|
|
440
446
|
]),
|
|
441
447
|
_: 3
|
|
@@ -27,6 +27,10 @@ export declare const props: {
|
|
|
27
27
|
type: PropType<any[]>;
|
|
28
28
|
default: () => any[];
|
|
29
29
|
};
|
|
30
|
+
query: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
30
34
|
type: {
|
|
31
35
|
type: StringConstructor;
|
|
32
36
|
default: string;
|
|
@@ -345,6 +349,7 @@ export declare const props: {
|
|
|
345
349
|
};
|
|
346
350
|
};
|
|
347
351
|
export declare const emits: {
|
|
352
|
+
'setData:query': any;
|
|
348
353
|
'update:modelValue': any;
|
|
349
354
|
'update:start': (val: number) => boolean;
|
|
350
355
|
select: null;
|
|
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
15
15
|
type: import("vue").PropType<any[]>;
|
|
16
16
|
default: () => any[];
|
|
17
17
|
};
|
|
18
|
+
query: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
18
22
|
type: {
|
|
19
23
|
type: StringConstructor;
|
|
20
24
|
default: string;
|
|
@@ -348,6 +352,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
348
352
|
type: import("vue").PropType<any[]>;
|
|
349
353
|
default: () => any[];
|
|
350
354
|
};
|
|
355
|
+
query: {
|
|
356
|
+
type: ObjectConstructor;
|
|
357
|
+
default: any;
|
|
358
|
+
};
|
|
351
359
|
type: {
|
|
352
360
|
type: StringConstructor;
|
|
353
361
|
default: string;
|
|
@@ -665,6 +673,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
665
673
|
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
666
674
|
};
|
|
667
675
|
}>> & Readonly<{
|
|
676
|
+
"onSetData:query"?: (...args: any[] | unknown[]) => any;
|
|
668
677
|
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
669
678
|
"onUpdate:start"?: (val: number) => any;
|
|
670
679
|
onSelect?: (...args: unknown[]) => any;
|
|
@@ -693,7 +702,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
693
702
|
"onPrev-click"?: (val: number) => any;
|
|
694
703
|
"onNext-click"?: (val: number) => any;
|
|
695
704
|
}> & {}>;
|
|
696
|
-
emit: ((event: "update:modelValue", ...args: unknown[]) => void) & ((event: "update:modelValue", ...args: any) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "update:start", val: number) => void) & ((event: "select", ...args: unknown[]) => void) & ((event: "select-all", ...args: unknown[]) => void) & ((event: "selection-change", ...args: unknown[]) => void) & ((event: "cell-mouse-enter", ...args: unknown[]) => void) & ((event: "cell-mouse-leave", ...args: unknown[]) => void) & ((event: "cell-contextmenu", ...args: unknown[]) => void) & ((event: "cell-click", ...args: unknown[]) => void) & ((event: "cell-dblclick", ...args: unknown[]) => void) & ((event: "row-click", ...args: unknown[]) => void) & ((event: "row-contextmenu", ...args: unknown[]) => void) & ((event: "row-dblclick", ...args: unknown[]) => void) & ((event: "header-click", ...args: unknown[]) => void) & ((event: "header-contextmenu", ...args: unknown[]) => void) & ((event: "sort-change", ...args: unknown[]) => void) & ((event: "filter-change", ...args: unknown[]) => void) & ((event: "current-change", ...args: unknown[]) => void) & ((event: "header-dragend", ...args: unknown[]) => void) & ((event: "expand-change", ...args: unknown[]) => void) & ((event: "scroll", ...args: unknown[]) => void) & ((event: "update:current-page", val: number) => void) & ((event: "update:page-size", val: number) => void) & ((event: "size-change", val: number) => void) & ((event: "change", currentPage: number, pageSize: number) => void) & ((event: "prev-click", val: number) => void) & ((event: "next-click", val: number) => void);
|
|
705
|
+
emit: ((event: "setData:query", ...args: unknown[]) => void) & ((event: "setData:query", ...args: any) => void) & ((event: "setData:query", ...args: any[]) => void) & ((event: "update:modelValue", ...args: unknown[]) => void) & ((event: "update:modelValue", ...args: any) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "update:start", val: number) => void) & ((event: "select", ...args: unknown[]) => void) & ((event: "select-all", ...args: unknown[]) => void) & ((event: "selection-change", ...args: unknown[]) => void) & ((event: "cell-mouse-enter", ...args: unknown[]) => void) & ((event: "cell-mouse-leave", ...args: unknown[]) => void) & ((event: "cell-contextmenu", ...args: unknown[]) => void) & ((event: "cell-click", ...args: unknown[]) => void) & ((event: "cell-dblclick", ...args: unknown[]) => void) & ((event: "row-click", ...args: unknown[]) => void) & ((event: "row-contextmenu", ...args: unknown[]) => void) & ((event: "row-dblclick", ...args: unknown[]) => void) & ((event: "header-click", ...args: unknown[]) => void) & ((event: "header-contextmenu", ...args: unknown[]) => void) & ((event: "sort-change", ...args: unknown[]) => void) & ((event: "filter-change", ...args: unknown[]) => void) & ((event: "current-change", ...args: unknown[]) => void) & ((event: "header-dragend", ...args: unknown[]) => void) & ((event: "expand-change", ...args: unknown[]) => void) & ((event: "scroll", ...args: unknown[]) => void) & ((event: "update:current-page", val: number) => void) & ((event: "update:page-size", val: number) => void) & ((event: "size-change", val: number) => void) & ((event: "change", currentPage: number, pageSize: number) => void) & ((event: "prev-click", val: number) => void) & ((event: "next-click", val: number) => void);
|
|
697
706
|
debounceRead: import("lodash").DebouncedFunc<() => Promise<void>>;
|
|
698
707
|
coreProps: import("vue").ComputedRef<{
|
|
699
708
|
type: string;
|
|
@@ -833,7 +842,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
833
842
|
sortOrders: ("ascending" | "descending")[];
|
|
834
843
|
}>;
|
|
835
844
|
coreEmits: {};
|
|
836
|
-
queryData: import("vue").
|
|
845
|
+
queryData: import("vue").ComputedRef<{}>;
|
|
846
|
+
setQueryData: (e: import("@vunk/core").SetDataEvent) => void;
|
|
837
847
|
tableState: {
|
|
838
848
|
data: NormalObject[];
|
|
839
849
|
total: number;
|
|
@@ -872,8 +882,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
872
882
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
873
883
|
install(app: import("vue").App): void;
|
|
874
884
|
};
|
|
875
|
-
readonly setData: (obj: any, e: import("@vunk/core").SetDataEvent) => void;
|
|
876
885
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
886
|
+
'setData:query': any;
|
|
877
887
|
'update:modelValue': any;
|
|
878
888
|
'update:start': (val: number) => boolean;
|
|
879
889
|
select: null;
|
|
@@ -917,6 +927,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
917
927
|
type: import("vue").PropType<any[]>;
|
|
918
928
|
default: () => any[];
|
|
919
929
|
};
|
|
930
|
+
query: {
|
|
931
|
+
type: ObjectConstructor;
|
|
932
|
+
default: any;
|
|
933
|
+
};
|
|
920
934
|
type: {
|
|
921
935
|
type: StringConstructor;
|
|
922
936
|
default: string;
|
|
@@ -1234,6 +1248,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1234
1248
|
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
1235
1249
|
};
|
|
1236
1250
|
}>> & Readonly<{
|
|
1251
|
+
"onSetData:query"?: (...args: any[] | unknown[]) => any;
|
|
1237
1252
|
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
1238
1253
|
"onUpdate:start"?: (val: number) => any;
|
|
1239
1254
|
onSelect?: (...args: unknown[]) => any;
|
|
@@ -1336,5 +1351,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1336
1351
|
sortOrders: ("ascending" | "descending")[];
|
|
1337
1352
|
readApi: import("./types").ReadApi;
|
|
1338
1353
|
queryItems: any[];
|
|
1354
|
+
query: Record<string, any>;
|
|
1339
1355
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1340
1356
|
export default _default;
|
|
@@ -132,7 +132,7 @@ export declare const emits: {
|
|
|
132
132
|
validate: any;
|
|
133
133
|
submit: any;
|
|
134
134
|
};
|
|
135
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("submit" | "
|
|
135
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("submit" | "validate" | "setData")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"submit", KE> | Exclude<"validate", KE> | Exclude<"setData", KE> : "submit" | "validate" | "setData"]: {
|
|
136
136
|
setData: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
137
137
|
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
138
138
|
submit: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -244,8 +244,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
244
244
|
disabled: BooleanConstructor;
|
|
245
245
|
}>> & Readonly<{
|
|
246
246
|
onSubmit?: (...args: any[] | unknown[]) => any;
|
|
247
|
-
onSetData?: (e: import("@vunk/core").SetDataEvent) => any;
|
|
248
247
|
onValidate?: (...args: any[] | unknown[]) => any;
|
|
248
|
+
onSetData?: (e: import("@vunk/core").SetDataEvent) => any;
|
|
249
249
|
}>, {
|
|
250
250
|
elRef: import("@vunk/shared").AnyFunc;
|
|
251
251
|
inline: boolean;
|
|
@@ -24,6 +24,10 @@ const props = {
|
|
|
24
24
|
default: ""
|
|
25
25
|
},
|
|
26
26
|
preview: null,
|
|
27
|
+
previewLabel: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "\u9884\u89C8"
|
|
30
|
+
},
|
|
27
31
|
beforeUpload: {
|
|
28
32
|
type: Function,
|
|
29
33
|
default: void 0
|
|
@@ -110,6 +114,10 @@ var _sfc_main$2 = vue.defineComponent({
|
|
|
110
114
|
preview: {
|
|
111
115
|
type: [Boolean, Function],
|
|
112
116
|
default: false
|
|
117
|
+
},
|
|
118
|
+
previewLabel: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "\u9884\u89C8"
|
|
113
121
|
}
|
|
114
122
|
},
|
|
115
123
|
emits: {
|
|
@@ -255,20 +263,24 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
255
263
|
class: vue.normalizeClass(_ctx.nsUpload.be("list", "item-file-actions"))
|
|
256
264
|
},
|
|
257
265
|
[
|
|
258
|
-
vue.createCommentVNode(" \u9884\u89C8 "),
|
|
259
266
|
vue.createVNode(_component_ElButton, {
|
|
260
267
|
disabled: !_ctx.previewable,
|
|
268
|
+
class: vue.normalizeClass(_ctx.nsUpload.be("list", "item-file-action-preview")),
|
|
261
269
|
plain: "",
|
|
262
270
|
size: "small",
|
|
263
271
|
round: "",
|
|
264
272
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handlePreview(_ctx.file))
|
|
265
273
|
}, {
|
|
266
|
-
default: vue.withCtx(() =>
|
|
267
|
-
vue.createTextVNode(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
274
|
+
default: vue.withCtx(() => [
|
|
275
|
+
vue.createTextVNode(
|
|
276
|
+
vue.toDisplayString(_ctx.previewLabel),
|
|
277
|
+
1
|
|
278
|
+
/* TEXT */
|
|
279
|
+
)
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
/* STABLE */
|
|
283
|
+
}, 8, ["disabled", "class"]),
|
|
272
284
|
vue.createCommentVNode(" \u4E0B\u8F7D "),
|
|
273
285
|
vue.createVNode(_component_ElButton, {
|
|
274
286
|
plain: "",
|
|
@@ -277,11 +289,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
277
289
|
type: "primary",
|
|
278
290
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleDownload(_ctx.file))
|
|
279
291
|
}, {
|
|
280
|
-
default: vue.withCtx(() => _cache[
|
|
292
|
+
default: vue.withCtx(() => _cache[8] || (_cache[8] = [
|
|
281
293
|
vue.createTextVNode(" \u4E0B\u8F7D ")
|
|
282
294
|
])),
|
|
283
295
|
_: 1,
|
|
284
|
-
__: [
|
|
296
|
+
__: [8]
|
|
285
297
|
})
|
|
286
298
|
],
|
|
287
299
|
2
|
|
@@ -552,8 +564,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
552
564
|
"on-preview": _ctx.onPreview,
|
|
553
565
|
preview: _ctx.preview,
|
|
554
566
|
"on-download": _ctx.onDownload,
|
|
567
|
+
"preview-label": _ctx.previewLabel,
|
|
555
568
|
onRemove: _ctx.handleRemove
|
|
556
|
-
}, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "onRemove"])
|
|
569
|
+
}, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "preview-label", "onRemove"])
|
|
557
570
|
]),
|
|
558
571
|
default: vue.withCtx(() => [
|
|
559
572
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -20,6 +20,10 @@ const props = {
|
|
|
20
20
|
default: ""
|
|
21
21
|
},
|
|
22
22
|
preview: null,
|
|
23
|
+
previewLabel: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "\u9884\u89C8"
|
|
26
|
+
},
|
|
23
27
|
beforeUpload: {
|
|
24
28
|
type: Function,
|
|
25
29
|
default: void 0
|
|
@@ -106,6 +110,10 @@ var _sfc_main$2 = defineComponent({
|
|
|
106
110
|
preview: {
|
|
107
111
|
type: [Boolean, Function],
|
|
108
112
|
default: false
|
|
113
|
+
},
|
|
114
|
+
previewLabel: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "\u9884\u89C8"
|
|
109
117
|
}
|
|
110
118
|
},
|
|
111
119
|
emits: {
|
|
@@ -251,20 +259,24 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
251
259
|
class: normalizeClass(_ctx.nsUpload.be("list", "item-file-actions"))
|
|
252
260
|
},
|
|
253
261
|
[
|
|
254
|
-
createCommentVNode(" \u9884\u89C8 "),
|
|
255
262
|
createVNode(_component_ElButton, {
|
|
256
263
|
disabled: !_ctx.previewable,
|
|
264
|
+
class: normalizeClass(_ctx.nsUpload.be("list", "item-file-action-preview")),
|
|
257
265
|
plain: "",
|
|
258
266
|
size: "small",
|
|
259
267
|
round: "",
|
|
260
268
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handlePreview(_ctx.file))
|
|
261
269
|
}, {
|
|
262
|
-
default: withCtx(() =>
|
|
263
|
-
createTextVNode(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
createTextVNode(
|
|
272
|
+
toDisplayString(_ctx.previewLabel),
|
|
273
|
+
1
|
|
274
|
+
/* TEXT */
|
|
275
|
+
)
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
/* STABLE */
|
|
279
|
+
}, 8, ["disabled", "class"]),
|
|
268
280
|
createCommentVNode(" \u4E0B\u8F7D "),
|
|
269
281
|
createVNode(_component_ElButton, {
|
|
270
282
|
plain: "",
|
|
@@ -273,11 +285,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
273
285
|
type: "primary",
|
|
274
286
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleDownload(_ctx.file))
|
|
275
287
|
}, {
|
|
276
|
-
default: withCtx(() => _cache[
|
|
288
|
+
default: withCtx(() => _cache[8] || (_cache[8] = [
|
|
277
289
|
createTextVNode(" \u4E0B\u8F7D ")
|
|
278
290
|
])),
|
|
279
291
|
_: 1,
|
|
280
|
-
__: [
|
|
292
|
+
__: [8]
|
|
281
293
|
})
|
|
282
294
|
],
|
|
283
295
|
2
|
|
@@ -548,8 +560,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
548
560
|
"on-preview": _ctx.onPreview,
|
|
549
561
|
preview: _ctx.preview,
|
|
550
562
|
"on-download": _ctx.onDownload,
|
|
563
|
+
"preview-label": _ctx.previewLabel,
|
|
551
564
|
onRemove: _ctx.handleRemove
|
|
552
|
-
}, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "onRemove"])
|
|
565
|
+
}, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "preview-label", "onRemove"])
|
|
553
566
|
]),
|
|
554
567
|
default: withCtx(() => [
|
|
555
568
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -8,6 +8,10 @@ export declare const props: {
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
preview: any;
|
|
11
|
+
previewLabel: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
11
15
|
beforeUpload: {
|
|
12
16
|
type: FunctionConstructor;
|
|
13
17
|
default: any;
|
|
@@ -280,7 +284,7 @@ export declare const props: {
|
|
|
280
284
|
readonly default: true;
|
|
281
285
|
};
|
|
282
286
|
};
|
|
283
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (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<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", 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<"drag", keyof T2> | Extract<"withCredentials", 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<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"slots", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"exceedable", keyof T2>, KE> | Exclude<Extract<"confirmExceed", keyof T2>, KE> : 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<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", 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<"drag", keyof T2> | Extract<"withCredentials", 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<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: { [k in 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<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", 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<"drag", keyof T2> | Extract<"withCredentials", 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<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: T2[k]; }[P]; }>;
|
|
287
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (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<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", 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<"drag", keyof T2> | Extract<"withCredentials", 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<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"slots", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"previewLabel", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"exceedable", keyof T2>, KE> | Exclude<Extract<"confirmExceed", keyof T2>, KE> : 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<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", 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<"drag", keyof T2> | Extract<"withCredentials", 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<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: { [k in 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<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", 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<"drag", keyof T2> | Extract<"withCredentials", 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<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: T2[k]; }[P]; }>;
|
|
284
288
|
export declare const emits: {
|
|
285
289
|
'update:fileList': any;
|
|
286
290
|
remove: (e: UploadFile) => UploadFile;
|
|
@@ -26,6 +26,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
26
26
|
type: (BooleanConstructor | FunctionConstructor)[];
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
|
+
previewLabel: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
29
33
|
}>, {
|
|
30
34
|
handleRemove: (file?: UploadFile) => void;
|
|
31
35
|
t: import("element-plus").Translator;
|
|
@@ -95,6 +99,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
95
99
|
type: (BooleanConstructor | FunctionConstructor)[];
|
|
96
100
|
default: boolean;
|
|
97
101
|
};
|
|
102
|
+
previewLabel: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
98
106
|
}>> & Readonly<{
|
|
99
107
|
onRemove?: (e: UploadFile) => any;
|
|
100
108
|
}>, {
|
|
@@ -103,6 +111,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
103
111
|
listType: "text" | "picture" | "picture-card";
|
|
104
112
|
file: UploadFile;
|
|
105
113
|
preview: boolean | Function;
|
|
114
|
+
previewLabel: string;
|
|
106
115
|
onDownload: (arg: UploadFile) => any;
|
|
107
116
|
}, {}, {
|
|
108
117
|
ElProgress: {
|
|
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
preview: any;
|
|
10
|
+
previewLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
10
14
|
beforeUpload: {
|
|
11
15
|
type: FunctionConstructor;
|
|
12
16
|
default: any;
|
|
@@ -326,6 +330,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
326
330
|
default: string;
|
|
327
331
|
};
|
|
328
332
|
preview: any;
|
|
333
|
+
previewLabel: {
|
|
334
|
+
type: StringConstructor;
|
|
335
|
+
default: string;
|
|
336
|
+
};
|
|
329
337
|
beforeUpload: {
|
|
330
338
|
type: FunctionConstructor;
|
|
331
339
|
default: any;
|
|
@@ -632,6 +640,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
632
640
|
httpRequest: import("element-plus").UploadRequestHandler;
|
|
633
641
|
tip: string;
|
|
634
642
|
preview: any;
|
|
643
|
+
previewLabel: string;
|
|
635
644
|
onDownload: (arg: UploadFile) => any;
|
|
636
645
|
exceedable: boolean;
|
|
637
646
|
confirmExceed: boolean;
|
|
@@ -1293,6 +1302,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1293
1302
|
type: (BooleanConstructor | FunctionConstructor)[];
|
|
1294
1303
|
default: boolean;
|
|
1295
1304
|
};
|
|
1305
|
+
previewLabel: {
|
|
1306
|
+
type: StringConstructor;
|
|
1307
|
+
default: string;
|
|
1308
|
+
};
|
|
1296
1309
|
}>, {
|
|
1297
1310
|
handleRemove: (file?: UploadFile) => void;
|
|
1298
1311
|
t: import("element-plus").Translator;
|
|
@@ -1362,6 +1375,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1362
1375
|
type: (BooleanConstructor | FunctionConstructor)[];
|
|
1363
1376
|
default: boolean;
|
|
1364
1377
|
};
|
|
1378
|
+
previewLabel: {
|
|
1379
|
+
type: StringConstructor;
|
|
1380
|
+
default: string;
|
|
1381
|
+
};
|
|
1365
1382
|
}>> & Readonly<{
|
|
1366
1383
|
onRemove?: (e: UploadFile) => any;
|
|
1367
1384
|
}>, {
|
|
@@ -1370,6 +1387,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1370
1387
|
listType: "text" | "picture" | "picture-card";
|
|
1371
1388
|
file: UploadFile;
|
|
1372
1389
|
preview: boolean | Function;
|
|
1390
|
+
previewLabel: string;
|
|
1373
1391
|
onDownload: (arg: UploadFile) => any;
|
|
1374
1392
|
}, {}, {
|
|
1375
1393
|
ElProgress: {
|
|
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
preview: any;
|
|
7
|
+
previewLabel: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
7
11
|
beforeUpload: {
|
|
8
12
|
type: FunctionConstructor;
|
|
9
13
|
default: any;
|
|
@@ -277,6 +281,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
277
281
|
default: string;
|
|
278
282
|
};
|
|
279
283
|
preview: any;
|
|
284
|
+
previewLabel: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
default: string;
|
|
287
|
+
};
|
|
280
288
|
beforeUpload: {
|
|
281
289
|
type: FunctionConstructor;
|
|
282
290
|
default: any;
|
|
@@ -583,6 +591,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
583
591
|
httpRequest: import("element-plus").UploadRequestHandler;
|
|
584
592
|
tip: string;
|
|
585
593
|
preview: any;
|
|
594
|
+
previewLabel: string;
|
|
586
595
|
onDownload: (arg: import("element-plus").UploadFile) => any;
|
|
587
596
|
exceedable: boolean;
|
|
588
597
|
confirmExceed: boolean;
|