form-custom-test 3.0.46 → 3.0.48
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 +20 -12
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +3 -3
- package/dist/render.es.js +20 -12
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +2 -2
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -25589,6 +25589,12 @@ const _sfc_main$o = {
|
|
|
25589
25589
|
}
|
|
25590
25590
|
}
|
|
25591
25591
|
},
|
|
25592
|
+
disableFields(fieldNames) {
|
|
25593
|
+
this.disableWidgets(fieldNames);
|
|
25594
|
+
},
|
|
25595
|
+
enableFields(fieldNames) {
|
|
25596
|
+
this.enableWidgets(fieldNames);
|
|
25597
|
+
},
|
|
25592
25598
|
enableWidgets(widgetNames) {
|
|
25593
25599
|
if (!!widgetNames) {
|
|
25594
25600
|
if (typeof widgetNames === "string") {
|
|
@@ -25736,7 +25742,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25736
25742
|
_: 3
|
|
25737
25743
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
25738
25744
|
}
|
|
25739
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-
|
|
25745
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-62d83c26"]]);
|
|
25740
25746
|
function registerIcon(app) {
|
|
25741
25747
|
app.component("el-icon-edit", edit);
|
|
25742
25748
|
app.component("el-icon-minus", minus);
|
|
@@ -25751,13 +25757,13 @@ function registerIcon(app) {
|
|
|
25751
25757
|
if (typeof window !== "undefined") {
|
|
25752
25758
|
let loadSvg = function() {
|
|
25753
25759
|
var body = document.body;
|
|
25754
|
-
var svgDom = document.getElementById("
|
|
25760
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772593002951__");
|
|
25755
25761
|
if (!svgDom) {
|
|
25756
25762
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
25757
25763
|
svgDom.style.position = "absolute";
|
|
25758
25764
|
svgDom.style.width = "0";
|
|
25759
25765
|
svgDom.style.height = "0";
|
|
25760
|
-
svgDom.id = "
|
|
25766
|
+
svgDom.id = "__svg__icons__dom__1772593002951__";
|
|
25761
25767
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
25762
25768
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
25763
25769
|
}
|
|
@@ -32034,6 +32040,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32034
32040
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
|
|
32035
32041
|
"tag-type": "success",
|
|
32036
32042
|
"tag-effect": "light",
|
|
32043
|
+
disabled: $props.field.options.disabled,
|
|
32037
32044
|
placeholder: "\u8BF7\u9009\u62E9\u4EBA\u5458",
|
|
32038
32045
|
onClick: $options.handleClick,
|
|
32039
32046
|
ref: "inputTagRef"
|
|
@@ -32044,7 +32051,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32044
32051
|
])
|
|
32045
32052
|
]),
|
|
32046
32053
|
_: 1
|
|
32047
|
-
}, 8, ["modelValue", "onClick"])
|
|
32054
|
+
}, 8, ["modelValue", "disabled", "onClick"])
|
|
32048
32055
|
]),
|
|
32049
32056
|
createVNode(_component_el_dialog, {
|
|
32050
32057
|
modelValue: $data.dialogVisible,
|
|
@@ -32119,7 +32126,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32119
32126
|
_: 1
|
|
32120
32127
|
}, 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"]);
|
|
32121
32128
|
}
|
|
32122
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-
|
|
32129
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-0f7a3e8a"]]);
|
|
32123
32130
|
const _sfc_main$i = {
|
|
32124
32131
|
name: "radio-other-widget",
|
|
32125
32132
|
componentName: "FieldWidget",
|
|
@@ -35321,6 +35328,10 @@ const _sfc_main$3 = {
|
|
|
35321
35328
|
};
|
|
35322
35329
|
},
|
|
35323
35330
|
computed: {
|
|
35331
|
+
formModel() {
|
|
35332
|
+
var _a, _b;
|
|
35333
|
+
return ((_b = (_a = this.globalModel) == null ? void 0 : _a.formModel) == null ? void 0 : _b[this.widget.options.name]) || [];
|
|
35334
|
+
},
|
|
35324
35335
|
customClass() {
|
|
35325
35336
|
return this.widget.options.customClass || "";
|
|
35326
35337
|
},
|
|
@@ -35355,6 +35366,7 @@ const _sfc_main$3 = {
|
|
|
35355
35366
|
}
|
|
35356
35367
|
},
|
|
35357
35368
|
created() {
|
|
35369
|
+
this.initFieldModel();
|
|
35358
35370
|
this.initRefList();
|
|
35359
35371
|
this.initTableData();
|
|
35360
35372
|
},
|
|
@@ -35365,10 +35377,6 @@ const _sfc_main$3 = {
|
|
|
35365
35377
|
this.unregisterFromRefList();
|
|
35366
35378
|
},
|
|
35367
35379
|
methods: {
|
|
35368
|
-
get formModel() {
|
|
35369
|
-
var _a, _b;
|
|
35370
|
-
return ((_b = (_a = this.globalModel) == null ? void 0 : _a.formModel) == null ? void 0 : _b[this.widget.options.name]) || [];
|
|
35371
|
-
},
|
|
35372
35380
|
updateFormModel(data2) {
|
|
35373
35381
|
if (this.globalModel && this.globalModel.formModel) {
|
|
35374
35382
|
this.globalModel.formModel[this.widget.options.name] = deepClone(data2);
|
|
@@ -35380,8 +35388,8 @@ const _sfc_main$3 = {
|
|
|
35380
35388
|
}
|
|
35381
35389
|
},
|
|
35382
35390
|
initTableData() {
|
|
35383
|
-
if (this.
|
|
35384
|
-
this.tableData = deepClone(this.
|
|
35391
|
+
if (this.fieldModel && Array.isArray(this.fieldModel)) {
|
|
35392
|
+
this.tableData = deepClone(this.fieldModel);
|
|
35385
35393
|
} else if (this.widget.options.defaultValue && Array.isArray(this.widget.options.defaultValue)) {
|
|
35386
35394
|
this.tableData = deepClone(this.widget.options.defaultValue);
|
|
35387
35395
|
this.updateFormModel(this.tableData);
|
|
@@ -35917,7 +35925,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35917
35925
|
_: 1
|
|
35918
35926
|
}, 8, ["widget"]);
|
|
35919
35927
|
}
|
|
35920
|
-
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
35928
|
+
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-22c76baf"]]);
|
|
35921
35929
|
var ace$2 = { exports: {} };
|
|
35922
35930
|
(function(module, exports) {
|
|
35923
35931
|
(function() {
|