@dcloudio/uni-mp-toutiao 3.0.0-alpha-3090120230927001 → 3.0.0-alpha-3090320231017001

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.
@@ -68,6 +68,10 @@ const customElements = [
68
68
  'pay-button',
69
69
  'rate-button',
70
70
  'member-button',
71
+ 'confirm-receipt-button',
72
+ 'live-preview',
73
+ 'aweme-live-book',
74
+ 'aweme-user-card',
71
75
  ];
72
76
  const projectConfigFilename = 'project.config.json';
73
77
  const nodeTransforms = [
@@ -1,6 +1,6 @@
1
1
  import { SLOT_DEFAULT_NAME, EventChannel, invokeArrayFns, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, ON_LOAD, ON_SHOW, ON_HIDE, ON_UNLOAD, ON_RESIZE, ON_TAB_ITEM_TAP, ON_REACH_BOTTOM, ON_PULL_DOWN_REFRESH, ON_ADD_TO_FAVORITES, isUniLifecycleHook, ON_READY, once, ON_LAUNCH, ON_ERROR, ON_THEME_CHANGE, ON_PAGE_NOT_FOUND, ON_UNHANDLE_REJECTION, addLeadingSlash, stringifyQuery, customizeEvent } from '@dcloudio/uni-shared';
2
2
  import { isArray, isFunction, hasOwn, extend, isPlainObject, isObject } from '@vue/shared';
3
- import { ref, nextTick, findComponentPropsData, toRaw, updateProps, hasQueueJob, invalidateJob, devtoolsComponentAdded, getExposeProxy, pruneComponentPropsCache } from 'vue';
3
+ import { ref, nextTick, findComponentPropsData, toRaw, updateProps, hasQueueJob, invalidateJob, devtoolsComponentAdded, getExposeProxy, isRef, pruneComponentPropsCache } from 'vue';
4
4
  import { normalizeLocale, LOCALE_EN } from '@dcloudio/uni-i18n';
5
5
 
6
6
  const MP_METHODS = [
@@ -879,11 +879,28 @@ function initInjections(instance) {
879
879
  else {
880
880
  for (const key in injectOptions) {
881
881
  const opt = injectOptions[key];
882
+ let injected;
882
883
  if (isObject(opt)) {
883
- ctx[key] = inject(internalInstance, opt.from || key, opt.default, true /* treat default function as factory */);
884
+ if ('default' in opt) {
885
+ injected = inject(internalInstance, opt.from || key, opt.default, true /* treat default function as factory */);
886
+ }
887
+ else {
888
+ injected = inject(internalInstance, opt.from || key);
889
+ }
890
+ }
891
+ else {
892
+ injected = inject(internalInstance, opt);
893
+ }
894
+ if (isRef(injected)) {
895
+ Object.defineProperty(ctx, key, {
896
+ enumerable: true,
897
+ configurable: true,
898
+ get: () => injected.value,
899
+ set: (v) => (injected.value = v),
900
+ });
884
901
  }
885
902
  else {
886
- ctx[key] = inject(internalInstance, opt);
903
+ ctx[key] = injected;
887
904
  }
888
905
  }
889
906
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-mp-toutiao",
3
- "version": "3.0.0-alpha-3090120230927001",
3
+ "version": "3.0.0-alpha-3090320231017001",
4
4
  "description": "uni-app mp-toutiao",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -25,11 +25,11 @@
25
25
  },
26
26
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
27
27
  "dependencies": {
28
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3090120230927001",
29
- "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3090120230927001",
30
- "@dcloudio/uni-mp-vite": "3.0.0-alpha-3090120230927001",
31
- "@dcloudio/uni-mp-vue": "3.0.0-alpha-3090120230927001",
32
- "@dcloudio/uni-shared": "3.0.0-alpha-3090120230927001",
28
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3090320231017001",
29
+ "@dcloudio/uni-mp-compiler": "3.0.0-alpha-3090320231017001",
30
+ "@dcloudio/uni-mp-vite": "3.0.0-alpha-3090320231017001",
31
+ "@dcloudio/uni-mp-vue": "3.0.0-alpha-3090320231017001",
32
+ "@dcloudio/uni-shared": "3.0.0-alpha-3090320231017001",
33
33
  "@vue/shared": "3.2.47",
34
34
  "@vue/compiler-core": "3.2.47"
35
35
  }