@kp-ui/lowcode 2.14.0-beta.6 → 2.14.0-beta.8
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/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/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-render/RenderWigetList.vue.js +2 -1
- package/src/components/form-render/index.vue.js +47 -37
- package/stats.html +1 -1
- package/styles/style.css +1 -1
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { formateCascaderCode as
|
|
5
|
-
import
|
|
6
|
-
import { resolveComponent as o, createBlock as
|
|
1
|
+
import u from "./form-item-wrapper.vue.js";
|
|
2
|
+
import f from "../../../../utils/emitter.js";
|
|
3
|
+
import c from "../../../../utils/i18n.js";
|
|
4
|
+
import { formateCascaderCode as h } from "../../../../utils/format.js";
|
|
5
|
+
import p from "./fieldMixin.js";
|
|
6
|
+
import { resolveComponent as o, createBlock as b, createCommentVNode as d, openBlock as r, withCtx as g, createElementVNode as y, normalizeClass as C, createVNode as w, createElementBlock as v, toDisplayString as F } from "vue";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import K from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
9
|
const M = {
|
|
10
10
|
name: "cascader-widget",
|
|
11
11
|
componentName: "FieldWidget",
|
|
12
12
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
13
|
-
mixins: [
|
|
13
|
+
mixins: [f, p, c],
|
|
14
14
|
props: {
|
|
15
15
|
field: Object,
|
|
16
16
|
parentWidget: Object,
|
|
@@ -38,7 +38,7 @@ const M = {
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
components: {
|
|
41
|
-
FormItemWrapper:
|
|
41
|
+
FormItemWrapper: u
|
|
42
42
|
},
|
|
43
43
|
data() {
|
|
44
44
|
return {
|
|
@@ -65,7 +65,7 @@ const M = {
|
|
|
65
65
|
// return this.field.options.showAllLevels === undefined || !!this.field.options.showAllLevels;
|
|
66
66
|
// },
|
|
67
67
|
contentForReadMode() {
|
|
68
|
-
return this.fieldModel ?
|
|
68
|
+
return this.fieldModel ? h(this.field.options.optionItems, this.fieldModel, {
|
|
69
69
|
label: this.labelKey,
|
|
70
70
|
value: this.valueKey,
|
|
71
71
|
children: this.childrenKey
|
|
@@ -88,10 +88,13 @@ const M = {
|
|
|
88
88
|
hideDropDownOnClick() {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
}, x = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
}, x = {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: "readonly-mode-field"
|
|
94
|
+
};
|
|
95
|
+
function I(i, n, e, R, l, t) {
|
|
96
|
+
const s = o("a-cascader"), a = o("form-item-wrapper");
|
|
97
|
+
return i.handleHidden() ? d("", !0) : (r(), b(a, {
|
|
95
98
|
key: 0,
|
|
96
99
|
designer: e.designer,
|
|
97
100
|
field: e.field,
|
|
@@ -104,43 +107,33 @@ function I(t, n, e, K, l, i) {
|
|
|
104
107
|
"sub-form-col-index": e.subFormColIndex,
|
|
105
108
|
"sub-form-row-id": e.subFormRowId
|
|
106
109
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
|
|
109
|
-
class:
|
|
110
|
+
default: g(() => [
|
|
111
|
+
y("div", {
|
|
112
|
+
class: C(["full-width-input", { "readonly-mode-cascader": i.isReadMode }])
|
|
110
113
|
}, [
|
|
111
|
-
w(
|
|
114
|
+
w(s, {
|
|
112
115
|
ref: "fieldEditor",
|
|
113
|
-
size:
|
|
116
|
+
size: t.size,
|
|
114
117
|
options: e.field.options.optionItems,
|
|
115
118
|
value: l.fieldModel,
|
|
116
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
117
|
-
disabled:
|
|
119
|
+
"onUpdate:value": n[0] || (n[0] = (m) => l.fieldModel = m),
|
|
120
|
+
disabled: i.handleDisabled(),
|
|
118
121
|
allowClear: e.field.options.allowClear,
|
|
119
|
-
placeholder: e.field.options.placeholder ||
|
|
120
|
-
fieldNames: { value:
|
|
122
|
+
placeholder: e.field.options.placeholder || i.i18nt("render.hint.selectPlaceholder"),
|
|
123
|
+
fieldNames: { value: t.valueKey, label: t.labelKey, children: t.childrenKey },
|
|
121
124
|
expandTrigger: "hover",
|
|
122
125
|
multiple: e.field.options.multiple,
|
|
123
|
-
onFocus:
|
|
124
|
-
onBlur:
|
|
125
|
-
onChange:
|
|
126
|
+
onFocus: i.handleFocusCustomEvent,
|
|
127
|
+
onBlur: i.handleBlurCustomEvent,
|
|
128
|
+
onChange: i.handleChangeEvent
|
|
126
129
|
}, null, 8, ["size", "options", "value", "disabled", "allowClear", "placeholder", "fieldNames", "multiple", "onFocus", "onBlur", "onChange"]),
|
|
127
|
-
|
|
128
|
-
key: 0,
|
|
129
|
-
placement: "topLeft",
|
|
130
|
-
title: i.contentForReadMode,
|
|
131
|
-
overlayStyle: { zIndex: 1e3 }
|
|
132
|
-
}, {
|
|
133
|
-
default: a(() => [
|
|
134
|
-
m("span", x, F(i.contentForReadMode), 1)
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["title"])) : r("", !0)
|
|
130
|
+
i.isReadMode ? (r(), v("span", x, F(t.contentForReadMode), 1)) : d("", !0)
|
|
138
131
|
], 2)
|
|
139
132
|
]),
|
|
140
133
|
_: 1
|
|
141
134
|
}, 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"]));
|
|
142
135
|
}
|
|
143
|
-
const
|
|
136
|
+
const W = /* @__PURE__ */ K(M, [["render", I], ["__scopeId", "data-v-bb8b3209"]]);
|
|
144
137
|
export {
|
|
145
|
-
|
|
138
|
+
W as default
|
|
146
139
|
};
|
|
@@ -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 h from "../../../../utils/emitter.js";
|
|
3
|
+
import c from "../../../../utils/i18n.js";
|
|
4
|
+
import g from "./fieldMixin.js";
|
|
5
|
+
import { resolveComponent as n, createBlock as b, createCommentVNode as l, openBlock as i, withCtx as p, createElementVNode as w, normalizeClass as r, createVNode as F, createElementBlock as C, toDisplayString as v } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
7
|
+
import y from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
const M = {
|
|
9
9
|
name: "date-range-widget",
|
|
10
10
|
componentName: "FieldWidget",
|
|
11
11
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
12
|
-
mixins: [
|
|
12
|
+
mixins: [h, g, c],
|
|
13
13
|
props: {
|
|
14
14
|
field: Object,
|
|
15
15
|
parentWidget: Object,
|
|
@@ -37,7 +37,7 @@ const M = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
components: {
|
|
40
|
-
FormItemWrapper:
|
|
40
|
+
FormItemWrapper: u
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
return {
|
|
@@ -64,10 +64,13 @@ const M = {
|
|
|
64
64
|
this.unregisterFromRefList();
|
|
65
65
|
},
|
|
66
66
|
methods: {}
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
}, R = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "readonly-mode-field"
|
|
70
|
+
};
|
|
71
|
+
function _(t, d, e, x, o, a) {
|
|
72
|
+
const s = n("a-range-picker"), m = n("form-item-wrapper");
|
|
73
|
+
return t.handleHidden() ? l("", !0) : (i(), b(m, {
|
|
71
74
|
key: 0,
|
|
72
75
|
designer: e.designer,
|
|
73
76
|
field: e.field,
|
|
@@ -80,18 +83,18 @@ function R(t, l, e, x, o, m) {
|
|
|
80
83
|
"sub-form-col-index": e.subFormColIndex,
|
|
81
84
|
"sub-form-row-id": e.subFormRowId
|
|
82
85
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
|
|
85
|
-
class:
|
|
86
|
+
default: p(() => [
|
|
87
|
+
w("div", {
|
|
88
|
+
class: r([
|
|
86
89
|
e.field.options.autoFullWidth ? "auto-full-width" : "",
|
|
87
90
|
t.isReadMode ? "readonly-mode-date-range" : ""
|
|
88
91
|
])
|
|
89
92
|
}, [
|
|
90
|
-
|
|
93
|
+
F(s, {
|
|
91
94
|
ref: "fieldEditor",
|
|
92
95
|
value: o.fieldModel,
|
|
93
|
-
"onUpdate:value":
|
|
94
|
-
class:
|
|
96
|
+
"onUpdate:value": d[0] || (d[0] = (f) => o.fieldModel = f),
|
|
97
|
+
class: r([e.field.options.autoFullWidth ? "auto-full-width" : ""]),
|
|
95
98
|
disabled: t.handleDisabled(),
|
|
96
99
|
readonly: e.field.options.readonly,
|
|
97
100
|
allowClear: e.field.options.allowClear,
|
|
@@ -104,23 +107,13 @@ function R(t, l, e, x, o, m) {
|
|
|
104
107
|
onBlur: t.handleBlurCustomEvent,
|
|
105
108
|
onChange: t.handleChangeEvent
|
|
106
109
|
}, null, 8, ["value", "class", "disabled", "readonly", "allowClear", "show-time", "format", "value-format", "start-placeholder", "end-placeholder", "onFocus", "onBlur", "onChange"]),
|
|
107
|
-
t.isReadMode ? (
|
|
108
|
-
key: 0,
|
|
109
|
-
placement: "topLeft",
|
|
110
|
-
title: o.fieldModel,
|
|
111
|
-
overlayStyle: { zIndex: 1e3 }
|
|
112
|
-
}, {
|
|
113
|
-
default: a(() => [
|
|
114
|
-
s("span", _, y(m.contentForReadMode), 1)
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["title"])) : i("", !0)
|
|
110
|
+
t.isReadMode ? (i(), C("span", R, v(a.contentForReadMode), 1)) : l("", !0)
|
|
118
111
|
], 2)
|
|
119
112
|
]),
|
|
120
113
|
_: 1
|
|
121
114
|
}, 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
115
|
}
|
|
123
|
-
const
|
|
116
|
+
const L = /* @__PURE__ */ y(M, [["render", _], ["__scopeId", "data-v-7f77f8d8"]]);
|
|
124
117
|
export {
|
|
125
|
-
|
|
118
|
+
L as default
|
|
126
119
|
};
|
|
@@ -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 h from "../../../../utils/emitter.js";
|
|
3
|
+
import c from "../../../../utils/i18n.js";
|
|
4
|
+
import p from "./fieldMixin.js";
|
|
5
|
+
import { resolveComponent as d, createBlock as g, createCommentVNode as n, openBlock as l, withCtx as b, createElementVNode as w, normalizeClass as r, createVNode as C, createElementBlock as F, toDisplayString as y } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import v from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const _ = {
|
|
9
9
|
name: "date-widget",
|
|
10
10
|
componentName: "FieldWidget",
|
|
11
11
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
12
|
-
mixins: [
|
|
12
|
+
mixins: [h, p, c],
|
|
13
13
|
props: {
|
|
14
14
|
field: Object,
|
|
15
15
|
parentWidget: Object,
|
|
@@ -37,7 +37,7 @@ const v = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
components: {
|
|
40
|
-
FormItemWrapper:
|
|
40
|
+
FormItemWrapper: u
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
return {
|
|
@@ -64,10 +64,13 @@ const v = {
|
|
|
64
64
|
this.unregisterFromRefList();
|
|
65
65
|
},
|
|
66
66
|
methods: {}
|
|
67
|
-
}, x = {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
}, x = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "readonly-mode-field"
|
|
70
|
+
};
|
|
71
|
+
function k(t, o, e, z, i, a) {
|
|
72
|
+
const s = d("a-date-picker"), f = d("form-item-wrapper");
|
|
73
|
+
return t.handleHidden() ? n("", !0) : (l(), g(f, {
|
|
71
74
|
key: 0,
|
|
72
75
|
designer: e.designer,
|
|
73
76
|
field: e.field,
|
|
@@ -80,20 +83,20 @@ function z(t, d, e, M, i, m) {
|
|
|
80
83
|
"sub-form-col-index": e.subFormColIndex,
|
|
81
84
|
"sub-form-row-id": e.subFormRowId
|
|
82
85
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
|
|
85
|
-
class:
|
|
86
|
+
default: b(() => [
|
|
87
|
+
w("div", {
|
|
88
|
+
class: r([
|
|
86
89
|
e.field.options.autoFullWidth ? "auto-full-width" : "",
|
|
87
90
|
t.isReadMode ? "readonly-mode-date" : ""
|
|
88
91
|
])
|
|
89
92
|
}, [
|
|
90
|
-
|
|
91
|
-
size:
|
|
93
|
+
C(s, {
|
|
94
|
+
size: a.size,
|
|
92
95
|
ref: "fieldEditor",
|
|
93
96
|
picker: e.field.options.type,
|
|
94
97
|
value: i.fieldModel,
|
|
95
|
-
"onUpdate:value":
|
|
96
|
-
class:
|
|
98
|
+
"onUpdate:value": o[0] || (o[0] = (m) => i.fieldModel = m),
|
|
99
|
+
class: r([e.field.options.autoFullWidth ? "auto-full-width" : ""]),
|
|
97
100
|
readonly: e.field.options.readonly,
|
|
98
101
|
disabled: t.handleDisabled(),
|
|
99
102
|
allowClear: e.field.options.allowClear,
|
|
@@ -105,23 +108,13 @@ function z(t, d, e, M, i, m) {
|
|
|
105
108
|
onBlur: t.handleBlurCustomEvent,
|
|
106
109
|
onChange: t.handleChangeEvent
|
|
107
110
|
}, null, 8, ["size", "picker", "value", "class", "readonly", "disabled", "allowClear", "show-time", "format", "value-format", "placeholder", "onFocus", "onBlur", "onChange"]),
|
|
108
|
-
t.isReadMode ? (
|
|
109
|
-
key: 0,
|
|
110
|
-
placement: "topLeft",
|
|
111
|
-
title: i.fieldModel,
|
|
112
|
-
overlayStyle: { zIndex: 1e3 }
|
|
113
|
-
}, {
|
|
114
|
-
default: a(() => [
|
|
115
|
-
s("span", x, y(i.fieldModel), 1)
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 8, ["title"])) : n("", !0)
|
|
111
|
+
t.isReadMode ? (l(), F("span", x, y(i.fieldModel), 1)) : n("", !0)
|
|
119
112
|
], 2)
|
|
120
113
|
]),
|
|
121
114
|
_: 1
|
|
122
115
|
}, 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"]));
|
|
123
116
|
}
|
|
124
|
-
const
|
|
117
|
+
const W = /* @__PURE__ */ v(_, [["render", k], ["__scopeId", "data-v-2926f4d0"]]);
|
|
125
118
|
export {
|
|
126
|
-
|
|
119
|
+
W as default
|
|
127
120
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SvgIcon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { resolveComponent as
|
|
1
|
+
import h from "./form-item-wrapper.vue.js";
|
|
2
|
+
import { SvgIcon as c } from "tmgc2-share";
|
|
3
|
+
import g from "../../../../utils/emitter.js";
|
|
4
|
+
import w from "../../../../utils/i18n.js";
|
|
5
|
+
import b from "./fieldMixin.js";
|
|
6
|
+
import { resolveComponent as i, createBlock as C, createCommentVNode as l, openBlock as s, withCtx as r, withDirectives as y, createElementBlock as v, createVNode as a, createSlots as F, vShow as x, toDisplayString as I } from "vue";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import _ from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const M = {
|
|
10
10
|
name: "input-widget",
|
|
11
11
|
componentName: "FieldWidget",
|
|
12
12
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
13
|
-
mixins: [
|
|
13
|
+
mixins: [g, b, w],
|
|
14
14
|
props: {
|
|
15
15
|
field: Object,
|
|
16
16
|
parentWidget: Object,
|
|
@@ -38,8 +38,8 @@ const z = {
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
components: {
|
|
41
|
-
FormItemWrapper:
|
|
42
|
-
SvgIcon:
|
|
41
|
+
FormItemWrapper: h,
|
|
42
|
+
SvgIcon: c
|
|
43
43
|
},
|
|
44
44
|
data() {
|
|
45
45
|
return {
|
|
@@ -69,14 +69,17 @@ const z = {
|
|
|
69
69
|
this.unregisterFromRefList();
|
|
70
70
|
},
|
|
71
71
|
methods: {}
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
}, k = {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "readonly-mode-field"
|
|
75
|
+
};
|
|
76
|
+
function R(t, o, e, z, n, d) {
|
|
77
|
+
const u = i("svg-icon"), f = i("a-input"), m = i("form-item-wrapper");
|
|
78
|
+
return t.handleHidden() ? l("", !0) : (s(), C(m, {
|
|
76
79
|
key: 0,
|
|
77
80
|
designer: e.designer,
|
|
78
81
|
field: e.field,
|
|
79
|
-
rules:
|
|
82
|
+
rules: n.rules,
|
|
80
83
|
"design-state": e.designState,
|
|
81
84
|
"parent-widget": e.parentWidget,
|
|
82
85
|
"parent-list": e.parentList,
|
|
@@ -85,16 +88,16 @@ function k(t, d, e, L, o, l) {
|
|
|
85
88
|
"sub-form-col-index": e.subFormColIndex,
|
|
86
89
|
"sub-form-row-id": e.subFormRowId
|
|
87
90
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
91
|
+
default: r(() => [
|
|
92
|
+
y(a(f, {
|
|
90
93
|
ref: "fieldEditor",
|
|
91
|
-
value:
|
|
92
|
-
"onUpdate:value":
|
|
94
|
+
value: n.fieldModel,
|
|
95
|
+
"onUpdate:value": o[0] || (o[0] = (p) => n.fieldModel = p),
|
|
93
96
|
disabled: t.handleDisabled(),
|
|
94
97
|
readonly: e.field.options.readonly,
|
|
95
|
-
size:
|
|
98
|
+
size: d.size,
|
|
96
99
|
class: "hide-spin-button",
|
|
97
|
-
type:
|
|
100
|
+
type: d.inputType,
|
|
98
101
|
"show-password": e.field.options.showPassword,
|
|
99
102
|
placeholder: e.field.options.placeholder,
|
|
100
103
|
allowClear: e.field.options.allowClear,
|
|
@@ -104,11 +107,11 @@ function k(t, d, e, L, o, l) {
|
|
|
104
107
|
onBlur: t.handleBlurCustomEvent,
|
|
105
108
|
onInput: t.handleInputCustomEvent,
|
|
106
109
|
onChange: t.handleChangeEvent
|
|
107
|
-
},
|
|
110
|
+
}, F({ _: 2 }, [
|
|
108
111
|
e.field.options.useModal ? {
|
|
109
112
|
name: "addonAfter",
|
|
110
|
-
fn:
|
|
111
|
-
u
|
|
113
|
+
fn: r(() => [
|
|
114
|
+
a(u, {
|
|
112
115
|
"icon-class": "icon-sousuo",
|
|
113
116
|
onClick: t.handleClickIcon
|
|
114
117
|
}, null, 8, ["onClick"])
|
|
@@ -116,24 +119,14 @@ function k(t, d, e, L, o, l) {
|
|
|
116
119
|
key: "0"
|
|
117
120
|
} : void 0
|
|
118
121
|
]), 1032, ["value", "disabled", "readonly", "size", "type", "show-password", "placeholder", "allowClear", "maxlength", "showCount", "onFocus", "onBlur", "onInput", "onChange"]), [
|
|
119
|
-
[
|
|
122
|
+
[x, !t.isReadMode]
|
|
120
123
|
]),
|
|
121
|
-
t.isReadMode ? (
|
|
122
|
-
key: 0,
|
|
123
|
-
placement: "topLeft",
|
|
124
|
-
title: o.fieldModel,
|
|
125
|
-
overlayStyle: { zIndex: 1e3 }
|
|
126
|
-
}, {
|
|
127
|
-
default: i(() => [
|
|
128
|
-
x("span", R, I(o.fieldModel), 1)
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["title"])) : r("", !0)
|
|
124
|
+
t.isReadMode ? (s(), v("span", k, I(n.fieldModel), 1)) : l("", !0)
|
|
132
125
|
]),
|
|
133
126
|
_: 1
|
|
134
127
|
}, 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"]));
|
|
135
128
|
}
|
|
136
|
-
const D = /* @__PURE__ */ M
|
|
129
|
+
const D = /* @__PURE__ */ _(M, [["render", R], ["__scopeId", "data-v-02f00c25"]]);
|
|
137
130
|
export {
|
|
138
131
|
D as default
|
|
139
132
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { resolveComponent as o, createBlock as
|
|
1
|
+
import u from "./form-item-wrapper.vue.js";
|
|
2
|
+
import f from "../../../../utils/emitter.js";
|
|
3
|
+
import p from "../../../../utils/i18n.js";
|
|
4
|
+
import c from "./fieldMixin.js";
|
|
5
|
+
import { resolveComponent as o, createBlock as h, createCommentVNode as d, openBlock as r, withCtx as b, withDirectives as g, createElementBlock as w, createVNode as F, vShow as x, toDisplayString as C } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import _ from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const v = {
|
|
9
9
|
name: "number-widget",
|
|
10
10
|
componentName: "FieldWidget",
|
|
11
11
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
12
|
-
mixins: [
|
|
12
|
+
mixins: [f, c, p],
|
|
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,13 @@ const y = {
|
|
|
64
64
|
this.unregisterFromRefList();
|
|
65
65
|
},
|
|
66
66
|
methods: {}
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
}, y = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "readonly-mode-field"
|
|
70
|
+
};
|
|
71
|
+
function M(i, n, e, R, t, s) {
|
|
72
|
+
const l = o("a-input-number"), a = o("form-item-wrapper");
|
|
73
|
+
return i.handleHidden() ? d("", !0) : (r(), h(a, {
|
|
71
74
|
key: 0,
|
|
72
75
|
designer: e.designer,
|
|
73
76
|
field: e.field,
|
|
@@ -80,12 +83,12 @@ function z(i, n, e, I, t, a) {
|
|
|
80
83
|
"sub-form-col-index": e.subFormColIndex,
|
|
81
84
|
"sub-form-row-id": e.subFormRowId
|
|
82
85
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
|
|
86
|
+
default: b(() => [
|
|
87
|
+
g(F(l, {
|
|
85
88
|
ref: "fieldEditor",
|
|
86
|
-
size:
|
|
89
|
+
size: s.size,
|
|
87
90
|
value: t.fieldModel,
|
|
88
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
91
|
+
"onUpdate:value": n[0] || (n[0] = (m) => t.fieldModel = m),
|
|
89
92
|
class: "full-width-input",
|
|
90
93
|
disabled: i.handleDisabled(),
|
|
91
94
|
"controls-position": e.field.options.controlsPosition,
|
|
@@ -100,22 +103,12 @@ function z(i, n, e, I, t, a) {
|
|
|
100
103
|
}, null, 8, ["size", "value", "disabled", "controls-position", "placeholder", "min", "max", "precision", "step", "onFocus", "onBlur", "onChange"]), [
|
|
101
104
|
[x, !i.isReadMode]
|
|
102
105
|
]),
|
|
103
|
-
i.isReadMode ? (
|
|
104
|
-
key: 0,
|
|
105
|
-
placement: "topLeft",
|
|
106
|
-
title: t.fieldModel,
|
|
107
|
-
overlayStyle: { zIndex: 1e3 }
|
|
108
|
-
}, {
|
|
109
|
-
default: s(() => [
|
|
110
|
-
F("span", M, C(t.fieldModel), 1)
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["title"])) : r("", !0)
|
|
106
|
+
i.isReadMode ? (r(), w("span", y, C(t.fieldModel), 1)) : d("", !0)
|
|
114
107
|
]),
|
|
115
108
|
_: 1
|
|
116
109
|
}, 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"]));
|
|
117
110
|
}
|
|
118
|
-
const
|
|
111
|
+
const k = /* @__PURE__ */ _(v, [["render", M], ["__scopeId", "data-v-068cbf85"]]);
|
|
119
112
|
export {
|
|
120
|
-
|
|
113
|
+
k as default
|
|
121
114
|
};
|