@vunk/form 1.4.11 → 1.4.12
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.
|
@@ -32,8 +32,12 @@ const VkfFormItemRenderer$1 = vue.defineComponent({
|
|
|
32
32
|
const pTemplateInstances = vue.inject(parentTemplateInstancesSymbol, null);
|
|
33
33
|
const templateInstances = props.templateInstances ?? pTemplateInstances ?? vue.shallowReactive({});
|
|
34
34
|
vue.provide(S_TEMPLATE_INSTANCES, templateInstances);
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
const Renderer = (props2) => {
|
|
36
|
+
return vue.h(VkfFormItemRenderer$1, {
|
|
37
|
+
templateInstances,
|
|
38
|
+
...props2
|
|
39
|
+
});
|
|
40
|
+
};
|
|
37
41
|
const renderFormItems = (data, pK = []) => {
|
|
38
42
|
return data.reduce((a, c, index) => {
|
|
39
43
|
c.key = c.key ?? (Array.isArray(c.prop) ? c.prop.join() : c.prop);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, inject, shallowReactive, provide, nextTick } from 'vue';
|
|
1
|
+
import { defineComponent, inject, shallowReactive, provide, h, nextTick } from 'vue';
|
|
2
2
|
import { genTemplateIfFunc } from '@vunk/form/shared/form';
|
|
3
3
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
@@ -28,8 +28,12 @@ const VkfFormItemRenderer$1 = defineComponent({
|
|
|
28
28
|
const pTemplateInstances = inject(parentTemplateInstancesSymbol, null);
|
|
29
29
|
const templateInstances = props.templateInstances ?? pTemplateInstances ?? shallowReactive({});
|
|
30
30
|
provide(S_TEMPLATE_INSTANCES, templateInstances);
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const Renderer = (props2) => {
|
|
32
|
+
return h(VkfFormItemRenderer$1, {
|
|
33
|
+
templateInstances,
|
|
34
|
+
...props2
|
|
35
|
+
});
|
|
36
|
+
};
|
|
33
37
|
const renderFormItems = (data, pK = []) => {
|
|
34
38
|
return data.reduce((a, c, index) => {
|
|
35
39
|
c.key = c.key ?? (Array.isArray(c.prop) ? c.prop.join() : c.prop);
|