@vunk/form 2.10.4 → 2.10.5

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.
@@ -61,7 +61,8 @@ const emits = {
61
61
 
62
62
  var _sfc_main = /* @__PURE__ */vue.defineComponent({
63
63
  ...{
64
- name: "VkfEditableText"
64
+ name: "VkfEditableText",
65
+ inheritAttrs: false
65
66
  },
66
67
  __name: "index",
67
68
  props: props,
@@ -138,7 +139,6 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
138
139
  editable.value = false;
139
140
  }).catch(() => {
140
141
  console.warn("Validation failed, editable text remains open.");
141
- handleCancel();
142
142
  });
143
143
  } else {
144
144
  editable.value = false;
@@ -202,7 +202,10 @@ const _hoisted_1 = { class: "vkf-editable-text-actions" };
202
202
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
203
203
  return $setup.readonly || !$setup.editable ? (vue.openBlock(), vue.createBlock(
204
204
  $setup["VkfFormItem"],
205
- vue.normalizeProps(vue.mergeProps({ key: 0 }, $setup.formItemBindProps)),
205
+ vue.normalizeProps(vue.mergeProps({ key: 0 }, {
206
+ ...$setup.formItemBindProps,
207
+ ..._ctx.$attrs
208
+ })),
206
209
  {
207
210
  default: vue.withCtx(() => [
208
211
  vue.renderSlot(_ctx.$slots, "text", { handleEdit: $setup.handleEdit }, () => [
@@ -238,7 +241,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
238
241
  default: vue.withCtx(() => [
239
242
  vue.createVNode(
240
243
  $setup["VkfFormItem"],
241
- { ref: "formItemContainerRef" },
244
+ vue.mergeProps({
245
+ ref: "formItemContainerRef",
246
+ class: "vk-editable-text-edit-x"
247
+ }, _ctx.$attrs),
242
248
  {
243
249
  default: vue.withCtx(() => [
244
250
  vue.createVNode($setup["VkfFormItemRenderer"], { source: $setup.editSource }, {
@@ -266,8 +272,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
266
272
  _: 1
267
273
  /* STABLE */
268
274
  },
269
- 512
270
- /* NEED_PATCH */
275
+ 16
276
+ /* FULL_PROPS */
271
277
  )
272
278
  ]),
273
279
  _: 1
@@ -4,3 +4,6 @@
4
4
  .vkf-editable-text-actions .el-avatar {
5
5
  cursor: pointer;
6
6
  }
7
+ .vk-editable-text-edit-x .el-form-item__content {
8
+ flex-wrap: nowrap;
9
+ }
@@ -57,7 +57,8 @@ const emits = {
57
57
 
58
58
  var _sfc_main = /* @__PURE__ */defineComponent({
59
59
  ...{
60
- name: "VkfEditableText"
60
+ name: "VkfEditableText",
61
+ inheritAttrs: false
61
62
  },
62
63
  __name: "index",
63
64
  props: props,
@@ -134,7 +135,6 @@ var _sfc_main = /* @__PURE__ */defineComponent({
134
135
  editable.value = false;
135
136
  }).catch(() => {
136
137
  console.warn("Validation failed, editable text remains open.");
137
- handleCancel();
138
138
  });
139
139
  } else {
140
140
  editable.value = false;
@@ -198,7 +198,10 @@ const _hoisted_1 = { class: "vkf-editable-text-actions" };
198
198
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
199
199
  return $setup.readonly || !$setup.editable ? (openBlock(), createBlock(
200
200
  $setup["VkfFormItem"],
201
- normalizeProps(mergeProps({ key: 0 }, $setup.formItemBindProps)),
201
+ normalizeProps(mergeProps({ key: 0 }, {
202
+ ...$setup.formItemBindProps,
203
+ ..._ctx.$attrs
204
+ })),
202
205
  {
203
206
  default: withCtx(() => [
204
207
  renderSlot(_ctx.$slots, "text", { handleEdit: $setup.handleEdit }, () => [
@@ -234,7 +237,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
234
237
  default: withCtx(() => [
235
238
  createVNode(
236
239
  $setup["VkfFormItem"],
237
- { ref: "formItemContainerRef" },
240
+ mergeProps({
241
+ ref: "formItemContainerRef",
242
+ class: "vk-editable-text-edit-x"
243
+ }, _ctx.$attrs),
238
244
  {
239
245
  default: withCtx(() => [
240
246
  createVNode($setup["VkfFormItemRenderer"], { source: $setup.editSource }, {
@@ -262,8 +268,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
262
268
  _: 1
263
269
  /* STABLE */
264
270
  },
265
- 512
266
- /* NEED_PATCH */
271
+ 16
272
+ /* FULL_PROPS */
267
273
  )
268
274
  ]),
269
275
  _: 1
package/index.css CHANGED
@@ -155,6 +155,9 @@
155
155
  .vkf-editable-text-actions .el-avatar {
156
156
  cursor: pointer;
157
157
  }
158
+ .vk-editable-text-edit-x .el-form-item__content {
159
+ flex-wrap: nowrap;
160
+ }
158
161
 
159
162
  .el-button.vkf-esri-input-geojson__upload{
160
163
  border-color: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.10.4",
3
+ "version": "2.10.5",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {