diff --git a/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js b/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js index 77b6c1a7c0e1f1f3bd4c8f40112effb72bb57073..1112e933b5721d34535dc0e9ef549de679de8cf4 100644 --- a/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js +++ b/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js @@ -3602,7 +3602,13 @@ function applyOptions(instance) { if (components) instance.components = components; - if (directives) instance.directives = directives; + if (directives) instance.directives = directives; // fixed by xxxxxx + + var customApplyOptions = instance.appContext.config.globalProperties.$applyOptions; + + if (customApplyOptions) { + customApplyOptions(options, instance, publicThis); + } } function resolveInjections(injectOptions, ctx) { diff --git a/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js b/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js index 5d800178f0b8c9fcd37427f3bd54189d0ebf625e..a1c22b5d8b9e8c8b802da644ca885408c89d38b1 100644 --- a/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js +++ b/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js @@ -2898,7 +2898,13 @@ function applyOptions(instance) { if (components) instance.components = components; - if (directives) instance.directives = directives; + if (directives) instance.directives = directives; // fixed by xxxxxx + + var customApplyOptions = instance.appContext.config.globalProperties.$applyOptions; + + if (customApplyOptions) { + customApplyOptions(options, instance, publicThis); + } } function resolveInjections(injectOptions, ctx) { diff --git a/packages/uni-app-vue/lib/nvue.runtime.esm.js b/packages/uni-app-vue/lib/nvue.runtime.esm.js index 19f8ea41daa9e453794403925aa25f38490e63db..ddc5ab48d6477a7cf49cd0de8a9934a335632548 100644 --- a/packages/uni-app-vue/lib/nvue.runtime.esm.js +++ b/packages/uni-app-vue/lib/nvue.runtime.esm.js @@ -2915,6 +2915,12 @@ function applyOptions(instance) { instance.components = components; if (directives) instance.directives = directives; + // fixed by xxxxxx + const customApplyOptions = instance.appContext.config.globalProperties + .$applyOptions; + if (customApplyOptions) { + customApplyOptions(options, instance, publicThis); + } } function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP, unwrapRef = false) { if (isArray(injectOptions)) {