@piying/view-vue2-legacy 2.4.6 → 2.5.0
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 +6 -6
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -6961,16 +6961,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6961
6961
|
setup(__props, { emit }) {
|
|
6962
6962
|
const inputs = __props;
|
|
6963
6963
|
const maybeParentField = inject(PI_VIEW_FIELD_TOKEN, void 0);
|
|
6964
|
-
const rootInjector = computed(
|
|
6965
|
-
|
|
6964
|
+
const rootInjector = computed(
|
|
6965
|
+
() => inputs.options.injector ?? maybeParentField?.value.injector ?? createRootInjector({
|
|
6966
6966
|
providers: [
|
|
6967
6967
|
{
|
|
6968
6968
|
provide: ChangeDetectionScheduler,
|
|
6969
6969
|
useClass: ChangeDetectionSchedulerImpl
|
|
6970
6970
|
}
|
|
6971
6971
|
]
|
|
6972
|
-
})
|
|
6973
|
-
|
|
6972
|
+
})
|
|
6973
|
+
);
|
|
6974
6974
|
provide(InjectorToken, rootInjector);
|
|
6975
6975
|
provide(
|
|
6976
6976
|
PI_INPUT_OPTIONS_TOKEN,
|
|
@@ -6984,7 +6984,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6984
6984
|
PI_INPUT_MODEL_TOKEN,
|
|
6985
6985
|
computed(() => inputs.modelValue)
|
|
6986
6986
|
);
|
|
6987
|
-
|
|
6987
|
+
const initResult = shallowRef();
|
|
6988
6988
|
watch(
|
|
6989
6989
|
() => [inputs.schema, inputs.options, rootInjector.value],
|
|
6990
6990
|
(_, __, onCleanup) => {
|
|
@@ -7037,7 +7037,7 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
|
7037
7037
|
_sfc_staticRenderFns$1,
|
|
7038
7038
|
false,
|
|
7039
7039
|
null,
|
|
7040
|
-
"
|
|
7040
|
+
"9c3edea6"
|
|
7041
7041
|
);
|
|
7042
7042
|
const piyingView = __component__$1.exports;
|
|
7043
7043
|
function useControlValueAccessor(autoChange = true) {
|