yuanjia-form-pro-standard 1.1.6-beta7.1 → 1.1.6-beta7.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/designer.es.js +112 -31
- package/designer.style.css +1 -1
- package/designer.umd.js +4 -4
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -11465,8 +11465,8 @@ const _hoisted_15$5 = ["src"];
|
|
|
11465
11465
|
const _hoisted_16$5 = ["src"];
|
|
11466
11466
|
const _hoisted_17$4 = { class: "bottom clear-fix" };
|
|
11467
11467
|
const _hoisted_18$4 = { class: "ft-title" };
|
|
11468
|
-
const _hoisted_19$
|
|
11469
|
-
const _hoisted_20$
|
|
11468
|
+
const _hoisted_19$4 = { class: "bottom clear-fix" };
|
|
11469
|
+
const _hoisted_20$3 = { class: "ft-title" };
|
|
11470
11470
|
function _sfc_render$5e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11471
11471
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
11472
11472
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -11957,8 +11957,8 @@ function _sfc_render$5e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11957
11957
|
class: "ft-card"
|
|
11958
11958
|
}, {
|
|
11959
11959
|
default: withCtx(() => [
|
|
11960
|
-
createElementVNode("div", _hoisted_19$
|
|
11961
|
-
createElementVNode("span", _hoisted_20$
|
|
11960
|
+
createElementVNode("div", _hoisted_19$4, [
|
|
11961
|
+
createElementVNode("span", _hoisted_20$3, "#" + toDisplayString(idx + 1) + " " + toDisplayString(item.name), 1),
|
|
11962
11962
|
createVNode(_component_el_button, {
|
|
11963
11963
|
link: "",
|
|
11964
11964
|
type: "primary",
|
|
@@ -12890,9 +12890,9 @@ const _hoisted_17$3 = {
|
|
|
12890
12890
|
class: "field-action"
|
|
12891
12891
|
};
|
|
12892
12892
|
const _hoisted_18$3 = ["title"];
|
|
12893
|
-
const _hoisted_19$
|
|
12894
|
-
const _hoisted_20$
|
|
12895
|
-
const _hoisted_21$
|
|
12893
|
+
const _hoisted_19$3 = ["title"];
|
|
12894
|
+
const _hoisted_20$2 = ["title"];
|
|
12895
|
+
const _hoisted_21$2 = ["title"];
|
|
12896
12896
|
const _hoisted_22$1 = ["title"];
|
|
12897
12897
|
const _hoisted_23$1 = {
|
|
12898
12898
|
key: 1,
|
|
@@ -13131,20 +13131,20 @@ function _sfc_render$5b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13131
13131
|
onClick: _cache[6] || (_cache[6] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
|
|
13132
13132
|
}, [
|
|
13133
13133
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
13134
|
-
], 8, _hoisted_19$
|
|
13134
|
+
], 8, _hoisted_19$3)) : createCommentVNode("", true),
|
|
13135
13135
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
13136
13136
|
key: 1,
|
|
13137
13137
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
13138
13138
|
onClick: _cache[7] || (_cache[7] = withModifiers(($event) => $options.moveDownWidget($props.field), ["stop"]))
|
|
13139
13139
|
}, [
|
|
13140
13140
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
13141
|
-
], 8, _hoisted_20$
|
|
13141
|
+
], 8, _hoisted_20$2)) : createCommentVNode("", true),
|
|
13142
13142
|
createElementVNode("i", {
|
|
13143
13143
|
title: _ctx.i18nt("designer.hint.cloneWidget"),
|
|
13144
13144
|
onClick: _cache[8] || (_cache[8] = withModifiers(($event) => $options.cloneField($props.field), ["stop"]))
|
|
13145
13145
|
}, [
|
|
13146
13146
|
createVNode(_component_svg_icon, { "icon-class": "el-clone" })
|
|
13147
|
-
], 8, _hoisted_21$
|
|
13147
|
+
], 8, _hoisted_21$2),
|
|
13148
13148
|
createElementVNode("i", {
|
|
13149
13149
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
13150
13150
|
onClick: _cache[9] || (_cache[9] = withModifiers((...args) => $options.removeFieldWidget && $options.removeFieldWidget(...args), ["stop"]))
|
|
@@ -153261,9 +153261,9 @@ const _hoisted_16$3 = {
|
|
|
153261
153261
|
};
|
|
153262
153262
|
const _hoisted_17$2 = { class: "file-type-label" };
|
|
153263
153263
|
const _hoisted_18$2 = { class: "file-type-files" };
|
|
153264
|
-
const _hoisted_19$
|
|
153265
|
-
const _hoisted_20 = { class: "file-name" };
|
|
153266
|
-
const _hoisted_21 = { class: "preview-container" };
|
|
153264
|
+
const _hoisted_19$2 = ["onClick", "title"];
|
|
153265
|
+
const _hoisted_20$1 = { class: "file-name" };
|
|
153266
|
+
const _hoisted_21$1 = { class: "preview-container" };
|
|
153267
153267
|
const _hoisted_22 = ["src"];
|
|
153268
153268
|
const _hoisted_23 = {
|
|
153269
153269
|
key: 1,
|
|
@@ -153596,8 +153596,8 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153596
153596
|
]),
|
|
153597
153597
|
_: 1
|
|
153598
153598
|
}),
|
|
153599
|
-
createElementVNode("span", _hoisted_20, toDisplayString(file.name || file.file_name || `\u6587\u4EF6 ${index2 + 1}`), 1)
|
|
153600
|
-
], 8, _hoisted_19$
|
|
153599
|
+
createElementVNode("span", _hoisted_20$1, toDisplayString(file.name || file.file_name || `\u6587\u4EF6 ${index2 + 1}`), 1)
|
|
153600
|
+
], 8, _hoisted_19$2))
|
|
153601
153601
|
], 64);
|
|
153602
153602
|
}), 128))
|
|
153603
153603
|
])
|
|
@@ -153618,7 +153618,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153618
153618
|
"before-close": $options.closePreview
|
|
153619
153619
|
}, {
|
|
153620
153620
|
default: withCtx(() => [
|
|
153621
|
-
createElementVNode("div", _hoisted_21, [
|
|
153621
|
+
createElementVNode("div", _hoisted_21$1, [
|
|
153622
153622
|
$data.previewFileUrl ? (openBlock(), createElementBlock("iframe", {
|
|
153623
153623
|
key: 0,
|
|
153624
153624
|
src: $data.previewFileUrl,
|
|
@@ -179559,6 +179559,50 @@ const _sfc_main$4l = {
|
|
|
179559
179559
|
window.open(url, "_blank");
|
|
179560
179560
|
}
|
|
179561
179561
|
},
|
|
179562
|
+
isHistoryItemFileType(historyItem) {
|
|
179563
|
+
if (Array.isArray(historyItem.value) && historyItem.value.length > 0) {
|
|
179564
|
+
const firstItem = historyItem.value[0];
|
|
179565
|
+
if (firstItem && (firstItem.url || firstItem.file_url || firstItem.download_url)) {
|
|
179566
|
+
return true;
|
|
179567
|
+
}
|
|
179568
|
+
}
|
|
179569
|
+
if (historyItem.content) {
|
|
179570
|
+
try {
|
|
179571
|
+
const parsed = JSON.parse(historyItem.content);
|
|
179572
|
+
if (Array.isArray(parsed) && parsed.length > 0) {
|
|
179573
|
+
const firstItem = parsed[0];
|
|
179574
|
+
if (firstItem && (firstItem.url || firstItem.file_url || firstItem.download_url)) {
|
|
179575
|
+
return true;
|
|
179576
|
+
}
|
|
179577
|
+
}
|
|
179578
|
+
} catch (e) {
|
|
179579
|
+
}
|
|
179580
|
+
}
|
|
179581
|
+
return false;
|
|
179582
|
+
},
|
|
179583
|
+
getHistoryItemFiles(historyItem) {
|
|
179584
|
+
if (Array.isArray(historyItem.value) && historyItem.value.length > 0) {
|
|
179585
|
+
return historyItem.value.map((file) => ({
|
|
179586
|
+
name: file.name || file.file_name || "",
|
|
179587
|
+
url: file.url || file.file_url || file.download_url || "",
|
|
179588
|
+
uid: file.uid || file.name || file.url
|
|
179589
|
+
})).filter((file) => file.url);
|
|
179590
|
+
}
|
|
179591
|
+
if (historyItem.content) {
|
|
179592
|
+
try {
|
|
179593
|
+
const parsed = JSON.parse(historyItem.content);
|
|
179594
|
+
if (Array.isArray(parsed) && parsed.length > 0) {
|
|
179595
|
+
return parsed.map((file) => ({
|
|
179596
|
+
name: file.name || file.file_name || "",
|
|
179597
|
+
url: file.url || file.file_url || file.download_url || "",
|
|
179598
|
+
uid: file.uid || file.name || file.url
|
|
179599
|
+
})).filter((file) => file.url);
|
|
179600
|
+
}
|
|
179601
|
+
} catch (e) {
|
|
179602
|
+
}
|
|
179603
|
+
}
|
|
179604
|
+
return [];
|
|
179605
|
+
},
|
|
179562
179606
|
isParent(widget) {
|
|
179563
179607
|
if (widget._childFormParentConfig) {
|
|
179564
179608
|
const config2 = widget._childFormParentConfig;
|
|
@@ -181140,16 +181184,22 @@ const _hoisted_11$6 = { class: "history-user-name" };
|
|
|
181140
181184
|
const _hoisted_12$5 = { class: "history-time" };
|
|
181141
181185
|
const _hoisted_13$4 = { class: "history-content" };
|
|
181142
181186
|
const _hoisted_14$3 = {
|
|
181187
|
+
key: 0,
|
|
181188
|
+
class: "history-file-list"
|
|
181189
|
+
};
|
|
181190
|
+
const _hoisted_15$2 = ["onClick", "title"];
|
|
181191
|
+
const _hoisted_16$2 = { class: "file-name" };
|
|
181192
|
+
const _hoisted_17$1 = {
|
|
181143
181193
|
key: 1,
|
|
181144
181194
|
class: "title"
|
|
181145
181195
|
};
|
|
181146
|
-
const
|
|
181196
|
+
const _hoisted_18$1 = {
|
|
181147
181197
|
key: 2,
|
|
181148
181198
|
class: "content image"
|
|
181149
181199
|
};
|
|
181150
|
-
const
|
|
181151
|
-
const
|
|
181152
|
-
const
|
|
181200
|
+
const _hoisted_19$1 = ["onClick", "title"];
|
|
181201
|
+
const _hoisted_20 = { class: "file-name" };
|
|
181202
|
+
const _hoisted_21 = {
|
|
181153
181203
|
key: 3,
|
|
181154
181204
|
class: "content"
|
|
181155
181205
|
};
|
|
@@ -181159,9 +181209,9 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181159
181209
|
const _component_Loading = resolveComponent("Loading");
|
|
181160
181210
|
const _component_el_icon = resolveComponent("el-icon");
|
|
181161
181211
|
const _component_AvatarCom = resolveComponent("AvatarCom");
|
|
181162
|
-
const _component_el_popover = resolveComponent("el-popover");
|
|
181163
181212
|
const _component_el_image = resolveComponent("el-image");
|
|
181164
181213
|
const _component_Document = resolveComponent("Document");
|
|
181214
|
+
const _component_el_popover = resolveComponent("el-popover");
|
|
181165
181215
|
const _directive_loading = resolveDirective("loading");
|
|
181166
181216
|
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
181167
181217
|
!$props.isPreview ? (openBlock(), createBlock(_component_el_form, {
|
|
@@ -181294,15 +181344,46 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181294
181344
|
]),
|
|
181295
181345
|
createElementVNode("span", _hoisted_12$5, toDisplayString(historyItem.created_time || ""), 1)
|
|
181296
181346
|
]),
|
|
181297
|
-
createElementVNode("div", _hoisted_13$4,
|
|
181347
|
+
createElementVNode("div", _hoisted_13$4, [
|
|
181348
|
+
$options.isHistoryItemFileType(historyItem) ? (openBlock(), createElementBlock("div", _hoisted_14$3, [
|
|
181349
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getHistoryItemFiles(historyItem), (file) => {
|
|
181350
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
181351
|
+
key: file.uid || file.url
|
|
181352
|
+
}, [
|
|
181353
|
+
$options.isImageFile(file.url) ? (openBlock(), createBlock(_component_el_image, {
|
|
181354
|
+
key: 0,
|
|
181355
|
+
style: { "width": "100px", "height": "100px", "margin": "8px" },
|
|
181356
|
+
src: file.url,
|
|
181357
|
+
"preview-src-list": [file.url],
|
|
181358
|
+
fit: "cover"
|
|
181359
|
+
}, null, 8, ["src", "preview-src-list"])) : (openBlock(), createElementBlock("div", {
|
|
181360
|
+
key: 1,
|
|
181361
|
+
class: "file-item-vform",
|
|
181362
|
+
onClick: ($event) => $options.openFileUrl(file.url),
|
|
181363
|
+
title: file.name || "\u70B9\u51FB\u9884\u89C8"
|
|
181364
|
+
}, [
|
|
181365
|
+
createVNode(_component_el_icon, { class: "file-icon" }, {
|
|
181366
|
+
default: withCtx(() => [
|
|
181367
|
+
createVNode(_component_Document)
|
|
181368
|
+
]),
|
|
181369
|
+
_: 1
|
|
181370
|
+
}),
|
|
181371
|
+
createElementVNode("span", _hoisted_16$2, toDisplayString(file.name || "\u6587\u4EF6"), 1)
|
|
181372
|
+
], 8, _hoisted_15$2))
|
|
181373
|
+
], 64);
|
|
181374
|
+
}), 128))
|
|
181375
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
181376
|
+
createTextVNode(toDisplayString(historyItem.content || ""), 1)
|
|
181377
|
+
], 64))
|
|
181378
|
+
])
|
|
181298
181379
|
]);
|
|
181299
181380
|
}), 128))
|
|
181300
181381
|
]))
|
|
181301
181382
|
])
|
|
181302
181383
|
]),
|
|
181303
181384
|
_: 2
|
|
181304
|
-
}, 1032, ["visible"])) : (openBlock(), createElementBlock("div",
|
|
181305
|
-
Array.isArray(item.value) ? (openBlock(), createElementBlock("div",
|
|
181385
|
+
}, 1032, ["visible"])) : (openBlock(), createElementBlock("div", _hoisted_17$1, toDisplayString(item == null ? void 0 : item.name), 1)),
|
|
181386
|
+
Array.isArray(item.value) ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
181306
181387
|
item.type === "file-upload" || item.type === "picture-upload" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item.value, (file) => {
|
|
181307
181388
|
return openBlock(), createElementBlock(Fragment, {
|
|
181308
181389
|
key: file.uid || file.url
|
|
@@ -181315,7 +181396,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181315
181396
|
fit: "cover"
|
|
181316
181397
|
}, null, 8, ["src", "preview-src-list"])) : (openBlock(), createElementBlock("div", {
|
|
181317
181398
|
key: 1,
|
|
181318
|
-
class: "file-item",
|
|
181399
|
+
class: "file-item-vform",
|
|
181319
181400
|
onClick: ($event) => $options.openFileUrl(file.url),
|
|
181320
181401
|
title: file.name || "\u70B9\u51FB\u9884\u89C8"
|
|
181321
181402
|
}, [
|
|
@@ -181325,8 +181406,8 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181325
181406
|
]),
|
|
181326
181407
|
_: 1
|
|
181327
181408
|
}),
|
|
181328
|
-
createElementVNode("span",
|
|
181329
|
-
], 8,
|
|
181409
|
+
createElementVNode("span", _hoisted_20, toDisplayString(file.name || "\u6587\u4EF6"), 1)
|
|
181410
|
+
], 8, _hoisted_19$1))
|
|
181330
181411
|
], 64);
|
|
181331
181412
|
}), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
181332
181413
|
createTextVNode(toDisplayString(item.content ? (() => {
|
|
@@ -181338,7 +181419,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181338
181419
|
}
|
|
181339
181420
|
})() : "--"), 1)
|
|
181340
181421
|
], 64))
|
|
181341
|
-
])) : (openBlock(), createElementBlock("div",
|
|
181422
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_21, toDisplayString((item == null ? void 0 : item.content) || "--"), 1))
|
|
181342
181423
|
]);
|
|
181343
181424
|
}), 128))
|
|
181344
181425
|
], 64))
|
|
@@ -181346,7 +181427,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181346
181427
|
[_directive_loading, $data.formLoading]
|
|
181347
181428
|
]);
|
|
181348
181429
|
}
|
|
181349
|
-
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-
|
|
181430
|
+
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-2af90684"]]);
|
|
181350
181431
|
var ace$2 = { exports: {} };
|
|
181351
181432
|
(function(module, exports) {
|
|
181352
181433
|
(function() {
|
|
@@ -240657,13 +240738,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
240657
240738
|
if (typeof window !== "undefined") {
|
|
240658
240739
|
let loadSvg = function() {
|
|
240659
240740
|
var body = document.body;
|
|
240660
|
-
var svgDom = document.getElementById("
|
|
240741
|
+
var svgDom = document.getElementById("__svg__icons__dom__1768303795840__");
|
|
240661
240742
|
if (!svgDom) {
|
|
240662
240743
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
240663
240744
|
svgDom.style.position = "absolute";
|
|
240664
240745
|
svgDom.style.width = "0";
|
|
240665
240746
|
svgDom.style.height = "0";
|
|
240666
|
-
svgDom.id = "
|
|
240747
|
+
svgDom.id = "__svg__icons__dom__1768303795840__";
|
|
240667
240748
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
240668
240749
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
240669
240750
|
}
|