@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 },
|
|
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
|
-
{
|
|
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
|
-
|
|
270
|
-
/*
|
|
275
|
+
16
|
|
276
|
+
/* FULL_PROPS */
|
|
271
277
|
)
|
|
272
278
|
]),
|
|
273
279
|
_: 1
|
|
@@ -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 },
|
|
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
|
-
{
|
|
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
|
-
|
|
266
|
-
/*
|
|
271
|
+
16
|
|
272
|
+
/* FULL_PROPS */
|
|
267
273
|
)
|
|
268
274
|
]),
|
|
269
275
|
_: 1
|
package/index.css
CHANGED