form-custom-test 3.0.163 → 3.0.165
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 +640 -510
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +54 -54
- package/dist/render.es.js +30 -10
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +41 -41
- package/package.json +80 -80
package/dist/render.es.js
CHANGED
|
@@ -1432,6 +1432,12 @@ var enLocale = {
|
|
|
1432
1432
|
multipleLimit: "Multiple Limit",
|
|
1433
1433
|
checkStrictly: "Any Level Selectable",
|
|
1434
1434
|
showAllLevels: "Show All Levels",
|
|
1435
|
+
cascaderLabelKey: "Label Field",
|
|
1436
|
+
cascaderLabelKeyPlaceholder: "Default: label",
|
|
1437
|
+
cascaderValueKey: "Value Field",
|
|
1438
|
+
cascaderValueKeyPlaceholder: "Default: value",
|
|
1439
|
+
cascaderChildrenKey: "Children Field",
|
|
1440
|
+
cascaderChildrenKeyPlaceholder: "Default: children",
|
|
1435
1441
|
showCheckbox: "Show Checkbox",
|
|
1436
1442
|
contentPosition: "Content Position",
|
|
1437
1443
|
plain: "Plain",
|
|
@@ -1761,6 +1767,12 @@ var zhLocale = {
|
|
|
1761
1767
|
multipleLimit: "\u591A\u9009\u6570\u91CF\u9650\u5236",
|
|
1762
1768
|
checkStrictly: "\u4EFB\u610F\u7EA7\u8282\u70B9\u53EF\u9009",
|
|
1763
1769
|
showAllLevels: "\u663E\u793A\u5B8C\u6574\u8DEF\u5F84",
|
|
1770
|
+
cascaderLabelKey: "\u663E\u793A\u5B57\u6BB5\u540D",
|
|
1771
|
+
cascaderLabelKeyPlaceholder: "\u9ED8\u8BA4 label",
|
|
1772
|
+
cascaderValueKey: "\u503C\u5B57\u6BB5\u540D",
|
|
1773
|
+
cascaderValueKeyPlaceholder: "\u9ED8\u8BA4 value",
|
|
1774
|
+
cascaderChildrenKey: "\u5B50\u8282\u70B9\u5B57\u6BB5\u540D",
|
|
1775
|
+
cascaderChildrenKeyPlaceholder: "\u9ED8\u8BA4 children",
|
|
1764
1776
|
showCheckbox: "\u663E\u793A\u590D\u9009\u6846",
|
|
1765
1777
|
contentPosition: "\u6587\u5B57\u4F4D\u7F6E",
|
|
1766
1778
|
plain: "\u6734\u7D20\u6309\u94AE",
|
|
@@ -9613,6 +9625,17 @@ const _sfc_main$18 = {
|
|
|
9613
9625
|
computed: {
|
|
9614
9626
|
showFullPath() {
|
|
9615
9627
|
return this.field.options.showAllLevels === void 0 || !!this.field.options.showAllLevels;
|
|
9628
|
+
},
|
|
9629
|
+
cascaderProps() {
|
|
9630
|
+
const opts = this.field.options || {};
|
|
9631
|
+
return {
|
|
9632
|
+
checkStrictly: !!opts.checkStrictly,
|
|
9633
|
+
multiple: !!opts.multiple,
|
|
9634
|
+
expandTrigger: "click",
|
|
9635
|
+
label: opts.labelKey || "label",
|
|
9636
|
+
value: opts.valueKey || "value",
|
|
9637
|
+
children: opts.childrenKey || "children"
|
|
9638
|
+
};
|
|
9616
9639
|
}
|
|
9617
9640
|
},
|
|
9618
9641
|
beforeCreate() {
|
|
@@ -9662,7 +9685,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9662
9685
|
filterable: $props.field.options.filterable,
|
|
9663
9686
|
placeholder: $props.field.options.placeholder || _ctx.i18nt("render.hint.selectPlaceholder"),
|
|
9664
9687
|
"show-all-levels": $options.showFullPath,
|
|
9665
|
-
props:
|
|
9688
|
+
props: $options.cascaderProps,
|
|
9666
9689
|
onFocus: _ctx.handleFocusCustomEvent,
|
|
9667
9690
|
onBlur: _ctx.handleBlurCustomEvent,
|
|
9668
9691
|
onChange: _ctx.handleChangeEvent
|
|
@@ -9672,7 +9695,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9672
9695
|
_: 1
|
|
9673
9696
|
}, 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"]);
|
|
9674
9697
|
}
|
|
9675
|
-
var cascaderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$18, [["render", _sfc_render$18], ["__scopeId", "data-v-
|
|
9698
|
+
var cascaderWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$18, [["render", _sfc_render$18], ["__scopeId", "data-v-a81e00a2"]]);
|
|
9676
9699
|
var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9677
9700
|
__proto__: null,
|
|
9678
9701
|
"default": cascaderWidget
|
|
@@ -26441,13 +26464,13 @@ function registerIcon(app) {
|
|
|
26441
26464
|
if (typeof window !== "undefined") {
|
|
26442
26465
|
let loadSvg = function() {
|
|
26443
26466
|
var body = document.body;
|
|
26444
|
-
var svgDom = document.getElementById("
|
|
26467
|
+
var svgDom = document.getElementById("__svg__icons__dom__1779671617385__");
|
|
26445
26468
|
if (!svgDom) {
|
|
26446
26469
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26447
26470
|
svgDom.style.position = "absolute";
|
|
26448
26471
|
svgDom.style.width = "0";
|
|
26449
26472
|
svgDom.style.height = "0";
|
|
26450
|
-
svgDom.id = "
|
|
26473
|
+
svgDom.id = "__svg__icons__dom__1779671617385__";
|
|
26451
26474
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26452
26475
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26453
26476
|
}
|
|
@@ -62261,7 +62284,7 @@ const _sfc_main$6 = {
|
|
|
62261
62284
|
this.handleGetAssetTypeOptions();
|
|
62262
62285
|
}
|
|
62263
62286
|
};
|
|
62264
|
-
const _hoisted_1$4 = { class: "asset-
|
|
62287
|
+
const _hoisted_1$4 = { class: "asset-body-wrap" };
|
|
62265
62288
|
const _hoisted_2$2 = { class: "bottom-wrap" };
|
|
62266
62289
|
const _hoisted_3$1 = { class: "left-wrap" };
|
|
62267
62290
|
const _hoisted_4 = { class: "filter-wrap" };
|
|
@@ -62555,10 +62578,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62555
62578
|
_: 1
|
|
62556
62579
|
}, 8, ["modelValue"])
|
|
62557
62580
|
]),
|
|
62558
|
-
createVNode(_component_el_scrollbar, {
|
|
62559
|
-
height: "512px",
|
|
62560
|
-
class: "asset-wrap-scroll"
|
|
62561
|
-
}, {
|
|
62581
|
+
createVNode(_component_el_scrollbar, { class: "asset-wrap-scroll" }, {
|
|
62562
62582
|
default: withCtx(() => [
|
|
62563
62583
|
createElementVNode("ul", _hoisted_7, [
|
|
62564
62584
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.filterList, (item) => {
|
|
@@ -62593,7 +62613,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62593
62613
|
_: 1
|
|
62594
62614
|
}, 8, ["modelValue", "onClose"]);
|
|
62595
62615
|
}
|
|
62596
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
62616
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-5cca3952"]]);
|
|
62597
62617
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
62598
62618
|
const _sfc_main$5 = {
|
|
62599
62619
|
name: "asset-select-widget",
|