agilebuilder-ui 1.0.19-beta2 → 1.0.20
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/lib/super-ui.js +34 -13
- package/lib/super-ui.umd.cjs +2 -2
- package/package.json +1 -1
- package/packages/fs-upload-list/src/fs-upload-list.vue +1 -0
- package/packages/fs-upload-new/src/fs-button-upload.vue +5 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +5 -0
- package/packages/fs-upload-new/src/fs-upload-new.vue +29 -3
package/lib/super-ui.js
CHANGED
|
@@ -57022,6 +57022,7 @@ function _sfc_render$7(e, t, n, o, i, l) {
|
|
|
57022
57022
|
key: 0,
|
|
57023
57023
|
accept: n.fileSetObj.accept ? n.fileSetObj.accept : null,
|
|
57024
57024
|
action: i.defaultAction,
|
|
57025
|
+
multiple: n.fileSetObj.multiple,
|
|
57025
57026
|
"before-upload": l.handleBeforeUpload,
|
|
57026
57027
|
headers: i.headers,
|
|
57027
57028
|
"on-success": l.uploadOnSuccess,
|
|
@@ -57037,7 +57038,7 @@ function _sfc_render$7(e, t, n, o, i, l) {
|
|
|
57037
57038
|
})
|
|
57038
57039
|
]),
|
|
57039
57040
|
_: 1
|
|
57040
|
-
}, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : createCommentVNode("", !0)
|
|
57041
|
+
}, 8, ["accept", "action", "multiple", "before-upload", "headers", "on-success"])) : createCommentVNode("", !0)
|
|
57041
57042
|
]),
|
|
57042
57043
|
_: 1
|
|
57043
57044
|
}, 8, ["modelValue", "title"]),
|
|
@@ -126553,6 +126554,11 @@ const _hoisted_1$2 = ["onClick"], _hoisted_2$1 = { style: { "margin-left": "6.5p
|
|
|
126553
126554
|
configure: {
|
|
126554
126555
|
type: Object,
|
|
126555
126556
|
default: () => ({})
|
|
126557
|
+
},
|
|
126558
|
+
beforeUpload: {
|
|
126559
|
+
type: Function,
|
|
126560
|
+
default: () => {
|
|
126561
|
+
}
|
|
126556
126562
|
}
|
|
126557
126563
|
},
|
|
126558
126564
|
setup(e) {
|
|
@@ -126573,7 +126579,8 @@ const _hoisted_1$2 = ["onClick"], _hoisted_2$1 = { style: { "margin-left": "6.5p
|
|
|
126573
126579
|
return (p, y) => {
|
|
126574
126580
|
const x = resolveComponent("el-icon"), E = resolveComponent("el-upload");
|
|
126575
126581
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
126576
|
-
|
|
126582
|
+
e.disabled ? createCommentVNode("", !0) : (openBlock(), createBlock(E, {
|
|
126583
|
+
key: 0,
|
|
126577
126584
|
class: "upload-demo",
|
|
126578
126585
|
accept: e.accept,
|
|
126579
126586
|
limit: e.limit,
|
|
@@ -126600,9 +126607,9 @@ const _hoisted_1$2 = ["onClick"], _hoisted_2$1 = { style: { "margin-left": "6.5p
|
|
|
126600
126607
|
createElementVNode("div", _hoisted_1$1, toDisplayString$1(e.placeholder), 1)
|
|
126601
126608
|
]),
|
|
126602
126609
|
_: 1
|
|
126603
|
-
}, 8, ["accept", "limit", "headers", "action", "multiple", "before-remove"]),
|
|
126610
|
+
}, 8, ["accept", "limit", "headers", "action", "multiple", "before-remove"])),
|
|
126604
126611
|
e.fileList && e.fileList.length > 0 ? (openBlock(), createBlock(_sfc_main$3, {
|
|
126605
|
-
key:
|
|
126612
|
+
key: 1,
|
|
126606
126613
|
disabled: e.disabled,
|
|
126607
126614
|
"file-list": e.fileList,
|
|
126608
126615
|
"system-code": e.systemCode
|
|
@@ -126685,6 +126692,11 @@ const _hoisted_1$2 = ["onClick"], _hoisted_2$1 = { style: { "margin-left": "6.5p
|
|
|
126685
126692
|
configure: {
|
|
126686
126693
|
type: Object,
|
|
126687
126694
|
default: () => ({})
|
|
126695
|
+
},
|
|
126696
|
+
beforeUpload: {
|
|
126697
|
+
type: Function,
|
|
126698
|
+
default: () => {
|
|
126699
|
+
}
|
|
126688
126700
|
}
|
|
126689
126701
|
},
|
|
126690
126702
|
setup(e) {
|
|
@@ -126705,7 +126717,8 @@ const _hoisted_1$2 = ["onClick"], _hoisted_2$1 = { style: { "margin-left": "6.5p
|
|
|
126705
126717
|
return (p, y) => {
|
|
126706
126718
|
const x = resolveComponent("el-button"), E = resolveComponent("el-upload");
|
|
126707
126719
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
126708
|
-
|
|
126720
|
+
e.disabled ? createCommentVNode("", !0) : (openBlock(), createBlock(E, {
|
|
126721
|
+
key: 0,
|
|
126709
126722
|
class: "upload-demo",
|
|
126710
126723
|
accept: e.accept,
|
|
126711
126724
|
limit: e.limit,
|
|
@@ -126730,9 +126743,9 @@ const _hoisted_1$2 = ["onClick"], _hoisted_2$1 = { style: { "margin-left": "6.5p
|
|
|
126730
126743
|
})
|
|
126731
126744
|
]),
|
|
126732
126745
|
_: 1
|
|
126733
|
-
}, 8, ["accept", "limit", "headers", "action", "multiple", "before-remove"]),
|
|
126746
|
+
}, 8, ["accept", "limit", "headers", "action", "multiple", "before-remove"])),
|
|
126734
126747
|
e.fileList && e.fileList.length > 0 ? (openBlock(), createBlock(_sfc_main$3, {
|
|
126735
|
-
key:
|
|
126748
|
+
key: 1,
|
|
126736
126749
|
disabled: e.disabled,
|
|
126737
126750
|
"file-list": e.fileList,
|
|
126738
126751
|
"system-code": e.systemCode
|
|
@@ -126832,19 +126845,27 @@ const _hoisted_1$2 = ["onClick"], _hoisted_2$1 = { style: { "margin-left": "6.5p
|
|
|
126832
126845
|
setup(e) {
|
|
126833
126846
|
const t = e, n = ref("");
|
|
126834
126847
|
t.displayType === "input" && (n.value = t.fileInfo.showName || "");
|
|
126835
|
-
const o = (
|
|
126836
|
-
n.value =
|
|
126848
|
+
const o = (l) => {
|
|
126849
|
+
n.value ? n.value = n.value + "," + l.showName : n.value = l.showName, t.fileList.push({
|
|
126850
|
+
showName: l.showName,
|
|
126851
|
+
serverPath: l.serverPath
|
|
126852
|
+
}), t.onSuccess();
|
|
126853
|
+
}, i = (l) => {
|
|
126854
|
+
const f = l.deleteFile;
|
|
126855
|
+
let p = t.fileList.findIndex((y) => y.serverPath === f.serverPath);
|
|
126856
|
+
p > -1 && t.fileList.splice(p, 1), p = l.all.findIndex((y) => y.serverPath === f.serverPath), p > -1 && l.all.splice(p, 1), n.value = t.fileList.map((y) => y.showName).join(","), t.onRemove();
|
|
126837
126857
|
};
|
|
126838
|
-
return (
|
|
126839
|
-
const
|
|
126840
|
-
return e.displayType === "input" ? (openBlock(), createBlock(
|
|
126858
|
+
return (l, f) => {
|
|
126859
|
+
const p = resolveComponent("FsUploadList");
|
|
126860
|
+
return e.displayType === "input" ? (openBlock(), createBlock(p, {
|
|
126841
126861
|
key: 0,
|
|
126842
126862
|
value: n.value,
|
|
126843
126863
|
row: e.entity,
|
|
126844
126864
|
disabled: e.disabled,
|
|
126845
126865
|
fileInfo: e.fileInfo,
|
|
126846
126866
|
fileSetObj: { accept: e.accept, multiple: e.multiple, limitFileSize: e.limitFileSize },
|
|
126847
|
-
onUploadSuccess: o
|
|
126867
|
+
onUploadSuccess: o,
|
|
126868
|
+
onDeleteSuccess: i
|
|
126848
126869
|
}, null, 8, ["value", "row", "disabled", "fileInfo", "fileSetObj"])) : e.displayType === "button" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
126849
126870
|
key: 1,
|
|
126850
126871
|
disabled: e.disabled,
|