@quoreadmin/ui 0.23.1 → 0.23.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/dist/index.js +20 -8
- package/dist/index.umd.cjs +68 -68
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17658,9 +17658,15 @@ const _x = /* @__PURE__ */ we(Ax, [["render", Hx], ["__scopeId", "data-v-ce3ef51
|
|
|
17658
17658
|
autoUpload: {
|
|
17659
17659
|
type: Boolean,
|
|
17660
17660
|
default: !1
|
|
17661
|
+
},
|
|
17662
|
+
/** Override uploading by enabling customUpload and defining a custom uploader handler event. */
|
|
17663
|
+
// https://primevue.org/fileupload/#custom-upload
|
|
17664
|
+
customUpload: {
|
|
17665
|
+
type: Boolean,
|
|
17666
|
+
default: !1
|
|
17661
17667
|
}
|
|
17662
17668
|
},
|
|
17663
|
-
emits: ["file-list", "upload-error"],
|
|
17669
|
+
emits: ["file-list", "upload-error", "uploading"],
|
|
17664
17670
|
setup(t, { emit: e }) {
|
|
17665
17671
|
const n = V(null), r = V(t.files);
|
|
17666
17672
|
return {
|
|
@@ -17669,14 +17675,17 @@ const _x = /* @__PURE__ */ we(Ax, [["render", Hx], ["__scopeId", "data-v-ce3ef51
|
|
|
17669
17675
|
// refs
|
|
17670
17676
|
allFiles: r,
|
|
17671
17677
|
// methods
|
|
17672
|
-
onUploadError: (
|
|
17673
|
-
e("upload-error",
|
|
17678
|
+
onUploadError: (l) => {
|
|
17679
|
+
e("upload-error", l);
|
|
17680
|
+
},
|
|
17681
|
+
onUploading: (l) => {
|
|
17682
|
+
e("uploading", l);
|
|
17674
17683
|
},
|
|
17675
|
-
onSelectedFiles: (
|
|
17676
|
-
r.value =
|
|
17684
|
+
onSelectedFiles: (l) => {
|
|
17685
|
+
r.value = l.files, e("file-list", r.value);
|
|
17677
17686
|
},
|
|
17678
|
-
onUpload: (
|
|
17679
|
-
console.log("onUpload",
|
|
17687
|
+
onUpload: (l) => {
|
|
17688
|
+
console.log("onUpload", l);
|
|
17680
17689
|
},
|
|
17681
17690
|
// composables
|
|
17682
17691
|
mq: kr
|
|
@@ -17697,8 +17706,10 @@ function Gx(t, e, n, r, i, o) {
|
|
|
17697
17706
|
}),
|
|
17698
17707
|
maxFileSize: t.maxFileSize,
|
|
17699
17708
|
auto: t.autoUpload,
|
|
17709
|
+
"custom-upload": t.customUpload,
|
|
17700
17710
|
onError: e[1] || (e[1] = (u) => t.onUploadError(u)),
|
|
17701
17711
|
onUpload: e[2] || (e[2] = (u) => t.onUpload(u)),
|
|
17712
|
+
onUploader: e[3] || (e[3] = (u) => t.onUploading(u)),
|
|
17702
17713
|
onSelect: t.onSelectedFiles,
|
|
17703
17714
|
pt: {
|
|
17704
17715
|
root: { class: "flex flex-col" },
|
|
@@ -17744,7 +17755,7 @@ function Gx(t, e, n, r, i, o) {
|
|
|
17744
17755
|
])
|
|
17745
17756
|
]),
|
|
17746
17757
|
_: 1
|
|
17747
|
-
}, 8, ["name", "url", "multiple", "accept", "invalidFileSizeMessage", "maxFileSize", "auto", "onSelect"])
|
|
17758
|
+
}, 8, ["name", "url", "multiple", "accept", "invalidFileSizeMessage", "maxFileSize", "auto", "custom-upload", "onSelect"])
|
|
17748
17759
|
]);
|
|
17749
17760
|
}
|
|
17750
17761
|
const xU = /* @__PURE__ */ we(zx, [["render", Gx]]), qx = ue({
|
|
@@ -52440,6 +52451,7 @@ export {
|
|
|
52440
52451
|
DU as QGrid,
|
|
52441
52452
|
lf as QIcon,
|
|
52442
52453
|
LU as QIconActionGroup,
|
|
52454
|
+
_x as QImageGallery,
|
|
52443
52455
|
RU as QInput,
|
|
52444
52456
|
$U as QList,
|
|
52445
52457
|
NU as QModal,
|