@kp-ui/lowcode 1.0.87 → 1.0.88
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/package.json
CHANGED
|
@@ -92,7 +92,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
92
92
|
_: 1
|
|
93
93
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"])) : createCommentVNode("", true);
|
|
94
94
|
}
|
|
95
|
-
const fileUploadWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
95
|
+
const fileUploadWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-88b4f711"]]);
|
|
96
96
|
export {
|
|
97
97
|
fileUploadWidget as default
|
|
98
98
|
};
|
|
@@ -137,7 +137,7 @@ const _sfc_main = {
|
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
async handlePreview(file) {
|
|
140
|
-
if (file.fileCode) {
|
|
140
|
+
if (!file.fileCode) {
|
|
141
141
|
return this.$message.error("文件上传完才能预览!");
|
|
142
142
|
}
|
|
143
143
|
if ([".png", ".jpg", ".jpeg", ".gif"].includes(file.fileType)) {
|
|
@@ -208,9 +208,9 @@ const _sfc_main = {
|
|
|
208
208
|
file: upload.file
|
|
209
209
|
});
|
|
210
210
|
const {
|
|
211
|
-
fileName: name
|
|
212
|
-
fileCode
|
|
211
|
+
fileName: name
|
|
213
212
|
} = res.data.object;
|
|
213
|
+
console.log(res.data.object);
|
|
214
214
|
if (limit > 1) {
|
|
215
215
|
const findIndex = this.fieldModel.findIndex((item) => item.name === name);
|
|
216
216
|
if (findIndex > -1) {
|