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/designer.es.js
CHANGED
|
@@ -68340,13 +68340,13 @@ function registerIcon(app) {
|
|
|
68340
68340
|
if (typeof window !== "undefined") {
|
|
68341
68341
|
let loadSvg = function() {
|
|
68342
68342
|
var body = document.body;
|
|
68343
|
-
var svgDom = document.getElementById("
|
|
68343
|
+
var svgDom = document.getElementById("__svg__icons__dom__1777270909015__");
|
|
68344
68344
|
if (!svgDom) {
|
|
68345
68345
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68346
68346
|
svgDom.style.position = "absolute";
|
|
68347
68347
|
svgDom.style.width = "0";
|
|
68348
68348
|
svgDom.style.height = "0";
|
|
68349
|
-
svgDom.id = "
|
|
68349
|
+
svgDom.id = "__svg__icons__dom__1777270909015__";
|
|
68350
68350
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68351
68351
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68352
68352
|
}
|
|
@@ -78453,7 +78453,6 @@ const _sfc_main$3 = {
|
|
|
78453
78453
|
data: __spreadValues({ size: this.pageSize, current: this.currentPage }, this.form)
|
|
78454
78454
|
}).then(({ data: data2 }) => {
|
|
78455
78455
|
this.tableData = data2.records;
|
|
78456
|
-
console.log(this.tableData, "this.tableData");
|
|
78457
78456
|
});
|
|
78458
78457
|
},
|
|
78459
78458
|
handleSizeChange(size) {
|
|
@@ -78496,7 +78495,6 @@ const _sfc_main$3 = {
|
|
|
78496
78495
|
},
|
|
78497
78496
|
handleSearch() {
|
|
78498
78497
|
this.currentPage = 1;
|
|
78499
|
-
this.selectedRows = [];
|
|
78500
78498
|
this.getTableData();
|
|
78501
78499
|
}
|
|
78502
78500
|
},
|
|
@@ -78749,7 +78747,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78749
78747
|
_: 1
|
|
78750
78748
|
}, 8, ["modelValue", "onClose"]);
|
|
78751
78749
|
}
|
|
78752
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
78750
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-18da89e8"]]);
|
|
78753
78751
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
78754
78752
|
var index_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
78755
78753
|
const _sfc_main$2 = {
|
|
@@ -79312,6 +79310,13 @@ const _sfc_main = {
|
|
|
79312
79310
|
this.triggerEvent("onClose");
|
|
79313
79311
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
79314
79312
|
},
|
|
79313
|
+
updateRowData(row) {
|
|
79314
|
+
const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
|
|
79315
|
+
if (index2 === -1)
|
|
79316
|
+
return;
|
|
79317
|
+
this.fieldModel[index2] = __spreadValues(__spreadValues({}, this.fieldModel[index2]), row);
|
|
79318
|
+
console.log(this.fieldModel, "this.fieldModel");
|
|
79319
|
+
},
|
|
79315
79320
|
triggerEvent(eventName, ...args) {
|
|
79316
79321
|
var _a2, _b2;
|
|
79317
79322
|
const handler = (_b2 = (_a2 = this.field) == null ? void 0 : _a2.options) == null ? void 0 : _b2[eventName];
|
|
@@ -79321,6 +79326,14 @@ const _sfc_main = {
|
|
|
79321
79326
|
const rowData = args[0];
|
|
79322
79327
|
const fn = new Function("rowData", handler);
|
|
79323
79328
|
fn.call(this, rowData);
|
|
79329
|
+
``;
|
|
79330
|
+
} else if (args.length > 0) {
|
|
79331
|
+
const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
|
|
79332
|
+
const fn = new Function(paramNames, handler);
|
|
79333
|
+
fn.apply(this, args);
|
|
79334
|
+
} else {
|
|
79335
|
+
const fn = new Function(handler);
|
|
79336
|
+
fn.call(this);
|
|
79324
79337
|
}
|
|
79325
79338
|
} catch (error) {
|
|
79326
79339
|
console.error(`Error executing ${eventName} handler:`, error);
|
|
@@ -79330,9 +79343,12 @@ const _sfc_main = {
|
|
|
79330
79343
|
}
|
|
79331
79344
|
},
|
|
79332
79345
|
handleRow(row) {
|
|
79346
|
+
const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
|
|
79347
|
+
if (index2 === -1)
|
|
79348
|
+
return;
|
|
79349
|
+
this.triggerEvent("onOpen", this.fieldModel[index2]);
|
|
79333
79350
|
this.detailDialogVisible = true;
|
|
79334
|
-
this.detailDialogData = lodash.exports.cloneDeep(
|
|
79335
|
-
this.triggerEvent("onOpen", row);
|
|
79351
|
+
this.detailDialogData = lodash.exports.cloneDeep(this.fieldModel[index2]);
|
|
79336
79352
|
},
|
|
79337
79353
|
setDetailColHidden(colNames, hidden) {
|
|
79338
79354
|
this.$nextTick(() => {
|