form-custom-test 3.0.100 → 3.0.101
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 +23 -7
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +66 -66
- package/dist/render.es.js +23 -7
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +61 -61
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -26102,13 +26102,13 @@ function registerIcon(app) {
|
|
|
26102
26102
|
if (typeof window !== "undefined") {
|
|
26103
26103
|
let loadSvg = function() {
|
|
26104
26104
|
var body = document.body;
|
|
26105
|
-
var svgDom = document.getElementById("
|
|
26105
|
+
var svgDom = document.getElementById("__svg__icons__dom__1777270921870__");
|
|
26106
26106
|
if (!svgDom) {
|
|
26107
26107
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26108
26108
|
svgDom.style.position = "absolute";
|
|
26109
26109
|
svgDom.style.width = "0";
|
|
26110
26110
|
svgDom.style.height = "0";
|
|
26111
|
-
svgDom.id = "
|
|
26111
|
+
svgDom.id = "__svg__icons__dom__1777270921870__";
|
|
26112
26112
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26113
26113
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26114
26114
|
}
|
|
@@ -61762,7 +61762,6 @@ const _sfc_main$3 = {
|
|
|
61762
61762
|
data: __spreadValues({ size: this.pageSize, current: this.currentPage }, this.form)
|
|
61763
61763
|
}).then(({ data: data2 }) => {
|
|
61764
61764
|
this.tableData = data2.records;
|
|
61765
|
-
console.log(this.tableData, "this.tableData");
|
|
61766
61765
|
});
|
|
61767
61766
|
},
|
|
61768
61767
|
handleSizeChange(size) {
|
|
@@ -61805,7 +61804,6 @@ const _sfc_main$3 = {
|
|
|
61805
61804
|
},
|
|
61806
61805
|
handleSearch() {
|
|
61807
61806
|
this.currentPage = 1;
|
|
61808
|
-
this.selectedRows = [];
|
|
61809
61807
|
this.getTableData();
|
|
61810
61808
|
}
|
|
61811
61809
|
},
|
|
@@ -62058,7 +62056,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62058
62056
|
_: 1
|
|
62059
62057
|
}, 8, ["modelValue", "onClose"]);
|
|
62060
62058
|
}
|
|
62061
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
62059
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-18da89e8"]]);
|
|
62062
62060
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
62063
62061
|
var index_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
62064
62062
|
const _sfc_main$2 = {
|
|
@@ -62621,6 +62619,13 @@ const _sfc_main = {
|
|
|
62621
62619
|
this.triggerEvent("onClose");
|
|
62622
62620
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
62623
62621
|
},
|
|
62622
|
+
updateRowData(row) {
|
|
62623
|
+
const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
|
|
62624
|
+
if (index2 === -1)
|
|
62625
|
+
return;
|
|
62626
|
+
this.fieldModel[index2] = __spreadValues(__spreadValues({}, this.fieldModel[index2]), row);
|
|
62627
|
+
console.log(this.fieldModel, "this.fieldModel");
|
|
62628
|
+
},
|
|
62624
62629
|
triggerEvent(eventName, ...args) {
|
|
62625
62630
|
var _a, _b;
|
|
62626
62631
|
const handler = (_b = (_a = this.field) == null ? void 0 : _a.options) == null ? void 0 : _b[eventName];
|
|
@@ -62630,6 +62635,14 @@ const _sfc_main = {
|
|
|
62630
62635
|
const rowData = args[0];
|
|
62631
62636
|
const fn = new Function("rowData", handler);
|
|
62632
62637
|
fn.call(this, rowData);
|
|
62638
|
+
``;
|
|
62639
|
+
} else if (args.length > 0) {
|
|
62640
|
+
const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
|
|
62641
|
+
const fn = new Function(paramNames, handler);
|
|
62642
|
+
fn.apply(this, args);
|
|
62643
|
+
} else {
|
|
62644
|
+
const fn = new Function(handler);
|
|
62645
|
+
fn.call(this);
|
|
62633
62646
|
}
|
|
62634
62647
|
} catch (error) {
|
|
62635
62648
|
console.error(`Error executing ${eventName} handler:`, error);
|
|
@@ -62639,9 +62652,12 @@ const _sfc_main = {
|
|
|
62639
62652
|
}
|
|
62640
62653
|
},
|
|
62641
62654
|
handleRow(row) {
|
|
62655
|
+
const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
|
|
62656
|
+
if (index2 === -1)
|
|
62657
|
+
return;
|
|
62658
|
+
this.triggerEvent("onOpen", this.fieldModel[index2]);
|
|
62642
62659
|
this.detailDialogVisible = true;
|
|
62643
|
-
this.detailDialogData = lodash.exports.cloneDeep(
|
|
62644
|
-
this.triggerEvent("onOpen", row);
|
|
62660
|
+
this.detailDialogData = lodash.exports.cloneDeep(this.fieldModel[index2]);
|
|
62645
62661
|
},
|
|
62646
62662
|
setDetailColHidden(colNames, hidden) {
|
|
62647
62663
|
this.$nextTick(() => {
|