form-custom-test 3.0.76 → 3.0.78
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/designer.es.js +15 -9
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +3 -3
- package/dist/render.es.js +15 -9
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +3 -3
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -12285,7 +12285,11 @@ const _sfc_main$37 = {
|
|
|
12285
12285
|
if (!fileId) {
|
|
12286
12286
|
throw new Error("\u6587\u4EF6ID\u4E0D\u80FD\u4E3A\u7A7A");
|
|
12287
12287
|
}
|
|
12288
|
-
const { data: previewData } = await
|
|
12288
|
+
const { data: previewData } = await await service({
|
|
12289
|
+
method: "get",
|
|
12290
|
+
url: "unified-file/sys-file/kkfile-url",
|
|
12291
|
+
params: { fileId }
|
|
12292
|
+
});
|
|
12289
12293
|
window.open(previewData);
|
|
12290
12294
|
}
|
|
12291
12295
|
} catch (error) {
|
|
@@ -12313,7 +12317,8 @@ const _sfc_main$37 = {
|
|
|
12313
12317
|
const { data: downloadData } = await service({
|
|
12314
12318
|
method: "post",
|
|
12315
12319
|
url: "unified-file/sys-file/download",
|
|
12316
|
-
params: { fileId }
|
|
12320
|
+
params: { fileId },
|
|
12321
|
+
responseType: "blob"
|
|
12317
12322
|
});
|
|
12318
12323
|
downloadMethod(downloadData, name || fileName);
|
|
12319
12324
|
}
|
|
@@ -12398,12 +12403,12 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12398
12403
|
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
12399
12404
|
key: 1,
|
|
12400
12405
|
onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
|
|
12401
|
-
class: "pr-8px color-primary cursor-pointer"
|
|
12406
|
+
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
12402
12407
|
}, " \u9884\u89C8 ", 8, _hoisted_9$6)) : createCommentVNode("", true),
|
|
12403
12408
|
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
12404
12409
|
key: 2,
|
|
12405
12410
|
onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
|
|
12406
|
-
class: "pr-8px color-primary cursor-pointer"
|
|
12411
|
+
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
12407
12412
|
}, " \u4E0B\u8F7D ", 8, _hoisted_10$5)) : createCommentVNode("", true)
|
|
12408
12413
|
])
|
|
12409
12414
|
])
|
|
@@ -12445,7 +12450,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12445
12450
|
_: 1
|
|
12446
12451
|
}, 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"]);
|
|
12447
12452
|
}
|
|
12448
|
-
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-
|
|
12453
|
+
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-34876f37"]]);
|
|
12449
12454
|
var __glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12450
12455
|
__proto__: null,
|
|
12451
12456
|
"default": fileUploadWidget
|
|
@@ -68131,13 +68136,13 @@ function registerIcon(app) {
|
|
|
68131
68136
|
if (typeof window !== "undefined") {
|
|
68132
68137
|
let loadSvg = function() {
|
|
68133
68138
|
var body = document.body;
|
|
68134
|
-
var svgDom = document.getElementById("
|
|
68139
|
+
var svgDom = document.getElementById("__svg__icons__dom__1774345831534__");
|
|
68135
68140
|
if (!svgDom) {
|
|
68136
68141
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68137
68142
|
svgDom.style.position = "absolute";
|
|
68138
68143
|
svgDom.style.width = "0";
|
|
68139
68144
|
svgDom.style.height = "0";
|
|
68140
|
-
svgDom.id = "
|
|
68145
|
+
svgDom.id = "__svg__icons__dom__1774345831534__";
|
|
68141
68146
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68142
68147
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68143
68148
|
}
|
|
@@ -74387,7 +74392,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74387
74392
|
title: $props.field.options.dialogTitle || "\u4EBA\u5458\u6811",
|
|
74388
74393
|
width: "480px",
|
|
74389
74394
|
onClose: $options.handleClose,
|
|
74390
|
-
"body-class": "person-tree-dialog-body"
|
|
74395
|
+
"body-class": "person-tree-dialog-body",
|
|
74396
|
+
"header-class": "person-tree-dialog-header"
|
|
74391
74397
|
}, createSlots({
|
|
74392
74398
|
default: withCtx(() => [
|
|
74393
74399
|
createVNode(_component_el_input, {
|
|
@@ -74455,7 +74461,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74455
74461
|
_: 1
|
|
74456
74462
|
}, 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"]);
|
|
74457
74463
|
}
|
|
74458
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
74464
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-562382c6"]]);
|
|
74459
74465
|
const _sfc_main$c = {
|
|
74460
74466
|
name: "radio-other-widget",
|
|
74461
74467
|
componentName: "FieldWidget",
|