@kp-ui/lowcode 2.14.0-beta.2 → 2.14.0-beta.21
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/package.json +1 -1
- package/src/components/FormRender/useFormRender.js +18 -0
- package/src/components/form-designer/designer.js +78 -75
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +18 -18
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +18 -20
- package/src/components/form-designer/form-widget/container-widget/vf-box-item.vue.js +9 -9
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +29 -21
- package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue.js +32 -39
- package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue.js +24 -31
- package/src/components/form-designer/form-widget/field-widget/date-widget.vue.js +26 -33
- package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +4 -4
- package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +84 -152
- package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +31 -38
- package/src/components/form-designer/form-widget/field-widget/number-widget.vue.js +23 -30
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +56 -63
- package/src/components/form-designer/form-widget/field-widget/switch-widget.vue.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue.js +23 -32
- package/src/components/form-designer/form-widget/field-widget/treeSelect-widget.vue.js +26 -33
- package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
- package/src/components/form-designer/setting-panel/form-setting.vue2.js +81 -94
- package/src/components/form-designer/setting-panel/index.vue.js +2 -2
- package/src/components/form-designer/setting-panel/index.vue2.js +135 -135
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-colorRow-editor.vue2.js +8 -7
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +23 -22
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +7 -7
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/formCode-editor.vue.js +25 -19
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue2.js +7 -6
- package/src/components/form-designer/setting-panel/property-editor/index.js +41 -42
- package/src/components/form-designer/setting-panel/propertyRegister.js +3 -6
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue.js +50 -0
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue2.js +4 -0
- package/src/components/form-designer/widget-panel/advanced/cascader.js +0 -1
- package/src/components/form-designer/widget-panel/advanced/data-table.js +1 -1
- package/src/components/form-designer/widget-panel/advanced/file-upload.js +0 -1
- package/src/components/form-designer/widget-panel/advanced/rich-editor.js +4 -5
- package/src/components/form-designer/widget-panel/advanced/tree-select.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/checkbox.js +2 -3
- package/src/components/form-designer/widget-panel/basicFields/color.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/date.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/dateRange.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/input.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/number.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/radio.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/rate.js +5 -6
- package/src/components/form-designer/widget-panel/basicFields/select.js +2 -3
- package/src/components/form-designer/widget-panel/basicFields/slider.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/switch.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/textarea.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/time.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/timeRange.js +0 -1
- package/src/components/form-designer/widget-panel/business/department-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/material-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/operation-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/post-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/project-group-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/project-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/user-select.js +0 -1
- package/src/components/form-designer/widget-panel/containers/vf-dialog.js +3 -2
- package/src/components/form-designer/widget-panel/index.vue.js +4 -338
- package/src/components/form-designer/widget-panel/index.vue2.js +82 -0
- package/src/components/form-designer/widget-panel/widgetsConfig.js +19 -18
- package/src/components/form-render/RenderWigetList.vue.js +61 -0
- package/src/components/form-render/RenderWigetList.vue2.js +4 -0
- package/src/components/form-render/SubmitButtonRender.vue.js +41 -29
- package/src/components/form-render/container-item/container-item-wrapper.vue.js +2 -23
- package/src/components/form-render/container-item/container-item-wrapper.vue2.js +20 -0
- package/src/components/form-render/container-item/data-table-item.vue.js +22 -36
- package/src/components/form-render/container-item/grid-item.vue.js +7 -7
- package/src/components/form-render/container-item/grid-sub-form-item.vue.js +1 -1
- package/src/components/form-render/container-item/sub-form-item.vue.js +115 -146
- package/src/components/form-render/container-item/tab-item.vue.js +19 -19
- package/src/components/form-render/container-item/table-item.vue.js +7 -7
- package/src/components/form-render/container-item/vf-collapse-item.vue.js +27 -27
- package/src/components/form-render/dynamic-dialog.vue.js +87 -86
- package/src/components/form-render/index.vue.js +94 -110
- package/src/components/public/ActionButtonListDialog.vue.js +82 -75
- package/src/components/public/ActionButtonListDialog.vue2.js +16 -10
- package/src/components/public/ActionButtonListRender.vue.js +12 -11
- package/src/components/public/CustomerModal/CustomerModal.vue2.js +49 -42
- package/src/hooks/useLowcode.js +40 -39
- package/src/lang/en-US.js +5 -1
- package/src/lang/zh-CN.js +5 -1
- package/src/mixins/useDataTableMixin.js +29 -31
- package/src/utils/asyncExecuteFunction.js +4 -0
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue.js +0 -31
- package/src/components/form-designer/widget-panel/templatesConfig.js +0 -53
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { SvgIcon as
|
|
6
|
-
import
|
|
7
|
-
import { resolveComponent as
|
|
1
|
+
import g from "./form-item-wrapper.vue.js";
|
|
2
|
+
import b from "../../../../utils/emitter.js";
|
|
3
|
+
import w from "../../../../utils/i18n.js";
|
|
4
|
+
import C from "./fieldMixin.js";
|
|
5
|
+
import { SvgIcon as v } from "tmgc2-share";
|
|
6
|
+
import F from "../../../../mixins/useSelectMixin.js";
|
|
7
|
+
import { resolveComponent as l, createBlock as I, createCommentVNode as s, openBlock as d, withCtx as M, withDirectives as r, createElementBlock as a, createElementVNode as O, normalizeClass as x, createVNode as m, mergeProps as y, vShow as u, toDisplayString as R } from "vue";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import k from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const z = {
|
|
11
11
|
name: "select-widget",
|
|
12
12
|
componentName: "FieldWidget",
|
|
13
13
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
14
|
-
mixins: [
|
|
14
|
+
mixins: [b, C, w, F],
|
|
15
15
|
props: {
|
|
16
16
|
field: Object,
|
|
17
17
|
parentWidget: Object,
|
|
@@ -38,7 +38,7 @@ const S = {
|
|
|
38
38
|
default: ""
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
components: { SvgIcon:
|
|
41
|
+
components: { SvgIcon: v, FormItemWrapper: g },
|
|
42
42
|
data() {
|
|
43
43
|
return {
|
|
44
44
|
oldFieldValue: null,
|
|
@@ -64,8 +64,8 @@ const S = {
|
|
|
64
64
|
watch: {
|
|
65
65
|
"field.options.dsEnabled": {
|
|
66
66
|
deep: !0,
|
|
67
|
-
handler(
|
|
68
|
-
|
|
67
|
+
handler(t) {
|
|
68
|
+
t && this.initOptionItems();
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
},
|
|
@@ -100,72 +100,65 @@ const S = {
|
|
|
100
100
|
// }
|
|
101
101
|
// }
|
|
102
102
|
}
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
}, E = {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "readonly-mode-field"
|
|
106
|
+
};
|
|
107
|
+
function L(t, i, e, S, o, f) {
|
|
108
|
+
const c = l("a-select"), p = l("svg-icon"), h = l("form-item-wrapper");
|
|
109
|
+
return t.handleHidden() ? s("", !0) : (d(), I(h, {
|
|
107
110
|
key: 0,
|
|
108
|
-
designer:
|
|
109
|
-
field:
|
|
110
|
-
rules:
|
|
111
|
-
"design-state":
|
|
112
|
-
"parent-widget":
|
|
113
|
-
"parent-list":
|
|
114
|
-
"index-of-parent-list":
|
|
115
|
-
"sub-form-row-index":
|
|
116
|
-
"sub-form-col-index":
|
|
117
|
-
"sub-form-row-id":
|
|
111
|
+
designer: e.designer,
|
|
112
|
+
field: e.field,
|
|
113
|
+
rules: o.rules,
|
|
114
|
+
"design-state": e.designState,
|
|
115
|
+
"parent-widget": e.parentWidget,
|
|
116
|
+
"parent-list": e.parentList,
|
|
117
|
+
"index-of-parent-list": e.indexOfParentList,
|
|
118
|
+
"sub-form-row-index": e.subFormRowIndex,
|
|
119
|
+
"sub-form-col-index": e.subFormColIndex,
|
|
120
|
+
"sub-form-row-id": e.subFormRowId
|
|
118
121
|
}, {
|
|
119
|
-
default:
|
|
120
|
-
|
|
121
|
-
class:
|
|
122
|
+
default: M(() => [
|
|
123
|
+
r(O("div", {
|
|
124
|
+
class: x(["design-select-box", { useModal: e.field.options.useModal }])
|
|
122
125
|
}, [
|
|
123
|
-
m(
|
|
126
|
+
r(m(c, y({
|
|
124
127
|
ref: "fieldEditor",
|
|
125
|
-
value:
|
|
126
|
-
"onUpdate:value": i[0] || (i[0] = (
|
|
127
|
-
size:
|
|
128
|
+
value: o.fieldModel,
|
|
129
|
+
"onUpdate:value": i[0] || (i[0] = (n) => o.fieldModel = n),
|
|
130
|
+
size: f.size,
|
|
128
131
|
class: "full-width-input",
|
|
129
|
-
disabled:
|
|
130
|
-
allowClear:
|
|
132
|
+
disabled: t.handleDisabled(),
|
|
133
|
+
allowClear: e.field.options.allowClear,
|
|
131
134
|
showArrow: !0,
|
|
132
135
|
dropdownMatchSelectWidth: !1,
|
|
133
|
-
mode:
|
|
134
|
-
maxTagCount:
|
|
135
|
-
placeholder:
|
|
136
|
-
onFocus:
|
|
137
|
-
onBlur:
|
|
138
|
-
onChange:
|
|
139
|
-
options:
|
|
140
|
-
},
|
|
141
|
-
[
|
|
136
|
+
mode: e.field.options.mode,
|
|
137
|
+
maxTagCount: e.field.options.maxTagCount,
|
|
138
|
+
placeholder: e.field.options.placeholder || t.i18nt("render.hint.selectPlaceholder"),
|
|
139
|
+
onFocus: t.handleFocusCustomEvent,
|
|
140
|
+
onBlur: t.handleBlurCustomEvent,
|
|
141
|
+
onChange: t.handleChangeEvent,
|
|
142
|
+
options: e.field.options.optionItems
|
|
143
|
+
}, t.selectOps), null, 16, ["value", "size", "disabled", "allowClear", "mode", "maxTagCount", "placeholder", "onFocus", "onBlur", "onChange", "options"]), [
|
|
144
|
+
[u, !t.isReadMode]
|
|
142
145
|
]),
|
|
143
|
-
|
|
146
|
+
e.field.options.useModal ? (d(), a("div", {
|
|
144
147
|
key: 0,
|
|
145
148
|
class: "useModal-svg",
|
|
146
|
-
onClick: i[1] || (i[1] = (...
|
|
149
|
+
onClick: i[1] || (i[1] = (...n) => t.handleClickIcon && t.handleClickIcon(...n))
|
|
147
150
|
}, [
|
|
148
|
-
|
|
149
|
-
])) :
|
|
151
|
+
m(p, { "icon-class": "icon-sousuo" })
|
|
152
|
+
])) : s("", !0)
|
|
150
153
|
], 2), [
|
|
151
|
-
[
|
|
154
|
+
[u, !t.isReadMode]
|
|
152
155
|
]),
|
|
153
|
-
|
|
154
|
-
key: 0,
|
|
155
|
-
placement: "topLeft",
|
|
156
|
-
title: e.optionLabel,
|
|
157
|
-
overlayStyle: { zIndex: 1e3 }
|
|
158
|
-
}, {
|
|
159
|
-
default: a(() => [
|
|
160
|
-
u("span", k, z(e.optionLabel), 1)
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["title"])) : d("", !0)
|
|
156
|
+
t.isReadMode ? (d(), a("span", E, R(t.optionLabel), 1)) : s("", !0)
|
|
164
157
|
]),
|
|
165
158
|
_: 1
|
|
166
159
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
|
|
167
160
|
}
|
|
168
|
-
const
|
|
161
|
+
const A = /* @__PURE__ */ k(z, [["render", L], ["__scopeId", "data-v-99c8e24a"]]);
|
|
169
162
|
export {
|
|
170
|
-
|
|
163
|
+
A as default
|
|
171
164
|
};
|
|
@@ -95,7 +95,7 @@ function k(t, d, e, C, i, F) {
|
|
|
95
95
|
_: 1
|
|
96
96
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
|
|
97
97
|
}
|
|
98
|
-
const v = /* @__PURE__ */ w(x, [["render", k], ["__scopeId", "data-v-
|
|
98
|
+
const v = /* @__PURE__ */ w(x, [["render", k], ["__scopeId", "data-v-f3730a31"]]);
|
|
99
99
|
export {
|
|
100
100
|
v as default
|
|
101
101
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { resolveComponent as
|
|
1
|
+
import u from "./form-item-wrapper.vue.js";
|
|
2
|
+
import f from "../../../../utils/emitter.js";
|
|
3
|
+
import h from "../../../../utils/i18n.js";
|
|
4
|
+
import g from "./fieldMixin.js";
|
|
5
|
+
import { resolveComponent as o, createBlock as p, createCommentVNode as d, openBlock as r, withCtx as c, withDirectives as b, createElementBlock as w, createVNode as C, vShow as x } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import F from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const v = {
|
|
9
9
|
name: "textarea-widget",
|
|
10
10
|
componentName: "FieldWidget",
|
|
11
11
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
12
|
-
mixins: [
|
|
12
|
+
mixins: [f, g, h],
|
|
13
13
|
props: {
|
|
14
14
|
field: Object,
|
|
15
15
|
parentWidget: Object,
|
|
@@ -37,7 +37,7 @@ const y = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
components: {
|
|
40
|
-
FormItemWrapper:
|
|
40
|
+
FormItemWrapper: u
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
return {
|
|
@@ -64,10 +64,10 @@ const y = {
|
|
|
64
64
|
this.unregisterFromRefList();
|
|
65
65
|
},
|
|
66
66
|
methods: {}
|
|
67
|
-
},
|
|
68
|
-
function I(t,
|
|
69
|
-
const
|
|
70
|
-
return t.handleHidden() ?
|
|
67
|
+
}, y = ["innerHTML"];
|
|
68
|
+
function I(t, i, e, M, n, l) {
|
|
69
|
+
const s = o("a-textarea"), a = o("form-item-wrapper");
|
|
70
|
+
return t.handleHidden() ? d("", !0) : (r(), p(a, {
|
|
71
71
|
key: 0,
|
|
72
72
|
designer: e.designer,
|
|
73
73
|
field: e.field,
|
|
@@ -80,13 +80,13 @@ function I(t, o, e, M, n, a) {
|
|
|
80
80
|
"sub-form-col-index": e.subFormColIndex,
|
|
81
81
|
"sub-form-row-id": e.subFormRowId
|
|
82
82
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
|
|
83
|
+
default: c(() => [
|
|
84
|
+
b(C(s, {
|
|
85
85
|
type: "textarea",
|
|
86
86
|
ref: "fieldEditor",
|
|
87
87
|
value: n.fieldModel,
|
|
88
|
-
"onUpdate:value":
|
|
89
|
-
size:
|
|
88
|
+
"onUpdate:value": i[0] || (i[0] = (m) => n.fieldModel = m),
|
|
89
|
+
size: l.size,
|
|
90
90
|
disabled: t.handleDisabled(),
|
|
91
91
|
allowClear: e.field.options.allowClear,
|
|
92
92
|
readonly: e.field.options.readonly,
|
|
@@ -102,25 +102,16 @@ function I(t, o, e, M, n, a) {
|
|
|
102
102
|
}, null, 8, ["value", "size", "disabled", "allowClear", "readonly", "placeholder", "rows", "minlength", "maxlength", "showCount", "onFocus", "onBlur", "onInput", "onChange"]), [
|
|
103
103
|
[x, !t.isReadMode]
|
|
104
104
|
]),
|
|
105
|
-
t.isReadMode ? (r(),
|
|
105
|
+
t.isReadMode ? (r(), w("div", {
|
|
106
106
|
key: 0,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}, {
|
|
111
|
-
default: s(() => [
|
|
112
|
-
F("div", {
|
|
113
|
-
innerHTML: n.fieldModel,
|
|
114
|
-
class: "readonly-mode-field"
|
|
115
|
-
}, null, 8, _)
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 8, ["title"])) : l("", !0)
|
|
107
|
+
innerHTML: n.fieldModel,
|
|
108
|
+
class: "readonly-mode-field"
|
|
109
|
+
}, null, 8, y)) : d("", !0)
|
|
119
110
|
]),
|
|
120
111
|
_: 1
|
|
121
112
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
|
|
122
113
|
}
|
|
123
|
-
const
|
|
114
|
+
const N = /* @__PURE__ */ F(v, [["render", I], ["__scopeId", "data-v-e90fbb68"]]);
|
|
124
115
|
export {
|
|
125
|
-
|
|
116
|
+
N as default
|
|
126
117
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { formateTreeToName as
|
|
6
|
-
import { isArray as
|
|
7
|
-
import { resolveComponent as
|
|
1
|
+
import m from "./form-item-wrapper.vue.js";
|
|
2
|
+
import u from "../../../../utils/emitter.js";
|
|
3
|
+
import h from "../../../../utils/i18n.js";
|
|
4
|
+
import c from "./fieldMixin.js";
|
|
5
|
+
import { formateTreeToName as p } from "../../../../utils/format.js";
|
|
6
|
+
import { isArray as b } from "lodash-es";
|
|
7
|
+
import { resolveComponent as n, createBlock as g, createCommentVNode as o, openBlock as r, withCtx as y, createElementVNode as w, normalizeClass as v, withDirectives as C, createElementBlock as F, createVNode as M, vShow as x, toDisplayString as K } from "vue";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import R from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
10
|
const I = {
|
|
11
11
|
name: "treeSelect-widget",
|
|
12
12
|
componentName: "FieldWidget",
|
|
13
13
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
14
|
-
mixins: [
|
|
14
|
+
mixins: [u, c, h],
|
|
15
15
|
props: {
|
|
16
16
|
field: Object,
|
|
17
17
|
parentWidget: Object,
|
|
@@ -39,7 +39,7 @@ const I = {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
components: {
|
|
42
|
-
FormItemWrapper:
|
|
42
|
+
FormItemWrapper: m
|
|
43
43
|
},
|
|
44
44
|
data() {
|
|
45
45
|
return {
|
|
@@ -67,8 +67,8 @@ const I = {
|
|
|
67
67
|
// },
|
|
68
68
|
contentForReadMode() {
|
|
69
69
|
if (!this.fieldModel) return "";
|
|
70
|
-
const t =
|
|
71
|
-
return
|
|
70
|
+
const t = b(this.fieldModel) ? this.fieldModel : [this.fieldModel];
|
|
71
|
+
return p(t, this.field.options.optionItems, {
|
|
72
72
|
label: this.labelKey,
|
|
73
73
|
value: this.valueKey,
|
|
74
74
|
children: this.childrenKey
|
|
@@ -91,10 +91,13 @@ const I = {
|
|
|
91
91
|
hideDropDownOnClick() {
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
}, N = {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: "readonly-mode-field"
|
|
97
|
+
};
|
|
98
|
+
function _(t, d, e, z, l, i) {
|
|
99
|
+
const s = n("a-tree-select"), a = n("form-item-wrapper");
|
|
100
|
+
return t.handleHidden() ? o("", !0) : (r(), g(a, {
|
|
98
101
|
key: 0,
|
|
99
102
|
designer: e.designer,
|
|
100
103
|
field: e.field,
|
|
@@ -107,17 +110,17 @@ function z(t, d, e, N, l, i) {
|
|
|
107
110
|
"sub-form-col-index": e.subFormColIndex,
|
|
108
111
|
"sub-form-row-id": e.subFormRowId
|
|
109
112
|
}, {
|
|
110
|
-
default:
|
|
111
|
-
|
|
112
|
-
class:
|
|
113
|
+
default: y(() => [
|
|
114
|
+
w("div", {
|
|
115
|
+
class: v(["full-width-input", { "readonly-mode-cascader": t.isReadMode }])
|
|
113
116
|
}, [
|
|
114
|
-
|
|
117
|
+
C(M(s, {
|
|
115
118
|
"tree-default-expand-all": e.field.options.treeDefaultExpandAll,
|
|
116
119
|
ref: "fieldEditor",
|
|
117
120
|
size: i.size,
|
|
118
121
|
treeData: e.field.options.optionItems,
|
|
119
122
|
value: l.fieldModel,
|
|
120
|
-
"onUpdate:value": d[0] || (d[0] = (
|
|
123
|
+
"onUpdate:value": d[0] || (d[0] = (f) => l.fieldModel = f),
|
|
121
124
|
disabled: t.handleDisabled(),
|
|
122
125
|
allowClear: e.field.options.allowClear,
|
|
123
126
|
placeholder: e.field.options.placeholder || t.i18nt("render.hint.selectPlaceholder"),
|
|
@@ -127,25 +130,15 @@ function z(t, d, e, N, l, i) {
|
|
|
127
130
|
onBlur: t.handleBlurCustomEvent,
|
|
128
131
|
onChange: t.handleChangeEvent
|
|
129
132
|
}, null, 8, ["tree-default-expand-all", "size", "treeData", "value", "disabled", "allowClear", "placeholder", "fieldNames", "multiple", "onFocus", "onBlur", "onChange"]), [
|
|
130
|
-
[
|
|
133
|
+
[x, !t.isReadMode]
|
|
131
134
|
]),
|
|
132
|
-
t.isReadMode ? (
|
|
133
|
-
key: 0,
|
|
134
|
-
placement: "topLeft",
|
|
135
|
-
title: i.contentForReadMode,
|
|
136
|
-
overlayStyle: { zIndex: 1e3 }
|
|
137
|
-
}, {
|
|
138
|
-
default: s(() => [
|
|
139
|
-
f("span", K, x(i.contentForReadMode), 1)
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 8, ["title"])) : r("", !0)
|
|
135
|
+
t.isReadMode ? (r(), F("span", N, K(i.contentForReadMode), 1)) : o("", !0)
|
|
143
136
|
], 2)
|
|
144
137
|
]),
|
|
145
138
|
_: 1
|
|
146
139
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
|
|
147
140
|
}
|
|
148
|
-
const j = /* @__PURE__ */ R(I, [["render",
|
|
141
|
+
const j = /* @__PURE__ */ R(I, [["render", _], ["__scopeId", "data-v-d7cc9ef8"]]);
|
|
149
142
|
export {
|
|
150
143
|
j as default
|
|
151
144
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./form-setting.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0ffdf67"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|