form-custom-test 3.0.34 → 3.0.36
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 +99 -80
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +60 -60
- package/dist/render.es.js +89 -71
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +9 -9
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -3650,6 +3650,7 @@ const personTreeSchema = {
|
|
|
3650
3650
|
dialogTitle: "\u4EBA\u5458\u6811",
|
|
3651
3651
|
dialogWidth: "50%",
|
|
3652
3652
|
hideFooter: false,
|
|
3653
|
+
treeParams: "",
|
|
3653
3654
|
customClass: "",
|
|
3654
3655
|
onOpen: "",
|
|
3655
3656
|
onConfirm: "",
|
|
@@ -3798,6 +3799,7 @@ var enLocale_extension = {
|
|
|
3798
3799
|
effect: "Effect",
|
|
3799
3800
|
personTreeButtonText: "Button Text",
|
|
3800
3801
|
personTreeDialogTitle: "Dialog Title",
|
|
3802
|
+
personTreeTreeParams: "Tree Params",
|
|
3801
3803
|
personTreeDialogWidth: "Dialog Width",
|
|
3802
3804
|
personTreeConfirmText: "Confirm Button Text",
|
|
3803
3805
|
personTreeCancelText: "Cancel Button Text",
|
|
@@ -3836,6 +3838,7 @@ var zhLocale_extension = {
|
|
|
3836
3838
|
effect: "\u663E\u793A\u6548\u679C",
|
|
3837
3839
|
personTreeButtonText: "\u6309\u94AE\u6587\u5B57",
|
|
3838
3840
|
personTreeDialogTitle: "\u5F39\u7A97\u6807\u9898",
|
|
3841
|
+
personTreeTreeParams: "\u8BF7\u6C42\u53C2\u6570",
|
|
3839
3842
|
personTreeDialogWidth: "\u5F39\u7A97\u5BBD\u5EA6",
|
|
3840
3843
|
personTreeConfirmText: "\u786E\u5B9A\u6309\u94AE\u6587\u5B57",
|
|
3841
3844
|
personTreeCancelText: "\u53D6\u6D88\u6309\u94AE\u6587\u5B57",
|
|
@@ -10569,7 +10572,8 @@ var fieldMixin = {
|
|
|
10569
10572
|
this.field.options.optionItems = deepClone(options || []);
|
|
10570
10573
|
}
|
|
10571
10574
|
} else {
|
|
10572
|
-
this.field.options.optionItems =
|
|
10575
|
+
this.field.options.optionItems = options;
|
|
10576
|
+
console.log(this.field, "this.field.options.optionItems");
|
|
10573
10577
|
}
|
|
10574
10578
|
this.clearSelectedOptions();
|
|
10575
10579
|
},
|
|
@@ -24835,12 +24839,12 @@ const _sfc_main$2X = {
|
|
|
24835
24839
|
getOptionItems() {
|
|
24836
24840
|
if (this.subFormRowId) {
|
|
24837
24841
|
const optionItems = this.refList[this.field.options.name + "@row" + this.subFormRowId].field.options.optionItems;
|
|
24838
|
-
console.log(optionItems, "optionItems");
|
|
24839
24842
|
return optionItems;
|
|
24840
24843
|
}
|
|
24841
24844
|
if (this.field.options.optionItems) {
|
|
24842
24845
|
return this.field.options.optionItems;
|
|
24843
24846
|
}
|
|
24847
|
+
console.log(this.field.options.optionItems);
|
|
24844
24848
|
return [];
|
|
24845
24849
|
}
|
|
24846
24850
|
}
|
|
@@ -24884,7 +24888,7 @@ function _sfc_render$2X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24884
24888
|
onChange: _ctx.handleChangeEvent
|
|
24885
24889
|
}, {
|
|
24886
24890
|
default: withCtx(() => [
|
|
24887
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($
|
|
24891
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.field.options.optionItems, (item) => {
|
|
24888
24892
|
return openBlock(), createBlock(_component_el_option, {
|
|
24889
24893
|
key: item.value,
|
|
24890
24894
|
label: item.label,
|
|
@@ -24899,7 +24903,7 @@ function _sfc_render$2X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24899
24903
|
_: 1
|
|
24900
24904
|
}, 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"]);
|
|
24901
24905
|
}
|
|
24902
|
-
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2X, [["render", _sfc_render$2X], ["__scopeId", "data-v-
|
|
24906
|
+
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2X, [["render", _sfc_render$2X], ["__scopeId", "data-v-332fe05c"]]);
|
|
24903
24907
|
var __glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24904
24908
|
__proto__: null,
|
|
24905
24909
|
"default": selectWidget
|
|
@@ -26983,7 +26987,10 @@ const _sfc_main$2J = {
|
|
|
26983
26987
|
}
|
|
26984
26988
|
},
|
|
26985
26989
|
getFormJson() {
|
|
26986
|
-
return
|
|
26990
|
+
return {
|
|
26991
|
+
widgetList: deepClone(this.designer.widgetList),
|
|
26992
|
+
formConfig: deepClone(this.designer.formConfig)
|
|
26993
|
+
};
|
|
26987
26994
|
},
|
|
26988
26995
|
reloadOptionData(widgetNames) {
|
|
26989
26996
|
let eventParams = [];
|
|
@@ -27236,7 +27243,7 @@ function _sfc_render$2J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27236
27243
|
_: 3
|
|
27237
27244
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
27238
27245
|
}
|
|
27239
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2J, [["render", _sfc_render$2J], ["__scopeId", "data-v-
|
|
27246
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2J, [["render", _sfc_render$2J], ["__scopeId", "data-v-79423a3c"]]);
|
|
27240
27247
|
var ace$2 = { exports: {} };
|
|
27241
27248
|
(function(module, exports) {
|
|
27242
27249
|
(function() {
|
|
@@ -53230,8 +53237,8 @@ const _hoisted_12$2 = {
|
|
|
53230
53237
|
key: 4,
|
|
53231
53238
|
class: ""
|
|
53232
53239
|
};
|
|
53233
|
-
const _hoisted_13$
|
|
53234
|
-
const _hoisted_14$
|
|
53240
|
+
const _hoisted_13$1 = { style: { "border": "1px solid #DCDFE6" } };
|
|
53241
|
+
const _hoisted_14$1 = { class: "dialog-footer" };
|
|
53235
53242
|
const _hoisted_15$1 = {
|
|
53236
53243
|
key: 5,
|
|
53237
53244
|
class: ""
|
|
@@ -53743,7 +53750,7 @@ function _sfc_render$2H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53743
53750
|
"append-to-body": true
|
|
53744
53751
|
}, {
|
|
53745
53752
|
footer: withCtx(() => [
|
|
53746
|
-
createElementVNode("div", _hoisted_14$
|
|
53753
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
53747
53754
|
createVNode(_component_el_button, {
|
|
53748
53755
|
type: "primary",
|
|
53749
53756
|
class: "copy-form-data-json-btn",
|
|
@@ -53772,7 +53779,7 @@ function _sfc_render$2H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53772
53779
|
])
|
|
53773
53780
|
]),
|
|
53774
53781
|
default: withCtx(() => [
|
|
53775
|
-
createElementVNode("div", _hoisted_13$
|
|
53782
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
53776
53783
|
createVNode(_component_code_editor, {
|
|
53777
53784
|
mode: "json",
|
|
53778
53785
|
readonly: true,
|
|
@@ -55554,8 +55561,8 @@ const _hoisted_12$1 = {
|
|
|
55554
55561
|
key: 9,
|
|
55555
55562
|
class: ""
|
|
55556
55563
|
};
|
|
55557
|
-
const _hoisted_13
|
|
55558
|
-
const _hoisted_14
|
|
55564
|
+
const _hoisted_13 = { class: "dialog-footer" };
|
|
55565
|
+
const _hoisted_14 = {
|
|
55559
55566
|
key: 10,
|
|
55560
55567
|
class: ""
|
|
55561
55568
|
};
|
|
@@ -55907,7 +55914,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55907
55914
|
"destroy-on-close": true
|
|
55908
55915
|
}, {
|
|
55909
55916
|
footer: withCtx(() => [
|
|
55910
|
-
createElementVNode("div", _hoisted_13
|
|
55917
|
+
createElementVNode("div", _hoisted_13, [
|
|
55911
55918
|
createVNode(_component_el_button, {
|
|
55912
55919
|
size: "large",
|
|
55913
55920
|
type: "primary",
|
|
@@ -55942,7 +55949,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55942
55949
|
])), [
|
|
55943
55950
|
[_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
|
|
55944
55951
|
]) : createCommentVNode("", true),
|
|
55945
|
-
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14
|
|
55952
|
+
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14, [
|
|
55946
55953
|
createVNode(_component_el_dialog, {
|
|
55947
55954
|
title: _ctx.i18nt("designer.setting.importOptions"),
|
|
55948
55955
|
modelValue: $data.showImportTreeDialogFlag,
|
|
@@ -63965,7 +63972,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63965
63972
|
_: 3
|
|
63966
63973
|
});
|
|
63967
63974
|
}
|
|
63968
|
-
var VFormDesigner = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
63975
|
+
var VFormDesigner = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-08bd1fe8"]]);
|
|
63969
63976
|
var vuedraggable_umd = { exports: {} };
|
|
63970
63977
|
var require$$0 = /* @__PURE__ */ getDefaultExportFromNamespaceIfPresent(vue);
|
|
63971
63978
|
(function(module, exports) {
|
|
@@ -67551,13 +67558,13 @@ function registerIcon(app) {
|
|
|
67551
67558
|
if (typeof window !== "undefined") {
|
|
67552
67559
|
let loadSvg = function() {
|
|
67553
67560
|
var body = document.body;
|
|
67554
|
-
var svgDom = document.getElementById("
|
|
67561
|
+
var svgDom = document.getElementById("__svg__icons__dom__1771987786346__");
|
|
67555
67562
|
if (!svgDom) {
|
|
67556
67563
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67557
67564
|
svgDom.style.position = "absolute";
|
|
67558
67565
|
svgDom.style.width = "0";
|
|
67559
67566
|
svgDom.style.height = "0";
|
|
67560
|
-
svgDom.id = "
|
|
67567
|
+
svgDom.id = "__svg__icons__dom__1771987786346__";
|
|
67561
67568
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67562
67569
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67563
67570
|
}
|
|
@@ -67692,6 +67699,26 @@ const createInputTextEditor = function(propName, propLabelKey) {
|
|
|
67692
67699
|
}
|
|
67693
67700
|
};
|
|
67694
67701
|
};
|
|
67702
|
+
const createTextareaEditor = function(propName, propLabelKey, configs = {}) {
|
|
67703
|
+
return {
|
|
67704
|
+
props: {
|
|
67705
|
+
optionModel: Object
|
|
67706
|
+
},
|
|
67707
|
+
render(h) {
|
|
67708
|
+
return createVNode(resolveComponent("el-form-item"), {
|
|
67709
|
+
"label": translate(propLabelKey)
|
|
67710
|
+
}, {
|
|
67711
|
+
default: () => [createVNode(resolveComponent("el-input"), {
|
|
67712
|
+
"type": "textarea",
|
|
67713
|
+
"modelValue": this.optionModel[propName],
|
|
67714
|
+
"onUpdate:modelValue": ($event) => this.optionModel[propName] = $event,
|
|
67715
|
+
"rows": configs.rows || 4,
|
|
67716
|
+
"autosize": configs.autosize || false
|
|
67717
|
+
}, null)]
|
|
67718
|
+
});
|
|
67719
|
+
}
|
|
67720
|
+
};
|
|
67721
|
+
};
|
|
67695
67722
|
const createBooleanEditor = function(propName, propLabelKey) {
|
|
67696
67723
|
return {
|
|
67697
67724
|
props: {
|
|
@@ -73349,7 +73376,6 @@ var blowfish = { exports: {} };
|
|
|
73349
73376
|
useCookies();
|
|
73350
73377
|
const getToken = () => {
|
|
73351
73378
|
const accessToken = sessionStorage.getItem("Authorization");
|
|
73352
|
-
console.log(accessToken, "accessToken");
|
|
73353
73379
|
return accessToken;
|
|
73354
73380
|
};
|
|
73355
73381
|
useCookies();
|
|
@@ -73482,7 +73508,8 @@ const _sfc_main$d = {
|
|
|
73482
73508
|
label: "name"
|
|
73483
73509
|
},
|
|
73484
73510
|
checkedNodes: [],
|
|
73485
|
-
treeRef: null
|
|
73511
|
+
treeRef: null,
|
|
73512
|
+
defaultExpandedKeys: []
|
|
73486
73513
|
};
|
|
73487
73514
|
},
|
|
73488
73515
|
computed: {
|
|
@@ -73530,22 +73557,22 @@ const _sfc_main$d = {
|
|
|
73530
73557
|
});
|
|
73531
73558
|
},
|
|
73532
73559
|
getTreeData() {
|
|
73533
|
-
const
|
|
73560
|
+
const data2 = this.field.options.treeParams ? JSON.parse(this.field.options.treeParams) : {};
|
|
73534
73561
|
service({
|
|
73535
73562
|
method: "post",
|
|
73536
73563
|
url: "/unified-system/sysCompany/fullTree",
|
|
73537
|
-
data: { companyId:
|
|
73538
|
-
}).then(({ data:
|
|
73539
|
-
this.treeData = renderData(
|
|
73540
|
-
function renderData(
|
|
73564
|
+
data: __spreadValues({ companyId: sessionStorage.getItem("companyId") }, data2)
|
|
73565
|
+
}).then(({ data: data3 }) => {
|
|
73566
|
+
this.treeData = renderData(data3);
|
|
73567
|
+
function renderData(data4) {
|
|
73541
73568
|
var _a2;
|
|
73542
|
-
for (const element of
|
|
73569
|
+
for (const element of data4) {
|
|
73543
73570
|
element.nodeKey = element.joinUserId || element.id;
|
|
73544
73571
|
if (element.children && ((_a2 = element.children) == null ? void 0 : _a2.length)) {
|
|
73545
73572
|
renderData(element.children);
|
|
73546
73573
|
}
|
|
73547
73574
|
}
|
|
73548
|
-
return
|
|
73575
|
+
return data4;
|
|
73549
73576
|
}
|
|
73550
73577
|
});
|
|
73551
73578
|
},
|
|
@@ -73562,13 +73589,31 @@ const _sfc_main$d = {
|
|
|
73562
73589
|
backgroundImage: `url(${data2.avatarUrl || personIcon})`
|
|
73563
73590
|
}
|
|
73564
73591
|
}),
|
|
73565
|
-
h("div", {
|
|
73592
|
+
h("div", {
|
|
73593
|
+
class: node.level === 1 ? "text-#1D2129" : "text-#4E5969 ",
|
|
73594
|
+
style: {
|
|
73595
|
+
overflow: "hidden",
|
|
73596
|
+
textOverflow: "ellipsis",
|
|
73597
|
+
whiteSpace: "nowrap",
|
|
73598
|
+
minWidth: 0,
|
|
73599
|
+
width: "80%"
|
|
73600
|
+
}
|
|
73601
|
+
}, data2.postName ? `${node.label}\uFF08${data2.postName}\uFF09` : node.label)
|
|
73566
73602
|
]);
|
|
73567
73603
|
},
|
|
73568
73604
|
handleClick() {
|
|
73569
73605
|
this.getTreeData();
|
|
73570
73606
|
this.dialogVisible = true;
|
|
73571
73607
|
this.triggerEvent("onOpen");
|
|
73608
|
+
this.$nextTick(() => {
|
|
73609
|
+
if (this.fieldModel && this.fieldModel.length > 0) {
|
|
73610
|
+
this.$refs.treeRef.setCheckedKeys(this.fieldModel.map((item) => item.nodeKey));
|
|
73611
|
+
this.defaultExpandedKeys = this.fieldModel.map((item) => item.nodeKey);
|
|
73612
|
+
} else {
|
|
73613
|
+
this.$refs.treeRef.setCheckedKeys([]);
|
|
73614
|
+
this.defaultExpandedKeys = [];
|
|
73615
|
+
}
|
|
73616
|
+
});
|
|
73572
73617
|
},
|
|
73573
73618
|
handleConfirm() {
|
|
73574
73619
|
var _a2;
|
|
@@ -73703,9 +73748,10 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73703
73748
|
"render-content": $options.renderContent,
|
|
73704
73749
|
"node-key": "nodeKey",
|
|
73705
73750
|
ref: "treeRef",
|
|
73751
|
+
"default-expanded-keys": $data.defaultExpandedKeys,
|
|
73706
73752
|
"filter-node-method": _ctx.filterNode,
|
|
73707
73753
|
"highlight-current": ""
|
|
73708
|
-
}, null, 8, ["data", "props", "render-content", "filter-node-method"])
|
|
73754
|
+
}, null, 8, ["data", "props", "render-content", "default-expanded-keys", "filter-node-method"])
|
|
73709
73755
|
]),
|
|
73710
73756
|
_: 1
|
|
73711
73757
|
})
|
|
@@ -73745,7 +73791,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73745
73791
|
_: 1
|
|
73746
73792
|
}, 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"]);
|
|
73747
73793
|
}
|
|
73748
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
73794
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-41336b69"]]);
|
|
73749
73795
|
const _sfc_main$c = {
|
|
73750
73796
|
name: "radio-other-widget",
|
|
73751
73797
|
componentName: "FieldWidget",
|
|
@@ -74683,7 +74729,6 @@ const _sfc_main$8 = {
|
|
|
74683
74729
|
fieldSchemas.push(this.cloneFieldSchema(swItem));
|
|
74684
74730
|
});
|
|
74685
74731
|
if (rowIndex === void 0) {
|
|
74686
|
-
console.log(fieldSchemas, "fieldSchemas");
|
|
74687
74732
|
this.fieldSchemaData.push(fieldSchemas);
|
|
74688
74733
|
} else {
|
|
74689
74734
|
this.fieldSchemaData.splice(rowIndex, 0, fieldSchemas);
|
|
@@ -74693,30 +74738,8 @@ const _sfc_main$8 = {
|
|
|
74693
74738
|
this.fieldSchemaData.splice(rowIndex, 1);
|
|
74694
74739
|
},
|
|
74695
74740
|
cloneFieldSchema(fieldWidget2) {
|
|
74696
|
-
let newFieldSchema =
|
|
74741
|
+
let newFieldSchema = deepClone(fieldWidget2);
|
|
74697
74742
|
newFieldSchema.id = fieldWidget2.type + generateId();
|
|
74698
|
-
if (fieldWidget2.category === "container" && fieldWidget2.widgetList) {
|
|
74699
|
-
newFieldSchema.widgetList = fieldWidget2.widgetList.map((subItem) => {
|
|
74700
|
-
if (subItem.formItemFlag) {
|
|
74701
|
-
return this.cloneFieldSchema(subItem);
|
|
74702
|
-
} else if (subItem.category === "container") {
|
|
74703
|
-
return this.cloneFieldSchema(subItem);
|
|
74704
|
-
}
|
|
74705
|
-
return JSON.parse(JSON.stringify(subItem));
|
|
74706
|
-
});
|
|
74707
|
-
}
|
|
74708
|
-
if (newFieldSchema.options) {
|
|
74709
|
-
const optionFieldTypes = ["select", "radio", "checkbox", "cascader", "select-other", "radio-other"];
|
|
74710
|
-
if (newFieldSchema.type === "select" || newFieldSchema.type === "select-other") {
|
|
74711
|
-
newFieldSchema.options.optionItems = [];
|
|
74712
|
-
} else if (optionFieldTypes.includes(newFieldSchema.type)) {
|
|
74713
|
-
if (newFieldSchema.options.optionItems && Array.isArray(newFieldSchema.options.optionItems)) {
|
|
74714
|
-
newFieldSchema.options.optionItems = JSON.parse(JSON.stringify(newFieldSchema.options.optionItems));
|
|
74715
|
-
} else {
|
|
74716
|
-
newFieldSchema.options.optionItems = [];
|
|
74717
|
-
}
|
|
74718
|
-
}
|
|
74719
|
-
}
|
|
74720
74743
|
return newFieldSchema;
|
|
74721
74744
|
},
|
|
74722
74745
|
initEventHandler() {
|
|
@@ -74884,36 +74907,34 @@ const _sfc_main$8 = {
|
|
|
74884
74907
|
}
|
|
74885
74908
|
}
|
|
74886
74909
|
};
|
|
74887
|
-
const _hoisted_1$7 = { class: "
|
|
74888
|
-
const _hoisted_2$5 = { class: "
|
|
74889
|
-
const _hoisted_3$5 = {
|
|
74890
|
-
const _hoisted_4$4 = { class: "group-title" };
|
|
74891
|
-
const _hoisted_5$2 = {
|
|
74910
|
+
const _hoisted_1$7 = { class: "group-header" };
|
|
74911
|
+
const _hoisted_2$5 = { class: "group-title" };
|
|
74912
|
+
const _hoisted_3$5 = {
|
|
74892
74913
|
key: 0,
|
|
74893
74914
|
class: "row-number-span"
|
|
74894
74915
|
};
|
|
74895
|
-
const
|
|
74916
|
+
const _hoisted_4$4 = {
|
|
74896
74917
|
key: 1,
|
|
74897
74918
|
class: "row-number-span"
|
|
74898
74919
|
};
|
|
74899
|
-
const
|
|
74900
|
-
const
|
|
74901
|
-
const
|
|
74920
|
+
const _hoisted_5$2 = { class: "group-actions" };
|
|
74921
|
+
const _hoisted_6$2 = { class: "group-content" };
|
|
74922
|
+
const _hoisted_7$1 = {
|
|
74902
74923
|
key: 1,
|
|
74903
74924
|
class: "field-loading",
|
|
74904
74925
|
style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
|
|
74905
74926
|
};
|
|
74906
|
-
const
|
|
74927
|
+
const _hoisted_8$1 = {
|
|
74907
74928
|
key: 1,
|
|
74908
74929
|
class: "empty-hint"
|
|
74909
74930
|
};
|
|
74910
|
-
const
|
|
74911
|
-
const
|
|
74912
|
-
const
|
|
74931
|
+
const _hoisted_9 = { key: 0 };
|
|
74932
|
+
const _hoisted_10 = { key: 1 };
|
|
74933
|
+
const _hoisted_11 = {
|
|
74913
74934
|
key: 0,
|
|
74914
74935
|
class: "empty-hint"
|
|
74915
74936
|
};
|
|
74916
|
-
const
|
|
74937
|
+
const _hoisted_12 = {
|
|
74917
74938
|
key: 1,
|
|
74918
74939
|
class: "empty-hint"
|
|
74919
74940
|
};
|
|
@@ -74927,19 +74948,16 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74927
74948
|
key: $props.widget.id,
|
|
74928
74949
|
class: normalizeClass(["custom-sub-form-container", $options.customClass])
|
|
74929
74950
|
}, [
|
|
74930
|
-
createElementVNode("div", _hoisted_1$7, [
|
|
74931
|
-
createElementVNode("span", _hoisted_2$5, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
|
|
74932
|
-
]),
|
|
74933
74951
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
|
|
74934
74952
|
return openBlock(), createElementBlock("div", {
|
|
74935
74953
|
class: "form-group-row",
|
|
74936
74954
|
key: subFormRowId
|
|
74937
74955
|
}, [
|
|
74938
|
-
createElementVNode("div",
|
|
74939
|
-
createElementVNode("div",
|
|
74940
|
-
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span",
|
|
74956
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
74957
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
74958
|
+
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355") + " " + toDisplayString(sfrIdx + 1), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$4, "\u8868\u5355\u7EC4"))
|
|
74941
74959
|
]),
|
|
74942
|
-
createElementVNode("div",
|
|
74960
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
74943
74961
|
sfrIdx > 0 ? (openBlock(), createBlock(_component_el_button, {
|
|
74944
74962
|
key: 0,
|
|
74945
74963
|
size: "small",
|
|
@@ -74955,7 +74973,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74955
74973
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
74956
74974
|
])
|
|
74957
74975
|
]),
|
|
74958
|
-
createElementVNode("div",
|
|
74976
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
74959
74977
|
$props.widget && $props.widget.widgetList && $props.widget.widgetList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.widget.widgetList, (subWidget, swIdx) => {
|
|
74960
74978
|
return openBlock(), createElementBlock(Fragment, {
|
|
74961
74979
|
key: subWidget ? subWidget.id + "gc" + subFormRowId + "-" + swIdx : "gc" + subFormRowId + "-" + swIdx
|
|
@@ -74980,16 +74998,16 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74980
74998
|
"sub-form-row-id": subFormRowId,
|
|
74981
74999
|
"sub-form-row-index": sfrIdx,
|
|
74982
75000
|
"sub-form-col-index": swIdx
|
|
74983
|
-
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (openBlock(), createElementBlock("div",
|
|
75001
|
+
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (openBlock(), createElementBlock("div", _hoisted_7$1, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
|
|
74984
75002
|
], 64)) : createCommentVNode("", true)
|
|
74985
75003
|
], 64);
|
|
74986
|
-
}), 128)) : (openBlock(), createElementBlock("div",
|
|
74987
|
-
!$props.widget ? (openBlock(), createElementBlock("div",
|
|
75004
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
75005
|
+
!$props.widget ? (openBlock(), createElementBlock("div", _hoisted_9, "\u7EC4\u4EF6\u672A\u521D\u59CB\u5316")) : !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : createCommentVNode("", true)
|
|
74988
75006
|
]))
|
|
74989
75007
|
])
|
|
74990
75008
|
]);
|
|
74991
75009
|
}), 128)),
|
|
74992
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div",
|
|
75010
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_11, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : $data.rowIdData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_12, ' \u70B9\u51FB"\u6DFB\u52A0"\u6309\u94AE\u6DFB\u52A0\u6570\u636E\u884C ')) : createCommentVNode("", true),
|
|
74993
75011
|
createVNode(_component_el_button, {
|
|
74994
75012
|
disabled: $data.actionDisabled,
|
|
74995
75013
|
type: "primary",
|
|
@@ -75010,7 +75028,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75010
75028
|
_: 1
|
|
75011
75029
|
}, 8, ["widget"]);
|
|
75012
75030
|
}
|
|
75013
|
-
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-
|
|
75031
|
+
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-1c47559c"]]);
|
|
75014
75032
|
const customTableCellSchema = {
|
|
75015
75033
|
type: "custom-table-cell",
|
|
75016
75034
|
category: "container",
|
|
@@ -77433,6 +77451,7 @@ const loadExtension = function(app) {
|
|
|
77433
77451
|
app.component(PersonTreeWidget.name, PersonTreeWidget);
|
|
77434
77452
|
registerCPEditor(app, "person-tree-buttonText", "person-tree-buttonText-editor", createInputTextEditor("buttonText", "extension.setting.personTreeButtonText"));
|
|
77435
77453
|
registerCPEditor(app, "person-tree-dialogTitle", "person-tree-dialogTitle-editor", createInputTextEditor("dialogTitle", "extension.setting.personTreeDialogTitle"));
|
|
77454
|
+
registerCPEditor(app, "person-tree-treeParams", "person-tree-treeParams-editor", createTextareaEditor("treeParams", "extension.setting.personTreeTreeParams", { rows: 4 }));
|
|
77436
77455
|
registerAPEditor(app, "person-tree-dialogWidth", "person-tree-dialogWidth-editor", createInputTextEditor("dialogWidth", "extension.setting.personTreeDialogWidth"));
|
|
77437
77456
|
registerCPEditor(app, "person-tree-confirmText", "person-tree-confirmText-editor", createInputTextEditor("confirmText", "extension.setting.personTreeConfirmText"));
|
|
77438
77457
|
registerCPEditor(app, "person-tree-cancelText", "person-tree-cancelText-editor", createInputTextEditor("cancelText", "extension.setting.personTreeCancelText"));
|