hldesigner 0.0.1
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/FileSaver.min-b57403e6.js +103 -0
- package/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-94198099.js +38 -0
- package/anchor-link-widget-919ac0ee.js +5 -0
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
- package/anchor-widget-77003871.js +57 -0
- package/auto-complete-widget-8d76ea70.js +74 -0
- package/avatar-widget-3cd63f01.js +38 -0
- package/backtop-widget-6fc3db98.js +38 -0
- package/badge-widget-f36a769c.js +44 -0
- package/baseImp-8c4be88e.js +11050 -0
- package/breadcrumb-widget-422a9d28.js +79 -0
- package/button-widget-918dde3f.js +48 -0
- package/cache-widget-a1637f5f.js +53 -0
- package/card-widget-2db8e9d4.js +112 -0
- package/carousel-widget-838cc8c9.js +75 -0
- package/cascader-widget-42482528.js +97 -0
- package/chart-widget-ac07a466.js +44285 -0
- package/checkbox-widget-ee1fcb0c.js +79 -0
- package/clipboard-fc4d858d.js +497 -0
- package/code-cf4fbc89.js +82 -0
- package/collapse-widget-1a93bdb5.js +89 -0
- package/color-picker-widget-e893711a.js +56 -0
- package/common-editor-76ac2e32.js +24 -0
- package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
- package/configItem-6bfa74e0.js +113 -0
- package/cont-cell-widget-42f96421.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
- package/cont-widget-9dda9135.js +42 -0
- package/content-wrapper-20c559ac.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
- package/customClass-editor-9088a8cf.js +43 -0
- package/date-picker-range-widget-b9287f93.js +72 -0
- package/date-picker-widget-21595fd5.js +78 -0
- package/default-slot-widget-fc87ed0a.js +24 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
- package/descriptions-widget-33a02f1a.js +83 -0
- package/designer.es.js +42 -0
- package/designer.style.css +11 -0
- package/designer.umd.js +161882 -0
- package/dialog-5e196819.js +124 -0
- package/dialog-widget-22714c34.js +33 -0
- package/divider-widget-adf656f2.js +38 -0
- package/drag-wrapper-f9fb1533.js +259 -0
- package/drawer-widget-404cb6db.js +33 -0
- package/dropdown-widget-a4a1e2f7.js +92 -0
- package/editor-wrapper-e6b30023.js +779 -0
- package/emitter-2b9b9409.js +53 -0
- package/empty-widget-c53b07dd.js +64 -0
- package/enum-type-255ade69.js +543 -0
- package/enum-type-287a50b6.js +2054 -0
- package/expression-ea95606e.js +2181 -0
- package/feedback-widget-c041b474.js +26 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/field-editor-3e1ce4f3.js +69 -0
- package/file-upload-widget-941b9493.js +98 -0
- package/form-item-wrapper-8039c512.js +113 -0
- package/form-widget-98a02c28.js +184 -0
- package/grid-col-widget-3ea371ea.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
- package/grid-widget-f0635d43.js +43 -0
- package/html-text-widget-c440e86d.js +50 -0
- package/icon-2bb9fa65.js +129 -0
- package/iframe-widget-37ef665f.js +77 -0
- package/image-widget-871d5987.js +64 -0
- package/import-config-1eb9a66b.js +13156 -0
- package/index-0a2f2997.js +225 -0
- package/index-12505eec.js +42 -0
- package/index-18720c06.js +138 -0
- package/index-188b745d.js +132 -0
- package/index-28f32a55.js +216 -0
- package/index-2936e7cf.js +3265 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-3d5d5fac.js +23 -0
- package/index-50c3e002.js +227 -0
- package/index-6a276ef7.js +131 -0
- package/index-6d56f058.js +45 -0
- package/index-7b38fd82.js +330 -0
- package/index-7c2a8e33.js +17993 -0
- package/index-7fa591e3.js +4817 -0
- package/index-82f2c56a.js +135 -0
- package/index-8713c192.js +344 -0
- package/index-8d537d38.js +2393 -0
- package/index-9fd4a537.js +99 -0
- package/index-ad538d7e.js +832 -0
- package/index-c1b1f59f.js +88 -0
- package/index-d6fa09d6.js +39 -0
- package/index-db2305dc.js +117 -0
- package/index-ddd23411.js +4884 -0
- package/index-e795786b.js +119 -0
- package/index-f146282d.js +1356 -0
- package/index-f849ef29.js +216 -0
- package/index-ffbcbc43.js +65 -0
- package/input-number-widget-64f89b9d.js +66 -0
- package/input-widget-0fe7c3d7.js +71 -0
- package/install-designer-bed2e18a.js +4752 -0
- package/item-4be3cb5b.js +34 -0
- package/item-ddbdee11.js +24 -0
- package/itemDetail-b31192a5.js +43 -0
- package/label-wrapper-91b95fb0.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
- package/link-widget-0f2bb61c.js +56 -0
- package/ltable-col-widget-9f26b93d.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
- package/ltable-widget-b78a72ee.js +69 -0
- package/menu-widget-15fdd710.js +96 -0
- package/model-widget-3f2b1368.js +122 -0
- package/multirow-e1e1205c.js +292 -0
- package/multirow-widget copy-671ebd9c.js +858 -0
- package/multirow-widget-d256cac6.js +694 -0
- package/name-editor-05685151.js +104 -0
- package/optionItem-0ac4a3ae.js +4667 -0
- package/package.json +13 -0
- package/pagination-widget-31a7301d.js +81 -0
- package/picture-upload-widget-46ea42a0.js +102 -0
- package/postcss-2c4d92ea.js +2285 -0
- package/progress-widget-fc1f9557.js +52 -0
- package/property-base-e63e2f28.js +78 -0
- package/propresult-8fdf23e2.js +22 -0
- package/radio-widget-fbc63c11.js +79 -0
- package/range-widget-b0882319.js +74 -0
- package/rate-widget-9719ca7d.js +56 -0
- package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
- package/result-widget-925a5426.js +67 -0
- package/rich-editor-widget-426f0b19.js +77 -0
- package/router-widget-209f0eb1.js +54 -0
- package/schemaData-ab87bd49.js +333 -0
- package/select-widget-0b560a2f.js +288 -0
- package/setView-de8aaf40.js +84 -0
- package/sfc-10e3d29c.js +2570 -0
- package/share-editor-27d43940.js +448 -0
- package/share-event-dd8ff2ba.js +26 -0
- package/share-field-451430de.js +690 -0
- package/share-file-124a4d83.js +121 -0
- package/size-editor-ea05760c.js +92 -0
- package/slider-widget-fb4efa96.js +62 -0
- package/slot-04a83a27.js +17 -0
- package/static-text-widget-2efdd909.js +51 -0
- package/steps-widget-6f283f21.js +91 -0
- package/subMenu-widget-77e295cb.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
- package/switch-widget-f1120b6c.js +56 -0
- package/tab-pane-widget-99c21615.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
- package/table-col-widget-d6d5d21f.js +23 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
- package/table-widget-9b8d9798.js +163 -0
- package/tabs-widget-88393072.js +68 -0
- package/tag-widget-33c17c06.js +38 -0
- package/target-code-48e9d055.js +33 -0
- package/target-datasource-35dfcb1d.js +221 -0
- package/target-link-3ffd0149.js +126 -0
- package/target-saveForm-012b7de1.js +136 -0
- package/target-widget-3d7f6104.js +59 -0
- package/target-window-7556d301.js +54 -0
- package/template-c30585f4.js +251740 -0
- package/text-widget-8b5ece83.js +38 -0
- package/textarea-widget-e7c1d9ed.js +56 -0
- package/time-picker-range-widget-b8dfcc3b.js +58 -0
- package/time-picker-widget-73bde0a3.js +57 -0
- package/time-select-widget-08008b76.js +57 -0
- package/tmpl-widget-7d245d41.js +92 -0
- package/tooltip-wrapper-2922e49e.js +31 -0
- package/tree-select-widget-67231123.js +94 -0
- package/tree-widget-ab91165f.js +90 -0
- package/uuid-39f0308a.js +196 -0
- package/value-editor-27783d6c.js +89 -0
- package/vue3-sfc-loader-b70bdce4.js +34688 -0
- package/widget-base-4c2d6265.js +27 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js +277 -0
- package/wrapper-widget-5702502d.js +78 -0
|
@@ -0,0 +1,3265 @@
|
|
|
1
|
+
var Fa = Object.defineProperty;
|
|
2
|
+
var Ca = (u, m, h) => m in u ? Fa(u, m, { enumerable: !0, configurable: !0, writable: !0, value: h }) : u[m] = h;
|
|
3
|
+
var $ = (u, m, h) => (Ca(u, typeof m != "symbol" ? m + "" : m, h), h);
|
|
4
|
+
import { defineAsyncComponent as Z, shallowRef as be, defineComponent as Lt, computed as Te, ref as J, watch as Ee, onMounted as xa, resolveComponent as Ve, openBlock as U, createBlock as re, withCtx as He, createVNode as vt, createElementBlock as Qe, Fragment as bt, renderList as Pa, unref as pe, resolveDynamicComponent as Ie, createCommentVNode as yt, normalizeProps as Oa, guardReactiveProps as Sa, mergeProps as Xe, toHandlers as Ye } from "vue";
|
|
5
|
+
import { u as Ra } from "./emitter-2b9b9409.js";
|
|
6
|
+
import { d as kt, a as T, H as K, k as Pe, o as Oe, y as ft, B as $e, h as Mt, m as ht, j as Je } from "./enum-type-287a50b6.js";
|
|
7
|
+
import { h as _a, f as Na, S as gt, j as ja, k as La, m as Tt, a as Et, u as ka } from "./index-f146282d.js";
|
|
8
|
+
import { _ as Ma } from "./drag-wrapper-f9fb1533.js";
|
|
9
|
+
import { P as e, p as i, i as r, a as c } from "./property-base-e63e2f28.js";
|
|
10
|
+
import { ag as t, ah as Ge, ai as Da, aj as Va, ak as Ha, al as It, am as Ze, an as Ga, ao as Ft, ap as L, aq as za, ar as et, e as Aa, as as Wa, at as Ka, au as Fe, av as Ce, aw as Ba, ax as Ct, ay as qa, az as Ua, aA as d, d as s, aB as xt, aC as Qa, aD as ze, aE as tt, aF as Pt, aG as Xa, aH as Ya, aI as $a, aJ as Ja, g as Ot, aK as Za, a6 as ue, aL as en, aM as tn, K as St, aN as an, aO as nn, aP as ln, aQ as on, aR as sn, aS as Rt, aT as rn, aU as pn, af as dn, aV as mn, aW as cn, aX as un, aY as wn, S as I, aZ as vn, I as at, a_ as bn, a$ as yn, b0 as fn, k as nt, b1 as hn, b2 as gn, O as xe, b3 as Tn, b4 as En, b5 as In, s as de, b6 as Fn, b7 as Cn, b8 as xn, b9 as it, ba as Pn, bb as On, bc as Sn, bd as Rn, be as _n, P as B, ae as Nn, a5 as _t, bf as jn, v as Ln, a3 as kn, ad as Mn, C as Dn, L as Vn, R as Hn, j as Gn, i as zn, F as An, B as Wn, bg as Se } from "./enum-type-255ade69.js";
|
|
11
|
+
import { c as l, f as Ae, p as we, i as Kn, a as Bn, w as qn } from "./template-c30585f4.js";
|
|
12
|
+
import { g as ve, l as Un } from "./uuid-39f0308a.js";
|
|
13
|
+
import { a as S, g as Nt } from "./optionItem-0ac4a3ae.js";
|
|
14
|
+
import { C as v, p as jt, P as ne, B as Qn, e as Xn, i as Yn } from "./baseImp-8c4be88e.js";
|
|
15
|
+
import { g as $n } from "./icon-2bb9fa65.js";
|
|
16
|
+
import { u as Jn } from "./install-designer-bed2e18a.js";
|
|
17
|
+
function Zn() {
|
|
18
|
+
let u = /* @__PURE__ */ new Map();
|
|
19
|
+
const m = (b) => Z(() => Ma(/* @__PURE__ */ Object.assign({ "../common-editor.vue": () => import("./common-editor-76ac2e32.js"), "../customClass-editor.vue": () => import("./customClass-editor-9088a8cf.js"), "../field-editor.vue": () => import("./field-editor-3e1ce4f3.js"), "../name-editor.vue": () => import("./name-editor-05685151.js"), "../size-editor.vue": () => import("./size-editor-ea05760c.js"), "../value-editor.vue": () => import("./value-editor-27783d6c.js") }), `../${b}.vue`));
|
|
20
|
+
return { components: (b) => {
|
|
21
|
+
if (!u.has(b)) {
|
|
22
|
+
var R = m(b);
|
|
23
|
+
return u.set(b, R), R;
|
|
24
|
+
}
|
|
25
|
+
return u.get(b);
|
|
26
|
+
} };
|
|
27
|
+
}
|
|
28
|
+
class We {
|
|
29
|
+
constructor(m) {
|
|
30
|
+
$(this, "name", "");
|
|
31
|
+
$(this, "type", "");
|
|
32
|
+
$(this, "required", !1);
|
|
33
|
+
$(this, "message", "");
|
|
34
|
+
$(this, "trigger", ["change"]);
|
|
35
|
+
$(this, "validator");
|
|
36
|
+
$(this, "regExp");
|
|
37
|
+
$(this, "label");
|
|
38
|
+
kt(this, m);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function ei() {
|
|
42
|
+
var wt;
|
|
43
|
+
const u = be($n()), m = (n, o, f, g) => {
|
|
44
|
+
g && !ft(n, o) || ne.setValue(n, o, f);
|
|
45
|
+
}, h = (n, o) => ne.getValue(ne.get(n, o)), b = (n) => c.getOption(n, "menuItemType") === Nn.SubMenu, R = (n) => {
|
|
46
|
+
var g;
|
|
47
|
+
const { widgetTree: o } = ja((g = n == null ? void 0 : n.designer) == null ? void 0 : g.widgetList, !0), { parentFormId: f } = La(o.value, n.selectedWidget);
|
|
48
|
+
return !!f.value;
|
|
49
|
+
}, D = (n) => c.getOption(n, l.slotable), V = (n) => !c.getOption(n, l.labelHidden), Q = (n) => !ft(n.optionModel, l.state), y = (n) => {
|
|
50
|
+
const o = ne.get(n.optionModel, l.optionItems);
|
|
51
|
+
return ne.isComplexValue(o);
|
|
52
|
+
}, F = (n) => c.getOption(n, "lazy"), a = {
|
|
53
|
+
//#region 唯一标识符
|
|
54
|
+
name: new e({ name: "name", tp: i.advanced, editor: r.name, variable: !1, title: "@uniqueName", options: { tipContent: "@editNameHelp" }, rules: [new We({ required: !0, message: T.i18nt("designer.hint.nameRequired") })] }),
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region 默认值
|
|
57
|
+
defaultValue: new e({ name: "defaultValue", editor: r.value }),
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region 宽高尺寸
|
|
60
|
+
width: new e({ name: "width", editor: r.size, data: v(I) }),
|
|
61
|
+
height: new e({ name: "height", editor: r.size, data: v(I) }),
|
|
62
|
+
maxHeight: new e({ name: "maxHeight", editor: r.size, data: v(I) }),
|
|
63
|
+
cellWidth: new e({ name: "cellWidth", editor: r.size, data: v(I) }),
|
|
64
|
+
cellHeight: new e({ name: "cellHeight", editor: r.size, data: v(I) }),
|
|
65
|
+
size: new e({ name: "size", tp: i.advanced, title: "@widgetSize", type: t.radiobutton, data: Ge, attrs: { clearable: !0 } }),
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region 内容显示
|
|
68
|
+
content: new e({ name: "content" }),
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region 数值控制
|
|
71
|
+
min: new e({ name: "min", title: "@minValue", type: t.inputNumber }),
|
|
72
|
+
max: new e({ name: "max", title: "@maxValue", type: t.inputNumber }),
|
|
73
|
+
precision: new e({ name: "precision", type: t.inputNumber, attrs: { min: 0 } }),
|
|
74
|
+
step: new e({ name: "step", type: t.inputNumber, attrs: { min: 0 } }),
|
|
75
|
+
stepStrictly: new e({ name: "stepStrictly", type: t.switch }),
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region 文本长度控制
|
|
78
|
+
minlength: new e({ name: "minlength", type: t.inputNumber, attrs: { min: 1 } }),
|
|
79
|
+
maxlength: new e({ name: "maxlength", type: t.inputNumber, attrs: { min: 1 } }),
|
|
80
|
+
showWordLimit: new e({ name: "showWordLimit", type: t.switch }),
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region 前后缀图标
|
|
83
|
+
prefixIcon: new e({ name: "prefixIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
84
|
+
suffixIcon: new e({ name: "suffixIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
85
|
+
clearIcon: new e({ name: "clearIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
86
|
+
icon: new e({ name: "icon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region 占位符
|
|
89
|
+
placeholder: new e({ name: "placeholder" }),
|
|
90
|
+
startPlaceholder: new e({ name: "startPlaceholder" }),
|
|
91
|
+
endPlaceholder: new e({ name: "endPlaceholder" }),
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region 标签样式
|
|
94
|
+
label: new e({ name: "label" }),
|
|
95
|
+
labelHidden: new e({
|
|
96
|
+
name: "labelHidden",
|
|
97
|
+
tp: i.label,
|
|
98
|
+
type: t.switch,
|
|
99
|
+
visibleFn: (n) => !!_a(n == null ? void 0 : n.selectedWidget, "label")
|
|
100
|
+
}),
|
|
101
|
+
labelWidth: new e({
|
|
102
|
+
name: "labelWidth",
|
|
103
|
+
tp: i.label,
|
|
104
|
+
editor: r.size,
|
|
105
|
+
data: v(I),
|
|
106
|
+
visibleFn: V
|
|
107
|
+
}),
|
|
108
|
+
labelIconClass: new e({
|
|
109
|
+
name: "labelIconClass",
|
|
110
|
+
tp: i.label,
|
|
111
|
+
type: t.selectGroupV2,
|
|
112
|
+
data: u,
|
|
113
|
+
visibleFn: V
|
|
114
|
+
}),
|
|
115
|
+
labelIconPosition: new e({
|
|
116
|
+
name: "labelIconPosition",
|
|
117
|
+
tp: i.label,
|
|
118
|
+
type: t.radiobutton,
|
|
119
|
+
data: Da,
|
|
120
|
+
visibleFn: V
|
|
121
|
+
}),
|
|
122
|
+
labelTooltip: new e({
|
|
123
|
+
name: "labelTooltip",
|
|
124
|
+
tp: i.label,
|
|
125
|
+
visibleFn: V
|
|
126
|
+
}),
|
|
127
|
+
labelAlign: new e({
|
|
128
|
+
name: "labelAlign",
|
|
129
|
+
tp: i.label,
|
|
130
|
+
type: t.selectGroup,
|
|
131
|
+
data: Va,
|
|
132
|
+
attrs: { clearable: !0 },
|
|
133
|
+
visibleFn: V
|
|
134
|
+
}),
|
|
135
|
+
ariaLabel: new e({ name: "ariaLabel", tp: i.label }),
|
|
136
|
+
// labelWidth: new PropertyConfig({ name: "labelWidth", tp: propTypeEnum.label, editor: innerEditor.size, data: IterEnumArraySame(SizeUnitType) }),
|
|
137
|
+
labelPosition: new e({ name: "labelPosition", tp: i.label, type: t.radiobutton, data: Ha }),
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region 下拉弹窗样式
|
|
140
|
+
popperClass: new e({ name: "popperClass", tp: i.popper, editor: r.customClass, variable: !1, options: { tipContent: "@customClassHelp" }, type: t.selectGroup }),
|
|
141
|
+
popperAppendToBody: new e({ name: "popperAppendToBody", tp: i.popper, type: t.switch }),
|
|
142
|
+
popperOptions: new e({ name: "popperOptions", tp: i.popper, type: t.json, variable: !1, options: { showOptionEnable: !1 } }),
|
|
143
|
+
popperEffect: new e({ name: "popperEffect", tp: i.popper, type: t.radio, data: It }),
|
|
144
|
+
popperOffset: new e({ name: "popperOffset", tp: i.popper, type: t.inputNumber }),
|
|
145
|
+
teleported: new e({ name: "teleported", tp: i.popper, type: t.switch }),
|
|
146
|
+
showTimeout: new e({ name: "showTimeout", tp: i.popper, type: t.inputNumber }),
|
|
147
|
+
hideTimeout: new e({ name: "hideTimeout", tp: i.popper, type: t.inputNumber }),
|
|
148
|
+
closeOnClickOutside: new e({ name: "closeOnClickOutside", tp: i.popper, type: t.switch }),
|
|
149
|
+
persistent: new e({ name: "persistent", tp: i.popper, type: t.switch }),
|
|
150
|
+
placement: new e({ name: "placement", tp: i.popper, type: t.selectGroup, data: Ze }),
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region 树形
|
|
153
|
+
emptyValues: new e({
|
|
154
|
+
name: "emptyValues",
|
|
155
|
+
data: [],
|
|
156
|
+
type: t.json,
|
|
157
|
+
variable: !1,
|
|
158
|
+
options: { showOptionEnable: !1, dividerTitle: "@cascaderEmptySetting" }
|
|
159
|
+
}),
|
|
160
|
+
valueOnClear: new e({
|
|
161
|
+
name: "valueOnClear",
|
|
162
|
+
data: [],
|
|
163
|
+
type: t.javascript,
|
|
164
|
+
variable: !1
|
|
165
|
+
}),
|
|
166
|
+
emptyText: new e({ name: "emptyText" }),
|
|
167
|
+
accordion: new e({ name: "accordion", type: t.switch }),
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region 拖拽
|
|
170
|
+
draggable: new e({ name: "draggable", type: t.switch }),
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region 多选-折叠标签
|
|
173
|
+
multiple: new e({ name: "multiple", type: t.switch }),
|
|
174
|
+
collapseTags: new e({
|
|
175
|
+
name: "collapseTags",
|
|
176
|
+
type: t.switch,
|
|
177
|
+
visibleFn: (n) => !!c.getOption(n, "multiple"),
|
|
178
|
+
changeFn: (n, o) => {
|
|
179
|
+
o || (m(n == null ? void 0 : n.optionModel, "collapseTagsTooltip", !1, !0), m(n == null ? void 0 : n.optionModel, "maxCollapseTags", 1, !0));
|
|
180
|
+
}
|
|
181
|
+
}),
|
|
182
|
+
collapseTagsTooltip: new e({
|
|
183
|
+
name: "collapseTagsTooltip",
|
|
184
|
+
type: t.switch,
|
|
185
|
+
visibleFn: (n) => !!c.getOption(n, "collapseTags")
|
|
186
|
+
}),
|
|
187
|
+
maxCollapseTags: new e({
|
|
188
|
+
name: "maxCollapseTags",
|
|
189
|
+
type: t.inputNumber,
|
|
190
|
+
visibleFn: (n) => !!c.getOption(n, "collapseTags")
|
|
191
|
+
}),
|
|
192
|
+
tagType: new e({ name: "tagType", type: t.radiobutton, data: Ga }),
|
|
193
|
+
tagEffect: new e({ name: "tagEffect", type: t.radiobutton, data: Ft }),
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region 日期时间
|
|
196
|
+
isRange: new e({ name: "isRange", type: t.switch, visibleFn: !1 }),
|
|
197
|
+
arrowControl: new e({ name: "arrowControl", type: t.switch }),
|
|
198
|
+
timeFormat: new e({ name: "format", type: t.selectGroup, data: v(_t) }),
|
|
199
|
+
timeFormat1: new e({ name: "format", type: t.selectGroup, data: v(jn) }),
|
|
200
|
+
disabledHours: new e({ name: "disabledHours", data: [], type: t.javascript, variable: !1 }),
|
|
201
|
+
disabledMinutes: new e({ name: "disabledMinutes", data: ["hour:number"], type: t.javascript, variable: !1 }),
|
|
202
|
+
disabledSeconds: new e({ name: "disabledSeconds", data: ["hour:number", "minute:number"], type: t.javascript, variable: !1 }),
|
|
203
|
+
disabledDate: new e({ name: "disabledDate", data: ["time:Date"], type: t.javascript, variable: !1 }),
|
|
204
|
+
shortcuts: new e({ name: "shortcuts", type: t.javascript, variable: !1, options: { passExternalArgs: !1 } }),
|
|
205
|
+
cellClassName: new e({
|
|
206
|
+
name: "cellClassName",
|
|
207
|
+
tp: i.style,
|
|
208
|
+
type: t.javascript,
|
|
209
|
+
variable: !1,
|
|
210
|
+
data: ["date:Date"]
|
|
211
|
+
}),
|
|
212
|
+
rangeSeparator: new e({ name: "rangeSeparator", type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region 校验
|
|
215
|
+
required: new e({ name: "required", tp: i.valid, type: t.optionsEdit, variable: !1, visibleFn: R }),
|
|
216
|
+
expValidate: new e({ name: "expValidate", tp: i.valid, type: t.optionsEdit, variable: !1, visibleFn: R }),
|
|
217
|
+
fnValidate: new e({ name: "fnValidate", tp: i.valid, type: t.optionsEdit, variable: !1, attrs: { editorType: L.drawer }, visibleFn: R }),
|
|
218
|
+
validateEvent: new e({ name: "validateEvent", tp: i.valid, type: t.switch, visibleFn: R }),
|
|
219
|
+
showMessage: new e({ name: "showMessage", tp: i.valid, type: t.switch, visibleFn: R }),
|
|
220
|
+
inlineMessage: new e({ name: "inlineMessage", tp: i.valid, type: t.switch, visibleFn: R }),
|
|
221
|
+
enable: new e({ name: "enable", variable: !1, type: t.switch }),
|
|
222
|
+
errorMsg: new e({ name: "errorMsg", variable: !1, type: t.input }),
|
|
223
|
+
expression: new e({ name: "expression", variable: !1, type: t.selectGroup, data: za, attrs: { filterable: !0, clearable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
224
|
+
func: new e({ name: "func", title: "@func", type: t.javascript, variable: !1, data: ["rule:any", "value:any", "callback:Function", "errorMsg:string"], options: { addFormItem: !0, codeEdit: !0 } }),
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region 提示
|
|
227
|
+
fnTip: new e({ name: "fnTip", tp: i.valid, type: t.optionsEdit, variable: !1, attrs: { editorType: L.drawer } }),
|
|
228
|
+
tipFunc: new e({ name: "tipFunc", title: "@func", type: t.javascript, variable: !1, data: ["value:any", "callback:Function", "errorMsg:string"], options: { addFormItem: !0, codeEdit: !0 } }),
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region 事件
|
|
231
|
+
created: new e({ name: "created", tp: i.event, type: t.targetEvent, variable: !1 }),
|
|
232
|
+
mounted: new e({ name: "mounted", tp: i.event, type: t.targetEvent, variable: !1 }),
|
|
233
|
+
click: new e({ name: "click", tp: i.event, data: ["event:PointerEvent"], type: t.targetEvent, variable: !1, options: { passExternalArgs: !0 } }),
|
|
234
|
+
input: new e({ name: "input", tp: i.event, data: ["value:any"], type: t.targetEvent, variable: !1 }),
|
|
235
|
+
change: new e({ name: "change", tp: i.event, data: ["newValue:string|number", "oldValue:string|number"], type: t.targetEvent, variable: !1 }),
|
|
236
|
+
focus: new e({ name: "focus", tp: i.event, data: ["event:FocusEvent"], type: t.targetEvent, variable: !1 }),
|
|
237
|
+
blur: new e({ name: "blur", tp: i.event, data: ["event:FocusEvent"], type: t.targetEvent, variable: !1 }),
|
|
238
|
+
error: new e({ name: "error", tp: i.event, title: "@eventError", data: ["event:Event"], type: t.targetEvent, variable: !1 }),
|
|
239
|
+
//#region 下拉框select / cascader
|
|
240
|
+
removeTag: new e({
|
|
241
|
+
name: "removeTag",
|
|
242
|
+
tp: i.event,
|
|
243
|
+
data: ["value"],
|
|
244
|
+
type: t.targetEvent,
|
|
245
|
+
variable: !1,
|
|
246
|
+
visibleFn: (n) => !!c.getOption(n, "multiple")
|
|
247
|
+
}),
|
|
248
|
+
visibleChange: new e({ name: "visibleChange", tp: i.event, data: ["visible:boolean"], type: t.targetEvent, variable: !1 }),
|
|
249
|
+
panelChange: new e({ tp: i.event, name: "panelChange", data: ["date: object", "mode: string", "view: string"], type: t.targetEvent, variable: !1 }),
|
|
250
|
+
calendarChange: new e({ tp: i.event, name: "calendarChange", data: ["val: object"], type: t.targetEvent, variable: !1 }),
|
|
251
|
+
valueKey: new e({ name: "valueKey", tp: i.advanced, title: "@selectValueKey" }),
|
|
252
|
+
labelKey: new e({ name: "labelKey", tp: i.advanced, title: "@selectLabelKey" }),
|
|
253
|
+
textName: new e({ name: "textName", tp: i.advanced, title: "@selectTextName", editor: r.field }),
|
|
254
|
+
optionName: new e({ name: "optionName", tp: i.advanced, title: "@selectOptionName", editor: r.field }),
|
|
255
|
+
//#endregion
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region 组件样式控制
|
|
258
|
+
displayLayout: new e({
|
|
259
|
+
name: "displayLayout",
|
|
260
|
+
tp: i.advanced,
|
|
261
|
+
title: "@displayType",
|
|
262
|
+
type: t.radiobutton,
|
|
263
|
+
data: et,
|
|
264
|
+
// changeFn: (props: PropertyObject, value: boolean) => {
|
|
265
|
+
// if (!!value) {
|
|
266
|
+
// setValue(props?.optionModel, pathVar.ctrlWidth, 'auto', true);
|
|
267
|
+
// } else {
|
|
268
|
+
// setValue(props?.optionModel, pathVar.ctrlWidth, '100%', true);
|
|
269
|
+
// }
|
|
270
|
+
// },
|
|
271
|
+
visibleFn: (n) => {
|
|
272
|
+
var o;
|
|
273
|
+
return ((o = n.selectedWidget) == null ? void 0 : o.category) !== Aa.container;
|
|
274
|
+
}
|
|
275
|
+
}),
|
|
276
|
+
displayStyle: new e({ name: "displayStyle", tp: i.style, type: t.radiobutton, data: Wa }),
|
|
277
|
+
customClass: new e({ name: "customClass", tp: i.style, editor: r.customClass, variable: !1, type: t.selectGroup, options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
278
|
+
componentWrapperClass: new e({ name: "componentWrapperClass", tp: i.style, editor: r.customClass, variable: !1, type: t.selectGroup, title: "@compWrapCssClass", options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
279
|
+
ctrlWidth: new e({ name: "ctrlWidth", tp: i.advanced, editor: r.size, type: t.selectGroup, data: v(I), options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
280
|
+
ctrlHeight: new e({ name: "ctrlHeight", tp: i.advanced, editor: r.size, type: t.selectGroup, data: v(I), options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
281
|
+
effect: new e({ name: "effect", type: t.radiobutton, data: Ft }),
|
|
282
|
+
class: new e({ name: "class", variable: !1, editor: r.customClass, type: t.selectGroup }),
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region 筛选
|
|
285
|
+
filterable: new e({ name: "filterable", type: t.switch }),
|
|
286
|
+
debounce: new e({ name: "debounce", type: t.inputNumber }),
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region 懒加载
|
|
289
|
+
lazy: new e({ name: "lazy", type: t.switch }),
|
|
290
|
+
lazyLoad: new e({
|
|
291
|
+
name: "lazyLoad",
|
|
292
|
+
data: ["node:Node", "resolve:Function"],
|
|
293
|
+
type: t.javascript,
|
|
294
|
+
variable: !1,
|
|
295
|
+
visibleFn: F
|
|
296
|
+
}),
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region 插槽
|
|
299
|
+
slotable: new e({ name: "slotable", tp: i.slot, type: t.switch, variable: !1 }),
|
|
300
|
+
empty: new e({ name: "empty", tp: i.slot, title: "@slotEmpty", type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
301
|
+
select_optionDefault: new e({ name: "optionDefault", title: "@slotOptionDefault", tp: i.slot, data: ["item:{value:any,label:string}"], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
302
|
+
tree_optionDefault: new e({ name: "optionDefault", tp: i.slot, title: "@slotOptionDefault", data: ["node:Node", "data:{value:Object,label:String,children:Array}"], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
303
|
+
prefix: new e({ name: "prefix", tp: i.slot, title: "@slotPrefix", data: [], type: t.html, variable: !1, options: { sfc: !0 }, visibleFn: D }),
|
|
304
|
+
suffix: new e({ name: "suffix", tp: i.slot, title: "@slotSuffix", data: [], type: t.html, variable: !1, options: { sfc: !0 }, visibleFn: D }),
|
|
305
|
+
prepend: new e({ name: "prepend", tp: i.slot, title: "@slotPrepend", data: [], type: t.html, variable: !1, options: { sfc: !0 }, visibleFn: D }),
|
|
306
|
+
append: new e({ name: "append", tp: i.slot, title: "@slotAppend", data: [], type: t.html, variable: !1, options: { sfc: !0 }, visibleFn: D }),
|
|
307
|
+
default: new e({ name: "default", tp: i.slot, title: "@slotDefault", data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region 隐藏属性
|
|
310
|
+
//state将custom、readonly、disabled、hidden合四为一,因此隐藏
|
|
311
|
+
custom: new e({ name: "custom", type: t.switch, visibleFn: Q, tp: i.advanced }),
|
|
312
|
+
readonly: new e({ name: "readonly", type: t.switch, visibleFn: Q, tp: i.advanced }),
|
|
313
|
+
disabled: new e({ name: "disabled", type: t.switch, visibleFn: Q, tp: i.advanced }),
|
|
314
|
+
hidden: new e({ name: "hidden", type: t.switch, visibleFn: Q, tp: i.advanced }),
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region 数据源加载
|
|
317
|
+
jsonData: new e({ name: "data", type: t.json, options: { showOptionEnable: !1 } }),
|
|
318
|
+
mixData: (n = "data") => new e({
|
|
319
|
+
name: n,
|
|
320
|
+
type: t.json,
|
|
321
|
+
variable: !1,
|
|
322
|
+
options: { showOptionEnable: !1, editTip: T.i18nt("designer.hint.editCode") },
|
|
323
|
+
editor: r.value
|
|
324
|
+
}),
|
|
325
|
+
//#endregion
|
|
326
|
+
clearable: new e({ name: "clearable", type: t.switch }),
|
|
327
|
+
editable: new e({ name: "editable", type: t.switch }),
|
|
328
|
+
state: new e({
|
|
329
|
+
name: "state",
|
|
330
|
+
type: t.radiobutton,
|
|
331
|
+
data: Ka,
|
|
332
|
+
changeFn: (n, o) => {
|
|
333
|
+
var f = jt(An);
|
|
334
|
+
f.forEach((g) => {
|
|
335
|
+
m(n == null ? void 0 : n.optionModel, g, g === o);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
}),
|
|
339
|
+
offset: new e({ name: "offset", title: "@offsetTitle", type: t.inputNumber, attrs: { min: 0 } }),
|
|
340
|
+
direction: new e({ name: "direction", type: t.radiobutton, data: Fe }),
|
|
341
|
+
color: new e({ name: "color", type: t.color }),
|
|
342
|
+
// placement: new PropertyConfig({ name: "placement", type: PropDataType.selectGroup, data: PlacementTextType }),
|
|
343
|
+
tag: new e({ name: "tag", tp: i.advanced }),
|
|
344
|
+
target: new e({ name: "target" }),
|
|
345
|
+
// new PropertyConfig({ name: "icon",tp: propTypeEnum.advanced, title: "@resultIcon", type: PropType.selectGroup, data: IterEnumArraySame(Style1Type) }),
|
|
346
|
+
initialIndex: new e({ name: "initialIndex", tp: i.advanced, type: t.inputNumber }),
|
|
347
|
+
tabindex: new e({ name: "tabindex", tp: i.other, type: t.inputNumber }),
|
|
348
|
+
separator: new e({ name: "separator" }),
|
|
349
|
+
src: new e({ name: "src" }),
|
|
350
|
+
srcSet: new e({ name: "srcSet", tp: i.other }),
|
|
351
|
+
alt: new e({ name: "alt", tp: i.other }),
|
|
352
|
+
zIndex: new e({ name: "zIndex", tp: i.other, type: t.inputNumber }),
|
|
353
|
+
border: new e({ name: "border", type: t.switch }),
|
|
354
|
+
isdefault: new e({ name: "isdefault", type: t.switch, visibleFn: !1 }),
|
|
355
|
+
buttonStyle: new e({ name: "buttonStyle", type: t.switch }),
|
|
356
|
+
timeValueFormat: new e({ name: "valueFormat", type: t.selectGroup, data: v(_t) }),
|
|
357
|
+
//#region optionItems
|
|
358
|
+
relate: new e({
|
|
359
|
+
name: "relate",
|
|
360
|
+
variable: !1,
|
|
361
|
+
title: "@relateOptionItems",
|
|
362
|
+
type: t.relate,
|
|
363
|
+
options: { addFormItem: !1, bindOptionItems: "optionItems" },
|
|
364
|
+
visibleFn: (n) => {
|
|
365
|
+
const o = c.getOption(n, "optionItems");
|
|
366
|
+
return o && !ne.isComplex(o);
|
|
367
|
+
}
|
|
368
|
+
}),
|
|
369
|
+
name_optionitems: new e({ name: "name", path: l.optionItems, variable: !1, title: "@singleName", type: t.hidden }),
|
|
370
|
+
label_optionitems: new e({ name: "label", path: l.optionItems, variable: !1 }),
|
|
371
|
+
label_optionitems_1: new e({ name: "label", path: l.optionItems, variable: !0 }),
|
|
372
|
+
value_optionitems: new e({ name: "value", path: l.optionItems, variable: !1, title: "@valueTitle" }),
|
|
373
|
+
isopen_optionitems: new e({ name: "isopen", path: l.optionItems, variable: !1, type: t.switch }),
|
|
374
|
+
icon_optionitems: new e({ name: "icon", path: l.optionItems, variable: !1, type: t.selectGroupV2, data: u, attrs: { filterable: !0 } }),
|
|
375
|
+
description_optionitems: new e({ name: "description", path: l.optionItems, variable: !1 }),
|
|
376
|
+
title_optionitems: new e({ name: "title", path: l.optionItems, variable: !1 }),
|
|
377
|
+
minWidth_optionitems: new e({ name: "minWidth", path: l.optionItems, variable: !1, tp: i.label, editor: r.size, data: v(I) }),
|
|
378
|
+
width_optionitems: new e({ name: "width", path: l.optionItems, variable: !1, tp: i.label, editor: r.size, data: v(I) }),
|
|
379
|
+
align_optionitems: new e({ name: "align", path: l.optionItems, variable: !1, type: t.radiobutton, data: Ce }),
|
|
380
|
+
labelAlign_optionitems: new e({ name: "labelAlign", path: l.optionItems, variable: !1, type: t.selectGroup, data: Ce, attrs: { clearable: !0 } }),
|
|
381
|
+
className_optionitems: new e({ name: "className", path: l.optionItems, variable: !1, editor: r.customClass, type: t.selectGroup }),
|
|
382
|
+
class_optionitems: new e({ name: "class", path: l.optionItems, variable: !1, editor: r.customClass, type: t.selectGroup }),
|
|
383
|
+
labelClassName_optionitems: new e({ name: "labelClassName", path: l.optionItems, variable: !1, editor: r.customClass, type: t.selectGroup }),
|
|
384
|
+
htmlContent_optionitems: new e({ name: "htmlContent", path: l.optionItems, variable: !1, title: "@content", type: t.html, options: { codeEdit: !0 }, attrs: { mode: K.html } }),
|
|
385
|
+
content_optionitems: new e({ name: "content", path: l.optionItems, variable: !1, title: "@content", type: t.html, options: { codeEdit: !0 }, attrs: { mode: K.html } }),
|
|
386
|
+
disabled_optionitems: new e({ name: "disabled", path: l.optionItems, variable: !1, type: t.switch }),
|
|
387
|
+
click_optionitems: new e({ name: "click", path: l.optionItems, variable: !1, type: t.javascript }),
|
|
388
|
+
hidden_optionitems: new e({ name: "hidden", path: l.optionItems, variable: !1, type: t.switch }),
|
|
389
|
+
lazy_optionitems: new e({ name: "lazy", path: l.optionItems, variable: !1, type: t.switch }),
|
|
390
|
+
displayStyle_optionitems: new e({ name: "displayStyle", path: l.optionItems, variable: !1, type: t.radiobutton, data: et }),
|
|
391
|
+
customClass_optionitems: new e({ name: "customClass", path: l.optionItems, variable: !1, type: t.selectGroup }),
|
|
392
|
+
inline_optionitems: new e({
|
|
393
|
+
name: "inline",
|
|
394
|
+
path: l.optionItems,
|
|
395
|
+
variable: !1,
|
|
396
|
+
title: "@displayType",
|
|
397
|
+
type: t.radiobutton,
|
|
398
|
+
data: et,
|
|
399
|
+
changeFn: (n, o) => {
|
|
400
|
+
o ? m(n == null ? void 0 : n.optionModel, "ctrlWidth", "auto", !0) : m(n == null ? void 0 : n.optionModel, "ctrlWidth", "100%", !0);
|
|
401
|
+
}
|
|
402
|
+
}),
|
|
403
|
+
validateEvent_optionitems: new e({ name: "validateEvent", path: l.optionItems, variable: !1, type: t.switch }),
|
|
404
|
+
border_optionitems: new e({ name: "border", path: l.optionItems, variable: !1, type: t.switch }),
|
|
405
|
+
isdefault_optionitems: new e({ name: "isdefault", path: l.optionItems, variable: !1, type: t.switch, visibleFn: !1 }),
|
|
406
|
+
children_optionitems: new e({ name: "children", path: l.optionItems, variable: !1, type: t.hidden, visibleFn: !1 }),
|
|
407
|
+
slotContent_optionitems: new e({ name: "slotContent", path: l.optionItems, variable: !1, type: t.html, data: ["scope:Object", "ctx:Object"], options: { sfc: !0 }, attrs: { mode: K.html } }),
|
|
408
|
+
slotTitle_optionitems: new e({ name: "slotTitle", path: l.optionItems, variable: !1, type: t.html, data: ["scope:Object", "ctx:Object"], options: { sfc: !0 }, attrs: { mode: K.html } })
|
|
409
|
+
//#endregion
|
|
410
|
+
}, C = [
|
|
411
|
+
//基础组件
|
|
412
|
+
a.name,
|
|
413
|
+
a.ctrlWidth,
|
|
414
|
+
a.ctrlHeight,
|
|
415
|
+
a.displayLayout,
|
|
416
|
+
a.customClass,
|
|
417
|
+
a.componentWrapperClass,
|
|
418
|
+
a.hidden,
|
|
419
|
+
a.mounted,
|
|
420
|
+
a.created,
|
|
421
|
+
//表单组件
|
|
422
|
+
a.defaultValue,
|
|
423
|
+
a.placeholder,
|
|
424
|
+
a.clearable,
|
|
425
|
+
a.label,
|
|
426
|
+
a.labelAlign,
|
|
427
|
+
a.labelHidden,
|
|
428
|
+
a.labelWidth,
|
|
429
|
+
a.labelIconClass,
|
|
430
|
+
a.labelIconPosition,
|
|
431
|
+
a.labelTooltip,
|
|
432
|
+
a.state,
|
|
433
|
+
a.custom,
|
|
434
|
+
a.readonly,
|
|
435
|
+
a.disabled,
|
|
436
|
+
a.hidden,
|
|
437
|
+
a.size,
|
|
438
|
+
a.required,
|
|
439
|
+
a.fnValidate,
|
|
440
|
+
a.validateEvent,
|
|
441
|
+
a.expValidate,
|
|
442
|
+
a.enable,
|
|
443
|
+
a.errorMsg,
|
|
444
|
+
a.expression,
|
|
445
|
+
a.func,
|
|
446
|
+
a.fnTip,
|
|
447
|
+
a.tipFunc,
|
|
448
|
+
a.focus,
|
|
449
|
+
a.blur,
|
|
450
|
+
a.change,
|
|
451
|
+
a.click,
|
|
452
|
+
a.input,
|
|
453
|
+
a.tabindex,
|
|
454
|
+
a.ariaLabel
|
|
455
|
+
], w = () => Z(() => import("./item-4be3cb5b.js")), k = () => Z(() => import("./itemDetail-b31192a5.js")), q = [
|
|
456
|
+
a.debounce,
|
|
457
|
+
a.placement,
|
|
458
|
+
a.popperClass,
|
|
459
|
+
a.popperAppendToBody,
|
|
460
|
+
a.teleported,
|
|
461
|
+
a.slotable,
|
|
462
|
+
a.prefix,
|
|
463
|
+
a.suffix,
|
|
464
|
+
a.append,
|
|
465
|
+
a.prepend,
|
|
466
|
+
new e({ name: "valueKey" }),
|
|
467
|
+
new e({ name: "selectWhenUnmatched", type: t.switch }),
|
|
468
|
+
new e({ name: "triggerOnFocus", type: t.switch }),
|
|
469
|
+
new e({ name: "hideLoading", type: t.switch }),
|
|
470
|
+
new e({ name: "highlightFirstItem", type: t.switch }),
|
|
471
|
+
new e({ name: "fitInputWidth", type: t.switch }),
|
|
472
|
+
new e({ name: "select", tp: i.event, type: t.targetEvent, variable: !1, data: ["item:Object"] }),
|
|
473
|
+
new e({ name: "fetchSuggestions", data: ["queryString:string", "callback:Function"], type: t.javascript, variable: !1 }),
|
|
474
|
+
new e({
|
|
475
|
+
name: "default",
|
|
476
|
+
tp: i.slot,
|
|
477
|
+
title: "@slotDefault",
|
|
478
|
+
data: ["item:Object"],
|
|
479
|
+
type: t.html,
|
|
480
|
+
variable: !1,
|
|
481
|
+
options: { sfc: !0 },
|
|
482
|
+
visibleFn: (n) => !!c.getOption(n, "fetchSuggestions")
|
|
483
|
+
})
|
|
484
|
+
], E = [
|
|
485
|
+
a.content,
|
|
486
|
+
a.default,
|
|
487
|
+
a.src,
|
|
488
|
+
a.icon,
|
|
489
|
+
a.error,
|
|
490
|
+
// new PropertyConfig({ name: "label", title: "@content", type: PropDataType.html, options: { codeEdit: true },attrs:{mode:CodeType.html} }),
|
|
491
|
+
a.hidden,
|
|
492
|
+
//new PropertyConfig({ name: "hidden", tp: propTypeEnum.advanced, type: PropDataType.switch }),
|
|
493
|
+
new e({ name: "shape", title: "@displayType", type: t.radiobutton, data: Ba }),
|
|
494
|
+
new e({ name: "fit", type: t.selectGroup, data: Ct })
|
|
495
|
+
], ee = [
|
|
496
|
+
a.default,
|
|
497
|
+
a.content,
|
|
498
|
+
a.zIndex,
|
|
499
|
+
a.offset,
|
|
500
|
+
a.target,
|
|
501
|
+
new e({ name: "position", title: "@verticalPosition", type: t.radiobutton, data: qa }),
|
|
502
|
+
new e({ name: "scroll", tp: i.event, data: ["value:{scrollTop:number,fixed:boolean}"], type: t.targetEvent, variable: !1 }),
|
|
503
|
+
new e({ name: "change", tp: i.event, title: "@affixChange", data: ["fixed:boolean"], type: t.targetEvent, variable: !1 })
|
|
504
|
+
], M = [
|
|
505
|
+
a.offset,
|
|
506
|
+
new e({ name: "container" }),
|
|
507
|
+
new e({ name: "direction", type: t.radiobutton, data: Fe }),
|
|
508
|
+
new e({ name: "type", type: t.radiobutton, data: Ua }),
|
|
509
|
+
new e({ name: "bound", type: t.inputNumber }),
|
|
510
|
+
new e({ name: "duration", type: t.inputNumber }),
|
|
511
|
+
new e({ name: "marker", type: t.switch }),
|
|
512
|
+
new e({ name: "click", tp: i.event, data: ["e: MouseEvent", "href: string"], type: t.targetEvent, variable: !1 }),
|
|
513
|
+
new e({ name: "change", tp: i.event, data: ["href:string"], type: t.targetEvent, variable: !1 }),
|
|
514
|
+
new e({
|
|
515
|
+
name: l.optionItems,
|
|
516
|
+
type: t.treeEdit,
|
|
517
|
+
variable: !1,
|
|
518
|
+
options: {
|
|
519
|
+
noRowLabel: !0,
|
|
520
|
+
newRowLabel: !0,
|
|
521
|
+
addFormItem: !1,
|
|
522
|
+
dividerTitle: "@" + l.optionItems
|
|
523
|
+
},
|
|
524
|
+
attrs: {
|
|
525
|
+
tools: [d.rank, d.add, d.clone, d.delete, d.edit, d.import],
|
|
526
|
+
editorType: L.drawer,
|
|
527
|
+
keys: S(s.anchor),
|
|
528
|
+
path: l.optionItems,
|
|
529
|
+
labelKey: "title",
|
|
530
|
+
valueKey: "name",
|
|
531
|
+
newOptionFn: () => {
|
|
532
|
+
const n = Nt(s.anchor);
|
|
533
|
+
return n.name = String(ve()), n;
|
|
534
|
+
},
|
|
535
|
+
cloneOptionFn: (n) => {
|
|
536
|
+
const o = Pe(n);
|
|
537
|
+
return o.name = String(ve()), o;
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
editor: r.value
|
|
541
|
+
}),
|
|
542
|
+
a.name_optionitems,
|
|
543
|
+
a.isdefault_optionitems,
|
|
544
|
+
a.children_optionitems,
|
|
545
|
+
new e({ name: "href", path: l.optionItems, variable: !1 }),
|
|
546
|
+
new e({ name: "title", path: l.optionItems, variable: !1 })
|
|
547
|
+
], G = [
|
|
548
|
+
a.default,
|
|
549
|
+
a.content,
|
|
550
|
+
a.click,
|
|
551
|
+
a.size,
|
|
552
|
+
a.disabled,
|
|
553
|
+
a.icon,
|
|
554
|
+
a.color,
|
|
555
|
+
a.tag,
|
|
556
|
+
new e({ name: "type", title: "@displayType", type: t.selectGroup, data: xt }),
|
|
557
|
+
new e({ name: "autoInsertSpace", type: t.switch }),
|
|
558
|
+
//弃用
|
|
559
|
+
// new PropertyConfig({ name: "nativeType", type: PropDataType.radiobutton, data: NativeTextType }),
|
|
560
|
+
//#region 由buttonType集成,此处占坑
|
|
561
|
+
new e({ name: "plain", type: t.switch, visibleFn: !1 }),
|
|
562
|
+
new e({ name: "circle", type: t.switch, visibleFn: !1 }),
|
|
563
|
+
new e({ name: "link", title: "@buttonLink", type: t.switch, visibleFn: !1 }),
|
|
564
|
+
new e({ name: "round", type: t.switch, visibleFn: !1 }),
|
|
565
|
+
new e({ name: "text", type: t.switch, visibleFn: !1 }),
|
|
566
|
+
//#endregion
|
|
567
|
+
new e({
|
|
568
|
+
name: "buttonType",
|
|
569
|
+
type: t.selectGroup,
|
|
570
|
+
data: Qa,
|
|
571
|
+
changeFn: (n, o) => {
|
|
572
|
+
var f = jt(Wn);
|
|
573
|
+
f.forEach((g) => {
|
|
574
|
+
m(n == null ? void 0 : n.optionModel, g, g === o, !0);
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
}),
|
|
578
|
+
new e({ name: "border", type: t.switch }),
|
|
579
|
+
new e({ name: "dark", type: t.switch }),
|
|
580
|
+
new e({ name: "bg", title: "@buttonBg", type: t.switch }),
|
|
581
|
+
new e({ name: "loading", title: "@showLoading", type: t.switch }),
|
|
582
|
+
new e({
|
|
583
|
+
name: "loadingIcon",
|
|
584
|
+
type: t.selectGroupV2,
|
|
585
|
+
variable: !1,
|
|
586
|
+
data: u,
|
|
587
|
+
attrs: { filterable: !0, clearable: !0 },
|
|
588
|
+
visibleFn: (n) => !!c.getOption(n, "loading")
|
|
589
|
+
}),
|
|
590
|
+
new e({ name: "autofocus", type: t.switch })
|
|
591
|
+
], z = [
|
|
592
|
+
a.default,
|
|
593
|
+
a.content,
|
|
594
|
+
a.click,
|
|
595
|
+
a.target,
|
|
596
|
+
new e({ name: "visibilityHeight", type: t.inputNumber }),
|
|
597
|
+
new e({ name: "bottom", type: t.inputNumber }),
|
|
598
|
+
new e({ name: "right", type: t.inputNumber })
|
|
599
|
+
], X = [
|
|
600
|
+
a.default,
|
|
601
|
+
a.content,
|
|
602
|
+
a.max,
|
|
603
|
+
new e({ name: "isDot", type: t.switch }),
|
|
604
|
+
new e({ name: "type", title: "@displayType", type: t.selectGroup, data: ze }),
|
|
605
|
+
new e({ name: "value" })
|
|
606
|
+
], Ke = [
|
|
607
|
+
new e({ name: "separatorIcon", type: t.selectGroupV2, data: u, variable: !1, attrs: { filterable: !0 } }),
|
|
608
|
+
new e({ name: "separator" }),
|
|
609
|
+
new e({
|
|
610
|
+
name: l.optionItems,
|
|
611
|
+
type: t.multirow,
|
|
612
|
+
variable: !1,
|
|
613
|
+
options: {
|
|
614
|
+
noRowLabel: !0,
|
|
615
|
+
newRowLabel: !0,
|
|
616
|
+
addFormItem: !1,
|
|
617
|
+
dividerTitle: "@" + l.optionItems
|
|
618
|
+
},
|
|
619
|
+
attrs: {
|
|
620
|
+
tools: [d.rank, d.add, d.clone, d.delete, d.edit, d.import],
|
|
621
|
+
editorType: L.drawer,
|
|
622
|
+
keys: S(s.breadcrumb),
|
|
623
|
+
path: l.optionItems
|
|
624
|
+
},
|
|
625
|
+
editor: r.value
|
|
626
|
+
}),
|
|
627
|
+
a.name_optionitems,
|
|
628
|
+
a.label_optionitems,
|
|
629
|
+
a.isdefault_optionitems,
|
|
630
|
+
new e({ name: "value", path: l.optionItems, variable: !1, type: t.hidden }),
|
|
631
|
+
new e({ name: "to", path: l.optionItems, variable: !1, title: "@routerTo" }),
|
|
632
|
+
new e({ name: "replace", path: l.optionItems, variable: !1, title: "@routerReplace", type: t.switch }),
|
|
633
|
+
new e({ name: "useRouter", path: l.optionItems, variable: !1, title: "@useRouter", type: t.switch })
|
|
634
|
+
], N = [
|
|
635
|
+
a.debounce,
|
|
636
|
+
a.collapseTags,
|
|
637
|
+
a.tagType,
|
|
638
|
+
a.tagEffect,
|
|
639
|
+
a.collapseTagsTooltip,
|
|
640
|
+
a.maxCollapseTags,
|
|
641
|
+
a.separator,
|
|
642
|
+
a.popperClass,
|
|
643
|
+
a.teleported,
|
|
644
|
+
a.persistent,
|
|
645
|
+
a.lazy,
|
|
646
|
+
a.lazyLoad,
|
|
647
|
+
a.visibleChange,
|
|
648
|
+
a.removeTag,
|
|
649
|
+
a.empty,
|
|
650
|
+
a.emptyValues,
|
|
651
|
+
a.valueOnClear,
|
|
652
|
+
new e({ name: "defaultValue", editor: r.value, options: { showSelfValue: !1 } }),
|
|
653
|
+
new e({
|
|
654
|
+
name: "multiple",
|
|
655
|
+
type: t.switch,
|
|
656
|
+
options: { dividerTitle: "@cascaderMultipleSetting" },
|
|
657
|
+
changeFn: (n, o) => {
|
|
658
|
+
o || m(n == null ? void 0 : n.optionModel, "collapseTags", !1, !0);
|
|
659
|
+
}
|
|
660
|
+
}),
|
|
661
|
+
new e({ name: "showAllLevels", type: t.switch }),
|
|
662
|
+
new e({ name: "checkStrictly", type: t.switch }),
|
|
663
|
+
new e({
|
|
664
|
+
name: "filterable",
|
|
665
|
+
type: t.switch,
|
|
666
|
+
options: { dividerTitle: "@cascaderFilterSetting" }
|
|
667
|
+
}),
|
|
668
|
+
new e({
|
|
669
|
+
name: "filterMethod",
|
|
670
|
+
data: ["node:CascaderNode", "keyword:string"],
|
|
671
|
+
type: t.javascript,
|
|
672
|
+
variable: !1,
|
|
673
|
+
visibleFn: (n) => !!c.getOption(n, "filterable")
|
|
674
|
+
}),
|
|
675
|
+
new e({
|
|
676
|
+
name: "beforeFilter",
|
|
677
|
+
data: ["value:string"],
|
|
678
|
+
type: t.javascript,
|
|
679
|
+
variable: !1,
|
|
680
|
+
visibleFn: (n) => !!c.getOption(n, "filterable")
|
|
681
|
+
}),
|
|
682
|
+
a.textName,
|
|
683
|
+
a.optionName,
|
|
684
|
+
new e({ name: "valueProp", type: t.input, options: { dividerTitle: "@propSetting" }, visibleFn: y }),
|
|
685
|
+
new e({ name: "labelProp", type: t.input, visibleFn: y }),
|
|
686
|
+
new e({ name: "childrenProp", type: t.input, visibleFn: y }),
|
|
687
|
+
new e({ name: "disabledProp", type: t.input, visibleFn: y }),
|
|
688
|
+
new e({ name: "leafProp", type: t.input, visibleFn: y }),
|
|
689
|
+
new e({ name: "expandTrigger", type: t.radiobutton, data: tt }),
|
|
690
|
+
new e({ name: "emitPath", type: t.switch }),
|
|
691
|
+
new e({ name: "hoverThreshold", type: t.inputNumber }),
|
|
692
|
+
a.tree_optionDefault,
|
|
693
|
+
new e({ name: "expandChange", tp: i.event, data: ["expandedValues:any"], type: t.targetEvent, variable: !1, options: { passExternalArgs: !0 } }),
|
|
694
|
+
new e({ name: "clear", tp: i.event, data: [], type: t.targetEvent, variable: !1, options: { passExternalArgs: !0 } }),
|
|
695
|
+
a.relate,
|
|
696
|
+
// new PropertyConfig({ name: "change", tp: propTypeEnum.event, data: ["value:string|number"], type: PropDataType.targetEvent, variable: false }),
|
|
697
|
+
new e({
|
|
698
|
+
name: l.optionItems,
|
|
699
|
+
type: t.treeEdit,
|
|
700
|
+
variable: !1,
|
|
701
|
+
options: {
|
|
702
|
+
noRowLabel: !0,
|
|
703
|
+
newRowLabel: !0,
|
|
704
|
+
addFormItem: !1,
|
|
705
|
+
dividerTitle: "@" + l.optionItems,
|
|
706
|
+
multipleFn: (n) => {
|
|
707
|
+
var o;
|
|
708
|
+
return !!((o = n == null ? void 0 : n.optionModel) != null && o.multiple);
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
attrs: {
|
|
712
|
+
keys: S(s.cascader),
|
|
713
|
+
path: l.optionItems
|
|
714
|
+
},
|
|
715
|
+
editor: r.value,
|
|
716
|
+
changeFn: (n, o) => {
|
|
717
|
+
o === Pt.selfValue && (m(n == null ? void 0 : n.optionModel, "labelProp", "label", !0), m(n == null ? void 0 : n.optionModel, "valueProp", "value", !0), m(n == null ? void 0 : n.optionModel, "childrenProp", "children", !0), m(n == null ? void 0 : n.optionModel, "disabledProp", "disabled", !0), m(n == null ? void 0 : n.optionModel, "leafProp", "leaf", !0));
|
|
718
|
+
}
|
|
719
|
+
}),
|
|
720
|
+
a.name_optionitems,
|
|
721
|
+
a.value_optionitems,
|
|
722
|
+
a.isdefault_optionitems,
|
|
723
|
+
a.children_optionitems,
|
|
724
|
+
a.label_optionitems
|
|
725
|
+
], A = [
|
|
726
|
+
new e({
|
|
727
|
+
name: "header",
|
|
728
|
+
tp: i.slot,
|
|
729
|
+
title: "@slotHeader",
|
|
730
|
+
data: ["item:Object"],
|
|
731
|
+
type: t.html,
|
|
732
|
+
variable: !1,
|
|
733
|
+
options: { sfc: !0 },
|
|
734
|
+
visibleFn: (n) => c.getOption(n, "slotable")
|
|
735
|
+
}),
|
|
736
|
+
a.default,
|
|
737
|
+
//总是显示编辑
|
|
738
|
+
a.slotable,
|
|
739
|
+
new e({ name: "bodyStyle", title: "@cardBodyStyle", tp: i.style, type: t.json, variable: !1 }),
|
|
740
|
+
new e({ name: "showFold", title: "@cardShowFold", type: t.switch }),
|
|
741
|
+
new e({ name: "folded", title: "@cardFolded", type: t.switch }),
|
|
742
|
+
new e({ name: "shadow", title: "@cardShadow", type: t.radiobutton, data: Xa })
|
|
743
|
+
], me = (n) => c.getOption(n, "autoplay"), ye = [
|
|
744
|
+
a.height,
|
|
745
|
+
a.direction,
|
|
746
|
+
a.filterable,
|
|
747
|
+
a.debounce,
|
|
748
|
+
a.collapseTags,
|
|
749
|
+
a.tagType,
|
|
750
|
+
a.tagEffect,
|
|
751
|
+
a.collapseTagsTooltip,
|
|
752
|
+
a.maxCollapseTags,
|
|
753
|
+
a.separator,
|
|
754
|
+
a.popperClass,
|
|
755
|
+
a.teleported,
|
|
756
|
+
a.persistent,
|
|
757
|
+
a.lazy,
|
|
758
|
+
a.lazyLoad,
|
|
759
|
+
a.visibleChange,
|
|
760
|
+
a.removeTag,
|
|
761
|
+
a.empty,
|
|
762
|
+
new e({ name: "trigger", type: t.radiobutton, data: tt }),
|
|
763
|
+
new e({ name: "autoplay", type: t.switch }),
|
|
764
|
+
new e({ name: "interval", type: t.inputNumber, visibleFn: me }),
|
|
765
|
+
new e({ name: "arrow", type: t.radiobutton, data: Ya }),
|
|
766
|
+
new e({ name: "indicatorPosition", type: t.radiobutton, data: $a }),
|
|
767
|
+
new e({ name: "type", type: t.radiobutton, data: Ja }),
|
|
768
|
+
new e({ name: "loop", type: t.switch }),
|
|
769
|
+
new e({ name: "pauseOnHover", type: t.switch, visibleFn: me }),
|
|
770
|
+
//自动计算
|
|
771
|
+
new e({ name: "initialIndex", title: "@initialIndexTitle", type: t.inputNumber, visibleFn: !1 }),
|
|
772
|
+
new e({ name: "label", path: l.optionItems, type: t.html, options: { codeEdit: !0 }, attrs: { mode: K.html }, variable: !1 }),
|
|
773
|
+
new e({ name: "content", path: l.optionItems, type: t.html, options: { codeEdit: !0 }, attrs: { mode: K.html }, variable: !1 }),
|
|
774
|
+
new e({ name: "value", path: l.optionItems, variable: !1, type: t.hidden }),
|
|
775
|
+
new e({ name: "name", path: l.optionItems, variable: !1, title: "@singleName", type: t.input }),
|
|
776
|
+
new e({
|
|
777
|
+
name: l.optionItems,
|
|
778
|
+
type: t.multirow,
|
|
779
|
+
variable: !1,
|
|
780
|
+
options: {
|
|
781
|
+
noRowLabel: !0,
|
|
782
|
+
newRowLabel: !0,
|
|
783
|
+
addFormItem: !1,
|
|
784
|
+
dividerTitle: "@" + l.optionItems,
|
|
785
|
+
multipleFn: !1
|
|
786
|
+
},
|
|
787
|
+
attrs: {
|
|
788
|
+
editorType: L.drawer,
|
|
789
|
+
keys: S(s.carousel),
|
|
790
|
+
path: l.optionItems
|
|
791
|
+
},
|
|
792
|
+
editor: r.value
|
|
793
|
+
}),
|
|
794
|
+
a.isdefault_optionitems,
|
|
795
|
+
a.slotContent_optionitems
|
|
796
|
+
], Re = [
|
|
797
|
+
a.tag,
|
|
798
|
+
a.border,
|
|
799
|
+
a.displayStyle,
|
|
800
|
+
a.buttonStyle,
|
|
801
|
+
a.labelKey,
|
|
802
|
+
a.valueKey,
|
|
803
|
+
a.textName,
|
|
804
|
+
a.optionName,
|
|
805
|
+
new e({ name: "defaultValue", editor: r.value, options: { showSelfValue: !1 } }),
|
|
806
|
+
new e({
|
|
807
|
+
name: "textColor",
|
|
808
|
+
type: t.color,
|
|
809
|
+
visibleFn: (n) => !!c.getOption(n, "buttonStyle")
|
|
810
|
+
}),
|
|
811
|
+
new e({
|
|
812
|
+
name: "fill",
|
|
813
|
+
type: t.color,
|
|
814
|
+
visibleFn: (n) => !!c.getOption(n, "buttonStyle")
|
|
815
|
+
}),
|
|
816
|
+
new e({ name: "min", title: "@minCheck", type: t.inputNumber }),
|
|
817
|
+
new e({ name: "max", title: "@maxCheck", type: t.inputNumber }),
|
|
818
|
+
//#region optionItems
|
|
819
|
+
a.relate,
|
|
820
|
+
new e({
|
|
821
|
+
name: l.optionItems,
|
|
822
|
+
type: t.multirow,
|
|
823
|
+
variable: !1,
|
|
824
|
+
options: {
|
|
825
|
+
noRowLabel: !0,
|
|
826
|
+
newRowLabel: !0,
|
|
827
|
+
addFormItem: !1,
|
|
828
|
+
dividerTitle: "@" + l.optionItems,
|
|
829
|
+
multipleFn: !0
|
|
830
|
+
},
|
|
831
|
+
attrs: {
|
|
832
|
+
keys: S(s.checkbox),
|
|
833
|
+
path: l.optionItems
|
|
834
|
+
},
|
|
835
|
+
editor: r.value
|
|
836
|
+
}),
|
|
837
|
+
a.border_optionitems,
|
|
838
|
+
a.label_optionitems,
|
|
839
|
+
a.name_optionitems,
|
|
840
|
+
a.border_optionitems,
|
|
841
|
+
a.value_optionitems,
|
|
842
|
+
a.disabled_optionitems,
|
|
843
|
+
a.isdefault_optionitems
|
|
844
|
+
//#endregion
|
|
845
|
+
], ie = [
|
|
846
|
+
a.hidden,
|
|
847
|
+
a.popperClass,
|
|
848
|
+
new e({ name: "defaultValue", type: t.color, editor: r.value }),
|
|
849
|
+
new e({ name: "predefine", type: t.json, variable: !1, options: { showOptionEnable: !1 } }),
|
|
850
|
+
new e({ name: "showAlpha", type: t.switch }),
|
|
851
|
+
new e({ name: "colorFormat", type: t.radiobutton, data: v(Ln) })
|
|
852
|
+
], _e = [
|
|
853
|
+
a.accordion,
|
|
854
|
+
new e({
|
|
855
|
+
name: l.optionItems,
|
|
856
|
+
type: t.multirow,
|
|
857
|
+
variable: !1,
|
|
858
|
+
options: {
|
|
859
|
+
noRowLabel: !0,
|
|
860
|
+
newRowLabel: !0,
|
|
861
|
+
addFormItem: !1,
|
|
862
|
+
dividerTitle: "@" + l.optionItems,
|
|
863
|
+
multipleFn: (n) => !c.getOption(n, "accordion")
|
|
864
|
+
},
|
|
865
|
+
attrs: {
|
|
866
|
+
editorType: L.drawer,
|
|
867
|
+
keys: S(s.collapse),
|
|
868
|
+
path: l.optionItems,
|
|
869
|
+
tools: [d.add, d.edit, d.clone, d.delete, d.rank],
|
|
870
|
+
labelKey: "title",
|
|
871
|
+
valueKey: "name",
|
|
872
|
+
newOptionFn: () => {
|
|
873
|
+
const n = Nt(s.collapse);
|
|
874
|
+
return n.name = String(ve()), n;
|
|
875
|
+
},
|
|
876
|
+
cloneOptionFn: (n) => {
|
|
877
|
+
const o = Pe(n);
|
|
878
|
+
return o.name = String(ve()), o;
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
editor: r.value
|
|
882
|
+
}),
|
|
883
|
+
a.name_optionitems,
|
|
884
|
+
a.isdefault_optionitems,
|
|
885
|
+
a.disabled_optionitems,
|
|
886
|
+
a.title_optionitems,
|
|
887
|
+
a.content_optionitems,
|
|
888
|
+
new e({ name: "value", path: l.optionItems, variable: !1, type: t.hidden }),
|
|
889
|
+
new e({ name: "label", path: l.optionItems, variable: !1, type: t.hidden }),
|
|
890
|
+
a.slotTitle_optionitems,
|
|
891
|
+
a.slotContent_optionitems
|
|
892
|
+
], Ne = [
|
|
893
|
+
new e({
|
|
894
|
+
name: l.cols,
|
|
895
|
+
type: t.treeEdit,
|
|
896
|
+
variable: !1,
|
|
897
|
+
options: {
|
|
898
|
+
dividerTitle: "@containerSetting",
|
|
899
|
+
noRowLabel: !0,
|
|
900
|
+
newRowLabel: !0,
|
|
901
|
+
getPropValueFn: (n) => {
|
|
902
|
+
var o;
|
|
903
|
+
return (o = n == null ? void 0 : n.selectedWidget) == null ? void 0 : o.cols;
|
|
904
|
+
},
|
|
905
|
+
setPropValueFn: (n, o) => {
|
|
906
|
+
n.selectedWidget && (n.selectedWidget.cols = o);
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
attrs: {
|
|
910
|
+
editorType: L.drawer,
|
|
911
|
+
keys: S(s.cont),
|
|
912
|
+
path: l.cols,
|
|
913
|
+
valueKey: "name",
|
|
914
|
+
labelKey: "partName",
|
|
915
|
+
// childrenKey: "children",//widgetList
|
|
916
|
+
disabledKey: "disabled",
|
|
917
|
+
// dataPath: "options",
|
|
918
|
+
showEditor: !0,
|
|
919
|
+
tools: [d.add, d.edit, d.clone, d.delete, d.rank]
|
|
920
|
+
// filterOptionFn: (data: any) => {
|
|
921
|
+
// return data?.type === WidgetType.contCell;
|
|
922
|
+
// },
|
|
923
|
+
// cloneOptionFn: (option: ContCellField): ContCellField | undefined => {
|
|
924
|
+
// const { initCloneContCell } = useCont();
|
|
925
|
+
// if (!!option)
|
|
926
|
+
// return initCloneContCell(option);
|
|
927
|
+
// },
|
|
928
|
+
// newOptionFn: () => {
|
|
929
|
+
// const { initContCell } = useCont();
|
|
930
|
+
// return initContCell();
|
|
931
|
+
// }
|
|
932
|
+
}
|
|
933
|
+
}),
|
|
934
|
+
//多行树形编辑器属于主组件部分,因此需要partName配置
|
|
935
|
+
new e({ name: "partName", type: t.selectGroup, data: v(Ot), variable: !1 }),
|
|
936
|
+
new e({
|
|
937
|
+
name: "direction",
|
|
938
|
+
type: t.radiobutton,
|
|
939
|
+
data: Fe,
|
|
940
|
+
visibleFn: (n) => {
|
|
941
|
+
const o = c.getOption(n, "partName");
|
|
942
|
+
return !o || o === Ot.container;
|
|
943
|
+
},
|
|
944
|
+
variable: !1
|
|
945
|
+
}),
|
|
946
|
+
new e({ name: "cellWidth", editor: r.size, data: v(I), variable: !1 }),
|
|
947
|
+
new e({ name: "cellHeight", editor: r.size, data: v(I), variable: !1 }),
|
|
948
|
+
new e({
|
|
949
|
+
name: "direction",
|
|
950
|
+
type: t.radiobutton,
|
|
951
|
+
data: Fe,
|
|
952
|
+
path: l.cols,
|
|
953
|
+
variable: !1
|
|
954
|
+
})
|
|
955
|
+
], le = [
|
|
956
|
+
a.editable,
|
|
957
|
+
a.prefixIcon,
|
|
958
|
+
a.suffixIcon,
|
|
959
|
+
a.clearIcon,
|
|
960
|
+
a.teleported,
|
|
961
|
+
a.popperClass,
|
|
962
|
+
a.popperOptions,
|
|
963
|
+
a.visibleChange,
|
|
964
|
+
a.panelChange,
|
|
965
|
+
a.calendarChange,
|
|
966
|
+
a.disabledDate,
|
|
967
|
+
a.shortcuts,
|
|
968
|
+
a.cellClassName,
|
|
969
|
+
a.rangeSeparator,
|
|
970
|
+
new e({ name: "type", title: "@displayType", type: t.radiobutton, data: Za }),
|
|
971
|
+
new e({ name: "defaultValue", type: t.date, editor: r.value, attrs: { format: "YY/MM/DD" } }),
|
|
972
|
+
new e({ name: "defaultTime", type: t.time, editor: r.value }),
|
|
973
|
+
new e({ name: "format", type: t.selectGroup, data: v(ue), attrs: { filterable: !0, allowCreate: !0 } }),
|
|
974
|
+
new e({
|
|
975
|
+
name: "valueFormat",
|
|
976
|
+
type: t.selectGroup,
|
|
977
|
+
data: [
|
|
978
|
+
{ value: ue.date1, text: ue.date1 },
|
|
979
|
+
{ value: ue.date4, text: ue.date4 }
|
|
980
|
+
],
|
|
981
|
+
attrs: { filterable: !0, allowCreate: !0 }
|
|
982
|
+
}),
|
|
983
|
+
new e({
|
|
984
|
+
name: "default",
|
|
985
|
+
widgetType: [s.datePicker, s.datePickerRange],
|
|
986
|
+
title: "@slotDefault",
|
|
987
|
+
data: [`cell:{
|
|
988
|
+
column: Number,
|
|
989
|
+
customClass: String,
|
|
990
|
+
disabled: Boolean,
|
|
991
|
+
end: Boolean,
|
|
992
|
+
inRange: Boolean,
|
|
993
|
+
row: Number,
|
|
994
|
+
selected: Dayjs,
|
|
995
|
+
isCurrent: Boolean,
|
|
996
|
+
isSelected: Boolean,
|
|
997
|
+
start: Boolean,
|
|
998
|
+
text: Number,
|
|
999
|
+
timestamp: Number,
|
|
1000
|
+
date: Date,
|
|
1001
|
+
dayjs: Dayjs,
|
|
1002
|
+
type: 'normal' | 'today' | 'week' | 'next-month' | 'prev-month'
|
|
1003
|
+
}`],
|
|
1004
|
+
type: t.html,
|
|
1005
|
+
variable: !1,
|
|
1006
|
+
options: { sfc: !0 }
|
|
1007
|
+
}),
|
|
1008
|
+
new e({ name: "placeholder", visibleFn: !1 })
|
|
1009
|
+
], je = [
|
|
1010
|
+
a.editable,
|
|
1011
|
+
a.prefixIcon,
|
|
1012
|
+
a.suffixIcon,
|
|
1013
|
+
a.clearIcon,
|
|
1014
|
+
a.teleported,
|
|
1015
|
+
a.popperClass,
|
|
1016
|
+
a.popperOptions,
|
|
1017
|
+
a.visibleChange,
|
|
1018
|
+
a.panelChange,
|
|
1019
|
+
a.calendarChange,
|
|
1020
|
+
a.default,
|
|
1021
|
+
a.cellClassName,
|
|
1022
|
+
a.startPlaceholder,
|
|
1023
|
+
a.endPlaceholder,
|
|
1024
|
+
a.rangeSeparator,
|
|
1025
|
+
a.shortcuts,
|
|
1026
|
+
a.timeValueFormat,
|
|
1027
|
+
a.disabledDate,
|
|
1028
|
+
new e({ name: "unlinkPanels", type: t.switch }),
|
|
1029
|
+
new e({ name: "type", title: "@displayType", type: t.radiobutton, data: en }),
|
|
1030
|
+
new e({ name: "defaultValue", type: t.date, editor: r.value, attrs: { isRange: !0, type: "daterange", format: "YY/MM/DD" } }),
|
|
1031
|
+
new e({ name: "defaultTime", type: t.time, editor: r.value, attrs: { isRange: !0 } }),
|
|
1032
|
+
new e({ name: "format", type: t.selectGroup, data: v(ue), attrs: { filterable: !0, allowCreate: !0 } })
|
|
1033
|
+
// new PropertyConfig({
|
|
1034
|
+
// name: "valueFormat", type: PropType.selectGroup,
|
|
1035
|
+
// data: [
|
|
1036
|
+
// { value: DateFormatType.date1, text: DateFormatType.date1 },
|
|
1037
|
+
// { value: DateFormatType.date4, text: DateFormatType.date4 },
|
|
1038
|
+
// ],
|
|
1039
|
+
// attrs: { filterable: true, allowCreate: true }
|
|
1040
|
+
// }),
|
|
1041
|
+
], fe = (n) => c.getOption(n, "slotable"), oe = [
|
|
1042
|
+
a.border,
|
|
1043
|
+
a.direction,
|
|
1044
|
+
a.slotable,
|
|
1045
|
+
new e({ name: "column", type: t.inputNumber }),
|
|
1046
|
+
new e({ name: "title", title: "@despTitle", options: { tipContent: "@despTitleHelp" } }),
|
|
1047
|
+
new e({ name: "extra", title: "@despExtra", options: { tipContent: "@despExtraHelp" } }),
|
|
1048
|
+
// new PropertyConfig({ name: "label", title: "@label", type: PropType.html, options: { newRowLabel: true } }),
|
|
1049
|
+
new e({ name: "slotTitle", tp: i.slot, title: "@despTitle", data: [], type: t.html, variable: !1, options: { sfc: !0 }, visibleFn: fe }),
|
|
1050
|
+
new e({ name: "slotExtra", tp: i.slot, title: "@despExtra", data: [], type: t.html, variable: !1, options: { sfc: !0 }, visibleFn: fe }),
|
|
1051
|
+
new e({
|
|
1052
|
+
name: l.optionItems,
|
|
1053
|
+
type: t.multirow,
|
|
1054
|
+
variable: !1,
|
|
1055
|
+
options: {
|
|
1056
|
+
noRowLabel: !0,
|
|
1057
|
+
newRowLabel: !0,
|
|
1058
|
+
addFormItem: !1,
|
|
1059
|
+
dividerTitle: "@" + l.optionItems
|
|
1060
|
+
},
|
|
1061
|
+
attrs: {
|
|
1062
|
+
tools: [d.rank, d.add, d.clone, d.delete, d.import, d.edit],
|
|
1063
|
+
editorType: L.drawer,
|
|
1064
|
+
keys: S(s.descriptions),
|
|
1065
|
+
path: l.optionItems
|
|
1066
|
+
},
|
|
1067
|
+
editor: r.value
|
|
1068
|
+
}),
|
|
1069
|
+
new e({ name: "value", path: l.optionItems, variable: !1, type: t.hidden }),
|
|
1070
|
+
new e({ name: "span", path: l.optionItems, variable: !1, type: t.inputNumber }),
|
|
1071
|
+
new e({ name: "content", path: l.optionItems, variable: !0, title: "@content", type: t.html, options: { codeEdit: !0 }, attrs: { mode: K.html } }),
|
|
1072
|
+
a.name_optionitems,
|
|
1073
|
+
a.label_optionitems_1,
|
|
1074
|
+
a.isdefault_optionitems,
|
|
1075
|
+
a.width_optionitems,
|
|
1076
|
+
a.minWidth_optionitems,
|
|
1077
|
+
a.align_optionitems,
|
|
1078
|
+
a.labelAlign_optionitems,
|
|
1079
|
+
a.className_optionitems,
|
|
1080
|
+
a.labelClassName_optionitems
|
|
1081
|
+
], Le = [
|
|
1082
|
+
a.popperClass,
|
|
1083
|
+
a.placement,
|
|
1084
|
+
a.popperOptions,
|
|
1085
|
+
a.teleported,
|
|
1086
|
+
a.visibleChange,
|
|
1087
|
+
a.content,
|
|
1088
|
+
a.maxHeight,
|
|
1089
|
+
a.slotable,
|
|
1090
|
+
new e({
|
|
1091
|
+
name: "type",
|
|
1092
|
+
title: "@displayType",
|
|
1093
|
+
type: t.selectGroup,
|
|
1094
|
+
data: ze,
|
|
1095
|
+
visibleFn: (n) => !!c.getOption(n, "splitButton")
|
|
1096
|
+
}),
|
|
1097
|
+
new e({ name: "splitButton", type: t.switch }),
|
|
1098
|
+
new e({ name: "trigger", type: t.radiobutton, data: tn }),
|
|
1099
|
+
new e({ name: "hideOnClick", type: t.switch }),
|
|
1100
|
+
new e({
|
|
1101
|
+
name: "showTimeout",
|
|
1102
|
+
type: t.inputNumber,
|
|
1103
|
+
visibleFn: (n) => c.getOption(n, "trigger") === St.hover
|
|
1104
|
+
}),
|
|
1105
|
+
new e({
|
|
1106
|
+
name: "hideTimeout",
|
|
1107
|
+
type: t.inputNumber,
|
|
1108
|
+
visibleFn: (n) => c.getOption(n, "trigger") === St.hover
|
|
1109
|
+
}),
|
|
1110
|
+
new e({ name: "role", tp: i.other }),
|
|
1111
|
+
new e({ tp: i.event, name: "command", title: "eq", data: ["command", "commandObject", "commandEvent"], type: t.targetEvent, variable: !1 }),
|
|
1112
|
+
new e({ name: "divided", path: l.optionItems, variable: !1, type: t.switch }),
|
|
1113
|
+
new e({ name: "command", path: l.optionItems, variable: !1 }),
|
|
1114
|
+
new e({ name: "value", path: l.optionItems, variable: !1, type: t.hidden }),
|
|
1115
|
+
new e({
|
|
1116
|
+
name: l.optionItems,
|
|
1117
|
+
type: t.multirow,
|
|
1118
|
+
variable: !1,
|
|
1119
|
+
options: {
|
|
1120
|
+
noRowLabel: !0,
|
|
1121
|
+
newRowLabel: !0,
|
|
1122
|
+
addFormItem: !1,
|
|
1123
|
+
dividerTitle: "@" + l.optionItems
|
|
1124
|
+
},
|
|
1125
|
+
attrs: {
|
|
1126
|
+
tools: [d.rank, d.add, d.clone, d.delete, d.import, d.edit],
|
|
1127
|
+
editorType: L.drawer,
|
|
1128
|
+
keys: S(s.dropdown),
|
|
1129
|
+
path: l.optionItems
|
|
1130
|
+
},
|
|
1131
|
+
editor: r.value
|
|
1132
|
+
}),
|
|
1133
|
+
a.name_optionitems,
|
|
1134
|
+
a.label_optionitems,
|
|
1135
|
+
a.disabled_optionitems,
|
|
1136
|
+
a.icon_optionitems,
|
|
1137
|
+
a.isdefault_optionitems
|
|
1138
|
+
], ke = [
|
|
1139
|
+
a.default,
|
|
1140
|
+
a.content,
|
|
1141
|
+
a.direction,
|
|
1142
|
+
// new PropertyConfig({ name: "hidden", tp: propTypeEnum.advanced, type: PropDataType.switch }),
|
|
1143
|
+
new e({ name: "contentPosition", type: t.radiobutton, data: Ce }),
|
|
1144
|
+
new e({ name: "borderStyle", type: t.selectGroup, data: an })
|
|
1145
|
+
], he = [
|
|
1146
|
+
a.width,
|
|
1147
|
+
a.draggable,
|
|
1148
|
+
new e({ name: "defaultValue", editor: r.value, type: t.switch }),
|
|
1149
|
+
new e({ name: "title" }),
|
|
1150
|
+
new e({ name: "label" }),
|
|
1151
|
+
new e({ name: "fullscreen", type: t.switch }),
|
|
1152
|
+
new e({ name: "top", editor: r.size, data: v(I) }),
|
|
1153
|
+
new e({ name: "modal", type: t.switch }),
|
|
1154
|
+
new e({ name: "modalClass", tp: i.popper, editor: r.customClass, variable: !1, type: t.selectGroup, options: { tipContent: "@customClassHelp" } }),
|
|
1155
|
+
new e({ name: "appendToBody", tp: i.popper, type: t.switch }),
|
|
1156
|
+
new e({ name: "appendTo", tp: i.popper }),
|
|
1157
|
+
new e({ name: "lockScroll", type: t.switch }),
|
|
1158
|
+
new e({ name: "overflow", type: t.switch }),
|
|
1159
|
+
new e({ name: "center", type: t.switch }),
|
|
1160
|
+
new e({ name: "alignCenter", type: t.switch }),
|
|
1161
|
+
new e({ name: "showClose", type: t.switch, options: { dividerTitle: "@dialogCloseSetting" } }),
|
|
1162
|
+
new e({ name: "destroyOnClose", type: t.switch }),
|
|
1163
|
+
new e({ name: "openDelay", type: t.inputNumber }),
|
|
1164
|
+
new e({ name: "closeDelay", type: t.inputNumber }),
|
|
1165
|
+
new e({ name: "closeOnClickModal", type: t.switch }),
|
|
1166
|
+
new e({ name: "closeOnPressEscape", type: t.switch }),
|
|
1167
|
+
new e({ name: "zIndex", tp: i.popper, type: t.inputNumber }),
|
|
1168
|
+
//new PropertyConfig({ name: "headerAriaLevel" }),
|
|
1169
|
+
new e({ name: "closeIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
1170
|
+
new e({ name: "header", title: "@slotHeader", tp: i.slot, data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1171
|
+
new e({ name: "footer", title: "@slotFooter", tp: i.slot, data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1172
|
+
new e({ name: "default", title: "@slotDefault", tp: i.slot, data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1173
|
+
new e({ name: "beforeClose", data: ["done: DoneFn"], type: t.javascript, variable: !1 }),
|
|
1174
|
+
new e({ name: "open", tp: i.event, data: [], type: t.targetEvent, variable: !1 }),
|
|
1175
|
+
new e({ name: "opened", tp: i.event, data: [], type: t.targetEvent, variable: !1 }),
|
|
1176
|
+
new e({ name: "close", tp: i.event, data: [], type: t.targetEvent, variable: !1 }),
|
|
1177
|
+
new e({ name: "closed", tp: i.event, data: [], type: t.targetEvent, variable: !1 }),
|
|
1178
|
+
new e({ name: "openAutoFocus", tp: i.event, data: [], type: t.targetEvent, variable: !1 }),
|
|
1179
|
+
new e({ name: "closeAutoFocus", tp: i.event, data: [], type: t.targetEvent, variable: !1 }),
|
|
1180
|
+
new e({ name: "withHeader", type: t.switch }),
|
|
1181
|
+
new e({ name: "direction", type: t.selectGroup, data: nn }),
|
|
1182
|
+
new e({ name: "size", editor: r.size, data: v(I) })
|
|
1183
|
+
], Me = [
|
|
1184
|
+
new e({ name: "width", editor: r.size, variable: !1, data: v(I) }),
|
|
1185
|
+
new e({ name: "height", editor: r.size, variable: !1, data: v(I) }),
|
|
1186
|
+
new e({ name: "title", variable: !1 }),
|
|
1187
|
+
new e({ name: "fullscreen", type: t.switch, variable: !1 }),
|
|
1188
|
+
new e({ name: "url", variable: !1 }),
|
|
1189
|
+
new e({ name: "windowModal", type: t.radiobutton, data: ln, variable: !1 }),
|
|
1190
|
+
new e({ name: "windowTarget", type: t.selectGroup, data: on, variable: !1, attrs: { allowCreate: !0, filterable: !0, placeholder: T.i18nt("designer.hint.inputIframeId") } }),
|
|
1191
|
+
new e({ name: "withQuery", type: t.switch, variable: !1 }),
|
|
1192
|
+
new e({ name: "encodeQuery", type: t.switch, variable: !1 }),
|
|
1193
|
+
new e({ name: "setQueryFn", data: ["data:{urlQuery:any,rowScope:any,formData:any}", "exp:any"], type: t.javascript, variable: !1, options: { addFormItem: !0, codeEdit: !0 } }),
|
|
1194
|
+
new e({ name: "target", title: "@windowTatget", type: t.switch, variable: !1 }),
|
|
1195
|
+
new e({ name: "dialogType", type: t.selectGroup, variable: !1, data: sn, attrs: { multiple: !0 } })
|
|
1196
|
+
], p = [
|
|
1197
|
+
new e({ name: "schemaParamName", variable: !1, options: { tipContent: "@schemaParamNameHelp" }, attrs: { value: "_formData" } }),
|
|
1198
|
+
new e({ name: "beforeFetch", data: ["formData:any", "arg:{urlQuery:any,rowScope:any,formData:any}", "exp:{...args:any,ctx:any}"], type: t.javascript, variable: !1, options: { tipContent: "@beforeFetchHelp", newRowLabel: !1, addFormItem: !0, codeEdit: !0 }, attrs: { minLines: 5 } }),
|
|
1199
|
+
new e({ name: "afterFetch", data: ["wId:string", "respValue:any", "respData:any", "arg:{urlQuery:any,rowScope:any,formData:any}", "exp:{...args:any,ctx:any}"], type: t.javascript, variable: !1, options: { tipContent: "@afterFetchHelp", newRowLabel: !1, addFormItem: !0, codeEdit: !0 }, attrs: { minLines: 5 } })
|
|
1200
|
+
], P = [
|
|
1201
|
+
new e({ name: "beforeFetch", data: ["formData:any", "arg:{urlQuery:any,rowScope:any,formData:any}", "exp:{...args:any,ctx:Object}"], type: t.javascript, variable: !1, options: { tipContent: "@beforeFetchHelp", newRowLabel: !1, addFormItem: !0, codeEdit: !0 }, attrs: { minLines: 5 } }),
|
|
1202
|
+
new e({ name: "afterFetch", data: ["respValue:any", "respData:any", "arg:{urlQuery:any,rowScope:any,formData:any}", "exp:{...args:any,ctx:any}"], type: t.javascript, variable: !1, options: { tipContent: "@afterFetchHelp", newRowLabel: !1, addFormItem: !0, codeEdit: !0 }, attrs: { minLines: 5 } })
|
|
1203
|
+
], x = [
|
|
1204
|
+
a.content,
|
|
1205
|
+
a.default,
|
|
1206
|
+
a.empty,
|
|
1207
|
+
new e({ name: "image" }),
|
|
1208
|
+
new e({ name: "imageSize", type: t.inputNumber }),
|
|
1209
|
+
new e({ name: "description", type: t.textarea }),
|
|
1210
|
+
new e({ name: "label", type: t.hidden })
|
|
1211
|
+
], _ = [
|
|
1212
|
+
a.height,
|
|
1213
|
+
a.maxHeight,
|
|
1214
|
+
a.border,
|
|
1215
|
+
a.emptyText,
|
|
1216
|
+
a.lazy,
|
|
1217
|
+
a.mixData(),
|
|
1218
|
+
new e({ name: "stripe", type: t.switch }),
|
|
1219
|
+
new e({ name: "fit", type: t.switch }),
|
|
1220
|
+
new e({ name: "showHeader", type: t.switch }),
|
|
1221
|
+
new e({ name: "highlightCurrentRow", type: t.switch, options: { dividerTitle: "@tableRowTitle" } }),
|
|
1222
|
+
new e({ name: "currentRowKey" }),
|
|
1223
|
+
new e({ name: "rowClassName", tp: i.style, type: t.javascript, data: ["data: { row: any, rowIndex: number }"], variable: !1 }),
|
|
1224
|
+
new e({ name: "rowStyle", tp: i.style, type: t.javascript, data: ["data: { row: any, rowIndex: number }"], variable: !1 }),
|
|
1225
|
+
new e({ name: "headerRowClassName", tp: i.style, type: t.javascript, data: ["data: { row: any, rowIndex: number }"], variable: !1 }),
|
|
1226
|
+
new e({ name: "headerRowStyle", tp: i.style, type: t.javascript, data: ["data: { row: any, rowIndex: number }"], variable: !1 }),
|
|
1227
|
+
new e({ name: "rowKey", type: t.javascript, data: ["row: any"], variable: !1 }),
|
|
1228
|
+
new e({ name: "cellClassName", tp: i.style, type: t.javascript, data: ["data: { row: any, column: any, rowIndex: number, columnIndex: number }"], options: { dividerTitle: "@tableCellTitle" }, variable: !1 }),
|
|
1229
|
+
new e({ name: "cellStyle", tp: i.style, type: t.javascript, data: ["data: { row: any, column: any, rowIndex: number, columnIndex: number }"], variable: !1 }),
|
|
1230
|
+
new e({ name: "headerCellClassName", tp: i.style, type: t.javascript, data: ["data: { row: any, column: any, rowIndex: number, columnIndex: number }"], variable: !1 }),
|
|
1231
|
+
new e({ name: "headerCellStyle", tp: i.style, type: t.javascript, variable: !1, data: ["data: { row: any, column: any, rowIndex: number, columnIndex: number }"] }),
|
|
1232
|
+
new e({ name: "defaultExpandAll", type: t.switch }),
|
|
1233
|
+
new e({ name: "expandRowKeys", type: t.json, variable: !1, options: { showOptionEnable: !1 } }),
|
|
1234
|
+
new e({ name: "defaultSort", type: t.json, variable: !1, options: { showOptionEnable: !1 } }),
|
|
1235
|
+
new e({ name: "showOverflowTooltip", tp: i.popper, type: t.switch }),
|
|
1236
|
+
new e({ name: "tooltipEffect", tp: i.popper, type: t.radiobutton, data: It }),
|
|
1237
|
+
new e({ name: "tooltipOptions", tp: i.popper, type: t.json, variable: !1, options: { showOptionEnable: !1 } }),
|
|
1238
|
+
new e({ name: "showSummary", type: t.switch, options: { dividerTitle: "@tableSumTitle" } }),
|
|
1239
|
+
new e({ name: "sumText" }),
|
|
1240
|
+
new e({ name: "summaryMethod", data: ["data: { columns: any[], data: any[] }"], type: t.javascript, variable: !1 }),
|
|
1241
|
+
//分页器
|
|
1242
|
+
new e({ name: "allowPage", type: t.switch, tp: i.advanced, options: { dividerTitle: "@tablePagerTitle" } }),
|
|
1243
|
+
new e({ name: "pageSize", type: t.inputNumber, tp: i.advanced }),
|
|
1244
|
+
new e({ name: "hideOnSinglePage", type: t.switch, tp: i.advanced }),
|
|
1245
|
+
new e({ name: "pageSizes", type: t.json, tp: i.advanced, variable: !1, options: { showOptionEnable: !1 } }),
|
|
1246
|
+
new e({ name: "layout", type: t.selectGroup, tp: i.advanced, data: Rt, attrs: { multiple: !0 } }),
|
|
1247
|
+
new e({ name: "spanMethod", tp: i.event, data: ["data: { row: any, column: any, rowIndex: number, columnIndex: number }"], type: t.targetEvent, variable: !1 }),
|
|
1248
|
+
new e({ name: "selectOnIndeterminate", type: t.switch }),
|
|
1249
|
+
new e({ name: "indent", type: t.inputNumber }),
|
|
1250
|
+
new e({ name: "load", tp: i.event, data: ["row:any", "treeNode:TreeNode", "resolve:Function"], title: "@tableLoad", type: t.targetEvent, variable: !1, visibleFn: F }),
|
|
1251
|
+
new e({ name: "treeProps", type: t.json, variable: !1, options: { dividerTitle: "@tableTreeTitle", showOptionEnable: !1 } }),
|
|
1252
|
+
new e({ name: "tableLayout", type: t.radiobutton, data: rn }),
|
|
1253
|
+
new e({ name: "scrollbarAlwaysOn", type: t.switch }),
|
|
1254
|
+
new e({ name: "flexible", type: t.switch }),
|
|
1255
|
+
new e({ name: "select", tp: i.event, data: ["selection: any[]", "row: any"], type: t.targetEvent, variable: !1 }),
|
|
1256
|
+
new e({ name: "selectAll", tp: i.event, data: ["selection: any[]"], type: t.targetEvent, variable: !1 }),
|
|
1257
|
+
new e({ name: "selectionChange", tp: i.event, data: ["newSelection: any[]"], type: t.targetEvent, variable: !1 }),
|
|
1258
|
+
new e({ name: "cellMouseEnter", tp: i.event, data: ["row: any", "column: any", "cell: HTMLTableCellElement", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1259
|
+
new e({ name: "cellMouseLeave", tp: i.event, data: ["row: any", "column: any", "cell: HTMLTableCellElement", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1260
|
+
new e({ name: "cellClick", tp: i.event, data: ["row: any", "column: any", "cell: HTMLTableCellElement", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1261
|
+
new e({ name: "cellDblclick", tp: i.event, data: ["row: any", "column: any", "cell: HTMLTableCellElement", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1262
|
+
new e({ name: "cellContextmenu", tp: i.event, data: ["row: any", "column: any", "cell: HTMLTableCellElement", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1263
|
+
new e({ name: "rowClick", tp: i.event, data: ["row: any", "column: any", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1264
|
+
new e({ name: "rowContextmenu", tp: i.event, data: ["row: any", "column: any", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1265
|
+
new e({ name: "rowDblclick", tp: i.event, data: ["row: any", "column: any", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1266
|
+
new e({ name: "headerClick", tp: i.event, data: ["column: any", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1267
|
+
new e({ name: "headerContextmenu", tp: i.event, data: ["column: any", "event: Event"], type: t.targetEvent, variable: !1 }),
|
|
1268
|
+
new e({ name: "sortChange", tp: i.event, data: ["data: {column: any, prop: string, order: any }"], type: t.targetEvent, variable: !1 }),
|
|
1269
|
+
new e({ name: "filterChange", tp: i.event, data: ["newFilters: any"], type: t.targetEvent, variable: !1 }),
|
|
1270
|
+
new e({ name: "currentChange", tp: i.event, data: ["currentRow: any", "oldCurrentRow: any"], type: t.targetEvent, variable: !1 }),
|
|
1271
|
+
new e({ name: "headerDragend", tp: i.event, data: ["newWidth: number", "oldWidth: number", "column: any", "event: MouseEvent"], type: t.targetEvent, variable: !1 }),
|
|
1272
|
+
new e({ name: "expandChange", tp: i.event, data: ["row: any", "expandedRows: any[]"], type: t.targetEvent, variable: !1 }),
|
|
1273
|
+
new e({ name: "default", tp: i.slot, title: "@slotDefault", data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1274
|
+
new e({ name: "append", tp: i.slot, title: "@slotAppend", data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1275
|
+
new e({ name: "empty", tp: i.slot, title: "@slotEmpty", data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1276
|
+
new e({
|
|
1277
|
+
name: l.optionItems,
|
|
1278
|
+
type: t.treeEdit,
|
|
1279
|
+
variable: !1,
|
|
1280
|
+
options: {
|
|
1281
|
+
noRowLabel: !0,
|
|
1282
|
+
newRowLabel: !0,
|
|
1283
|
+
dividerTitle: "@" + l.optionItems,
|
|
1284
|
+
multiple: void 0
|
|
1285
|
+
},
|
|
1286
|
+
attrs: {
|
|
1287
|
+
editorType: L.drawer,
|
|
1288
|
+
keys: S(s.eltable),
|
|
1289
|
+
path: l.optionItems
|
|
1290
|
+
}
|
|
1291
|
+
}),
|
|
1292
|
+
//#region eltable-col
|
|
1293
|
+
new e({ name: "prop", path: l.optionItems, variable: !1 }),
|
|
1294
|
+
new e({ name: "type", path: l.optionItems, tp: i.advanced, type: t.radiobutton, variable: !1, data: pn }),
|
|
1295
|
+
new e({
|
|
1296
|
+
name: "index",
|
|
1297
|
+
path: l.optionItems,
|
|
1298
|
+
tp: i.event,
|
|
1299
|
+
data: ["index:number"],
|
|
1300
|
+
type: t.targetEvent,
|
|
1301
|
+
variable: !1,
|
|
1302
|
+
visibleFn: (n) => c.getOption(n, "type") === dn.index
|
|
1303
|
+
}),
|
|
1304
|
+
new e({ name: "label", path: l.optionItems, variable: !1 }),
|
|
1305
|
+
new e({ name: "columnKey", path: l.optionItems, variable: !1 }),
|
|
1306
|
+
new e({ name: "width", path: l.optionItems, editor: r.size, variable: !1, data: v(I) }),
|
|
1307
|
+
new e({ name: "minWidth", path: l.optionItems, editor: r.size, variable: !1, data: v(I) }),
|
|
1308
|
+
new e({ name: "fixed", path: l.optionItems, type: t.switch, variable: !1 }),
|
|
1309
|
+
new e({ name: "renderHeader", path: l.optionItems, tp: i.event, data: ["data:any"], type: t.targetEvent, variable: !1 }),
|
|
1310
|
+
new e({ name: "sortable", path: l.optionItems, type: t.switch, variable: !1, options: { dividerTitle: "@dataSort" } }),
|
|
1311
|
+
new e({ name: "sortMethod", path: l.optionItems, tp: i.event, data: ["a:any", "b:any"], type: t.targetEvent, variable: !1 }),
|
|
1312
|
+
new e({ name: "sortBy", path: l.optionItems, tp: i.event, data: ["row:any", "index:number"], type: t.targetEvent, variable: !1 }),
|
|
1313
|
+
new e({ name: "sortOrders", path: l.optionItems, tp: i.advanced, type: t.json, variable: !1, options: { showOptionEnable: !1 } }),
|
|
1314
|
+
new e({ name: "resizable", path: l.optionItems, type: t.switch, variable: !1 }),
|
|
1315
|
+
new e({ name: "formatter", path: l.optionItems, tp: i.event, data: ["row:any", "column:any", "cellValue:any", "index:number"], type: t.targetEvent, variable: !1 }),
|
|
1316
|
+
new e({ name: "showOverflowTooltip", path: l.optionItems, type: t.switch, variable: !1 }),
|
|
1317
|
+
new e({ name: "align", path: l.optionItems, tp: i.advanced, type: t.radiobutton, variable: !1, data: Ce }),
|
|
1318
|
+
new e({ name: "headerAlign", path: l.optionItems, tp: i.advanced, type: t.radiobutton, variable: !1, data: Ce }),
|
|
1319
|
+
new e({ name: "className", tp: i.advanced, path: l.optionItems, editor: r.customClass, variable: !1, type: t.selectGroup }),
|
|
1320
|
+
new e({ name: "labelClassName", tp: i.advanced, path: l.optionItems, editor: r.customClass, variable: !1, type: t.selectGroup }),
|
|
1321
|
+
new e({ name: "selectable", path: l.optionItems, tp: i.event, data: ["row:any", "index:number"], type: t.targetEvent, variable: !1 }),
|
|
1322
|
+
new e({ name: "reserveSelection", path: l.optionItems, type: t.switch, variable: !1, options: { tipContent: "@reserveSelectionHelp" } }),
|
|
1323
|
+
new e({ name: "filters", path: l.optionItems, tp: i.advanced, type: t.json, variable: !1, options: { dividerTitle: "@dataFilter", showOptionEnable: !1 } }),
|
|
1324
|
+
new e({ name: "filterPlacement", path: l.optionItems, tp: i.advanced, type: t.radio, variable: !1, data: Ze }),
|
|
1325
|
+
new e({ name: "filterClassName", tp: i.advanced, path: l.optionItems, editor: r.customClass, variable: !1, type: t.selectGroup }),
|
|
1326
|
+
new e({ name: "filterMultiple", path: l.optionItems, type: t.switch, variable: !1, options: { tipContent: "@filterMultipleHelp" } }),
|
|
1327
|
+
new e({ name: "filterMethod", path: l.optionItems, tp: i.event, data: ["value:any", "row:any", "column:any"], type: t.targetEvent, variable: !1 }),
|
|
1328
|
+
new e({ name: "filteredValue", path: l.optionItems, tp: i.advanced, type: t.json, variable: !1, options: { showOptionEnable: !1, tipContent: "@filteredValueHelp" } }),
|
|
1329
|
+
new e({ name: "header", title: "@slotHeader", path: l.optionItems, data: ["scope:Object", "ctx:Object"], type: t.html, variable: !1, options: { sfc: !0, dividerTitle: "@dataSlot" } }),
|
|
1330
|
+
new e({ name: "default", title: "@slotDefault", path: l.optionItems, data: ["scope:Object", "ctx:Object"], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1331
|
+
new e({ name: "slotable", path: l.optionItems, type: t.switch, variable: !1 })
|
|
1332
|
+
//#endregion
|
|
1333
|
+
], H = [
|
|
1334
|
+
a.labelAlign,
|
|
1335
|
+
a.labelPosition,
|
|
1336
|
+
a.labelWidth,
|
|
1337
|
+
a.showMessage,
|
|
1338
|
+
a.inlineMessage,
|
|
1339
|
+
a.default,
|
|
1340
|
+
a.customClass,
|
|
1341
|
+
new e({ name: "loadDataWhenInit", type: t.switch }),
|
|
1342
|
+
new e({ name: "inline", type: t.switch, title: "@formInline" }),
|
|
1343
|
+
new e({ name: "modelName", title: "@formModelName", options: { dividerTitle: "@formSFCSetting" } }),
|
|
1344
|
+
new e({ name: "refName", title: "@formRefName" }),
|
|
1345
|
+
new e({ name: "rulesName", title: "@formRulesName" }),
|
|
1346
|
+
new e({ name: "formCreated", tp: i.event, type: t.javascript, variable: !1 }),
|
|
1347
|
+
new e({ name: "formMounted", tp: i.event, type: t.javascript, variable: !1 }),
|
|
1348
|
+
new e({ name: "formDataChange", tp: i.event, type: t.javascript, variable: !1, data: ["field:{fieldName:string, newValue:object|null, oldValue:object|null}", "formModel:object"] }),
|
|
1349
|
+
new e({ name: "validate", tp: i.event, type: t.javascript, variable: !1, data: ["prop: FormItemProp", "isValid: boolean", "message: string"] }),
|
|
1350
|
+
new e({ name: "formDataLoaded", tp: i.event, type: t.javascript, variable: !1, data: ["oldFormData:object|null", "newFormData:object|null"] }),
|
|
1351
|
+
new e({ name: "needFormAdd", tp: i.event, type: t.javascript, variable: !1, data: ["formData:object|null"] }),
|
|
1352
|
+
new e({ name: "labelSuffix", tp: i.label }),
|
|
1353
|
+
new e({ name: "hideRequiredAsterisk", type: t.switch, tp: i.valid }),
|
|
1354
|
+
new e({ name: "requireAsteriskPosition", type: t.radiobutton, tp: i.valid, data: mn }),
|
|
1355
|
+
new e({ name: "validateOnRuleChange", tp: i.valid, type: t.switch }),
|
|
1356
|
+
new e({ name: "size", type: t.radiobutton, data: cn, tp: i.advanced }),
|
|
1357
|
+
new e({ name: "disabled", type: t.switch }),
|
|
1358
|
+
new e({ name: "scrollToError", tp: i.valid, type: t.switch, options: { tipContent: "@scrollToErrorHelp" } }),
|
|
1359
|
+
new e({ name: "scrollIntoViewOptions", tp: i.valid, type: t.json, variable: !1, options: { showOptionEnable: !1, tipContent: "@scrollIntoViewOptionsHelp" } }),
|
|
1360
|
+
new e({ name: "statusIcon", tp: i.valid, type: t.switch }),
|
|
1361
|
+
a.mixData("newDataSource"),
|
|
1362
|
+
a.mixData("editDataSource")
|
|
1363
|
+
], Y = () => Z(() => import("./item-ddbdee11.js")), j = [
|
|
1364
|
+
a.tag,
|
|
1365
|
+
new e({ name: "gutter", type: t.inputNumber }),
|
|
1366
|
+
new e({ name: "justify", type: t.selectGroup, data: un }),
|
|
1367
|
+
new e({ name: "align", title: "@flexAlign", type: t.selectGroup, data: wn }),
|
|
1368
|
+
new e({ name: "colHeight", title: "@gridColHeight", editor: r.size, data: v(I, [I.auto, I.em, I.px]) }),
|
|
1369
|
+
new e({
|
|
1370
|
+
name: "cols",
|
|
1371
|
+
type: t.multirow,
|
|
1372
|
+
variable: !1,
|
|
1373
|
+
options: {
|
|
1374
|
+
dividerTitle: "@columnSetting",
|
|
1375
|
+
multipleFn: !1,
|
|
1376
|
+
noRowLabel: !0,
|
|
1377
|
+
newRowLabel: !0,
|
|
1378
|
+
getPropValueFn: (n) => {
|
|
1379
|
+
var o;
|
|
1380
|
+
return (o = n == null ? void 0 : n.selectedWidget) == null ? void 0 : o.cols;
|
|
1381
|
+
},
|
|
1382
|
+
setPropValueFn: (n, o) => {
|
|
1383
|
+
n.selectedWidget && (n.selectedWidget.cols = o);
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
attrs: {
|
|
1387
|
+
keys: S(s.grid),
|
|
1388
|
+
path: l.cols,
|
|
1389
|
+
valueKey: "name",
|
|
1390
|
+
dataPath: "options",
|
|
1391
|
+
showEditor: !1,
|
|
1392
|
+
tools: [d.rank, d.add, d.clone, d.delete],
|
|
1393
|
+
itemTemplate: Y(),
|
|
1394
|
+
cloneOptionFn: (n) => {
|
|
1395
|
+
const { initCloneGridCol: o } = Tt();
|
|
1396
|
+
if (n)
|
|
1397
|
+
return o(n);
|
|
1398
|
+
},
|
|
1399
|
+
newOptionFn: () => {
|
|
1400
|
+
const { initGridCol: n } = Tt();
|
|
1401
|
+
return n();
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
})
|
|
1405
|
+
], Dt = [
|
|
1406
|
+
a.tag,
|
|
1407
|
+
new e({ name: "responsive", type: t.switch }),
|
|
1408
|
+
new e({ name: "push", title: "@colPushTitle", type: t.inputNumber, attrs: { min: 0, max: 24 } }),
|
|
1409
|
+
new e({ name: "pull", title: "@colPullTitle", type: t.inputNumber, attrs: { min: 0, max: 24 } }),
|
|
1410
|
+
new e({ name: "offset", title: "@offsetTitle", type: t.inputNumber, attrs: { min: 0, max: 24 } }),
|
|
1411
|
+
new e({
|
|
1412
|
+
name: "span",
|
|
1413
|
+
title: "@colSpanTitle",
|
|
1414
|
+
type: t.inputNumber,
|
|
1415
|
+
visibleFn: (n) => !c.getOption(n, "responsive")
|
|
1416
|
+
}),
|
|
1417
|
+
new e({
|
|
1418
|
+
name: "md",
|
|
1419
|
+
title: "@colMDTitle",
|
|
1420
|
+
type: t.inputNumber,
|
|
1421
|
+
options: { tipContent: "@colMDTitleHint" },
|
|
1422
|
+
visibleFn: (n) => !!c.getOption(n, "responsive")
|
|
1423
|
+
}),
|
|
1424
|
+
new e({
|
|
1425
|
+
name: "sm",
|
|
1426
|
+
title: "@colSMTitle",
|
|
1427
|
+
type: t.inputNumber,
|
|
1428
|
+
options: { tipContent: "@colSMTitleHint" },
|
|
1429
|
+
visibleFn: (n) => !!c.getOption(n, "responsive")
|
|
1430
|
+
}),
|
|
1431
|
+
new e({
|
|
1432
|
+
name: "xs",
|
|
1433
|
+
title: "@colXSTitle",
|
|
1434
|
+
type: t.inputNumber,
|
|
1435
|
+
options: { tipContent: "@colXSTitleHint" },
|
|
1436
|
+
visibleFn: (n) => !!c.getOption(n, "responsive")
|
|
1437
|
+
}),
|
|
1438
|
+
new e({
|
|
1439
|
+
name: "lg",
|
|
1440
|
+
title: "@colLGTitle",
|
|
1441
|
+
type: t.inputNumber,
|
|
1442
|
+
options: { tipContent: "@colLGTitleHint" },
|
|
1443
|
+
visibleFn: (n) => !!c.getOption(n, "responsive")
|
|
1444
|
+
}),
|
|
1445
|
+
new e({
|
|
1446
|
+
name: "xl",
|
|
1447
|
+
title: "@colXLTitle",
|
|
1448
|
+
type: t.inputNumber,
|
|
1449
|
+
options: { tipContent: "@colXLTitleHint" },
|
|
1450
|
+
visibleFn: (n) => !!c.getOption(n, "responsive")
|
|
1451
|
+
}),
|
|
1452
|
+
new e({
|
|
1453
|
+
name: "horizontalAlign",
|
|
1454
|
+
type: t.radiobutton,
|
|
1455
|
+
data: vn,
|
|
1456
|
+
attrs: { clearable: !0 }
|
|
1457
|
+
})
|
|
1458
|
+
// new PropertyConfig({
|
|
1459
|
+
// name: "verticalAlign", type: PropDataType.radiobutton, data: VerticalAlignTextType, attrs: { clearable: true }
|
|
1460
|
+
// }),
|
|
1461
|
+
], Vt = [
|
|
1462
|
+
new e({ name: "content", type: t.html, options: { codeEdit: !0, newRowLabel: !0 }, attrs: { mode: K.html } })
|
|
1463
|
+
], Ht = [
|
|
1464
|
+
a.maxlength,
|
|
1465
|
+
a.minlength,
|
|
1466
|
+
a.suffixIcon,
|
|
1467
|
+
a.prefixIcon,
|
|
1468
|
+
a.prepend,
|
|
1469
|
+
a.append,
|
|
1470
|
+
a.slotable,
|
|
1471
|
+
a.showWordLimit,
|
|
1472
|
+
new e({
|
|
1473
|
+
name: "showPassword",
|
|
1474
|
+
type: t.switch,
|
|
1475
|
+
visibleFn: (n) => {
|
|
1476
|
+
var o = c.getOption(n, "type");
|
|
1477
|
+
return o ? !![at.password].includes(o) : !1;
|
|
1478
|
+
}
|
|
1479
|
+
}),
|
|
1480
|
+
new e({
|
|
1481
|
+
name: "type",
|
|
1482
|
+
title: "@displayType",
|
|
1483
|
+
type: t.radiobutton,
|
|
1484
|
+
data: bn
|
|
1485
|
+
//未添加number,因校验问题 todo
|
|
1486
|
+
}),
|
|
1487
|
+
new e({
|
|
1488
|
+
name: "formatter",
|
|
1489
|
+
type: t.javascript,
|
|
1490
|
+
variable: !1,
|
|
1491
|
+
data: ["value:string | number"],
|
|
1492
|
+
visibleFn: (n) => c.getOption(n, "type") === at.text
|
|
1493
|
+
}),
|
|
1494
|
+
new e({
|
|
1495
|
+
name: "parser",
|
|
1496
|
+
type: t.javascript,
|
|
1497
|
+
variable: !1,
|
|
1498
|
+
data: ["value:string | number"],
|
|
1499
|
+
visibleFn: (n) => c.getOption(n, "type") === at.text
|
|
1500
|
+
}),
|
|
1501
|
+
//new PropertyConfig({ tp: propTypeEnum.advanced, name: "appendButton", type: PropType.switch, options: { dividerTitle: "@inputButton" } }),
|
|
1502
|
+
//new PropertyConfig({ tp: propTypeEnum.advanced, name: "appendButtonDisabled", type: PropType.switch }),
|
|
1503
|
+
//new PropertyConfig({ tp: propTypeEnum.event, name: "onAppendButtonClick", title: "eq", type: PropType.script}),
|
|
1504
|
+
new e({ name: "buttonIcon", tp: i.advanced, title: "@appendButtonIcon", type: t.selectGroupV2, variable: !1, attrs: { filterable: !0 } }),
|
|
1505
|
+
new e({ name: "clear", tp: i.event, type: t.targetEvent, variable: !1 })
|
|
1506
|
+
], Gt = [
|
|
1507
|
+
a.width,
|
|
1508
|
+
a.height,
|
|
1509
|
+
a.src,
|
|
1510
|
+
a.lazy,
|
|
1511
|
+
a.zIndex,
|
|
1512
|
+
// shareConfig.initialIndex ,
|
|
1513
|
+
new e({ name: "initialIndex", type: t.hidden, visibleFn: !1 }),
|
|
1514
|
+
new e({ name: "previewSrcList", type: t.hidden, visibleFn: !1 }),
|
|
1515
|
+
new e({ name: "fit", type: t.selectGroup, data: Ct }),
|
|
1516
|
+
new e({ name: "hideOnClickModal", type: t.switch }),
|
|
1517
|
+
new e({ name: "loading", type: t.radiobutton, data: yn }),
|
|
1518
|
+
new e({ name: "scrollContainer", tp: i.other }),
|
|
1519
|
+
new e({ name: "referrerpolicy", tp: i.other }),
|
|
1520
|
+
new e({ name: "closeOnPressEscape", type: t.switch }),
|
|
1521
|
+
new e({ name: "previewTeleported", tp: i.popper, type: t.switch }),
|
|
1522
|
+
new e({ name: "infinite", type: t.switch }),
|
|
1523
|
+
new e({ name: "zoomRate", type: t.number, tp: i.other }),
|
|
1524
|
+
new e({ name: "slotError", type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1525
|
+
new e({ name: "placeholder", type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1526
|
+
new e({ name: "viewer", type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1527
|
+
// "previewSrcList": new PropertyConfig({ name: "previewSrcList", type: PropType.html }),
|
|
1528
|
+
new e({ name: "error", tp: i.event, data: ["e:error"], title: "@imageError", type: t.targetEvent, variable: !1 }),
|
|
1529
|
+
new e({ name: "load", tp: i.event, data: ["e:Event"], title: "@imageLoad", type: t.targetEvent, variable: !1 }),
|
|
1530
|
+
new e({ name: "switch", tp: i.event, data: ["index:number"], title: "@imageSwitch", type: t.targetEvent, variable: !1 }),
|
|
1531
|
+
new e({ name: "close", tp: i.event, title: "@imageClose", data: [], type: t.targetEvent, variable: !1 }),
|
|
1532
|
+
new e({ name: "show", tp: i.event, title: "@imageShow", data: [], type: t.targetEvent, variable: !1 }),
|
|
1533
|
+
new e({
|
|
1534
|
+
name: l.optionItems,
|
|
1535
|
+
type: t.multirow,
|
|
1536
|
+
variable: !1,
|
|
1537
|
+
options: {
|
|
1538
|
+
noRowLabel: !0,
|
|
1539
|
+
addFormItem: !1,
|
|
1540
|
+
newRowLabel: !0,
|
|
1541
|
+
dividerTitle: "@" + l.optionItems,
|
|
1542
|
+
multipleFn: () => !1
|
|
1543
|
+
},
|
|
1544
|
+
attrs: {
|
|
1545
|
+
keys: S(s.image),
|
|
1546
|
+
path: l.optionItems
|
|
1547
|
+
},
|
|
1548
|
+
editor: r.value
|
|
1549
|
+
}),
|
|
1550
|
+
a.isdefault_optionitems,
|
|
1551
|
+
a.name_optionitems,
|
|
1552
|
+
new e({ name: "value", path: l.optionItems, variable: !1, title: "@url", type: t.textarea }),
|
|
1553
|
+
new e({ name: "label", path: l.optionItems, variable: !1 })
|
|
1554
|
+
], zt = [
|
|
1555
|
+
a.default,
|
|
1556
|
+
a.content,
|
|
1557
|
+
a.disabled,
|
|
1558
|
+
a.prefixIcon,
|
|
1559
|
+
a.suffixIcon,
|
|
1560
|
+
new e({ name: "underline", type: t.switch }),
|
|
1561
|
+
new e({ name: "href" }),
|
|
1562
|
+
new e({ name: "type", title: "@displayType", type: t.selectGroup, data: ze }),
|
|
1563
|
+
new e({ name: "target", title: "@linkTarget", type: t.selectGroup, data: fn })
|
|
1564
|
+
], At = [
|
|
1565
|
+
a.popperEffect,
|
|
1566
|
+
a.closeOnClickOutside,
|
|
1567
|
+
new e({ name: "mode", type: t.radiobutton, data: Fe }),
|
|
1568
|
+
new e({
|
|
1569
|
+
name: "collapse",
|
|
1570
|
+
type: t.switch,
|
|
1571
|
+
visibleFn: (n) => c.getOption(n, "mode") == nt.vertical
|
|
1572
|
+
}),
|
|
1573
|
+
new e({
|
|
1574
|
+
name: "ellipsis",
|
|
1575
|
+
type: t.switch,
|
|
1576
|
+
visibleFn: (n) => c.getOption(n, "mode") == nt.horizontal
|
|
1577
|
+
}),
|
|
1578
|
+
new e({
|
|
1579
|
+
name: "ellipsisIcon",
|
|
1580
|
+
type: t.selectGroupV2,
|
|
1581
|
+
data: u,
|
|
1582
|
+
visibleFn: (n) => c.getOption(n, "mellipsisode") && c.getOption(n, "mode") == nt.horizontal
|
|
1583
|
+
}),
|
|
1584
|
+
new e({ name: "backgroundColor", type: t.color }),
|
|
1585
|
+
new e({ name: "textColor", type: t.color }),
|
|
1586
|
+
new e({ name: "activeTextColor", type: t.color }),
|
|
1587
|
+
new e({ name: "uniqueOpened", type: t.switch }),
|
|
1588
|
+
new e({ name: "menuTrigger", type: t.radiobutton, data: tt }),
|
|
1589
|
+
new e({ name: "router", type: t.switch }),
|
|
1590
|
+
new e({ name: "collapseTransition", type: t.switch }),
|
|
1591
|
+
new e({
|
|
1592
|
+
name: "popperClass",
|
|
1593
|
+
editor: r.customClass,
|
|
1594
|
+
variable: !1,
|
|
1595
|
+
options: { tipContent: "@customClassHelp" },
|
|
1596
|
+
type: t.selectGroup,
|
|
1597
|
+
visibleFn: b
|
|
1598
|
+
}),
|
|
1599
|
+
new e({
|
|
1600
|
+
name: "showTimeout",
|
|
1601
|
+
type: t.inputNumber,
|
|
1602
|
+
variable: !1,
|
|
1603
|
+
visibleFn: b
|
|
1604
|
+
}),
|
|
1605
|
+
new e({
|
|
1606
|
+
name: "hideTimeout",
|
|
1607
|
+
type: t.inputNumber,
|
|
1608
|
+
variable: !1,
|
|
1609
|
+
visibleFn: b
|
|
1610
|
+
}),
|
|
1611
|
+
new e({
|
|
1612
|
+
name: l.optionItems,
|
|
1613
|
+
type: t.treeEdit,
|
|
1614
|
+
variable: !1,
|
|
1615
|
+
options: {
|
|
1616
|
+
noRowLabel: !0,
|
|
1617
|
+
newRowLabel: !0,
|
|
1618
|
+
addFormItem: !1,
|
|
1619
|
+
dividerTitle: "@" + l.optionItems,
|
|
1620
|
+
multipleFn: !0
|
|
1621
|
+
},
|
|
1622
|
+
attrs: {
|
|
1623
|
+
editorType: L.drawer,
|
|
1624
|
+
keys: S(s.menu),
|
|
1625
|
+
path: l.optionItems
|
|
1626
|
+
},
|
|
1627
|
+
editor: r.value
|
|
1628
|
+
}),
|
|
1629
|
+
//#region submenu
|
|
1630
|
+
a.name_optionitems,
|
|
1631
|
+
a.label_optionitems,
|
|
1632
|
+
a.isdefault_optionitems,
|
|
1633
|
+
a.icon_optionitems,
|
|
1634
|
+
a.disabled_optionitems,
|
|
1635
|
+
a.children_optionitems,
|
|
1636
|
+
new e({ name: "value", path: l.optionItems, variable: !1, visibleFn: !1 }),
|
|
1637
|
+
new e({ name: "route", path: l.optionItems, variable: !1 }),
|
|
1638
|
+
new e({ name: "menuItemType", path: l.optionItems, variable: !1, type: t.radiobutton, data: hn }),
|
|
1639
|
+
new e({ name: "click", type: t.javascript, path: l.optionItems, variable: !1, title: "@click", options: { addFormItem: !0 } }),
|
|
1640
|
+
new e({
|
|
1641
|
+
name: "popperClass",
|
|
1642
|
+
editor: r.customClass,
|
|
1643
|
+
variable: !1,
|
|
1644
|
+
path: l.optionItems,
|
|
1645
|
+
options: { tipContent: "@customClassHelp" },
|
|
1646
|
+
type: t.selectGroup,
|
|
1647
|
+
visibleFn: b
|
|
1648
|
+
}),
|
|
1649
|
+
new e({
|
|
1650
|
+
name: "popperOffset",
|
|
1651
|
+
type: t.inputNumber,
|
|
1652
|
+
path: l.optionItems,
|
|
1653
|
+
variable: !1,
|
|
1654
|
+
visibleFn: b
|
|
1655
|
+
}),
|
|
1656
|
+
new e({
|
|
1657
|
+
name: "teleported",
|
|
1658
|
+
type: t.switch,
|
|
1659
|
+
path: l.optionItems,
|
|
1660
|
+
variable: !1,
|
|
1661
|
+
visibleFn: b
|
|
1662
|
+
}),
|
|
1663
|
+
new e({
|
|
1664
|
+
name: "showTimeout",
|
|
1665
|
+
type: t.inputNumber,
|
|
1666
|
+
path: l.optionItems,
|
|
1667
|
+
variable: !1,
|
|
1668
|
+
visibleFn: b
|
|
1669
|
+
}),
|
|
1670
|
+
new e({
|
|
1671
|
+
name: "hideTimeout",
|
|
1672
|
+
type: t.inputNumber,
|
|
1673
|
+
path: l.optionItems,
|
|
1674
|
+
variable: !1,
|
|
1675
|
+
visibleFn: b
|
|
1676
|
+
}),
|
|
1677
|
+
new e({
|
|
1678
|
+
name: "expandCloseIcon",
|
|
1679
|
+
variable: !1,
|
|
1680
|
+
type: t.selectGroupV2,
|
|
1681
|
+
path: l.optionItems,
|
|
1682
|
+
data: u,
|
|
1683
|
+
visibleFn: b
|
|
1684
|
+
}),
|
|
1685
|
+
new e({
|
|
1686
|
+
name: "expandOpenIcon",
|
|
1687
|
+
variable: !1,
|
|
1688
|
+
type: t.selectGroupV2,
|
|
1689
|
+
path: l.optionItems,
|
|
1690
|
+
data: u,
|
|
1691
|
+
visibleFn: b
|
|
1692
|
+
}),
|
|
1693
|
+
new e({
|
|
1694
|
+
name: "collapseCloseIcon",
|
|
1695
|
+
variable: !1,
|
|
1696
|
+
type: t.selectGroupV2,
|
|
1697
|
+
path: l.optionItems,
|
|
1698
|
+
data: u,
|
|
1699
|
+
visibleFn: b
|
|
1700
|
+
}),
|
|
1701
|
+
new e({
|
|
1702
|
+
name: "collapseOpenIcon",
|
|
1703
|
+
variable: !1,
|
|
1704
|
+
type: t.selectGroupV2,
|
|
1705
|
+
path: l.optionItems,
|
|
1706
|
+
data: u,
|
|
1707
|
+
visibleFn: b
|
|
1708
|
+
})
|
|
1709
|
+
//#endregion
|
|
1710
|
+
], lt = (n) => c.getOption(n, "showMode") === kn.table, Wt = [
|
|
1711
|
+
a.click,
|
|
1712
|
+
a.label,
|
|
1713
|
+
a.change,
|
|
1714
|
+
// shareConfig.readonly,
|
|
1715
|
+
// shareConfig.disabled,
|
|
1716
|
+
a.hidden,
|
|
1717
|
+
// shareConfig.custom,
|
|
1718
|
+
// shareConfig.state,
|
|
1719
|
+
new e({ name: "sortable", type: t.switch }),
|
|
1720
|
+
new e({ name: "minRowNum", type: t.inputNumber }),
|
|
1721
|
+
new e({ name: "maxRowNum", type: t.inputNumber }),
|
|
1722
|
+
new e({ name: "showMode", type: t.radiobutton, data: gn }),
|
|
1723
|
+
new e({ name: "showDetail", type: t.switch, visibleFn: lt }),
|
|
1724
|
+
new e({ name: "showHeader", type: t.switch }),
|
|
1725
|
+
new e({ name: "showLimit", type: t.switch }),
|
|
1726
|
+
new e({ name: "allowDelete", type: t.switch }),
|
|
1727
|
+
new e({ name: "allowAdd", type: t.switch }),
|
|
1728
|
+
new e({ name: "showBorder", type: t.switch, visibleFn: lt }),
|
|
1729
|
+
new e({
|
|
1730
|
+
name: "onlyOneAddButton",
|
|
1731
|
+
type: t.switch,
|
|
1732
|
+
visibleFn: (n) => c.getOption(n, "allowAdd")
|
|
1733
|
+
}),
|
|
1734
|
+
new e({ name: "addRecordText" }),
|
|
1735
|
+
new e({ name: "deleteRecordText" }),
|
|
1736
|
+
new e({ name: "sortUpText" }),
|
|
1737
|
+
new e({ name: "sortDownText" }),
|
|
1738
|
+
new e({ name: "addRow", tp: i.event, data: ["index: number"], type: t.targetEvent, variable: !1 }),
|
|
1739
|
+
new e({ name: "deleteRow", tp: i.event, data: ["index: number"], type: t.targetEvent, variable: !1 }),
|
|
1740
|
+
new e({ name: "dataFormat", tp: i.common, data: ["data: any[]"], type: t.javascript, variable: !1 }),
|
|
1741
|
+
new e({ name: "rowDataFormat", tp: i.common, data: ["row: any", "index: number"], type: t.javascript, variable: !1 }),
|
|
1742
|
+
//占坑
|
|
1743
|
+
new e({ name: "row", tp: i.event, type: t.hidden, visibleFn: !1 }),
|
|
1744
|
+
new e({ name: "detail", tp: i.event, type: t.hidden, visibleFn: !1 })
|
|
1745
|
+
], Kt = [
|
|
1746
|
+
a.mixData(),
|
|
1747
|
+
a.click,
|
|
1748
|
+
a.hidden,
|
|
1749
|
+
new e({ name: "noData" }),
|
|
1750
|
+
new e({ name: "showLoading", type: t.switch }),
|
|
1751
|
+
new e({ name: "alwaysShow", type: t.switch }),
|
|
1752
|
+
//占坑
|
|
1753
|
+
new e({ name: "row", tp: i.event, type: t.hidden, visibleFn: !1 }),
|
|
1754
|
+
new e({ name: "completed", data: ["data:any[]|any"], type: t.targetEvent, title: "@dataLoadCompleted", variable: !1, tp: i.event })
|
|
1755
|
+
], Bt = [
|
|
1756
|
+
a.label,
|
|
1757
|
+
a.hidden,
|
|
1758
|
+
new e({
|
|
1759
|
+
name: "compName",
|
|
1760
|
+
type: t.selectGroup,
|
|
1761
|
+
data: [
|
|
1762
|
+
new xe(s.tag, T.i18nt("designer.widgetLabel.tag")),
|
|
1763
|
+
new xe(s.text, T.i18nt("designer.widgetLabel.text")),
|
|
1764
|
+
new xe(s.button, T.i18nt("designer.widgetLabel.button")),
|
|
1765
|
+
new xe(s.link, T.i18nt("designer.widgetLabel.link"))
|
|
1766
|
+
]
|
|
1767
|
+
}),
|
|
1768
|
+
new e({ name: "appendOnClick", type: t.switch }),
|
|
1769
|
+
new e({ name: "showSaveButton", type: t.switch }),
|
|
1770
|
+
new e({ name: "showAddButton", type: t.switch }),
|
|
1771
|
+
new e({ name: "addButtonText" }),
|
|
1772
|
+
new e({ name: "saveButtonText" }),
|
|
1773
|
+
new e({ name: "labelKey" }),
|
|
1774
|
+
new e({ name: "contentKey" }),
|
|
1775
|
+
new e({
|
|
1776
|
+
name: "operateData",
|
|
1777
|
+
data: {},
|
|
1778
|
+
type: t.json,
|
|
1779
|
+
variable: !0,
|
|
1780
|
+
options: { showOptionEnable: !1 }
|
|
1781
|
+
}),
|
|
1782
|
+
new e({
|
|
1783
|
+
name: "relatedIds",
|
|
1784
|
+
type: t.selectGroup,
|
|
1785
|
+
data: (n) => {
|
|
1786
|
+
var te, ae, ge;
|
|
1787
|
+
if ((((ae = (te = n == null ? void 0 : n.designer) == null ? void 0 : te.widgetList) == null ? void 0 : ae.length) || 0) <= 0)
|
|
1788
|
+
return [];
|
|
1789
|
+
const f = Na((ge = n.designer) == null ? void 0 : ge.widgetList, (W) => (W == null ? void 0 : W.type) === s.textarea || (W == null ? void 0 : W.type) === s.input, !1);
|
|
1790
|
+
return f == null ? void 0 : f.map((W) => {
|
|
1791
|
+
const { buildVariable: Ia } = Xn();
|
|
1792
|
+
return new xe(Ia(W == null ? void 0 : W.id), Qn.getOptions(W, l.label));
|
|
1793
|
+
});
|
|
1794
|
+
},
|
|
1795
|
+
attrs: { multiple: !0 }
|
|
1796
|
+
}),
|
|
1797
|
+
new e({ name: "click", tp: i.event, data: ["item:object"], type: t.targetEvent, variable: !1, options: { passExternalArgs: !0 } }),
|
|
1798
|
+
new e({ name: "save", tp: i.event, data: ["content:String", "params:object"], type: t.targetEvent, variable: !1, options: { passExternalArgs: !0 } }),
|
|
1799
|
+
new e({ name: "add", tp: i.event, data: ["params:object"], type: t.targetEvent, variable: !1, options: { passExternalArgs: !0 } }),
|
|
1800
|
+
new e({
|
|
1801
|
+
name: l.optionItems,
|
|
1802
|
+
type: t.multirow,
|
|
1803
|
+
variable: !1,
|
|
1804
|
+
options: {
|
|
1805
|
+
noRowLabel: !0,
|
|
1806
|
+
addFormItem: !1,
|
|
1807
|
+
newRowLabel: !0,
|
|
1808
|
+
dividerTitle: "@" + l.optionItems
|
|
1809
|
+
},
|
|
1810
|
+
attrs: {
|
|
1811
|
+
keys: S(s.model),
|
|
1812
|
+
path: l.optionItems,
|
|
1813
|
+
tools: [d.rank, d.add, d.edit, d.clone, d.delete, d.import]
|
|
1814
|
+
},
|
|
1815
|
+
editor: r.value
|
|
1816
|
+
}),
|
|
1817
|
+
a.label_optionitems,
|
|
1818
|
+
a.name_optionitems,
|
|
1819
|
+
new e({ name: "value", path: l.optionItems, type: t.textarea, variable: !1, title: "@valueTitle" })
|
|
1820
|
+
], qt = [
|
|
1821
|
+
a.precision,
|
|
1822
|
+
a.step,
|
|
1823
|
+
a.stepStrictly,
|
|
1824
|
+
a.min,
|
|
1825
|
+
a.max,
|
|
1826
|
+
new e({ name: "unitText", type: t.input }),
|
|
1827
|
+
new e({ name: "defaultValue", type: t.inputNumber, editor: r.value }),
|
|
1828
|
+
new e({ name: "controls", tp: i.advanced, type: t.switch }),
|
|
1829
|
+
new e({ name: "controlsPosition", tp: i.advanced, type: t.selectGroup, data: Tn }),
|
|
1830
|
+
new e({ name: "valueOnClear", tp: i.advanced, type: t.selectGroup, data: En })
|
|
1831
|
+
], Ut = [
|
|
1832
|
+
new e({ name: "splitText" }),
|
|
1833
|
+
new e({ name: "unitText" })
|
|
1834
|
+
], Qt = [
|
|
1835
|
+
a.teleported,
|
|
1836
|
+
a.disabled,
|
|
1837
|
+
new e({ name: "size", tp: i.advanced, type: t.radiobutton, data: Ge }),
|
|
1838
|
+
new e({ name: "background", type: t.switch }),
|
|
1839
|
+
//new PropertyConfig({ name: "pageSize", type: PropDataType.inputNumber }),
|
|
1840
|
+
new e({ name: "defaultPageSize", type: t.inputNumber }),
|
|
1841
|
+
//new PropertyConfig({ name: "total", type: PropDataType.inputNumber }),
|
|
1842
|
+
//new PropertyConfig({ name: "pageCount", type: PropDataType.inputNumber }),
|
|
1843
|
+
new e({ name: "pagerCount", type: t.inputNumber }),
|
|
1844
|
+
// new PropertyConfig({ name: "currentPage", type: PropDataType.inputNumber }),
|
|
1845
|
+
new e({ name: "defaultCurrentPage", type: t.inputNumber }),
|
|
1846
|
+
new e({ name: "popperClass", tp: i.popper, title: "@paginationPopperClass", editor: r.customClass, variable: !1, type: t.selectGroup, options: { tipContent: "@customClassHelp" } }),
|
|
1847
|
+
new e({ name: "prevText" }),
|
|
1848
|
+
new e({ name: "nextText" }),
|
|
1849
|
+
// new PropertyConfig({ name: "disabled", type: PropDataType.switch }),
|
|
1850
|
+
// new PropertyConfig({ name: "teleported", type: PropDataType.switch }),
|
|
1851
|
+
new e({ name: "hideOnSinglePage", type: t.switch }),
|
|
1852
|
+
new e({ name: "prevIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
1853
|
+
new e({ name: "nextIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
1854
|
+
new e({ name: "default", title: "@slotDefault", tp: i.slot, data: [], type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1855
|
+
new e({ name: "layout", type: t.selectGroup, data: Rt, attrs: { multiple: !0 } }),
|
|
1856
|
+
new e({ name: "pageSizes", type: t.json, variable: !1, options: { showOptionEnable: !1 } }),
|
|
1857
|
+
new e({ name: "sizeChange", tp: i.event, data: ["value: number"], type: t.targetEvent, variable: !1 }),
|
|
1858
|
+
new e({ name: "currentChange", tp: i.event, data: ["value: number"], title: "@paginationCurrentChange", type: t.targetEvent, variable: !1 }),
|
|
1859
|
+
new e({ name: "change", tp: i.event, data: ["currentPage: number", "pageSize: number"], title: "@paginationChange", type: t.targetEvent, variable: !1 }),
|
|
1860
|
+
new e({ name: "prevClick", tp: i.event, data: ["value: number"], type: t.targetEvent, variable: !1 }),
|
|
1861
|
+
new e({ name: "nextClick", tp: i.event, data: ["value: number"], type: t.targetEvent, variable: !1 })
|
|
1862
|
+
], Xt = [
|
|
1863
|
+
a.default,
|
|
1864
|
+
a.content,
|
|
1865
|
+
new e({ name: "percentage", type: t.inputNumber, editor: r.value }),
|
|
1866
|
+
new e({ name: "type", type: t.radiobutton, data: In, title: "@progressType" }),
|
|
1867
|
+
new e({ name: "strokeWidth", type: t.inputNumber }),
|
|
1868
|
+
new e({
|
|
1869
|
+
name: "textInside",
|
|
1870
|
+
type: t.switch,
|
|
1871
|
+
visibleFn: (n) => c.getOption(n, "type") === de.line
|
|
1872
|
+
}),
|
|
1873
|
+
new e({ name: "status", type: t.selectGroup, data: Fn }),
|
|
1874
|
+
new e({ name: "indeterminate", type: t.switch }),
|
|
1875
|
+
new e({ name: "duration", type: t.inputNumber }),
|
|
1876
|
+
new e({ name: "showText", type: t.switch }),
|
|
1877
|
+
new e({
|
|
1878
|
+
name: "strokeLinecap",
|
|
1879
|
+
type: t.radiobutton,
|
|
1880
|
+
data: Cn,
|
|
1881
|
+
visibleFn: (n) => [de.circle, de.dashboard].includes(c.getOption(n, "type") || de.line)
|
|
1882
|
+
}),
|
|
1883
|
+
new e({ name: "striped", type: t.switch }),
|
|
1884
|
+
new e({ name: "stripedFlow", type: t.switch }),
|
|
1885
|
+
new e({ name: "color", data: ["percentage: number"], title: "@progressColor", type: t.javascript, variable: !1 }),
|
|
1886
|
+
new e({ name: "format", data: ["percentage: number"], type: t.javascript, variable: !1 }),
|
|
1887
|
+
new e({
|
|
1888
|
+
name: "width",
|
|
1889
|
+
type: t.inputNumber,
|
|
1890
|
+
title: "@progressWidth",
|
|
1891
|
+
visibleFn: (n) => [de.circle, de.dashboard].includes(c.getOption(n, "type") || de.line)
|
|
1892
|
+
}),
|
|
1893
|
+
new e({ name: "completeSec", type: t.inputNumber, attrs: { min: 0 } }),
|
|
1894
|
+
new e({ name: "completed", data: [], type: t.targetEvent, title: "@progressCompleted", variable: !1, tp: i.event })
|
|
1895
|
+
], Yt = [
|
|
1896
|
+
a.displayStyle,
|
|
1897
|
+
a.labelKey,
|
|
1898
|
+
a.valueKey,
|
|
1899
|
+
a.textName,
|
|
1900
|
+
a.optionName,
|
|
1901
|
+
new e({
|
|
1902
|
+
name: "defaultValue",
|
|
1903
|
+
editor: r.value,
|
|
1904
|
+
options: { showSelfValue: !1 }
|
|
1905
|
+
}),
|
|
1906
|
+
new e({
|
|
1907
|
+
name: "textColor",
|
|
1908
|
+
type: t.color,
|
|
1909
|
+
visibleFn: (n) => !!c.getOption(n, "buttonStyle")
|
|
1910
|
+
}),
|
|
1911
|
+
new e({
|
|
1912
|
+
name: "fill",
|
|
1913
|
+
type: t.color,
|
|
1914
|
+
visibleFn: (n) => !!c.getOption(n, "buttonStyle")
|
|
1915
|
+
}),
|
|
1916
|
+
new e({ name: "buttonStyle", type: t.switch }),
|
|
1917
|
+
new e({ name: "border", type: t.switch }),
|
|
1918
|
+
//#region optionItems
|
|
1919
|
+
a.relate,
|
|
1920
|
+
new e({
|
|
1921
|
+
name: l.optionItems,
|
|
1922
|
+
type: t.multirow,
|
|
1923
|
+
variable: !1,
|
|
1924
|
+
options: {
|
|
1925
|
+
noRowLabel: !0,
|
|
1926
|
+
addFormItem: !1,
|
|
1927
|
+
newRowLabel: !0,
|
|
1928
|
+
dividerTitle: "@" + l.optionItems,
|
|
1929
|
+
multipleFn: () => !1
|
|
1930
|
+
},
|
|
1931
|
+
attrs: {
|
|
1932
|
+
keys: S(s.radio),
|
|
1933
|
+
path: l.optionItems
|
|
1934
|
+
},
|
|
1935
|
+
editor: r.value,
|
|
1936
|
+
changeFn: (n, o) => {
|
|
1937
|
+
m(n == null ? void 0 : n.optionModel, "defaultValue", null);
|
|
1938
|
+
}
|
|
1939
|
+
}),
|
|
1940
|
+
a.label_optionitems,
|
|
1941
|
+
a.name_optionitems,
|
|
1942
|
+
a.border_optionitems,
|
|
1943
|
+
a.value_optionitems,
|
|
1944
|
+
a.disabled_optionitems,
|
|
1945
|
+
a.isdefault_optionitems
|
|
1946
|
+
//#endregion
|
|
1947
|
+
], $t = [
|
|
1948
|
+
new e({ name: "defaultValue", type: t.inputNumber, editor: r.value, attrs: { min: 0 } }),
|
|
1949
|
+
new e({ name: "max", title: "@maxValue", type: t.inputNumber, attrs: { min: 1, max: 10 } }),
|
|
1950
|
+
new e({ name: "allowHalf", type: t.switch }),
|
|
1951
|
+
new e({ name: "showText", type: t.switch }),
|
|
1952
|
+
new e({ name: "showScore", type: t.switch }),
|
|
1953
|
+
new e({ name: "lowThreshold", type: t.inputNumber, attrs: (n) => {
|
|
1954
|
+
var o;
|
|
1955
|
+
return { min: 1, max: (o = n == null ? void 0 : n.optionModel) == null ? void 0 : o.highThreshold };
|
|
1956
|
+
} }),
|
|
1957
|
+
new e({ name: "highThreshold", type: t.inputNumber, attrs: (n) => {
|
|
1958
|
+
var o, f;
|
|
1959
|
+
return { min: (o = n == null ? void 0 : n.optionModel) == null ? void 0 : o.lowThreshold, max: (f = n == null ? void 0 : n.optionModel) == null ? void 0 : f.max };
|
|
1960
|
+
} })
|
|
1961
|
+
], Jt = [
|
|
1962
|
+
// new PropertyConfig({ name: "icon", tp: propTypeEnum.slot, data: [], type: PropDataType.html, variable: false, options: { sfc: true } }),
|
|
1963
|
+
new e({ name: "title", tp: i.slot, type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1964
|
+
new e({ name: "subTitle", tp: i.slot, type: t.html, variable: !1, options: { sfc: !0 } }),
|
|
1965
|
+
new e({ name: "extra", tp: i.slot, type: t.html, variable: !1, options: { sfc: !0 }, title: "@despExtra" }),
|
|
1966
|
+
new e({ name: "icon", type: t.radiobutton, data: xn })
|
|
1967
|
+
], Zt = [
|
|
1968
|
+
new e({ name: "label", title: "@routerName" })
|
|
1969
|
+
], ea = [
|
|
1970
|
+
new e({ name: "contentHeight" }),
|
|
1971
|
+
new e({ name: "placeholder", visibleFn: !1 })
|
|
1972
|
+
], se = (n) => !!c.getOption(n, "filterable"), De = (n) => !!c.getOption(n, "multiple"), Be = (n) => !!c.getOption(n, "remote"), ot = (n) => !!c.getOption(n, "clearable"), st = [
|
|
1973
|
+
a.collapseTags,
|
|
1974
|
+
a.collapseTagsTooltip,
|
|
1975
|
+
a.maxCollapseTags,
|
|
1976
|
+
a.teleported,
|
|
1977
|
+
a.persistent,
|
|
1978
|
+
a.suffixIcon,
|
|
1979
|
+
a.placement,
|
|
1980
|
+
a.popperClass,
|
|
1981
|
+
a.popperOptions,
|
|
1982
|
+
a.visibleChange,
|
|
1983
|
+
a.removeTag,
|
|
1984
|
+
a.prefix,
|
|
1985
|
+
a.effect,
|
|
1986
|
+
a.slotable,
|
|
1987
|
+
a.labelKey,
|
|
1988
|
+
a.valueKey,
|
|
1989
|
+
a.textName,
|
|
1990
|
+
a.optionName,
|
|
1991
|
+
{ ...a.tagType, visibleFn: De },
|
|
1992
|
+
new e({ name: "defaultValue", editor: r.value, options: { showSelfValue: !1 } }),
|
|
1993
|
+
new e({
|
|
1994
|
+
name: "multiple",
|
|
1995
|
+
type: t.switch,
|
|
1996
|
+
options: { dividerTitle: "@multipleDivider" },
|
|
1997
|
+
changeFn: (n, o) => {
|
|
1998
|
+
o || (m(n == null ? void 0 : n.optionModel, "reserveKeyword", !1, !0), m(n == null ? void 0 : n.optionModel, "removeTag", "", !0), m(n == null ? void 0 : n.optionModel, "multipleLimit", 100, !0), m(n == null ? void 0 : n.optionModel, "collapseTags", !1, !0));
|
|
1999
|
+
}
|
|
2000
|
+
}),
|
|
2001
|
+
new e({
|
|
2002
|
+
name: "multipleLimit",
|
|
2003
|
+
type: t.inputNumber,
|
|
2004
|
+
attrs: { min: 0 },
|
|
2005
|
+
visibleFn: De
|
|
2006
|
+
}),
|
|
2007
|
+
new e({ name: "selectOnlyOneGroup", type: t.switch, visibleFn: De }),
|
|
2008
|
+
new e({ name: "showGroup", type: t.switch }),
|
|
2009
|
+
new e({ name: "valueKey", type: t.hidden }),
|
|
2010
|
+
new e({
|
|
2011
|
+
name: "filterable",
|
|
2012
|
+
type: t.switch,
|
|
2013
|
+
options: { dividerTitle: "@filterableDivider" },
|
|
2014
|
+
changeFn: (n, o) => {
|
|
2015
|
+
o || (m(n == null ? void 0 : n.optionModel, "allowCreate", !1, !0), m(n == null ? void 0 : n.optionModel, "remote", !1, !0), m(n == null ? void 0 : n.optionModel, "defaultFirstOption", !1, !0), m(n == null ? void 0 : n.optionModel, "reserveKeyword", !1, !0), m(n == null ? void 0 : n.optionModel, "automaticDropdown", !1, !0), m(n == null ? void 0 : n.optionModel, "filterMethod", "", !0), m(n == null ? void 0 : n.optionModel, "noMatchText", "", !0));
|
|
2016
|
+
}
|
|
2017
|
+
}),
|
|
2018
|
+
new e({ name: "allowCreate", type: t.switch, visibleFn: se }),
|
|
2019
|
+
new e({ name: "filterMethod", data: ["keyword: string", "option:{label:string,value:any}"], type: t.javascript, variable: !1, visibleFn: se }),
|
|
2020
|
+
new e({
|
|
2021
|
+
name: "remote",
|
|
2022
|
+
title: "@remoteLoad",
|
|
2023
|
+
type: t.switch,
|
|
2024
|
+
visibleFn: se,
|
|
2025
|
+
changeFn: (n, o) => {
|
|
2026
|
+
o || (m(n == null ? void 0 : n.optionModel, "remoteMethod", "", !0), m(n == null ? void 0 : n.optionModel, "remoteShowSuffix", !1, !0), m(n == null ? void 0 : n.optionModel, "allowCreate", !1, !0));
|
|
2027
|
+
}
|
|
2028
|
+
}),
|
|
2029
|
+
new e({ name: "remoteMethod", data: ["keyword", "callback"], type: t.javascript, variable: !1, visibleFn: Be }),
|
|
2030
|
+
new e({ name: "remoteShowSuffix", type: t.switch, visibleFn: Be }),
|
|
2031
|
+
new e({ name: "loadingText", visibleFn: Be }),
|
|
2032
|
+
new e({ name: "noMatchText", visibleFn: se }),
|
|
2033
|
+
new e({ name: "noDataText" }),
|
|
2034
|
+
new e({
|
|
2035
|
+
name: "reserveKeyword",
|
|
2036
|
+
type: t.switch,
|
|
2037
|
+
visibleFn: (n) => se(n) && De(n)
|
|
2038
|
+
}),
|
|
2039
|
+
new e({ name: "defaultFirstOption", type: t.switch, visibleFn: se }),
|
|
2040
|
+
new e({
|
|
2041
|
+
name: "clearable",
|
|
2042
|
+
type: t.switch,
|
|
2043
|
+
changeFn: (n, o) => {
|
|
2044
|
+
o || m(n == null ? void 0 : n.optionModel, "clear", "", !0);
|
|
2045
|
+
}
|
|
2046
|
+
}),
|
|
2047
|
+
new e({
|
|
2048
|
+
name: "clearIcon",
|
|
2049
|
+
data: u,
|
|
2050
|
+
type: t.selectGroupV2,
|
|
2051
|
+
variable: !1,
|
|
2052
|
+
visibleFn: ot
|
|
2053
|
+
}),
|
|
2054
|
+
new e({ name: "suffixTransition", type: t.switch }),
|
|
2055
|
+
new e({ name: "automaticDropdown", type: t.switch, visibleFn: se }),
|
|
2056
|
+
new e({
|
|
2057
|
+
name: "clear",
|
|
2058
|
+
tp: i.event,
|
|
2059
|
+
data: [],
|
|
2060
|
+
type: t.targetEvent,
|
|
2061
|
+
variable: !1,
|
|
2062
|
+
visibleFn: ot
|
|
2063
|
+
}),
|
|
2064
|
+
a.select_optionDefault,
|
|
2065
|
+
new e({ name: "fitInputWidth", type: t.switch }),
|
|
2066
|
+
a.relate,
|
|
2067
|
+
new e({
|
|
2068
|
+
name: l.optionItems,
|
|
2069
|
+
type: t.treeEdit,
|
|
2070
|
+
variable: !1,
|
|
2071
|
+
options: {
|
|
2072
|
+
noRowLabel: !0,
|
|
2073
|
+
newRowLabel: !0,
|
|
2074
|
+
addFormItem: !1,
|
|
2075
|
+
dividerTitle: "@" + l.optionItems,
|
|
2076
|
+
multipleFn: (n) => !!c.getOption(n, "multiple")
|
|
2077
|
+
},
|
|
2078
|
+
attrs: {
|
|
2079
|
+
keys: S(s.select),
|
|
2080
|
+
maxLevel: 2,
|
|
2081
|
+
onlyLeafSelect: !0,
|
|
2082
|
+
path: l.optionItems
|
|
2083
|
+
},
|
|
2084
|
+
editor: r.value
|
|
2085
|
+
}),
|
|
2086
|
+
a.name_optionitems,
|
|
2087
|
+
a.isdefault_optionitems,
|
|
2088
|
+
a.value_optionitems,
|
|
2089
|
+
a.label_optionitems
|
|
2090
|
+
], ta = [
|
|
2091
|
+
a.direction,
|
|
2092
|
+
a.defaultValue,
|
|
2093
|
+
new e({ name: "active", type: t.inputNumber, attrs: { min: 0 } }),
|
|
2094
|
+
new e({ name: "space", editor: r.size, data: v(I) }),
|
|
2095
|
+
new e({ name: "simple", type: t.switch }),
|
|
2096
|
+
new e({ name: "alignCenter", type: t.switch }),
|
|
2097
|
+
new e({ name: "finishStatus", type: t.selectGroup, data: it }),
|
|
2098
|
+
new e({ name: "processStatus", type: t.selectGroup, data: it }),
|
|
2099
|
+
new e({ name: "description", path: l.optionItems, variable: !1, type: t.html, options: { codeEdit: !0 }, attrs: { mode: K.html } }),
|
|
2100
|
+
new e({ name: "label", path: l.optionItems, variable: !1, title: "@content", type: t.html, options: { codeEdit: !0 }, attrs: { mode: K.html } }),
|
|
2101
|
+
new e({ name: "value", path: l.optionItems, variable: !1, type: t.hidden }),
|
|
2102
|
+
new e({ name: "status", path: l.optionItems, variable: !1, title: "@processStatus", type: t.selectGroup, data: it, attrs: { clearable: !0 } }),
|
|
2103
|
+
//#region optionItems
|
|
2104
|
+
new e({
|
|
2105
|
+
name: l.optionItems,
|
|
2106
|
+
type: t.multirow,
|
|
2107
|
+
variable: !1,
|
|
2108
|
+
options: {
|
|
2109
|
+
noRowLabel: !0,
|
|
2110
|
+
newRowLabel: !0,
|
|
2111
|
+
dividerTitle: "@" + l.optionItems,
|
|
2112
|
+
addFormItem: !1,
|
|
2113
|
+
multipleFn: !1
|
|
2114
|
+
},
|
|
2115
|
+
attrs: {
|
|
2116
|
+
editorType: L.drawer,
|
|
2117
|
+
keys: S(s.steps),
|
|
2118
|
+
path: l.optionItems
|
|
2119
|
+
},
|
|
2120
|
+
editor: r.value
|
|
2121
|
+
}),
|
|
2122
|
+
a.isdefault_optionitems,
|
|
2123
|
+
a.icon_optionitems,
|
|
2124
|
+
a.name_optionitems
|
|
2125
|
+
//#endregion
|
|
2126
|
+
], qe = (n) => !!c.getOption(n, "showTooltip"), aa = (n) => !!c.getOption(n, "range"), rt = (n) => !!c.getOption(n, "showInput"), na = (n) => !!c.getOption(n, "vertical"), ia = [
|
|
2127
|
+
a.min,
|
|
2128
|
+
a.max,
|
|
2129
|
+
a.step,
|
|
2130
|
+
a.debounce,
|
|
2131
|
+
new e({
|
|
2132
|
+
name: "range",
|
|
2133
|
+
type: t.switch,
|
|
2134
|
+
options: { dividerTitle: "@sliderRangeSetting" },
|
|
2135
|
+
changeFn: (n, o) => {
|
|
2136
|
+
o ? m(n == null ? void 0 : n.optionModel, "showInput", !1, !0) : m(n == null ? void 0 : n.optionModel, "marks", null, !0);
|
|
2137
|
+
}
|
|
2138
|
+
}),
|
|
2139
|
+
new e({
|
|
2140
|
+
name: "vertical",
|
|
2141
|
+
type: t.switch,
|
|
2142
|
+
options: { dividerTitle: "@sliderVerticalSetting" },
|
|
2143
|
+
changeFn: (n, o) => {
|
|
2144
|
+
o && m(n == null ? void 0 : n.optionModel, "height", null, !0);
|
|
2145
|
+
}
|
|
2146
|
+
}),
|
|
2147
|
+
new e({ name: "height", editor: r.size, data: v(I), visibleFn: na }),
|
|
2148
|
+
/**屏幕阅读器,暂时用不到 */
|
|
2149
|
+
// new PropertyConfig({tp: propTypeEnum.advanced,
|
|
2150
|
+
// name: "rangeStartLabel", visibleFn: (props: PropertyObject) => {
|
|
2151
|
+
// return !!props?.optionModel?.range;
|
|
2152
|
+
// }
|
|
2153
|
+
// }),
|
|
2154
|
+
// new PropertyConfig({tp: propTypeEnum.advanced,
|
|
2155
|
+
// name: "rangeEndLabel", visibleFn: (props: PropertyObject) => {
|
|
2156
|
+
// return !!props?.optionModel?.range;
|
|
2157
|
+
// }
|
|
2158
|
+
// }),
|
|
2159
|
+
// new PropertyConfig({ name: "formatValueText", type: PropDataType.javascript, variable: false, data: ['value'] }),
|
|
2160
|
+
new e({ name: "showStops", type: t.switch }),
|
|
2161
|
+
new e({
|
|
2162
|
+
name: "marks",
|
|
2163
|
+
type: t.json,
|
|
2164
|
+
variable: !1,
|
|
2165
|
+
visibleFn: aa
|
|
2166
|
+
}),
|
|
2167
|
+
new e({
|
|
2168
|
+
name: "showInput",
|
|
2169
|
+
type: t.switch,
|
|
2170
|
+
visibleFn: (n) => !c.getOption(n, "range")
|
|
2171
|
+
}),
|
|
2172
|
+
new e({
|
|
2173
|
+
name: "showInputControls",
|
|
2174
|
+
type: t.switch,
|
|
2175
|
+
visibleFn: rt
|
|
2176
|
+
}),
|
|
2177
|
+
new e({
|
|
2178
|
+
name: "inputSize",
|
|
2179
|
+
type: t.radiobutton,
|
|
2180
|
+
data: Ge,
|
|
2181
|
+
visibleFn: rt
|
|
2182
|
+
}),
|
|
2183
|
+
new e({ name: "showTooltip", type: t.switch, options: { dividerTitle: "@sliderShowTooltipSetting" } }),
|
|
2184
|
+
new e({ name: "placement", title: "@tooltipPlacement", type: t.selectGroup, data: Ze, visibleFn: qe }),
|
|
2185
|
+
// new PropertyConfig({
|
|
2186
|
+
// name: "tooltipClass", tp: propTypeEnum.style, editor: innerEditor.customClass, type: PropDataType.selectGroup, variable: false, options: { tipContent: "@customClassHelp" }, data: ['value'],
|
|
2187
|
+
// visibleFn: showToolTip_Fn
|
|
2188
|
+
// }),
|
|
2189
|
+
new e({
|
|
2190
|
+
name: "tooltipClass",
|
|
2191
|
+
tp: i.style,
|
|
2192
|
+
editor: r.customClass,
|
|
2193
|
+
type: t.selectGroup,
|
|
2194
|
+
variable: !1,
|
|
2195
|
+
options: { tipContent: "@customClassHelp" },
|
|
2196
|
+
visibleFn: qe
|
|
2197
|
+
//, attrs: { multiple: true, filterable: true, allowCreate: true, defaultFirstOption: true }
|
|
2198
|
+
}),
|
|
2199
|
+
new e({
|
|
2200
|
+
name: "formatTooltip",
|
|
2201
|
+
type: t.javascript,
|
|
2202
|
+
variable: !1,
|
|
2203
|
+
data: ["value"],
|
|
2204
|
+
visibleFn: qe
|
|
2205
|
+
})
|
|
2206
|
+
], Ue = (n) => {
|
|
2207
|
+
switch (c.getOption(n, "valueType")) {
|
|
2208
|
+
case $e.boolean:
|
|
2209
|
+
return t.switch;
|
|
2210
|
+
case $e.number:
|
|
2211
|
+
return t.inputNumber;
|
|
2212
|
+
case $e.string:
|
|
2213
|
+
default:
|
|
2214
|
+
return t.input;
|
|
2215
|
+
}
|
|
2216
|
+
}, la = [
|
|
2217
|
+
a.width,
|
|
2218
|
+
// new PropertyConfig({ name: "activeColor", type: PropDataType.color }),
|
|
2219
|
+
// new PropertyConfig({ name: "inactiveColor", type: PropDataType.color }),
|
|
2220
|
+
// new PropertyConfig({ name: "borderColor", type: PropDataType.color }),
|
|
2221
|
+
new e({ name: "activeText" }),
|
|
2222
|
+
new e({ name: "inactiveText" }),
|
|
2223
|
+
new e({ name: "inlinePrompt", type: t.switch }),
|
|
2224
|
+
new e({ name: "activeIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
2225
|
+
new e({ name: "inactiveIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
2226
|
+
new e({ name: "activeActionIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
2227
|
+
new e({ name: "inactiveActionIcon", type: t.selectGroupV2, variable: !1, data: u, attrs: { filterable: !0 } }),
|
|
2228
|
+
new e({ name: "beforeChange", tp: i.event, title: "eq", data: [], type: t.targetEvent, variable: !1 }),
|
|
2229
|
+
new e({ name: "valueType", type: t.radiobutton, variable: !1, data: Pn, options: { dividerTitle: "@switchValueTypeTitle" } }),
|
|
2230
|
+
new e({ name: "activeValue", type: Ue }),
|
|
2231
|
+
new e({ name: "inactiveValue", type: Ue }),
|
|
2232
|
+
new e({ name: "defaultValue", type: Ue, editor: r.value })
|
|
2233
|
+
], oa = [
|
|
2234
|
+
new e({ name: "content", type: t.textarea, options: { newRowLabel: !0 } })
|
|
2235
|
+
], sa = [
|
|
2236
|
+
a.default,
|
|
2237
|
+
a.content,
|
|
2238
|
+
a.click,
|
|
2239
|
+
a.size,
|
|
2240
|
+
a.color,
|
|
2241
|
+
a.effect,
|
|
2242
|
+
new e({ name: "type", title: "@displayType", type: t.selectGroup, data: ze }),
|
|
2243
|
+
new e({ name: "hit", type: t.switch }),
|
|
2244
|
+
new e({ name: "round", type: t.switch }),
|
|
2245
|
+
new e({ name: "closable", type: t.switch }),
|
|
2246
|
+
new e({ name: "disableTransitions", type: t.switch }),
|
|
2247
|
+
new e({
|
|
2248
|
+
name: "close",
|
|
2249
|
+
tp: i.event,
|
|
2250
|
+
data: ["event:MouseEvent"],
|
|
2251
|
+
type: t.targetEvent,
|
|
2252
|
+
variable: !1,
|
|
2253
|
+
visibleFn: (n) => c.getOption(n, "closable")
|
|
2254
|
+
})
|
|
2255
|
+
], ra = [
|
|
2256
|
+
new e({
|
|
2257
|
+
name: l.tabs,
|
|
2258
|
+
type: t.multirow,
|
|
2259
|
+
variable: !1,
|
|
2260
|
+
options: {
|
|
2261
|
+
dividerTitle: "@tabPaneSetting",
|
|
2262
|
+
multipleFn: !1,
|
|
2263
|
+
noRowLabel: !0,
|
|
2264
|
+
newRowLabel: !0,
|
|
2265
|
+
getPropValueFn: (n) => {
|
|
2266
|
+
var o;
|
|
2267
|
+
return (o = n == null ? void 0 : n.selectedWidget) == null ? void 0 : o.tabs;
|
|
2268
|
+
},
|
|
2269
|
+
setPropValueFn: (n, o) => {
|
|
2270
|
+
n.selectedWidget && (n.selectedWidget.tabs = o);
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
2273
|
+
attrs: {
|
|
2274
|
+
keys: S(s.tabs),
|
|
2275
|
+
path: l.tabs,
|
|
2276
|
+
valueKey: "name",
|
|
2277
|
+
dataPath: "options",
|
|
2278
|
+
showEditor: !1,
|
|
2279
|
+
tools: [d.rank, d.add, d.reset, d.clone, d.delete],
|
|
2280
|
+
cloneOptionFn: (n) => {
|
|
2281
|
+
const { initCloneTabPane: o } = Et();
|
|
2282
|
+
if (n)
|
|
2283
|
+
return o(n);
|
|
2284
|
+
},
|
|
2285
|
+
newOptionFn: () => {
|
|
2286
|
+
const { initTabPane: n } = Et();
|
|
2287
|
+
return n();
|
|
2288
|
+
},
|
|
2289
|
+
findDefaultFn: (n, o, f) => n == null ? void 0 : n.includes(o.options[f]),
|
|
2290
|
+
setDefaultFn: (n, o) => {
|
|
2291
|
+
n.options[l.isdefault] = o;
|
|
2292
|
+
},
|
|
2293
|
+
isDefaultFn: (n) => n.options[l.isdefault],
|
|
2294
|
+
getDefaultFn: (n, o) => n.options[o]
|
|
2295
|
+
}
|
|
2296
|
+
}),
|
|
2297
|
+
new e({ name: "defaultValue", type: t.hidden, variable: !1, options: { addFormItem: !1 } }),
|
|
2298
|
+
new e({ name: "type", title: "@displayType", type: t.radiobutton, data: On }),
|
|
2299
|
+
new e({
|
|
2300
|
+
name: "closable",
|
|
2301
|
+
type: t.switch,
|
|
2302
|
+
changeFn: (n, o) => {
|
|
2303
|
+
var f = h(n == null ? void 0 : n.optionModel, "addable"), g = h(n == null ? void 0 : n.optionModel, "closable");
|
|
2304
|
+
m(n == null ? void 0 : n.optionModel, "editable", f && g, !0);
|
|
2305
|
+
}
|
|
2306
|
+
}),
|
|
2307
|
+
new e({
|
|
2308
|
+
name: "addable",
|
|
2309
|
+
type: t.switch,
|
|
2310
|
+
changeFn: (n, o) => {
|
|
2311
|
+
var f = h(n == null ? void 0 : n.optionModel, "addable"), g = h(n == null ? void 0 : n.optionModel, "closable");
|
|
2312
|
+
m(n == null ? void 0 : n.optionModel, "editable", f && g, !0);
|
|
2313
|
+
}
|
|
2314
|
+
}),
|
|
2315
|
+
//addable与closable已囊括,因此不需要展示
|
|
2316
|
+
new e({ name: "editable", title: "@tabsEditable", type: t.hidden, variable: !1, options: { addFormItem: !1 } }),
|
|
2317
|
+
new e({ name: "stretch", type: t.switch }),
|
|
2318
|
+
new e({ name: "tabPosition", type: t.radiobutton, data: Sn }),
|
|
2319
|
+
new e({ name: "beforeLeave", tp: i.common, data: ["activeName: string", "oldActiveName: string"], type: t.javascript, variable: !1 }),
|
|
2320
|
+
new e({ name: "tabClick", tp: i.event, data: ["pane:TabsPaneContext", "ev:Event"], type: t.targetEvent, variable: !1 }),
|
|
2321
|
+
new e({ name: "tabChange", tp: i.event, data: ["name:TabPaneName"], type: t.targetEvent, variable: !1 }),
|
|
2322
|
+
new e({ name: "tabRemove", tp: i.event, data: ["name:TabPaneName"], type: t.targetEvent, variable: !1 }),
|
|
2323
|
+
new e({ name: "tabAdd", tp: i.event, data: [], type: t.targetEvent, variable: !1 }),
|
|
2324
|
+
new e({ name: "edit", tp: i.event, data: ["paneName:TabPaneName", "action:string"], type: t.targetEvent, variable: !1 })
|
|
2325
|
+
], pa = [
|
|
2326
|
+
a.label,
|
|
2327
|
+
a.lazy,
|
|
2328
|
+
a.isdefault,
|
|
2329
|
+
a.disabled
|
|
2330
|
+
], da = [], ma = [
|
|
2331
|
+
a.cellWidth,
|
|
2332
|
+
a.cellHeight,
|
|
2333
|
+
//#region 隐藏属性
|
|
2334
|
+
new e({ name: "colspan", type: t.inputNumber, visibleFn: !1 }),
|
|
2335
|
+
new e({ name: "rowspan", type: t.inputNumber, visibleFn: !1 })
|
|
2336
|
+
//#endregion
|
|
2337
|
+
], ca = [
|
|
2338
|
+
a.default,
|
|
2339
|
+
a.content,
|
|
2340
|
+
a.size,
|
|
2341
|
+
a.tag,
|
|
2342
|
+
a.label,
|
|
2343
|
+
new e({ name: "type", title: "@displayType", type: t.selectGroup, data: xt }),
|
|
2344
|
+
new e({ name: "truncated", type: t.switch })
|
|
2345
|
+
], ua = [
|
|
2346
|
+
a.showWordLimit,
|
|
2347
|
+
a.minlength,
|
|
2348
|
+
a.maxlength,
|
|
2349
|
+
new e({ name: "rows", type: t.inputNumber }),
|
|
2350
|
+
new e({ name: "autosize", type: t.switch }),
|
|
2351
|
+
new e({ name: "resize", type: t.radiobutton, data: Rn })
|
|
2352
|
+
], wa = [
|
|
2353
|
+
a.editable,
|
|
2354
|
+
a.timeValueFormat,
|
|
2355
|
+
a.popperClass,
|
|
2356
|
+
a.teleported,
|
|
2357
|
+
a.prefixIcon,
|
|
2358
|
+
a.clearIcon,
|
|
2359
|
+
a.visibleChange,
|
|
2360
|
+
a.timeFormat,
|
|
2361
|
+
a.disabledHours,
|
|
2362
|
+
a.disabledMinutes,
|
|
2363
|
+
a.disabledSeconds,
|
|
2364
|
+
a.arrowControl,
|
|
2365
|
+
a.isRange,
|
|
2366
|
+
new e({ name: "defaultValue", type: t.time, editor: r.value, attrs: { isRange: !1 } }),
|
|
2367
|
+
new e({ name: "autoFullWidth", type: t.switch })
|
|
2368
|
+
], va = [
|
|
2369
|
+
a.editable,
|
|
2370
|
+
a.timeValueFormat,
|
|
2371
|
+
a.popperClass,
|
|
2372
|
+
a.teleported,
|
|
2373
|
+
a.prefixIcon,
|
|
2374
|
+
a.clearIcon,
|
|
2375
|
+
a.visibleChange,
|
|
2376
|
+
a.arrowControl,
|
|
2377
|
+
a.disabledHours,
|
|
2378
|
+
a.disabledMinutes,
|
|
2379
|
+
a.disabledSeconds,
|
|
2380
|
+
a.startPlaceholder,
|
|
2381
|
+
a.endPlaceholder,
|
|
2382
|
+
a.isRange,
|
|
2383
|
+
new e({ name: "defaultValue", type: t.time, editor: r.value, attrs: { isRange: !0 } }),
|
|
2384
|
+
new e({ name: "placeholder", visibleFn: !1 })
|
|
2385
|
+
], ba = [
|
|
2386
|
+
a.effect,
|
|
2387
|
+
a.prefixIcon,
|
|
2388
|
+
a.clearIcon,
|
|
2389
|
+
a.emptyValues,
|
|
2390
|
+
a.valueOnClear,
|
|
2391
|
+
a.timeFormat1,
|
|
2392
|
+
new e({ name: "start", title: "@startTime", type: t.timeHHmm }),
|
|
2393
|
+
new e({ name: "end", title: "@endTime", type: t.timeHHmm }),
|
|
2394
|
+
new e({ name: "step", type: t.timeHHmm }),
|
|
2395
|
+
new e({ name: "minTime", type: t.timeHHmm }),
|
|
2396
|
+
new e({ name: "maxTime", type: t.timeHHmm }),
|
|
2397
|
+
new e({ name: "clear", tp: i.event, data: [], type: t.targetEvent, variable: !1 })
|
|
2398
|
+
], ce = (n) => c.getOption(n, "draggable") || !1, pt = [
|
|
2399
|
+
a.emptyText,
|
|
2400
|
+
a.lazy,
|
|
2401
|
+
a.accordion,
|
|
2402
|
+
a.draggable,
|
|
2403
|
+
a.icon,
|
|
2404
|
+
a.empty,
|
|
2405
|
+
a.tree_optionDefault,
|
|
2406
|
+
new e({ name: "nodeKey", rules: [new We({ required: !0, message: T.i18nt("designer.hint.required"), trigger: ["blur", "change"] })], visibleFn: y }),
|
|
2407
|
+
new e({ name: "renderAfterExpand", type: t.switch }),
|
|
2408
|
+
new e({
|
|
2409
|
+
name: "load",
|
|
2410
|
+
data: ["node:Node", "resolve:Function", "reject:Function"],
|
|
2411
|
+
type: t.javascript,
|
|
2412
|
+
variable: !1,
|
|
2413
|
+
visibleFn: F
|
|
2414
|
+
}),
|
|
2415
|
+
new e({ name: "highlightCurrent", type: t.switch }),
|
|
2416
|
+
new e({ name: "defaultExpandAll", type: t.switch }),
|
|
2417
|
+
new e({ name: "expandOnClickNode", type: t.switch }),
|
|
2418
|
+
new e({ name: "checkOnClickNode", type: t.switch }),
|
|
2419
|
+
new e({ name: "autoExpandParent", type: t.switch }),
|
|
2420
|
+
//defaultExpandedKeys
|
|
2421
|
+
new e({ name: "showCheckbox", type: t.switch }),
|
|
2422
|
+
new e({ name: "checkStrictly", type: t.switch }),
|
|
2423
|
+
//defaultCheckedKeys
|
|
2424
|
+
//currentNodeKey
|
|
2425
|
+
new e({ name: "indent", type: t.inputNumber }),
|
|
2426
|
+
new e({
|
|
2427
|
+
name: "allowDrag",
|
|
2428
|
+
data: ["node:Node"],
|
|
2429
|
+
type: t.javascript,
|
|
2430
|
+
variable: !1
|
|
2431
|
+
}),
|
|
2432
|
+
new e({
|
|
2433
|
+
name: "allowDrop",
|
|
2434
|
+
data: ["draggingNode:Node", "dropNode:Node", "type:String"],
|
|
2435
|
+
type: t.javascript,
|
|
2436
|
+
variable: !1
|
|
2437
|
+
}),
|
|
2438
|
+
new e({
|
|
2439
|
+
name: "renderContent",
|
|
2440
|
+
data: ["h:any", "item:{ node:Node, data:any[], store:any }"],
|
|
2441
|
+
type: t.javascript,
|
|
2442
|
+
variable: !1
|
|
2443
|
+
}),
|
|
2444
|
+
new e({ name: "filterNodeMethod", data: ["value:object", "data:object", "node:Node"], type: t.javascript, variable: !1 }),
|
|
2445
|
+
new e({ name: "nodeClick", tp: i.event, data: ["data:object", "node:Node", "treeNode:TreeNode", "event:Event"], type: t.targetEvent, variable: !1 }),
|
|
2446
|
+
new e({ name: "nodeContextmenu", tp: i.event, data: ["event:Event", "data:object", "node:Node", "treeNode:object"], type: t.targetEvent, variable: !1 }),
|
|
2447
|
+
new e({ name: "checkChange", tp: i.event, data: ["data:object", "isChecked:boolean", "isLeafChecked:boolean"], type: t.targetEvent, variable: !1 }),
|
|
2448
|
+
new e({ name: "check", tp: i.event, data: ["data:object", "checkedNodes:{checkedNodes:Node[],checkedKeys:string[],halfCheckedNodes:Node[],halfCheckedKeys:string[]}"], type: t.targetEvent, variable: !1 }),
|
|
2449
|
+
new e({ name: "currentChange", tp: i.event, data: ["data:object", "node:Node"], type: t.targetEvent, variable: !1 }),
|
|
2450
|
+
new e({ name: "nodeExpand", tp: i.event, data: ["data:object", "node:Node", "treeNode:object"], type: t.targetEvent, variable: !1 }),
|
|
2451
|
+
new e({ name: "nodeCollapse", tp: i.event, data: ["data:object", "node:Node", "treeNode:object"], type: t.targetEvent, variable: !1 }),
|
|
2452
|
+
new e({ name: "nodeDragStart", tp: i.event, data: ["sourceNode:Node", "event:Event"], type: t.targetEvent, variable: !1, visibleFn: ce }),
|
|
2453
|
+
new e({ name: "nodeDragEnter", tp: i.event, data: ["sourceNode:Node", "targetNode:Node", "event:Event"], type: t.targetEvent, variable: !1, visibleFn: ce }),
|
|
2454
|
+
new e({ name: "nodeDragLeave", tp: i.event, data: ["sourceNode:Node", "targetNode:Node", "event:Event"], type: t.targetEvent, variable: !1, visibleFn: ce }),
|
|
2455
|
+
new e({ name: "nodeDragOver", tp: i.event, data: ["sourceNode:Node", "targetNode:Node", "event:Event"], type: t.targetEvent, variable: !1, visibleFn: ce }),
|
|
2456
|
+
new e({ name: "nodeDragEnd", tp: i.event, data: ["sourceNode:Node", "targetNode:Node", "pos:string", "event:Event"], type: t.targetEvent, variable: !1, visibleFn: ce }),
|
|
2457
|
+
new e({ name: "nodeDrop", tp: i.event, data: ["sourceNode:Node", "targetNode:Node", "pos:string", "event:Event"], type: t.targetEvent, variable: !1, visibleFn: ce }),
|
|
2458
|
+
new e({ name: "labelProp", data: ["data:object", "node:Node"], type: t.javascript, variable: !1, options: { dividerTitle: "@propSetting" } }),
|
|
2459
|
+
new e({ name: "childrenProp", data: ["data:object", "node:Node"], type: t.javascript, variable: !1 }),
|
|
2460
|
+
new e({ name: "disabledProp", data: ["data:object", "node:Node"], type: t.targetEvent, variable: !1 }),
|
|
2461
|
+
new e({ name: "isLeafProp", data: ["data:object", "node:Node"], type: t.javascript, variable: !1, visibleFn: F }),
|
|
2462
|
+
new e({ name: "classProp", data: ["data:object", "node:Node"], type: t.javascript, variable: !1, visibleFn: F }),
|
|
2463
|
+
new e({
|
|
2464
|
+
name: l.optionItems,
|
|
2465
|
+
type: t.treeEdit,
|
|
2466
|
+
variable: !1,
|
|
2467
|
+
options: {
|
|
2468
|
+
noRowLabel: !0,
|
|
2469
|
+
newRowLabel: !0,
|
|
2470
|
+
addFormItem: !1,
|
|
2471
|
+
dividerTitle: "@" + l.optionItems,
|
|
2472
|
+
multipleFn: (n) => c.getOption(n, "showCheckbox")
|
|
2473
|
+
},
|
|
2474
|
+
attrs: {
|
|
2475
|
+
tools: [d.rank, d.add, d.clone, d.delete, d.edit, d.import],
|
|
2476
|
+
editorType: L.popover,
|
|
2477
|
+
keys: S(s.tree),
|
|
2478
|
+
path: l.optionItems
|
|
2479
|
+
},
|
|
2480
|
+
editor: r.value,
|
|
2481
|
+
changeFn: (n, o) => {
|
|
2482
|
+
o === Pt.selfValue && m(n == null ? void 0 : n.optionModel, "nodeKey", "value", !0);
|
|
2483
|
+
}
|
|
2484
|
+
}),
|
|
2485
|
+
a.name_optionitems,
|
|
2486
|
+
a.label_optionitems,
|
|
2487
|
+
a.value_optionitems,
|
|
2488
|
+
a.isdefault_optionitems,
|
|
2489
|
+
a.children_optionitems,
|
|
2490
|
+
a.isopen_optionitems
|
|
2491
|
+
], ya = [
|
|
2492
|
+
new e({ name: "treeDivider", type: t.none, variable: !1, options: { addFormItem: !1, dividerTitle: "@treeSetting" } }),
|
|
2493
|
+
...pt,
|
|
2494
|
+
new e({ name: "selectDivider", type: t.none, variable: !1, options: { addFormItem: !1, dividerTitle: "@selectSetting" } }),
|
|
2495
|
+
...st
|
|
2496
|
+
], dt = [
|
|
2497
|
+
a.multiple,
|
|
2498
|
+
new e({ name: "defaultValue", type: t.hidden, visibleFn: !1 }),
|
|
2499
|
+
new e({ name: "action", options: { dividerTitle: "@fileUploadSetting" } }),
|
|
2500
|
+
new e({ name: "uploadTip" }),
|
|
2501
|
+
new e({ name: "withCredentials", type: t.switch }),
|
|
2502
|
+
new e({ name: "dataFn", type: t.javascript, variable: !1, data: [] }),
|
|
2503
|
+
new e({ name: "autoUpload", type: t.switch }),
|
|
2504
|
+
new e({ name: "fileMaxSize", type: t.inputNumber, attrs: { min: 1 } }),
|
|
2505
|
+
new e({ name: "limit", type: t.inputNumber, attrs: { min: 1 } }),
|
|
2506
|
+
new e({ name: "showFileList", type: t.switch }),
|
|
2507
|
+
new e({ name: "drag", type: t.switch }),
|
|
2508
|
+
// new PropertyConfig({ name: "multipleSelect", type: PropDataType.switch }),
|
|
2509
|
+
new e({ name: "fileTypes", type: t.selectGroup, data: v(Mn), options: { tipContent: "@fileTypesHelp" }, attrs: { defaultFirstOption: !0, multiple: !0, allowCreate: !0, filterable: !0 } }),
|
|
2510
|
+
new e({ name: "beforeUpload", tp: i.event, data: ["rawFile: UploadRawFile"], type: t.targetEvent, variable: !1 }),
|
|
2511
|
+
new e({ name: "uploadSuccess", tp: i.event, data: ["result", "file", "fileList"], type: t.targetEvent, variable: !1 }),
|
|
2512
|
+
new e({ name: "uploadError", tp: i.event, data: ["error", "file", "fileList"], type: t.targetEvent, variable: !1 }),
|
|
2513
|
+
new e({ name: "fileRemove", tp: i.event, data: ["file", "fileList"], type: t.targetEvent, variable: !1 })
|
|
2514
|
+
], fa = [
|
|
2515
|
+
new e({ name: "ctrlWidth", editor: r.size, type: t.selectGroup, data: v(I), options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
2516
|
+
new e({ name: "ctrlHeight", editor: r.size, type: t.selectGroup, data: v(I), options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
2517
|
+
a.mixData("dataSource"),
|
|
2518
|
+
new e({ name: "chartOption", data: ["chartData:any"], type: t.javascript, variable: !1 })
|
|
2519
|
+
], ha = [
|
|
2520
|
+
new e({ name: "src", title: "@href" }),
|
|
2521
|
+
new e({ name: "withQuery", type: t.switch }),
|
|
2522
|
+
new e({ name: "onLoaded", tp: i.event, data: [], type: t.targetEvent, variable: !1 })
|
|
2523
|
+
], ga = [
|
|
2524
|
+
new e({ name: "hidden", type: t.switch }),
|
|
2525
|
+
new e({ name: "disabled", type: t.switch })
|
|
2526
|
+
], O = (n) => {
|
|
2527
|
+
var o = c.getOption(n, "protocal");
|
|
2528
|
+
return o === void 0 || o === B.REMOTE;
|
|
2529
|
+
}, mt = (n) => {
|
|
2530
|
+
["params"].forEach((g) => {
|
|
2531
|
+
h(n == null ? void 0 : n.optionModel, g) === void 0 && m(n == null ? void 0 : n.optionModel, g, [], !1);
|
|
2532
|
+
}), ["willFetch", "fitFetch", "errorFetch", "didFetch"].forEach((g) => {
|
|
2533
|
+
h(n == null ? void 0 : n.optionModel, g) === void 0 && m(n == null ? void 0 : n.optionModel, g, new ne(Dn.hook, void 0, new Yn()), !1);
|
|
2534
|
+
});
|
|
2535
|
+
}, Ta = [
|
|
2536
|
+
//#region 隐藏属性
|
|
2537
|
+
new e({ name: "id", path: l.schema, visibleFn: !1 }),
|
|
2538
|
+
new e({ name: "isReadonly", path: l.schema, visibleFn: !1 }),
|
|
2539
|
+
//#endregion
|
|
2540
|
+
new e({ name: "customClass", tp: i.style, editor: r.customClass, type: t.selectGroup, title: "@pageCssClass", options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
2541
|
+
new e({ name: "componentWrapperClass", tp: i.style, editor: r.customClass, type: t.selectGroup, title: "@compWrapCssClass", options: { tipContent: "@customClassHelp" }, attrs: { multiple: !0, filterable: !0, allowCreate: !0, defaultFirstOption: !0 } }),
|
|
2542
|
+
new e({ name: "size", title: "@pageSizeP", tp: i.common, type: t.radiobutton, data: Ge }),
|
|
2543
|
+
new e({ name: "layoutType", tp: i.common, type: t.radiobutton, data: v(Vn) }),
|
|
2544
|
+
new e({ name: "cssCode", title: "@pageCss", tp: i.global, type: t.css, variable: !1 }),
|
|
2545
|
+
new e({ name: "functions", title: "@globalFunctions", tp: i.global, type: t.javascript, variable: !1, options: { passExternalArgs: !1 } }),
|
|
2546
|
+
new e({ name: "jsonVersion", tp: i.global, variable: !1 }),
|
|
2547
|
+
new e({
|
|
2548
|
+
name: "willFetch",
|
|
2549
|
+
tp: i.global,
|
|
2550
|
+
variable: !1,
|
|
2551
|
+
type: t.javascript,
|
|
2552
|
+
data: ["vars:{data:any}", "config:{headers:any,url:string}"],
|
|
2553
|
+
options: { dividerTitle: "@dataFetch", passExternalArgs: !0 },
|
|
2554
|
+
visibleFn: O
|
|
2555
|
+
}),
|
|
2556
|
+
new e({
|
|
2557
|
+
name: "fitFetch",
|
|
2558
|
+
tp: i.global,
|
|
2559
|
+
variable: !1,
|
|
2560
|
+
type: t.javascript,
|
|
2561
|
+
data: ["vars:{data:any}", "response:any"],
|
|
2562
|
+
options: { passExternalArgs: !0 },
|
|
2563
|
+
visibleFn: O
|
|
2564
|
+
}),
|
|
2565
|
+
new e({
|
|
2566
|
+
name: "didFetch",
|
|
2567
|
+
tp: i.global,
|
|
2568
|
+
variable: !1,
|
|
2569
|
+
type: t.javascript,
|
|
2570
|
+
data: ["vars:{data:any}", "content:any"],
|
|
2571
|
+
options: { passExternalArgs: !0 },
|
|
2572
|
+
visibleFn: O
|
|
2573
|
+
}),
|
|
2574
|
+
new e({
|
|
2575
|
+
name: "errorFetch",
|
|
2576
|
+
tp: i.global,
|
|
2577
|
+
variable: !1,
|
|
2578
|
+
type: t.javascript,
|
|
2579
|
+
data: ["vars:{data:any}", "error:any"],
|
|
2580
|
+
options: { passExternalArgs: !0 },
|
|
2581
|
+
visibleFn: O
|
|
2582
|
+
}),
|
|
2583
|
+
new e({ name: "pageCreated", tp: i.event, type: t.javascript, variable: !1 }),
|
|
2584
|
+
new e({ name: "pageMounted", tp: i.event, type: t.javascript, variable: !1 }),
|
|
2585
|
+
new e({
|
|
2586
|
+
name: l.schema,
|
|
2587
|
+
tp: i.global,
|
|
2588
|
+
type: t.multirow,
|
|
2589
|
+
variable: !1,
|
|
2590
|
+
options: {
|
|
2591
|
+
noRowLabel: !0,
|
|
2592
|
+
newRowLabel: !0,
|
|
2593
|
+
dividerTitle: "@globalSchema"
|
|
2594
|
+
},
|
|
2595
|
+
attrs: {
|
|
2596
|
+
path: l.schema,
|
|
2597
|
+
editorType: L.drawer,
|
|
2598
|
+
keys: gt.getKeys(),
|
|
2599
|
+
labelKey: "name",
|
|
2600
|
+
itemTemplate: w(),
|
|
2601
|
+
itemDetailTemplate: k(),
|
|
2602
|
+
tools: [
|
|
2603
|
+
d.rank,
|
|
2604
|
+
d.add,
|
|
2605
|
+
d.edit,
|
|
2606
|
+
d.clone,
|
|
2607
|
+
d.delete,
|
|
2608
|
+
d.detail
|
|
2609
|
+
],
|
|
2610
|
+
newOptionFn: () => new gt()
|
|
2611
|
+
}
|
|
2612
|
+
}),
|
|
2613
|
+
//#region schema
|
|
2614
|
+
new e({
|
|
2615
|
+
name: "protocal",
|
|
2616
|
+
path: l.schema,
|
|
2617
|
+
type: t.radiobutton,
|
|
2618
|
+
variable: !1,
|
|
2619
|
+
data: _n.filter((n) => [B.REMOTE, B.VALUE].includes(n.value)),
|
|
2620
|
+
// l.value !== ProtocalType.URI
|
|
2621
|
+
visibleFn: (n) => {
|
|
2622
|
+
var g, te;
|
|
2623
|
+
var o = (g = n == null ? void 0 : n.optionModel) == null ? void 0 : g.protocal, f = [];
|
|
2624
|
+
return o === B.VALUE ? f = ["initialData", "protocal", "id", "name", "description"] : o === B.REMOTE ? f = [
|
|
2625
|
+
"protocal",
|
|
2626
|
+
"id",
|
|
2627
|
+
"name",
|
|
2628
|
+
"description",
|
|
2629
|
+
"url",
|
|
2630
|
+
"method",
|
|
2631
|
+
"loadType",
|
|
2632
|
+
"params",
|
|
2633
|
+
"headers",
|
|
2634
|
+
"data",
|
|
2635
|
+
"responseType",
|
|
2636
|
+
"responseEncoding",
|
|
2637
|
+
"maxContentLength",
|
|
2638
|
+
"maxBodyLength",
|
|
2639
|
+
"timeout",
|
|
2640
|
+
"withCredentials",
|
|
2641
|
+
"shouldFetch",
|
|
2642
|
+
"willFetch",
|
|
2643
|
+
"fitFetch",
|
|
2644
|
+
"errorFetch",
|
|
2645
|
+
"didFetch"
|
|
2646
|
+
] : [B.CONFIG, B.URI].includes(o) && (f = ["protocal", "id", "name", "description"]), mt(n), (te = Oe(Pe(n.optionModel))) == null || te.forEach((ae) => {
|
|
2647
|
+
var ge;
|
|
2648
|
+
f.includes(ae) || (ge = n.optionModel) == null || delete ge[ae];
|
|
2649
|
+
}), !0;
|
|
2650
|
+
},
|
|
2651
|
+
changeFn: (n, o) => {
|
|
2652
|
+
var g;
|
|
2653
|
+
var f = ["protocal", "id", "name", "description"];
|
|
2654
|
+
o === B.VALUE ? f.push("initialData") : o === B.REMOTE ? f.push("url", "method", "loadType", "params", "headers", "data", "responseType", "responseEncoding", "maxContentLength", "maxBodyLength", "timeout", "withCredentials", "shouldFetch", "willFetch", "fitFetch", "errorFetch", "didFetch") : B.URI, mt(n), (g = Oe(Pe(n.optionModel))) == null || g.forEach((te) => {
|
|
2655
|
+
var ae;
|
|
2656
|
+
f.includes(te) || (ae = n.optionModel) == null || delete ae[te];
|
|
2657
|
+
});
|
|
2658
|
+
}
|
|
2659
|
+
}),
|
|
2660
|
+
new e({ name: "description", path: l.schema, type: t.textarea, variable: !1, attrs: { rows: 3 } }),
|
|
2661
|
+
new e({ name: "name", path: l.schema, variable: !1, title: "@schemaName", rules: [new We({ required: !0, message: T.i18nt("designer.hint.required"), trigger: ["blur", "change"] })] }),
|
|
2662
|
+
new e({
|
|
2663
|
+
name: "initialData",
|
|
2664
|
+
path: l.schema,
|
|
2665
|
+
type: t.json,
|
|
2666
|
+
variable: !1,
|
|
2667
|
+
options: { codeEdit: !0, tipContent: "@initialDataHelp", showOptionEnable: !1 },
|
|
2668
|
+
attrs: { mode: K.text, rows: 5 },
|
|
2669
|
+
visibleFn: (n) => c.getOption(n, "protocal") === B.VALUE
|
|
2670
|
+
}),
|
|
2671
|
+
new e({
|
|
2672
|
+
name: "url",
|
|
2673
|
+
path: l.schema,
|
|
2674
|
+
type: t.textarea,
|
|
2675
|
+
variable: !1,
|
|
2676
|
+
options: { tipContent: "@initialDataHelp" },
|
|
2677
|
+
rules: [new We({ required: !0, message: T.i18nt("designer.hint.required"), trigger: ["blur", "change"] })],
|
|
2678
|
+
visibleFn: O,
|
|
2679
|
+
attrs: { rows: 2 }
|
|
2680
|
+
}),
|
|
2681
|
+
new e({
|
|
2682
|
+
name: l.params,
|
|
2683
|
+
path: l.schema,
|
|
2684
|
+
variable: !1,
|
|
2685
|
+
type: t.multirow,
|
|
2686
|
+
attrs: {
|
|
2687
|
+
keys: ["name", "value", "sid"],
|
|
2688
|
+
labelKey: "name",
|
|
2689
|
+
path: l.params,
|
|
2690
|
+
tools: [
|
|
2691
|
+
d.add,
|
|
2692
|
+
d.edit,
|
|
2693
|
+
d.clone,
|
|
2694
|
+
d.delete,
|
|
2695
|
+
d.rank
|
|
2696
|
+
],
|
|
2697
|
+
newOptionFn: () => ({ sid: ve() })
|
|
2698
|
+
},
|
|
2699
|
+
visibleFn: O
|
|
2700
|
+
}),
|
|
2701
|
+
new e({
|
|
2702
|
+
name: l.headers,
|
|
2703
|
+
path: l.schema,
|
|
2704
|
+
variable: !1,
|
|
2705
|
+
type: t.multirow,
|
|
2706
|
+
attrs: {
|
|
2707
|
+
keys: ["name", "value", "sid"],
|
|
2708
|
+
labelKey: "name",
|
|
2709
|
+
path: l.headers,
|
|
2710
|
+
tools: [
|
|
2711
|
+
d.add,
|
|
2712
|
+
d.edit,
|
|
2713
|
+
d.clone,
|
|
2714
|
+
d.delete,
|
|
2715
|
+
d.rank
|
|
2716
|
+
],
|
|
2717
|
+
newOptionFn: () => ({ sid: ve() })
|
|
2718
|
+
},
|
|
2719
|
+
visibleFn: O
|
|
2720
|
+
}),
|
|
2721
|
+
new e({ name: "name", path: l.params, variable: !1, title: "@paramName" }),
|
|
2722
|
+
new e({ name: "value", path: l.params, variable: !1, title: "@paramValue", options: { tipContent: "@initialDataHelp" } }),
|
|
2723
|
+
new e({ name: "name", path: l.headers, variable: !1, title: "@paramName" }),
|
|
2724
|
+
new e({ name: "value", path: l.headers, variable: !1, title: "@paramValue", options: { tipContent: "@initialDataHelp" } }),
|
|
2725
|
+
//new PropertyConfig({ name: "name", path: pathVar.schema, variable: false, title: "@paramName" }),
|
|
2726
|
+
//new PropertyConfig({ name: "value", path: pathVar.schema, variable: false, title: "@paramValue" }),
|
|
2727
|
+
new e({
|
|
2728
|
+
name: "method",
|
|
2729
|
+
path: l.schema,
|
|
2730
|
+
variable: !1,
|
|
2731
|
+
type: t.radiobutton,
|
|
2732
|
+
data: v(Hn),
|
|
2733
|
+
visibleFn: O
|
|
2734
|
+
}),
|
|
2735
|
+
new e({
|
|
2736
|
+
name: "responseType",
|
|
2737
|
+
path: l.schema,
|
|
2738
|
+
variable: !1,
|
|
2739
|
+
type: t.radiobutton,
|
|
2740
|
+
data: v(Gn),
|
|
2741
|
+
visibleFn: O
|
|
2742
|
+
}),
|
|
2743
|
+
new e({
|
|
2744
|
+
name: "responseEncoding",
|
|
2745
|
+
path: l.schema,
|
|
2746
|
+
variable: !1,
|
|
2747
|
+
type: t.radiobutton,
|
|
2748
|
+
data: v(zn),
|
|
2749
|
+
visibleFn: O
|
|
2750
|
+
}),
|
|
2751
|
+
new e({
|
|
2752
|
+
name: "maxContentLength",
|
|
2753
|
+
path: l.schema,
|
|
2754
|
+
variable: !1,
|
|
2755
|
+
type: t.inputNumber,
|
|
2756
|
+
visibleFn: O
|
|
2757
|
+
}),
|
|
2758
|
+
new e({
|
|
2759
|
+
name: "maxBodyLength",
|
|
2760
|
+
path: l.schema,
|
|
2761
|
+
variable: !1,
|
|
2762
|
+
type: t.inputNumber,
|
|
2763
|
+
visibleFn: O
|
|
2764
|
+
}),
|
|
2765
|
+
new e({
|
|
2766
|
+
name: "timeout",
|
|
2767
|
+
path: l.schema,
|
|
2768
|
+
variable: !1,
|
|
2769
|
+
type: t.inputNumber,
|
|
2770
|
+
visibleFn: O
|
|
2771
|
+
}),
|
|
2772
|
+
new e({
|
|
2773
|
+
name: "withCredentials",
|
|
2774
|
+
path: l.schema,
|
|
2775
|
+
variable: !1,
|
|
2776
|
+
type: t.switch,
|
|
2777
|
+
visibleFn: O
|
|
2778
|
+
}),
|
|
2779
|
+
new e({
|
|
2780
|
+
name: "data",
|
|
2781
|
+
path: l.schema,
|
|
2782
|
+
variable: !1,
|
|
2783
|
+
type: t.json,
|
|
2784
|
+
options: { showOptionEnable: !1, tipContent: "@initialDataHelp" },
|
|
2785
|
+
visibleFn: O
|
|
2786
|
+
}),
|
|
2787
|
+
new e({
|
|
2788
|
+
name: "shouldFetch",
|
|
2789
|
+
path: l.schema,
|
|
2790
|
+
variable: !1,
|
|
2791
|
+
options: { tipContent: "@initialDataHelp" },
|
|
2792
|
+
visibleFn: O
|
|
2793
|
+
}),
|
|
2794
|
+
new e({
|
|
2795
|
+
name: "willFetch",
|
|
2796
|
+
path: l.schema,
|
|
2797
|
+
variable: !1,
|
|
2798
|
+
type: t.javascript,
|
|
2799
|
+
data: ["vars:{data:any}", "config:{headers:any,url:string}"],
|
|
2800
|
+
options: { dividerTitle: "@dataFetch", passExternalArgs: !0 },
|
|
2801
|
+
visibleFn: O
|
|
2802
|
+
}),
|
|
2803
|
+
new e({
|
|
2804
|
+
name: "fitFetch",
|
|
2805
|
+
path: l.schema,
|
|
2806
|
+
variable: !1,
|
|
2807
|
+
type: t.javascript,
|
|
2808
|
+
data: ["vars:{data:any}", "response:any"],
|
|
2809
|
+
options: { passExternalArgs: !0 },
|
|
2810
|
+
visibleFn: O
|
|
2811
|
+
}),
|
|
2812
|
+
new e({
|
|
2813
|
+
name: "didFetch",
|
|
2814
|
+
path: l.schema,
|
|
2815
|
+
variable: !1,
|
|
2816
|
+
type: t.javascript,
|
|
2817
|
+
data: ["vars:{data:any}", "content:any"],
|
|
2818
|
+
options: { passExternalArgs: !0 },
|
|
2819
|
+
visibleFn: O
|
|
2820
|
+
}),
|
|
2821
|
+
new e({
|
|
2822
|
+
name: "errorFetch",
|
|
2823
|
+
path: l.schema,
|
|
2824
|
+
variable: !1,
|
|
2825
|
+
type: t.javascript,
|
|
2826
|
+
data: ["vars:{data:any}", "error:any"],
|
|
2827
|
+
options: { passExternalArgs: !0 },
|
|
2828
|
+
visibleFn: O
|
|
2829
|
+
})
|
|
2830
|
+
//#endregion
|
|
2831
|
+
], Ea = (n, o) => o.map((f) => ({ ...f, widgetType: n })), ct = {
|
|
2832
|
+
[s.affix]: ee,
|
|
2833
|
+
[s.anchor]: M,
|
|
2834
|
+
[s.autoComplete]: q,
|
|
2835
|
+
[s.avatar]: E,
|
|
2836
|
+
[s.backtop]: z,
|
|
2837
|
+
[s.badge]: X,
|
|
2838
|
+
[s.breadcrumb]: Ke,
|
|
2839
|
+
[s.button]: G,
|
|
2840
|
+
[s.card]: A,
|
|
2841
|
+
[s.carousel]: ye,
|
|
2842
|
+
[s.cascader]: N,
|
|
2843
|
+
[s.checkbox]: Re,
|
|
2844
|
+
[s.collapse]: _e,
|
|
2845
|
+
[s.colorPicker]: ie,
|
|
2846
|
+
[s.cont]: Ne,
|
|
2847
|
+
[s.chart]: fa,
|
|
2848
|
+
// [WidgetType.contCell]: container_cell_PROPERTIES,
|
|
2849
|
+
[s.datePicker]: le,
|
|
2850
|
+
[s.datePickerRange]: je,
|
|
2851
|
+
[s.descriptions]: oe,
|
|
2852
|
+
[s.dialog]: he,
|
|
2853
|
+
[s.divider]: ke,
|
|
2854
|
+
[s.drawer]: he,
|
|
2855
|
+
//与dialog属性基本一致
|
|
2856
|
+
[s.dropdown]: Le,
|
|
2857
|
+
[s.eltable]: _,
|
|
2858
|
+
[s.empty]: x,
|
|
2859
|
+
[s.fileUpload]: dt,
|
|
2860
|
+
[s.form]: H,
|
|
2861
|
+
[s.grid]: j,
|
|
2862
|
+
[s.gridCol]: Dt,
|
|
2863
|
+
[s.htmlText]: Vt,
|
|
2864
|
+
[s.image]: Gt,
|
|
2865
|
+
[s.input]: Ht,
|
|
2866
|
+
[s.link]: zt,
|
|
2867
|
+
[s.menu]: At,
|
|
2868
|
+
[s.multirow]: Wt,
|
|
2869
|
+
[s.model]: Bt,
|
|
2870
|
+
[s.number]: qt,
|
|
2871
|
+
[s.range]: Ut,
|
|
2872
|
+
[s.page]: Ta,
|
|
2873
|
+
[s.pagination]: Qt,
|
|
2874
|
+
[s.pictureUpload]: dt,
|
|
2875
|
+
[s.progress]: Xt,
|
|
2876
|
+
[s.radio]: Yt,
|
|
2877
|
+
[s.rate]: $t,
|
|
2878
|
+
[s.result]: Jt,
|
|
2879
|
+
[s.richEditor]: ea,
|
|
2880
|
+
[s.router]: Zt,
|
|
2881
|
+
[s.select]: st,
|
|
2882
|
+
[s.slider]: ia,
|
|
2883
|
+
[s.staticText]: oa,
|
|
2884
|
+
[s.steps]: ta,
|
|
2885
|
+
[s.switch]: la,
|
|
2886
|
+
[s.table]: da,
|
|
2887
|
+
[s.tableCol]: ma,
|
|
2888
|
+
[s.tabs]: ra,
|
|
2889
|
+
[s.tabPane]: pa,
|
|
2890
|
+
[s.tag]: sa,
|
|
2891
|
+
[s.textarea]: ua,
|
|
2892
|
+
[s.tmpl]: Kt,
|
|
2893
|
+
[s.timePicker]: wa,
|
|
2894
|
+
[s.timePickerRange]: va,
|
|
2895
|
+
[s.timeSelect]: ba,
|
|
2896
|
+
[s.tree]: pt,
|
|
2897
|
+
[s.treeSelect]: ya,
|
|
2898
|
+
[s.text]: ca,
|
|
2899
|
+
[s.iframe]: ha,
|
|
2900
|
+
[s.wrapper]: ga,
|
|
2901
|
+
[s.none]: C,
|
|
2902
|
+
[s.modalDialog]: Me,
|
|
2903
|
+
[s.saveFormTarget]: p,
|
|
2904
|
+
[s.targetDatasource]: P
|
|
2905
|
+
}, ut = {};
|
|
2906
|
+
return (wt = Oe(ct)) == null || wt.map((n) => {
|
|
2907
|
+
ut[n] = Ea(n, ct[n]);
|
|
2908
|
+
}), {
|
|
2909
|
+
ALLPROPERTIES: ut
|
|
2910
|
+
};
|
|
2911
|
+
}
|
|
2912
|
+
function ti() {
|
|
2913
|
+
const { ALLPROPERTIES: u } = ei(), m = (y, F, a) => y == null ? void 0 : y.filter((C) => Mt(C == null ? void 0 : C.tp) ? !1 : Array.isArray(F) ? F.includes(C == null ? void 0 : C.tp) : (C == null ? void 0 : C.tp) === F), h = (y, F, a, C) => {
|
|
2914
|
+
var w = [], k = [], q = Oe(F), E = Oe(a);
|
|
2915
|
+
y && q && (w = q.map((M) => D(M, y, void 0, C))), E && (k = E.map((M) => D(M, s.page, void 0, C)));
|
|
2916
|
+
var ee = [
|
|
2917
|
+
{
|
|
2918
|
+
index: Se.widgetSetting,
|
|
2919
|
+
title: T.i18nt("designer.widgetSetting"),
|
|
2920
|
+
data: F,
|
|
2921
|
+
props: [
|
|
2922
|
+
{
|
|
2923
|
+
index: "1",
|
|
2924
|
+
title: T.i18nt("designer.setting.commonSetting"),
|
|
2925
|
+
data: m(w, i.common),
|
|
2926
|
+
show: !0,
|
|
2927
|
+
default: !0
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
index: "2",
|
|
2931
|
+
title: T.i18nt("designer.setting.advancedSetting"),
|
|
2932
|
+
data: m(w, i.advanced),
|
|
2933
|
+
show: !0,
|
|
2934
|
+
default: !0
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
index: "3",
|
|
2938
|
+
title: T.i18nt("designer.setting.validSetting"),
|
|
2939
|
+
data: m(w, i.valid),
|
|
2940
|
+
show: !0,
|
|
2941
|
+
default: !1
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
index: "4",
|
|
2945
|
+
title: T.i18nt("designer.setting.eventSetting"),
|
|
2946
|
+
data: m(w, i.event),
|
|
2947
|
+
show: !0,
|
|
2948
|
+
default: !1
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
index: "5",
|
|
2952
|
+
title: T.i18nt("designer.setting.popperSetting"),
|
|
2953
|
+
data: m(w, i.popper),
|
|
2954
|
+
show: !0,
|
|
2955
|
+
default: !1
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
index: "6",
|
|
2959
|
+
title: T.i18nt("designer.setting.labelSetting"),
|
|
2960
|
+
data: m(w, i.label),
|
|
2961
|
+
show: !0,
|
|
2962
|
+
default: !1
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
index: "7",
|
|
2966
|
+
title: T.i18nt("designer.setting.slotSetting"),
|
|
2967
|
+
data: m(w, i.slot),
|
|
2968
|
+
show: !0,
|
|
2969
|
+
default: !1
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
index: "8",
|
|
2973
|
+
title: T.i18nt("designer.setting.styleSetting"),
|
|
2974
|
+
data: m(w, i.style),
|
|
2975
|
+
show: !0,
|
|
2976
|
+
default: !1
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
index: "9",
|
|
2980
|
+
title: T.i18nt("designer.setting.otherSetting"),
|
|
2981
|
+
data: m(w, i.other),
|
|
2982
|
+
show: !0,
|
|
2983
|
+
default: !1
|
|
2984
|
+
}
|
|
2985
|
+
]
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
index: Se.formSetting,
|
|
2989
|
+
title: T.i18nt("designer.formSetting"),
|
|
2990
|
+
data: a,
|
|
2991
|
+
props: [
|
|
2992
|
+
{
|
|
2993
|
+
index: "1",
|
|
2994
|
+
title: T.i18nt("designer.setting.commonSetting"),
|
|
2995
|
+
data: m(k, i.common),
|
|
2996
|
+
show: !0
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
index: "2",
|
|
3000
|
+
title: T.i18nt("designer.setting.advancedSetting"),
|
|
3001
|
+
data: m(k, i.advanced),
|
|
3002
|
+
show: !0
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
index: "3",
|
|
3006
|
+
title: T.i18nt("designer.setting.eventSetting"),
|
|
3007
|
+
data: m(k, i.event),
|
|
3008
|
+
show: !0
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
index: "6",
|
|
3012
|
+
title: T.i18nt("designer.setting.labelSetting"),
|
|
3013
|
+
data: m(k, i.label),
|
|
3014
|
+
show: !0,
|
|
3015
|
+
default: !1
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
index: "7",
|
|
3019
|
+
title: T.i18nt("designer.setting.styleSetting"),
|
|
3020
|
+
data: m(k, i.style),
|
|
3021
|
+
show: !0,
|
|
3022
|
+
default: !1
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
index: "8",
|
|
3026
|
+
title: T.i18nt("designer.setting.globalFormSet"),
|
|
3027
|
+
data: m(k, i.global),
|
|
3028
|
+
show: !0
|
|
3029
|
+
}
|
|
3030
|
+
]
|
|
3031
|
+
}
|
|
3032
|
+
];
|
|
3033
|
+
return ee;
|
|
3034
|
+
}, b = (y, F, a, C) => {
|
|
3035
|
+
var ee;
|
|
3036
|
+
if (!y || !F)
|
|
3037
|
+
return null;
|
|
3038
|
+
var w = u[F], k = u[s.none];
|
|
3039
|
+
const q = (M) => {
|
|
3040
|
+
var G = M == null ? void 0 : M.filter((X) => X.name === y), z = G == null ? void 0 : G.find((X) => X.path === a);
|
|
3041
|
+
return z || a || (z = G == null ? void 0 : G.find((X) => !X.path)), z;
|
|
3042
|
+
};
|
|
3043
|
+
var E = q(w);
|
|
3044
|
+
if ((!E || (E == null ? void 0 : E.length) <= 0) && (E = q(k)), E || console.log(y, F, a, "未找到"), !(E != null && E.filterFn && !((ee = E == null ? void 0 : E.filterFn) != null && ee.call(E, C))))
|
|
3045
|
+
return E;
|
|
3046
|
+
}, R = (y, F, a) => !!b(y, F, void 0, a), D = (y, F, a, C) => {
|
|
3047
|
+
var w = b(y, F, a, C);
|
|
3048
|
+
return w || (w = b(y, F, void 0, C), w) || (w = b(y, void 0, a, C), w) || (w = b(y, void 0, void 0, C)), w;
|
|
3049
|
+
}, { components: V } = Zn();
|
|
3050
|
+
return {
|
|
3051
|
+
propTypeList: h,
|
|
3052
|
+
propertyRegistered: R,
|
|
3053
|
+
getPropertyByName: b,
|
|
3054
|
+
getPropEditor: (y) => {
|
|
3055
|
+
if (y)
|
|
3056
|
+
return V(y);
|
|
3057
|
+
},
|
|
3058
|
+
getPropRegistedByName: D
|
|
3059
|
+
};
|
|
3060
|
+
}
|
|
3061
|
+
function ai(u) {
|
|
3062
|
+
return new Promise((m, h) => {
|
|
3063
|
+
u && import("./postcss-2c4d92ea.js").then((b) => {
|
|
3064
|
+
import("./index-8d537d38.js").then((R) => R.i).then((R) => {
|
|
3065
|
+
b.default().process(u, { from: void 0 }).then((D) => {
|
|
3066
|
+
const V = /* @__PURE__ */ new Set();
|
|
3067
|
+
return D.root.walkRules((Q) => {
|
|
3068
|
+
R.default((y) => {
|
|
3069
|
+
y.walkClasses((F) => {
|
|
3070
|
+
V.add(F.value);
|
|
3071
|
+
});
|
|
3072
|
+
}).processSync(Q.selector);
|
|
3073
|
+
}), m(Array.from(V));
|
|
3074
|
+
});
|
|
3075
|
+
});
|
|
3076
|
+
});
|
|
3077
|
+
});
|
|
3078
|
+
}
|
|
3079
|
+
const ni = { key: 0 }, ii = Lt({ componentName: qn.SettingPanel }), li = /* @__PURE__ */ Lt({
|
|
3080
|
+
...ii,
|
|
3081
|
+
__name: "index",
|
|
3082
|
+
props: {
|
|
3083
|
+
designer: null,
|
|
3084
|
+
renderConfig: null
|
|
3085
|
+
},
|
|
3086
|
+
setup(u, { expose: m }) {
|
|
3087
|
+
const h = u, { on$: b, emit$: R } = Ra(), { emitEvent: D, saveFormContentToStorage: V, watchPropAndSaveHistory: Q, handleEvent: y, setCssClassList: F, clearSelected: a } = ka(h.designer), { propTypeList: C } = ti(), w = Te(() => {
|
|
3088
|
+
var p;
|
|
3089
|
+
return (p = h == null ? void 0 : h.designer) == null ? void 0 : p.selectedWidget;
|
|
3090
|
+
}), k = Te(() => {
|
|
3091
|
+
var p;
|
|
3092
|
+
return (p = w == null ? void 0 : w.value) == null ? void 0 : p.type;
|
|
3093
|
+
}), q = Te({
|
|
3094
|
+
get: () => {
|
|
3095
|
+
var p;
|
|
3096
|
+
return ((p = w == null ? void 0 : w.value) == null ? void 0 : p.options) || {};
|
|
3097
|
+
},
|
|
3098
|
+
set: (p) => {
|
|
3099
|
+
w.value && (w.value.options = p);
|
|
3100
|
+
}
|
|
3101
|
+
}), E = Te({
|
|
3102
|
+
get: () => {
|
|
3103
|
+
var p;
|
|
3104
|
+
return ((p = h == null ? void 0 : h.designer) == null ? void 0 : p.pageConfig) || {};
|
|
3105
|
+
},
|
|
3106
|
+
set: (p) => {
|
|
3107
|
+
h.designer.pageConfig && (h.designer.pageConfig = p);
|
|
3108
|
+
}
|
|
3109
|
+
}), ee = Te(() => {
|
|
3110
|
+
const p = new c();
|
|
3111
|
+
return p.optionModel = q.value, p.pageConfig = E.value, p.selectedWidget = w.value, C(k.value, q.value, E.value, p);
|
|
3112
|
+
}), M = be(), G = () => {
|
|
3113
|
+
M.value || (M.value = Z(() => import("./configItem-6bfa74e0.js")));
|
|
3114
|
+
}, z = J(Se.formSetting), X = (p) => {
|
|
3115
|
+
var x;
|
|
3116
|
+
let P = !1;
|
|
3117
|
+
return (x = p == null ? void 0 : p.props) == null || x.forEach((_) => {
|
|
3118
|
+
P = P || ht(_.data);
|
|
3119
|
+
}), P;
|
|
3120
|
+
}, Ke = J(!1);
|
|
3121
|
+
Ee(w, (p) => {
|
|
3122
|
+
ht(p) ? (z.value = Se.widgetSetting, Ke.value = !0) : z.value = Se.formSetting, G();
|
|
3123
|
+
}, { immediate: !0 }), Q(l.options), Ee(E, (p) => {
|
|
3124
|
+
V();
|
|
3125
|
+
}, { deep: !0 });
|
|
3126
|
+
let N = {}, A = "";
|
|
3127
|
+
const me = (p) => kt(p, {
|
|
3128
|
+
props: {
|
|
3129
|
+
designer: h.designer,
|
|
3130
|
+
pageConfig: E.value,
|
|
3131
|
+
selectedWidget: w.value
|
|
3132
|
+
}
|
|
3133
|
+
}), ye = be(), Re = J();
|
|
3134
|
+
b(Ae.tooltipHandler, (p) => {
|
|
3135
|
+
ye.value || (ye.value = Z(() => import("./tooltip-wrapper-2922e49e.js"))), Re.value = p;
|
|
3136
|
+
});
|
|
3137
|
+
const ie = be(), _e = J(), Ne = J({});
|
|
3138
|
+
b(Ae.popOverHandler, (p) => {
|
|
3139
|
+
var _;
|
|
3140
|
+
var P = (_ = p == null ? void 0 : p.attrs) == null ? void 0 : _.visible;
|
|
3141
|
+
!ie.value && P ? ie.value = Z(() => import("./index-18720c06.js")) : ie.value = null;
|
|
3142
|
+
var x = { ...p == null ? void 0 : p.attrs };
|
|
3143
|
+
x = me(x), P && (A = "popOver", N = {
|
|
3144
|
+
attrs: x,
|
|
3145
|
+
events: p == null ? void 0 : p.events
|
|
3146
|
+
});
|
|
3147
|
+
}), Ee(ie, () => {
|
|
3148
|
+
Je(A) || (_e.value = N.attrs, Ne.value = N.events, A = "", N = {});
|
|
3149
|
+
});
|
|
3150
|
+
const le = be(), je = J(), fe = J({});
|
|
3151
|
+
b(Ae.drawerHandler, (p) => {
|
|
3152
|
+
var Y;
|
|
3153
|
+
var P = (Y = p == null ? void 0 : p.attrs) == null ? void 0 : Y.visible;
|
|
3154
|
+
if (!le.value && P ? le.value = Z(() => import("./index-82f2c56a.js")) : le.value = null, P) {
|
|
3155
|
+
var x = document.querySelector(".right-panel"), _ = Mt(x) ? "" : getComputedStyle(x).width, H = { ...p == null ? void 0 : p.attrs, position: { right: _ } };
|
|
3156
|
+
H = me(H), A = "drawer", N = {
|
|
3157
|
+
attrs: H,
|
|
3158
|
+
events: p == null ? void 0 : p.events
|
|
3159
|
+
};
|
|
3160
|
+
}
|
|
3161
|
+
}), Ee(le, () => {
|
|
3162
|
+
Je(A) || (je.value = N.attrs, fe.value = N.events, A = "", N = {});
|
|
3163
|
+
});
|
|
3164
|
+
const oe = be(), Le = J(), ke = J({});
|
|
3165
|
+
b(Ae.editHandler, (p) => {
|
|
3166
|
+
var H;
|
|
3167
|
+
var P = (H = p == null ? void 0 : p.attrs) == null ? void 0 : H.visible;
|
|
3168
|
+
if (!oe.value && P ? oe.value = Z(() => import("./index-6a276ef7.js")) : oe.value = null, P) {
|
|
3169
|
+
var x = { ...p.attrs, width: "80%" };
|
|
3170
|
+
x = me(x);
|
|
3171
|
+
var _ = Pe(p.events);
|
|
3172
|
+
_ = {
|
|
3173
|
+
..._,
|
|
3174
|
+
confirm: (Y) => {
|
|
3175
|
+
var j;
|
|
3176
|
+
(j = p == null ? void 0 : p.events) == null || j.confirm(Y), he(x == null ? void 0 : x.name, Y);
|
|
3177
|
+
}
|
|
3178
|
+
}, A = "dialog", N = {
|
|
3179
|
+
attrs: x,
|
|
3180
|
+
events: _
|
|
3181
|
+
};
|
|
3182
|
+
}
|
|
3183
|
+
}), Ee(oe, () => {
|
|
3184
|
+
Je(A) || (Le.value = N.attrs, ke.value = N.events, A = "", N = {});
|
|
3185
|
+
});
|
|
3186
|
+
const he = (p, P) => {
|
|
3187
|
+
var x;
|
|
3188
|
+
if (p == we.cssCode) {
|
|
3189
|
+
const { cssWithPrimaryColor: _ } = Jn(P, { themeColor: ((x = h == null ? void 0 : h.renderConfig) == null ? void 0 : x.themeColor) || "" });
|
|
3190
|
+
Kn(_.value), ai(P).then((H) => {
|
|
3191
|
+
D(we.pageCssUpdated, H);
|
|
3192
|
+
});
|
|
3193
|
+
} else
|
|
3194
|
+
p == we.functions && Bn(P);
|
|
3195
|
+
}, Me = () => {
|
|
3196
|
+
var p;
|
|
3197
|
+
he(we.cssCode, ne.getValue((p = E.value) == null ? void 0 : p.cssCode));
|
|
3198
|
+
};
|
|
3199
|
+
return y(we.pageJsonImported, () => {
|
|
3200
|
+
Me();
|
|
3201
|
+
}), y(we.pageCssUpdated, (p) => {
|
|
3202
|
+
F(p);
|
|
3203
|
+
}), xa(() => {
|
|
3204
|
+
setTimeout(() => {
|
|
3205
|
+
Me();
|
|
3206
|
+
}, 1200);
|
|
3207
|
+
}), m({ emit$: R }), (p, P) => {
|
|
3208
|
+
const x = Ve("el-scrollbar"), _ = Ve("el-tab-pane"), H = Ve("el-tabs"), Y = Ve("el-container");
|
|
3209
|
+
return U(), re(Y, { class: "full-height-width" }, {
|
|
3210
|
+
default: He(() => [
|
|
3211
|
+
vt(H, {
|
|
3212
|
+
stretch: !0,
|
|
3213
|
+
class: "full-height-tab full-width",
|
|
3214
|
+
modelValue: z.value,
|
|
3215
|
+
"onUpdate:modelValue": P[0] || (P[0] = (j) => z.value = j),
|
|
3216
|
+
onTabChange: G
|
|
3217
|
+
}, {
|
|
3218
|
+
default: He(() => [
|
|
3219
|
+
(U(!0), Qe(bt, null, Pa(pe(ee), (j) => (U(), Qe(bt, {
|
|
3220
|
+
key: j.title
|
|
3221
|
+
}, [
|
|
3222
|
+
X(j) ? (U(), re(_, {
|
|
3223
|
+
label: j.title,
|
|
3224
|
+
key: j.title,
|
|
3225
|
+
name: j.index,
|
|
3226
|
+
class: "full-height"
|
|
3227
|
+
}, {
|
|
3228
|
+
default: He(() => [
|
|
3229
|
+
vt(x, null, {
|
|
3230
|
+
default: He(() => [
|
|
3231
|
+
z.value === j.index ? (U(), Qe("div", ni, [
|
|
3232
|
+
(U(), re(Ie(pe(M)), {
|
|
3233
|
+
designer: u.designer,
|
|
3234
|
+
propType: j,
|
|
3235
|
+
key: pe(Un)()
|
|
3236
|
+
}, null, 8, ["designer", "propType"]))
|
|
3237
|
+
])) : yt("", !0)
|
|
3238
|
+
]),
|
|
3239
|
+
_: 2
|
|
3240
|
+
}, 1024)
|
|
3241
|
+
]),
|
|
3242
|
+
_: 2
|
|
3243
|
+
}, 1032, ["label", "name"])) : yt("", !0)
|
|
3244
|
+
], 64))), 128))
|
|
3245
|
+
]),
|
|
3246
|
+
_: 1
|
|
3247
|
+
}, 8, ["modelValue"]),
|
|
3248
|
+
(U(), re(Ie(pe(ye)), Oa(Sa(Re.value)), null, 16)),
|
|
3249
|
+
(U(), re(Ie(pe(oe)), Xe(Le.value, Ye(ke.value)), null, 16)),
|
|
3250
|
+
(U(), re(Ie(pe(ie)), Xe(_e.value, Ye(Ne.value)), null, 16)),
|
|
3251
|
+
(U(), re(Ie(pe(le)), Xe(je.value, Ye(fe.value)), null, 16))
|
|
3252
|
+
]),
|
|
3253
|
+
_: 1
|
|
3254
|
+
});
|
|
3255
|
+
};
|
|
3256
|
+
}
|
|
3257
|
+
});
|
|
3258
|
+
const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3259
|
+
__proto__: null,
|
|
3260
|
+
default: li
|
|
3261
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3262
|
+
export {
|
|
3263
|
+
gi as i,
|
|
3264
|
+
ti as u
|
|
3265
|
+
};
|