@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.14.0-beta.6",
3
+ "version": "2.14.0-beta.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,16 +1,16 @@
1
- import p from "./form-item-wrapper.vue.js";
2
- import b from "../../../../utils/emitter.js";
3
- import g from "../../../../utils/i18n.js";
4
- import { formateCascaderCode as y } from "../../../../utils/format.js";
5
- import C from "./fieldMixin.js";
6
- import { resolveComponent as o, createBlock as d, createCommentVNode as r, openBlock as s, withCtx as a, createElementVNode as m, normalizeClass as v, createVNode as w, toDisplayString as F } from "vue";
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 _ from "../../../../../_virtual/_plugin-vue_export-helper.js";
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: [b, C, g],
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: p
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 ? y(this.field.options.optionItems, 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 = { class: "readonly-mode-field" };
92
- function I(t, n, e, K, l, i) {
93
- const u = o("a-cascader"), f = o("a-tooltip"), c = o("form-item-wrapper");
94
- return t.handleHidden() ? r("", !0) : (s(), d(c, {
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: a(() => [
108
- m("div", {
109
- class: v(["full-width-input", { "readonly-mode-cascader": t.isReadMode }])
110
+ default: g(() => [
111
+ y("div", {
112
+ class: C(["full-width-input", { "readonly-mode-cascader": i.isReadMode }])
110
113
  }, [
111
- w(u, {
114
+ w(s, {
112
115
  ref: "fieldEditor",
113
- size: i.size,
116
+ size: t.size,
114
117
  options: e.field.options.optionItems,
115
118
  value: l.fieldModel,
116
- "onUpdate:value": n[0] || (n[0] = (h) => l.fieldModel = h),
117
- disabled: t.handleDisabled(),
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 || t.i18nt("render.hint.selectPlaceholder"),
120
- fieldNames: { value: i.valueKey, label: i.labelKey, children: i.childrenKey },
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: t.handleFocusCustomEvent,
124
- onBlur: t.handleBlurCustomEvent,
125
- onChange: t.handleChangeEvent
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
- t.isReadMode ? (s(), d(f, {
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 S = /* @__PURE__ */ _(M, [["render", I], ["__scopeId", "data-v-d6774be2"]]);
136
+ const W = /* @__PURE__ */ K(M, [["render", I], ["__scopeId", "data-v-bb8b3209"]]);
144
137
  export {
145
- S as default
138
+ W as default
146
139
  };
@@ -1,15 +1,15 @@
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 F from "./fieldMixin.js";
5
- import { resolveComponent as d, createBlock as n, createCommentVNode as i, openBlock as r, withCtx as a, createElementVNode as s, normalizeClass as f, createVNode as C, toDisplayString as y } from "vue";
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 v from "../../../../../_virtual/_plugin-vue_export-helper.js";
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: [b, F, w],
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: g
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
- }, _ = { class: "readonly-mode-field" };
68
- function R(t, l, e, x, o, m) {
69
- const u = d("a-range-picker"), c = d("a-tooltip"), h = d("form-item-wrapper");
70
- return t.handleHidden() ? i("", !0) : (r(), n(h, {
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: a(() => [
84
- s("div", {
85
- class: f([
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
- C(u, {
93
+ F(s, {
91
94
  ref: "fieldEditor",
92
95
  value: o.fieldModel,
93
- "onUpdate:value": l[0] || (l[0] = (p) => o.fieldModel = p),
94
- class: f([e.field.options.autoFullWidth ? "auto-full-width" : ""]),
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 ? (r(), n(c, {
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 E = /* @__PURE__ */ v(M, [["render", R], ["__scopeId", "data-v-232d060f"]]);
116
+ const L = /* @__PURE__ */ y(M, [["render", _], ["__scopeId", "data-v-7f77f8d8"]]);
124
117
  export {
125
- E as default
118
+ L as default
126
119
  };
@@ -1,15 +1,15 @@
1
- import b from "./form-item-wrapper.vue.js";
2
- import g from "../../../../utils/emitter.js";
3
- import w from "../../../../utils/i18n.js";
4
- import C from "./fieldMixin.js";
5
- import { resolveComponent as o, createBlock as l, createCommentVNode as n, openBlock as r, withCtx as a, createElementVNode as s, normalizeClass as f, createVNode as F, toDisplayString as y } from "vue";
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 _ from "../../../../../_virtual/_plugin-vue_export-helper.js";
8
- const v = {
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: [g, C, w],
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: b
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 = { class: "readonly-mode-field" };
68
- function z(t, d, e, M, i, m) {
69
- const u = o("a-date-picker"), c = o("a-tooltip"), h = o("form-item-wrapper");
70
- return t.handleHidden() ? n("", !0) : (r(), l(h, {
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: a(() => [
84
- s("div", {
85
- class: f([
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
- F(u, {
91
- size: m.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": d[0] || (d[0] = (p) => i.fieldModel = p),
96
- class: f([e.field.options.autoFullWidth ? "auto-full-width" : ""]),
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 ? (r(), l(c, {
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 B = /* @__PURE__ */ _(v, [["render", z], ["__scopeId", "data-v-0cbbd56a"]]);
117
+ const W = /* @__PURE__ */ v(_, [["render", k], ["__scopeId", "data-v-2926f4d0"]]);
125
118
  export {
126
- B as default
119
+ W as default
127
120
  };
@@ -1,16 +1,16 @@
1
- import g from "./form-item-wrapper.vue.js";
2
- import { SvgIcon as w } from "tmgc2-share";
3
- import b from "../../../../utils/emitter.js";
4
- import C from "../../../../utils/i18n.js";
5
- import y from "./fieldMixin.js";
6
- import { resolveComponent as n, createBlock as s, createCommentVNode as r, openBlock as a, withCtx as i, withDirectives as _, createVNode as u, createSlots as v, vShow as F, createElementVNode as x, toDisplayString as I } from "vue";
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 M from "../../../../../_virtual/_plugin-vue_export-helper.js";
9
- const z = {
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: [b, y, C],
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: g,
42
- SvgIcon: w
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
- }, R = { class: "readonly-mode-field" };
73
- function k(t, d, e, L, o, l) {
74
- const f = n("svg-icon"), m = n("a-input"), p = n("a-tooltip"), h = n("form-item-wrapper");
75
- return t.handleHidden() ? r("", !0) : (a(), s(h, {
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: o.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: i(() => [
89
- _(u(m, {
91
+ default: r(() => [
92
+ y(a(f, {
90
93
  ref: "fieldEditor",
91
- value: o.fieldModel,
92
- "onUpdate:value": d[0] || (d[0] = (c) => o.fieldModel = c),
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: l.size,
98
+ size: d.size,
96
99
  class: "hide-spin-button",
97
- type: l.inputType,
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
- }, v({ _: 2 }, [
110
+ }, F({ _: 2 }, [
108
111
  e.field.options.useModal ? {
109
112
  name: "addonAfter",
110
- fn: i(() => [
111
- u(f, {
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
- [F, !t.isReadMode]
122
+ [x, !t.isReadMode]
120
123
  ]),
121
- t.isReadMode ? (a(), s(p, {
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(z, [["render", k], ["__scopeId", "data-v-f16608cb"]]);
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 c from "./form-item-wrapper.vue.js";
2
- import h from "../../../../utils/emitter.js";
3
- import b from "../../../../utils/i18n.js";
4
- import g from "./fieldMixin.js";
5
- import { resolveComponent as o, createBlock as d, createCommentVNode as r, openBlock as l, withCtx as s, withDirectives as w, createVNode as _, vShow as x, createElementVNode as F, toDisplayString as C } from "vue";
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 v from "../../../../../_virtual/_plugin-vue_export-helper.js";
8
- const y = {
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: [h, g, b],
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: c
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
- }, M = { class: "readonly-mode-field" };
68
- function z(i, n, e, I, t, a) {
69
- const m = o("a-input-number"), u = o("a-tooltip"), f = o("form-item-wrapper");
70
- return i.handleHidden() ? r("", !0) : (l(), d(f, {
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: s(() => [
84
- w(_(m, {
86
+ default: b(() => [
87
+ g(F(l, {
85
88
  ref: "fieldEditor",
86
- size: a.size,
89
+ size: s.size,
87
90
  value: t.fieldModel,
88
- "onUpdate:value": n[0] || (n[0] = (p) => t.fieldModel = p),
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 ? (l(), d(u, {
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 W = /* @__PURE__ */ v(y, [["render", z], ["__scopeId", "data-v-87ed8e36"]]);
111
+ const k = /* @__PURE__ */ _(v, [["render", M], ["__scopeId", "data-v-068cbf85"]]);
119
112
  export {
120
- W as default
113
+ k as default
121
114
  };