cnhis-design-vue 3.1.29-beta.7 → 3.1.29
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.
|
@@ -920,6 +920,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
920
920
|
required: true;
|
|
921
921
|
};
|
|
922
922
|
}>> & {}>>;
|
|
923
|
+
wrapperSelector: import("vue").ComputedRef<string>;
|
|
923
924
|
key: import("vue").Ref<number>;
|
|
924
925
|
formRenderRef: import("vue").Ref<import("..").FormRenderExpose | undefined>;
|
|
925
926
|
currentActiveField: import("vue").Ref<import("../../../es/shared/types").UndefinedAble<import("./src/types").FormConfigItem>>;
|
|
@@ -921,6 +921,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
921
921
|
required: true;
|
|
922
922
|
};
|
|
923
923
|
}>> & {}>>;
|
|
924
|
+
wrapperSelector: import("vue").ComputedRef<string>;
|
|
924
925
|
key: import("vue").Ref<number>;
|
|
925
926
|
formRenderRef: import("vue").Ref<import("../..").FormRenderExpose | undefined>;
|
|
926
927
|
currentActiveField: import("vue").Ref<import("../../../../es/shared/types").UndefinedAble<FormConfigItem>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, inject, watch, toRaw, openBlock, createElementBlock, Fragment, createBlock, unref, createVNode, nextTick } from 'vue';
|
|
1
|
+
import { defineComponent, computed, ref, inject, watch, toRaw, openBlock, createElementBlock, Fragment, createBlock, unref, createVNode, nextTick } from 'vue';
|
|
2
2
|
import { cloneDeep } from 'lodash-es';
|
|
3
3
|
import { InjectionActiveFieldItem } from '../constants/index.js';
|
|
4
4
|
import '../../../../shared/components/VueDraggable/src/vuedraggable.js';
|
|
@@ -16,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
props: { uuid: { type: String, required: true } },
|
|
17
17
|
setup(__props, { expose }) {
|
|
18
18
|
const props = __props;
|
|
19
|
+
const wrapperSelector = computed(() => `#${props.uuid} .form-config__config`);
|
|
19
20
|
const key = ref(0);
|
|
20
21
|
const formRenderRef = ref();
|
|
21
22
|
const currentActiveField = inject(InjectionActiveFieldItem);
|
|
@@ -46,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
47
|
prevOldField = field;
|
|
47
48
|
initialData.value = { editable: true, ...cloneDeep(toRaw(field)) };
|
|
48
49
|
fieldList.value = generateFieldListByFieldItem(field).map((fieldItem) => {
|
|
49
|
-
return { ...fieldItem, componentProps: { to:
|
|
50
|
+
return { ...fieldItem, componentProps: { to: wrapperSelector.value } };
|
|
50
51
|
});
|
|
51
52
|
key.value++;
|
|
52
53
|
},
|
|
@@ -79,13 +80,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
80
|
show: showModal.value,
|
|
80
81
|
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => showModal.value = $event),
|
|
81
82
|
preset: "dialog",
|
|
83
|
+
to: unref(wrapperSelector),
|
|
82
84
|
"close-on-esc": false,
|
|
83
85
|
"mask-closable": false,
|
|
84
86
|
closable: false,
|
|
85
87
|
title: "\u5B58\u5728\u586B\u5199\u9519\u8BEF\u7684\u5B57\u6BB5",
|
|
86
88
|
"positive-text": "\u7EE7\u7EED\u7F16\u8F91",
|
|
87
89
|
onPositiveClick
|
|
88
|
-
}, null, 8, ["show"])
|
|
90
|
+
}, null, 8, ["show", "to"])
|
|
89
91
|
], 64);
|
|
90
92
|
};
|
|
91
93
|
}
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
14
|
}>> & {}>>;
|
|
15
|
+
wrapperSelector: import("vue").ComputedRef<string>;
|
|
15
16
|
key: import("vue").Ref<number>;
|
|
16
17
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
17
18
|
currentActiveField: import("vue").Ref<import("../../../../../es/shared/types").UndefinedAble<FormConfigItem>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.29
|
|
3
|
+
"version": "3.1.29",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "38a2c287facf3d0c4e719d3ab21bc305e1f44cb3"
|
|
65
65
|
}
|