vft 0.0.324 → 0.0.326
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/es/components/upload/index.d.ts +6 -0
- package/es/components/upload/upload.vue.d.ts +3 -0
- package/es/components/upload/upload.vue2.js +55 -52
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/upload/index.d.ts +6 -0
- package/lib/components/upload/upload.vue.d.ts +3 -0
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -83,6 +83,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
83
83
|
};
|
|
84
84
|
onExceed: {
|
|
85
85
|
type: import("vue").PropType<(files: File[], uploadFiles: import("./types").UploadUserFile[]) => void>;
|
|
86
|
+
default: () => void;
|
|
86
87
|
};
|
|
87
88
|
beforeRemove: {
|
|
88
89
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => import("../types").Awaitable<boolean>>;
|
|
@@ -152,6 +153,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
152
153
|
autoUpload: boolean;
|
|
153
154
|
listType: import("./types").ListType;
|
|
154
155
|
httpRequest: import("./types").UploadRequestHandler;
|
|
156
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
155
157
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
156
158
|
P: {};
|
|
157
159
|
B: {};
|
|
@@ -243,6 +245,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
243
245
|
};
|
|
244
246
|
onExceed: {
|
|
245
247
|
type: import("vue").PropType<(files: File[], uploadFiles: import("./types").UploadUserFile[]) => void>;
|
|
248
|
+
default: () => void;
|
|
246
249
|
};
|
|
247
250
|
beforeRemove: {
|
|
248
251
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => import("../types").Awaitable<boolean>>;
|
|
@@ -312,6 +315,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
312
315
|
autoUpload: boolean;
|
|
313
316
|
listType: import("./types").ListType;
|
|
314
317
|
httpRequest: import("./types").UploadRequestHandler;
|
|
318
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
315
319
|
}>;
|
|
316
320
|
__isFragment?: never;
|
|
317
321
|
__isTeleport?: never;
|
|
@@ -400,6 +404,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
400
404
|
};
|
|
401
405
|
onExceed: {
|
|
402
406
|
type: import("vue").PropType<(files: File[], uploadFiles: import("./types").UploadUserFile[]) => void>;
|
|
407
|
+
default: () => void;
|
|
403
408
|
};
|
|
404
409
|
beforeRemove: {
|
|
405
410
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => import("../types").Awaitable<boolean>>;
|
|
@@ -469,6 +474,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
469
474
|
autoUpload: boolean;
|
|
470
475
|
listType: import("./types").ListType;
|
|
471
476
|
httpRequest: import("./types").UploadRequestHandler;
|
|
477
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
472
478
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
473
479
|
$slots: {
|
|
474
480
|
file?(_: {
|
|
@@ -20,6 +20,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
20
20
|
listType: string;
|
|
21
21
|
httpRequest: import("./types").UploadRequestHandler;
|
|
22
22
|
fileList: never[];
|
|
23
|
+
onExceed: () => void;
|
|
23
24
|
}>>, {
|
|
24
25
|
abort: (file: import("./types").UploadFile) => void;
|
|
25
26
|
submit: () => void;
|
|
@@ -82,6 +83,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
82
83
|
listType: string;
|
|
83
84
|
httpRequest: import("./types").UploadRequestHandler;
|
|
84
85
|
fileList: never[];
|
|
86
|
+
onExceed: () => void;
|
|
85
87
|
}>>> & Readonly<{}>, {
|
|
86
88
|
drag: boolean;
|
|
87
89
|
name: string;
|
|
@@ -95,6 +97,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
95
97
|
autoUpload: boolean;
|
|
96
98
|
listType: import("./types").ListType;
|
|
97
99
|
httpRequest: import("./types").UploadRequestHandler;
|
|
100
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
98
101
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
102
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
100
103
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as w, useSlots as U, shallowRef as T, computed as h, onBeforeUnmount as j, provide as N, toRef as V, createElementBlock as q, openBlock as f, normalizeClass as z, unref as t, createBlock as c, createCommentVNode as o, renderSlot as l, createSlots as g, withCtx as r, createVNode as D, mergeProps as k } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
|
-
import { ajaxUpload as
|
|
4
|
-
import { uploadContextKey as
|
|
3
|
+
import { ajaxUpload as H } from "./ajax.js";
|
|
4
|
+
import { uploadContextKey as K } from "./constants.js";
|
|
5
5
|
import R from "./upload-content.vue2.js";
|
|
6
|
-
import
|
|
7
|
-
import { useHandlers as
|
|
8
|
-
import { useFormDisabled as
|
|
9
|
-
const
|
|
6
|
+
import b from "./upload-list.vue2.js";
|
|
7
|
+
import { useHandlers as O } from "./use-handlers.js";
|
|
8
|
+
import { useFormDisabled as W } from "../form/hooks/use-form-common-props.js";
|
|
9
|
+
const A = w({
|
|
10
10
|
name: "vft-upload"
|
|
11
|
-
}), x = /* @__PURE__ */
|
|
12
|
-
...
|
|
11
|
+
}), x = /* @__PURE__ */ w({
|
|
12
|
+
...A,
|
|
13
13
|
props: {
|
|
14
14
|
action: { default: "#" },
|
|
15
15
|
headers: {},
|
|
@@ -25,7 +25,7 @@ const W = { class: "vft-upload-wrapper" }, z = b({
|
|
|
25
25
|
fileList: { default: [] },
|
|
26
26
|
autoUpload: { type: Boolean, default: !1 },
|
|
27
27
|
listType: { default: "text" },
|
|
28
|
-
httpRequest: { type: Function, default:
|
|
28
|
+
httpRequest: { type: Function, default: H },
|
|
29
29
|
disabled: { type: Boolean },
|
|
30
30
|
limit: {},
|
|
31
31
|
beforeUpload: {},
|
|
@@ -36,58 +36,61 @@ const W = { class: "vft-upload-wrapper" }, z = b({
|
|
|
36
36
|
onSuccess: {},
|
|
37
37
|
onProgress: {},
|
|
38
38
|
onError: {},
|
|
39
|
-
onExceed: {
|
|
39
|
+
onExceed: { type: Function, default: () => {
|
|
40
|
+
} }
|
|
40
41
|
},
|
|
41
42
|
setup($, { expose: B }) {
|
|
42
|
-
const i = $,
|
|
43
|
-
abort:
|
|
44
|
-
submit:
|
|
45
|
-
clearFiles:
|
|
46
|
-
uploadFiles:
|
|
43
|
+
const i = $, a = U(), u = W(), p = T(), {
|
|
44
|
+
abort: C,
|
|
45
|
+
submit: F,
|
|
46
|
+
clearFiles: L,
|
|
47
|
+
uploadFiles: s,
|
|
47
48
|
handleStart: v,
|
|
48
|
-
handleError:
|
|
49
|
+
handleError: P,
|
|
49
50
|
handleRemove: d,
|
|
50
51
|
handleSuccess: S,
|
|
51
52
|
handleProgress: E
|
|
52
|
-
} =
|
|
53
|
+
} = O(i, p), n = h(() => i.listType === "picture-card"), y = h(() => ({
|
|
53
54
|
...i,
|
|
54
|
-
fileList:
|
|
55
|
+
fileList: s.value,
|
|
55
56
|
onStart: v,
|
|
56
57
|
onProgress: E,
|
|
57
58
|
onSuccess: S,
|
|
58
|
-
onError:
|
|
59
|
+
onError: P,
|
|
59
60
|
onRemove: d
|
|
60
61
|
}));
|
|
61
62
|
return j(() => {
|
|
62
|
-
|
|
63
|
+
s.value.forEach(({ url: e }) => {
|
|
63
64
|
e?.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
64
65
|
});
|
|
65
|
-
}), N(
|
|
66
|
+
}), N(K, {
|
|
66
67
|
accept: V(i, "accept")
|
|
67
68
|
}), B({
|
|
68
|
-
abort:
|
|
69
|
-
submit:
|
|
70
|
-
clearFiles:
|
|
69
|
+
abort: C,
|
|
70
|
+
submit: F,
|
|
71
|
+
clearFiles: L,
|
|
71
72
|
handleStart: v,
|
|
72
73
|
handleRemove: d,
|
|
73
|
-
fileList:
|
|
74
|
-
}), (e,
|
|
75
|
-
|
|
74
|
+
fileList: s
|
|
75
|
+
}), (e, G) => (f(), q("div", {
|
|
76
|
+
class: z(["vft-upload-wrapper", { disabled: t(u) }])
|
|
77
|
+
}, [
|
|
78
|
+
n.value && e.showFileList ? (f(), c(b, {
|
|
76
79
|
key: 0,
|
|
77
|
-
disabled:
|
|
80
|
+
disabled: t(u),
|
|
78
81
|
"list-type": e.listType,
|
|
79
|
-
files:
|
|
82
|
+
files: t(s),
|
|
80
83
|
"handle-preview": e.onPreview,
|
|
81
|
-
onRemove:
|
|
84
|
+
onRemove: t(d)
|
|
82
85
|
}, g({
|
|
83
86
|
append: r(() => [
|
|
84
|
-
|
|
87
|
+
D(R, k({
|
|
85
88
|
ref_key: "uploadRef",
|
|
86
|
-
ref:
|
|
89
|
+
ref: p
|
|
87
90
|
}, y.value), {
|
|
88
91
|
default: r(() => [
|
|
89
|
-
|
|
90
|
-
!
|
|
92
|
+
t(a).trigger ? l(e.$slots, "trigger", { key: 0 }) : o("", !0),
|
|
93
|
+
!t(a).trigger && t(a).default ? l(e.$slots, "default", { key: 1 }) : o("", !0)
|
|
91
94
|
]),
|
|
92
95
|
_: 3
|
|
93
96
|
}, 16)
|
|
@@ -96,42 +99,42 @@ const W = { class: "vft-upload-wrapper" }, z = b({
|
|
|
96
99
|
}, [
|
|
97
100
|
e.$slots.file ? {
|
|
98
101
|
name: "default",
|
|
99
|
-
fn: r(({ file:
|
|
100
|
-
l(e.$slots, "file", { file:
|
|
102
|
+
fn: r(({ file: m }) => [
|
|
103
|
+
l(e.$slots, "file", { file: m })
|
|
101
104
|
]),
|
|
102
105
|
key: "0"
|
|
103
106
|
} : void 0
|
|
104
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) :
|
|
105
|
-
!n.value || n.value && !e.showFileList ? (f(),
|
|
107
|
+
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : o("", !0),
|
|
108
|
+
!n.value || n.value && !e.showFileList ? (f(), c(R, k({
|
|
106
109
|
key: 1,
|
|
107
110
|
ref_key: "uploadRef",
|
|
108
|
-
ref:
|
|
111
|
+
ref: p
|
|
109
112
|
}, y.value), {
|
|
110
113
|
default: r(() => [
|
|
111
|
-
|
|
112
|
-
!
|
|
114
|
+
t(a).trigger ? l(e.$slots, "trigger", { key: 0 }) : o("", !0),
|
|
115
|
+
!t(a).trigger && t(a).default ? l(e.$slots, "default", { key: 1 }) : o("", !0)
|
|
113
116
|
]),
|
|
114
117
|
_: 3
|
|
115
|
-
}, 16)) :
|
|
116
|
-
e.$slots.trigger ? l(e.$slots, "default", { key: 2 }) :
|
|
118
|
+
}, 16)) : o("", !0),
|
|
119
|
+
e.$slots.trigger ? l(e.$slots, "default", { key: 2 }) : o("", !0),
|
|
117
120
|
l(e.$slots, "tip"),
|
|
118
|
-
!n.value && e.showFileList ? (f(),
|
|
121
|
+
!n.value && e.showFileList ? (f(), c(b, {
|
|
119
122
|
key: 3,
|
|
120
|
-
disabled:
|
|
123
|
+
disabled: t(u),
|
|
121
124
|
"list-type": e.listType,
|
|
122
|
-
files:
|
|
125
|
+
files: t(s),
|
|
123
126
|
"handle-preview": e.onPreview,
|
|
124
|
-
onRemove:
|
|
127
|
+
onRemove: t(d)
|
|
125
128
|
}, g({ _: 2 }, [
|
|
126
129
|
e.$slots.file ? {
|
|
127
130
|
name: "default",
|
|
128
|
-
fn: r(({ file:
|
|
129
|
-
l(e.$slots, "file", { file:
|
|
131
|
+
fn: r(({ file: m }) => [
|
|
132
|
+
l(e.$slots, "file", { file: m })
|
|
130
133
|
]),
|
|
131
134
|
key: "0"
|
|
132
135
|
} : void 0
|
|
133
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) :
|
|
134
|
-
]));
|
|
136
|
+
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : o("", !0)
|
|
137
|
+
], 2));
|
|
135
138
|
}
|
|
136
139
|
});
|
|
137
140
|
export {
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
|
@@ -83,6 +83,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
83
83
|
};
|
|
84
84
|
onExceed: {
|
|
85
85
|
type: import("vue").PropType<(files: File[], uploadFiles: import("./types").UploadUserFile[]) => void>;
|
|
86
|
+
default: () => void;
|
|
86
87
|
};
|
|
87
88
|
beforeRemove: {
|
|
88
89
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => import("../types").Awaitable<boolean>>;
|
|
@@ -152,6 +153,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
152
153
|
autoUpload: boolean;
|
|
153
154
|
listType: import("./types").ListType;
|
|
154
155
|
httpRequest: import("./types").UploadRequestHandler;
|
|
156
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
155
157
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
156
158
|
P: {};
|
|
157
159
|
B: {};
|
|
@@ -243,6 +245,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
243
245
|
};
|
|
244
246
|
onExceed: {
|
|
245
247
|
type: import("vue").PropType<(files: File[], uploadFiles: import("./types").UploadUserFile[]) => void>;
|
|
248
|
+
default: () => void;
|
|
246
249
|
};
|
|
247
250
|
beforeRemove: {
|
|
248
251
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => import("../types").Awaitable<boolean>>;
|
|
@@ -312,6 +315,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
312
315
|
autoUpload: boolean;
|
|
313
316
|
listType: import("./types").ListType;
|
|
314
317
|
httpRequest: import("./types").UploadRequestHandler;
|
|
318
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
315
319
|
}>;
|
|
316
320
|
__isFragment?: never;
|
|
317
321
|
__isTeleport?: never;
|
|
@@ -400,6 +404,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
400
404
|
};
|
|
401
405
|
onExceed: {
|
|
402
406
|
type: import("vue").PropType<(files: File[], uploadFiles: import("./types").UploadUserFile[]) => void>;
|
|
407
|
+
default: () => void;
|
|
403
408
|
};
|
|
404
409
|
beforeRemove: {
|
|
405
410
|
type: import("vue").PropType<(uploadFile: import("./types").UploadFile, uploadFiles: import("./types").UploadFiles) => import("../types").Awaitable<boolean>>;
|
|
@@ -469,6 +474,7 @@ export declare const VftUpload: import("vft/es/utils").SFCWithInstall<{
|
|
|
469
474
|
autoUpload: boolean;
|
|
470
475
|
listType: import("./types").ListType;
|
|
471
476
|
httpRequest: import("./types").UploadRequestHandler;
|
|
477
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
472
478
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
473
479
|
$slots: {
|
|
474
480
|
file?(_: {
|
|
@@ -20,6 +20,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
20
20
|
listType: string;
|
|
21
21
|
httpRequest: import("./types").UploadRequestHandler;
|
|
22
22
|
fileList: never[];
|
|
23
|
+
onExceed: () => void;
|
|
23
24
|
}>>, {
|
|
24
25
|
abort: (file: import("./types").UploadFile) => void;
|
|
25
26
|
submit: () => void;
|
|
@@ -82,6 +83,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
82
83
|
listType: string;
|
|
83
84
|
httpRequest: import("./types").UploadRequestHandler;
|
|
84
85
|
fileList: never[];
|
|
86
|
+
onExceed: () => void;
|
|
85
87
|
}>>> & Readonly<{}>, {
|
|
86
88
|
drag: boolean;
|
|
87
89
|
name: string;
|
|
@@ -95,6 +97,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
95
97
|
autoUpload: boolean;
|
|
96
98
|
listType: import("./types").ListType;
|
|
97
99
|
httpRequest: import("./types").UploadRequestHandler;
|
|
100
|
+
onExceed: import("./types").UploadHooks["onExceed"];
|
|
98
101
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
102
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
100
103
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../form/index.cjs");const S=require("./ajax.cjs"),b=require("./constants.cjs"),p=require("./upload-content.vue2.cjs"),c=require("./upload-list.vue2.cjs"),R=require("./use-handlers.cjs"),B=require("../form/hooks/use-form-common-props.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../form/index.cjs");const S=require("./ajax.cjs"),b=require("./constants.cjs"),p=require("./upload-content.vue2.cjs"),c=require("./upload-list.vue2.cjs"),R=require("./use-handlers.cjs"),B=require("../form/hooks/use-form-common-props.cjs"),P=e.defineComponent({name:"vft-upload"}),_=e.defineComponent({...P,props:{action:{default:"#"},headers:{},method:{default:"post"},data:{},multiple:{type:Boolean,default:!1},name:{default:"file"},drag:{type:Boolean,default:!1},withCredentials:{type:Boolean},showFileList:{type:Boolean,default:!0},accept:{default:""},type:{default:"select"},fileList:{default:[]},autoUpload:{type:Boolean,default:!1},listType:{default:"text"},httpRequest:{type:Function,default:S.ajaxUpload},disabled:{type:Boolean},limit:{},beforeUpload:{},beforeRemove:{},onRemove:{},onChange:{},onPreview:{},onSuccess:{},onProgress:{},onError:{},onExceed:{type:Function,default:()=>{}}},setup(m,{expose:v}){const l=m,o=e.useSlots(),n=B.useFormDisabled(),u=e.shallowRef(),{abort:y,submit:h,clearFiles:g,uploadFiles:r,handleStart:i,handleError:C,handleRemove:a,handleSuccess:k,handleProgress:w}=R.useHandlers(l,u),s=e.computed(()=>l.listType==="picture-card"),f=e.computed(()=>({...l,fileList:r.value,onStart:i,onProgress:w,onSuccess:k,onError:C,onRemove:a}));return e.onBeforeUnmount(()=>{r.value.forEach(({url:t})=>{t?.startsWith("blob:")&&URL.revokeObjectURL(t)})}),e.provide(b.uploadContextKey,{accept:e.toRef(l,"accept")}),v({abort:y,submit:h,clearFiles:g,handleStart:i,handleRemove:a,fileList:r}),(t,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vft-upload-wrapper",{disabled:e.unref(n)}])},[s.value&&t.showFileList?(e.openBlock(),e.createBlock(c.default,{key:0,disabled:e.unref(n),"list-type":t.listType,files:e.unref(r),"handle-preview":t.onPreview,onRemove:e.unref(a)},e.createSlots({append:e.withCtx(()=>[e.createVNode(p.default,e.mergeProps({ref_key:"uploadRef",ref:u},f.value),{default:e.withCtx(()=>[e.unref(o).trigger?e.renderSlot(t.$slots,"trigger",{key:0}):e.createCommentVNode("",!0),!e.unref(o).trigger&&e.unref(o).default?e.renderSlot(t.$slots,"default",{key:1}):e.createCommentVNode("",!0)]),_:3},16)]),_:2},[t.$slots.file?{name:"default",fn:e.withCtx(({file:d})=>[e.renderSlot(t.$slots,"file",{file:d})]),key:"0"}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):e.createCommentVNode("",!0),!s.value||s.value&&!t.showFileList?(e.openBlock(),e.createBlock(p.default,e.mergeProps({key:1,ref_key:"uploadRef",ref:u},f.value),{default:e.withCtx(()=>[e.unref(o).trigger?e.renderSlot(t.$slots,"trigger",{key:0}):e.createCommentVNode("",!0),!e.unref(o).trigger&&e.unref(o).default?e.renderSlot(t.$slots,"default",{key:1}):e.createCommentVNode("",!0)]),_:3},16)):e.createCommentVNode("",!0),t.$slots.trigger?e.renderSlot(t.$slots,"default",{key:2}):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"tip"),!s.value&&t.showFileList?(e.openBlock(),e.createBlock(c.default,{key:3,disabled:e.unref(n),"list-type":t.listType,files:e.unref(r),"handle-preview":t.onPreview,onRemove:e.unref(a)},e.createSlots({_:2},[t.$slots.file?{name:"default",fn:e.withCtx(({file:d})=>[e.renderSlot(t.$slots,"file",{file:d})]),key:"0"}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):e.createCommentVNode("",!0)],2))}});exports.default=_;
|
package/lib/package.json.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.326";exports.version=e;
|
package/lib/package.json.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.326",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"resize-detector": "0.3.0",
|
|
56
56
|
"sortablejs": "1.15.0",
|
|
57
57
|
"photoswipe": "5.4.4",
|
|
58
|
+
"@vft/constants": "0.0.72",
|
|
59
|
+
"@vft/router": "0.0.65",
|
|
58
60
|
"@vft/store": "0.0.54",
|
|
59
61
|
"@vft/use": "0.0.76",
|
|
60
62
|
"@vft/utils": "0.0.128",
|
|
61
|
-
"@vft/
|
|
62
|
-
"@vft/directives": "0.0.33",
|
|
63
|
-
"@vft/router": "0.0.65"
|
|
63
|
+
"@vft/directives": "0.0.33"
|
|
64
64
|
},
|
|
65
65
|
"vetur": {
|
|
66
66
|
"tags": "tags.json",
|
package/web-types.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"vft","version":"0.0.
|
|
1
|
+
{"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"vft","version":"0.0.326","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{}}}
|