form-custom-test 3.0.166 → 3.0.167
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 +39 -10
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +36 -36
- package/dist/render.es.js +18 -6
- package/dist/render.umd.js +3 -3
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -23502,6 +23502,17 @@ const _sfc_main$K = {
|
|
|
23502
23502
|
};
|
|
23503
23503
|
},
|
|
23504
23504
|
computed: {
|
|
23505
|
+
treeSelectProps() {
|
|
23506
|
+
const opts = this.field.options || {};
|
|
23507
|
+
return {
|
|
23508
|
+
label: opts.labelKey || "label",
|
|
23509
|
+
value: opts.valueKey || "value",
|
|
23510
|
+
children: opts.childrenKey || "children"
|
|
23511
|
+
};
|
|
23512
|
+
},
|
|
23513
|
+
treeNodeKey() {
|
|
23514
|
+
return this.field.options && this.field.options.valueKey || "value";
|
|
23515
|
+
},
|
|
23505
23516
|
allowDefaultFirstOption() {
|
|
23506
23517
|
return !!this.field.options.filterable && !!this.field.options.allowCreate;
|
|
23507
23518
|
},
|
|
@@ -23558,8 +23569,9 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23558
23569
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
|
|
23559
23570
|
class: "full-width-input",
|
|
23560
23571
|
data: $props.field.options.optionItems,
|
|
23572
|
+
props: $options.treeSelectProps,
|
|
23561
23573
|
"show-checkbox": $props.field.options.showCheckbox,
|
|
23562
|
-
"node-key":
|
|
23574
|
+
"node-key": $options.treeNodeKey,
|
|
23563
23575
|
"default-expand-all": true,
|
|
23564
23576
|
"expand-on-click-node": false,
|
|
23565
23577
|
disabled: _ctx.getDisabled(),
|
|
@@ -23578,7 +23590,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23578
23590
|
onBlur: _ctx.handleBlurCustomEvent,
|
|
23579
23591
|
onChange: $options.handleTreeSelectChange,
|
|
23580
23592
|
"check-strictly": $props.field.options.checkStrictly || false
|
|
23581
|
-
}, null, 8, ["modelValue", "data", "show-checkbox", "disabled", "size", "clearable", "filterable", "allow-create", "default-first-option", "automatic-dropdown", "multiple", "multiple-limit", "placeholder", "remote", "remote-method", "onFocus", "onBlur", "onChange", "check-strictly"])
|
|
23593
|
+
}, null, 8, ["modelValue", "data", "props", "show-checkbox", "node-key", "disabled", "size", "clearable", "filterable", "allow-create", "default-first-option", "automatic-dropdown", "multiple", "multiple-limit", "placeholder", "remote", "remote-method", "onFocus", "onBlur", "onChange", "check-strictly"])
|
|
23582
23594
|
]),
|
|
23583
23595
|
_: 1
|
|
23584
23596
|
}, 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"]);
|
|
@@ -26464,13 +26476,13 @@ function registerIcon(app) {
|
|
|
26464
26476
|
if (typeof window !== "undefined") {
|
|
26465
26477
|
let loadSvg = function() {
|
|
26466
26478
|
var body = document.body;
|
|
26467
|
-
var svgDom = document.getElementById("
|
|
26479
|
+
var svgDom = document.getElementById("__svg__icons__dom__1779707079167__");
|
|
26468
26480
|
if (!svgDom) {
|
|
26469
26481
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26470
26482
|
svgDom.style.position = "absolute";
|
|
26471
26483
|
svgDom.style.width = "0";
|
|
26472
26484
|
svgDom.style.height = "0";
|
|
26473
|
-
svgDom.id = "
|
|
26485
|
+
svgDom.id = "__svg__icons__dom__1779707079167__";
|
|
26474
26486
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26475
26487
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26476
26488
|
}
|
|
@@ -63456,7 +63468,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63456
63468
|
}),
|
|
63457
63469
|
createVNode(_component_el_table_column, {
|
|
63458
63470
|
prop: "originalValue",
|
|
63459
|
-
label: "\u539F\u503C\
|
|
63471
|
+
label: "\u539F\u503C(\u4E07\u5143)"
|
|
63460
63472
|
}, {
|
|
63461
63473
|
default: withCtx(({ row }) => [
|
|
63462
63474
|
createTextVNode(toDisplayString(row.originalValue), 1)
|
|
@@ -63465,7 +63477,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63465
63477
|
}),
|
|
63466
63478
|
createVNode(_component_el_table_column, {
|
|
63467
63479
|
prop: "netValue",
|
|
63468
|
-
label: "\u51C0\u503C\
|
|
63480
|
+
label: "\u51C0\u503C(\u4E07\u5143)"
|
|
63469
63481
|
}, {
|
|
63470
63482
|
default: withCtx(({ row }) => [
|
|
63471
63483
|
createTextVNode(toDisplayString(row.netValue), 1)
|