@piying/view-vue2-legacy 2.4.5 → 2.4.6
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/index.js +20 -21
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -6984,25 +6984,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6984
6984
|
PI_INPUT_MODEL_TOKEN,
|
|
6985
6985
|
computed(() => inputs.modelValue)
|
|
6986
6986
|
);
|
|
6987
|
-
let
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
});
|
|
6987
|
+
let initResult = shallowRef();
|
|
6988
|
+
watch(
|
|
6989
|
+
() => [inputs.schema, inputs.options, rootInjector.value],
|
|
6990
|
+
(_, __, onCleanup) => {
|
|
6991
|
+
const subInjector = createInjector({ providers: [], parent: rootInjector.value });
|
|
6992
|
+
onCleanup(() => {
|
|
6993
|
+
subInjector.destroy();
|
|
6994
|
+
});
|
|
6995
|
+
const field2 = convert(inputs.schema, {
|
|
6996
|
+
...inputs.options,
|
|
6997
|
+
handle: VueSchemaHandle,
|
|
6998
|
+
builder: VueFormBuilder,
|
|
6999
|
+
injector: subInjector
|
|
7000
|
+
});
|
|
7001
|
+
initResult.value = [field2, subInjector];
|
|
7002
|
+
},
|
|
7003
|
+
{ immediate: true }
|
|
7004
|
+
);
|
|
7006
7005
|
const field = computed(() => initResult.value[0]);
|
|
7007
7006
|
watch(
|
|
7008
7007
|
() => [initResult.value, inputs.modelValue],
|
|
@@ -7024,7 +7023,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7024
7023
|
},
|
|
7025
7024
|
{ immediate: true }
|
|
7026
7025
|
);
|
|
7027
|
-
return { __sfc: true, inputs, emit, maybeParentField, rootInjector,
|
|
7026
|
+
return { __sfc: true, inputs, emit, maybeParentField, rootInjector, initResult, field, FieldTemplate };
|
|
7028
7027
|
}
|
|
7029
7028
|
});
|
|
7030
7029
|
var _sfc_render$1 = function render3() {
|
|
@@ -7038,7 +7037,7 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
|
7038
7037
|
_sfc_staticRenderFns$1,
|
|
7039
7038
|
false,
|
|
7040
7039
|
null,
|
|
7041
|
-
"
|
|
7040
|
+
"340d6ac0"
|
|
7042
7041
|
);
|
|
7043
7042
|
const piyingView = __component__$1.exports;
|
|
7044
7043
|
function useControlValueAccessor(autoChange = true) {
|