form-custom-test 3.0.66 → 3.0.68
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 +45 -9
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +45 -8
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +3 -3
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -68056,13 +68056,13 @@ function registerIcon(app) {
|
|
|
68056
68056
|
if (typeof window !== "undefined") {
|
|
68057
68057
|
let loadSvg = function() {
|
|
68058
68058
|
var body = document.body;
|
|
68059
|
-
var svgDom = document.getElementById("
|
|
68059
|
+
var svgDom = document.getElementById("__svg__icons__dom__1774318539998__");
|
|
68060
68060
|
if (!svgDom) {
|
|
68061
68061
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68062
68062
|
svgDom.style.position = "absolute";
|
|
68063
68063
|
svgDom.style.width = "0";
|
|
68064
68064
|
svgDom.style.height = "0";
|
|
68065
|
-
svgDom.id = "
|
|
68065
|
+
svgDom.id = "__svg__icons__dom__1774318539998__";
|
|
68066
68066
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68067
68067
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68068
68068
|
}
|
|
@@ -74009,7 +74009,8 @@ const _sfc_main$d = {
|
|
|
74009
74009
|
checkedNodes: [],
|
|
74010
74010
|
treeRef: null,
|
|
74011
74011
|
defaultExpandedKeys: [],
|
|
74012
|
-
currentNodeKey: null
|
|
74012
|
+
currentNodeKey: null,
|
|
74013
|
+
search: ""
|
|
74013
74014
|
};
|
|
74014
74015
|
},
|
|
74015
74016
|
computed: {
|
|
@@ -74082,8 +74083,24 @@ const _sfc_main$d = {
|
|
|
74082
74083
|
}
|
|
74083
74084
|
return data4;
|
|
74084
74085
|
}
|
|
74086
|
+
this.$nextTick(() => {
|
|
74087
|
+
this.applyTreeFilter();
|
|
74088
|
+
});
|
|
74085
74089
|
});
|
|
74086
74090
|
},
|
|
74091
|
+
filterNode(value2, data2) {
|
|
74092
|
+
if (value2 == null || String(value2).trim() === "")
|
|
74093
|
+
return true;
|
|
74094
|
+
const keyword = String(value2).trim().toLowerCase();
|
|
74095
|
+
const name = (data2.name || "").toLowerCase();
|
|
74096
|
+
(data2.postName || "").toLowerCase();
|
|
74097
|
+
return name.includes(keyword);
|
|
74098
|
+
},
|
|
74099
|
+
applyTreeFilter() {
|
|
74100
|
+
if (this.$refs.treeRef && typeof this.$refs.treeRef.filter === "function") {
|
|
74101
|
+
this.$refs.treeRef.filter(this.search);
|
|
74102
|
+
}
|
|
74103
|
+
},
|
|
74087
74104
|
renderContent(h, { node, data: data2 }) {
|
|
74088
74105
|
return h("div", {
|
|
74089
74106
|
class: "custom-tree-node"
|
|
@@ -74131,6 +74148,7 @@ const _sfc_main$d = {
|
|
|
74131
74148
|
this.currentNodeKey = this.fieldModel && this.fieldModel[0] ? this.fieldModel[0].nodeKey : null;
|
|
74132
74149
|
this.defaultExpandedKeys = this.currentNodeKey ? [this.currentNodeKey] : [];
|
|
74133
74150
|
}
|
|
74151
|
+
this.applyTreeFilter();
|
|
74134
74152
|
});
|
|
74135
74153
|
},
|
|
74136
74154
|
handleNodeClick(data2, node) {
|
|
@@ -74217,6 +74235,11 @@ const _sfc_main$d = {
|
|
|
74217
74235
|
console.error("Args:", args);
|
|
74218
74236
|
}
|
|
74219
74237
|
}
|
|
74238
|
+
},
|
|
74239
|
+
handleSearch() {
|
|
74240
|
+
this.$nextTick(() => {
|
|
74241
|
+
this.applyTreeFilter();
|
|
74242
|
+
});
|
|
74220
74243
|
}
|
|
74221
74244
|
}
|
|
74222
74245
|
};
|
|
@@ -74277,11 +74300,12 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74277
74300
|
}, createSlots({
|
|
74278
74301
|
default: withCtx(() => [
|
|
74279
74302
|
createVNode(_component_el_input, {
|
|
74280
|
-
modelValue:
|
|
74281
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
74303
|
+
modelValue: $data.search,
|
|
74304
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.search = $event),
|
|
74282
74305
|
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u8FDB\u884C\u641C\u7D22",
|
|
74306
|
+
onInput: $options.handleSearch,
|
|
74283
74307
|
class: "pr-24px mb-30px"
|
|
74284
|
-
}, null, 8, ["modelValue"]),
|
|
74308
|
+
}, null, 8, ["modelValue", "onInput"]),
|
|
74285
74309
|
createVNode(_component_el_scrollbar, {
|
|
74286
74310
|
height: "538px",
|
|
74287
74311
|
class: "pr-24px"
|
|
@@ -74295,7 +74319,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74295
74319
|
"node-key": "nodeKey",
|
|
74296
74320
|
ref: "treeRef",
|
|
74297
74321
|
"default-expanded-keys": $data.defaultExpandedKeys,
|
|
74298
|
-
"filter-node-method":
|
|
74322
|
+
"filter-node-method": $options.filterNode,
|
|
74299
74323
|
"highlight-current": !$props.field.options.multiple,
|
|
74300
74324
|
"current-node-key": $data.currentNodeKey,
|
|
74301
74325
|
onNodeClick: $options.handleNodeClick,
|
|
@@ -74340,7 +74364,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74340
74364
|
_: 1
|
|
74341
74365
|
}, 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"]);
|
|
74342
74366
|
}
|
|
74343
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
74367
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-61b961e2"]]);
|
|
74344
74368
|
const _sfc_main$c = {
|
|
74345
74369
|
name: "radio-other-widget",
|
|
74346
74370
|
componentName: "FieldWidget",
|
|
@@ -78125,6 +78149,18 @@ const loadExtension = function(app) {
|
|
|
78125
78149
|
}));
|
|
78126
78150
|
};
|
|
78127
78151
|
const { cookies } = useCookies();
|
|
78152
|
+
function getElMessage(app) {
|
|
78153
|
+
var _a2, _b2, _c2;
|
|
78154
|
+
try {
|
|
78155
|
+
if ((_b2 = (_a2 = app == null ? void 0 : app.config) == null ? void 0 : _a2.globalProperties) == null ? void 0 : _b2.$message)
|
|
78156
|
+
return app.config.globalProperties.$message;
|
|
78157
|
+
if (typeof window !== "undefined" && window.ElementPlus) {
|
|
78158
|
+
return window.ElementPlus.ElMessage || ((_c2 = window.ElementPlus.default) == null ? void 0 : _c2.ElMessage) || null;
|
|
78159
|
+
}
|
|
78160
|
+
} catch (e) {
|
|
78161
|
+
}
|
|
78162
|
+
return null;
|
|
78163
|
+
}
|
|
78128
78164
|
if (typeof window !== "undefined") {
|
|
78129
78165
|
window.cookies = cookies;
|
|
78130
78166
|
}
|
|
@@ -78143,7 +78179,7 @@ VFormDesigner.install = function(app) {
|
|
|
78143
78179
|
app.component(VFormDesigner.name, VFormDesigner);
|
|
78144
78180
|
app.config.globalProperties.$service = service;
|
|
78145
78181
|
app.provide("service", service);
|
|
78146
|
-
app.provide("ElMessage",
|
|
78182
|
+
app.provide("ElMessage", getElMessage(app));
|
|
78147
78183
|
app.config.globalProperties.$cookies = cookies;
|
|
78148
78184
|
app.provide("cookies", cookies);
|
|
78149
78185
|
};
|