@dcloudio/uni-cli-shared 3.0.0-alpha-4070720250804001 → 3.0.0-alpha-4080120250820001
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/dist/hbx/index.js +5 -3
- package/dist/json/app/manifest/env.d.ts +1 -1
- package/dist/json/app/manifest/env.js +4 -4
- package/dist/json/app/manifest/index.js +3 -1
- package/dist/json/app/pages/definePage.d.ts +2 -1
- package/dist/json/app/pages/definePage.js +15 -3
- package/dist/json/app/pages/index.d.ts +2 -1
- package/dist/json/app/pages/index.js +5 -3
- package/dist/json/mp/types.d.ts +3 -0
- package/dist/json/theme.js +1 -4
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +5 -2
- package/dist/vite/plugins/uts/uni_modules.js +27 -2
- package/dist/vue/transforms/templateTransformAssetUrl.d.ts +5 -1
- package/dist/vue/transforms/templateTransformAssetUrl.js +23 -14
- package/dist/vue/utils.d.ts +5 -2
- package/dist/vue/utils.js +31 -4
- package/dist/workers.d.ts +4 -3
- package/dist/workers.js +125 -32
- package/lib/vapor/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +11 -2
- package/lib/vapor/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +11 -2
- package/lib/vapor/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +11 -2
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.cjs.js +5 -5
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.cjs.prod.js +5 -5
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.esm-bundler.js +5 -5
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +5 -5
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +1 -1
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.global.js +5 -5
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.global.prod.js +1 -1
- package/lib/vapor/@vue/runtime-vapor/dist/runtime-vapor.esm-bundler.js +36 -13
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-browser.js +5 -5
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +1 -1
- package/lib/vapor/@vue/vue/dist/vue.esm-browser.js +5 -5
- package/lib/vapor/@vue/vue/dist/vue.esm-browser.prod.js +1 -1
- package/lib/vapor/@vue/vue/dist/vue.global.js +5 -5
- package/lib/vapor/@vue/vue/dist/vue.global.prod.js +1 -1
- package/lib/vapor/@vue/vue/dist/vue.runtime-with-vapor.esm-browser.js +41 -18
- package/lib/vapor/@vue/vue/dist/vue.runtime-with-vapor.esm-browser.prod.js +3 -3
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-browser.js +5 -5
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/lib/vapor/@vue/vue/dist/vue.runtime.global.js +5 -5
- package/lib/vapor/@vue/vue/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +4 -4
|
@@ -5486,8 +5486,8 @@ function toHandlers(obj, preserveCaseIfNecessary) {
|
|
|
5486
5486
|
}
|
|
5487
5487
|
|
|
5488
5488
|
const getPublicInstance = (i) => {
|
|
5489
|
-
if (!i
|
|
5490
|
-
if (isStatefulComponent(i))
|
|
5489
|
+
if (!i) return null;
|
|
5490
|
+
if (i.vapor || isStatefulComponent(i))
|
|
5491
5491
|
return getComponentPublicInstance(i);
|
|
5492
5492
|
return getPublicInstance(i.parent);
|
|
5493
5493
|
};
|
|
@@ -10471,7 +10471,7 @@ function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
|
10471
10471
|
|
|
10472
10472
|
let currentInstance = null;
|
|
10473
10473
|
const getCurrentGenericInstance = () => currentInstance || currentRenderingInstance;
|
|
10474
|
-
const getCurrentInstance = () =>
|
|
10474
|
+
const getCurrentInstance = () => getCurrentGenericInstance();
|
|
10475
10475
|
let isInSSRComponentSetup = false;
|
|
10476
10476
|
let setInSSRSetupState;
|
|
10477
10477
|
let simpleSetCurrentInstance;
|
|
@@ -10498,8 +10498,8 @@ function nextUid() {
|
|
|
10498
10498
|
}
|
|
10499
10499
|
function createComponentInstance(vnode, parent, suspense) {
|
|
10500
10500
|
const type = vnode.type;
|
|
10501
|
-
if (type.__file) {
|
|
10502
|
-
console.log("vue3 \u6807\u51C6\u6A21\u5F0F\uFF1A", `at ${type.__file}:1`);
|
|
10501
|
+
if (type.__file || type.__name) {
|
|
10502
|
+
console.log("vue3 \u6807\u51C6\u6A21\u5F0F\uFF1A", `at ${type.__file || type.__name}:1`);
|
|
10503
10503
|
}
|
|
10504
10504
|
const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
|
|
10505
10505
|
const instance = {
|
|
@@ -13755,11 +13755,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
13755
13755
|
|
|
13756
13756
|
const hasFallthroughKey = (key) => currentInstance.hasFallthrough && key in currentInstance.attrs;
|
|
13757
13757
|
function setProp(el, key, value) {
|
|
13758
|
-
|
|
13759
|
-
setDOMProp(el, key, value);
|
|
13760
|
-
} else {
|
|
13761
|
-
setAttr(el, key, value);
|
|
13762
|
-
}
|
|
13758
|
+
setAttr(el, key, value);
|
|
13763
13759
|
}
|
|
13764
13760
|
function setAttr(el, key, value) {
|
|
13765
13761
|
if (!isApplyingFallthroughProps && el.$root && hasFallthroughKey(key)) {
|
|
@@ -13811,7 +13807,35 @@ function setDOMProp(el, key, value) {
|
|
|
13811
13807
|
needRemove && el.removeAttribute(key);
|
|
13812
13808
|
}
|
|
13813
13809
|
function setClass(el, value) {
|
|
13814
|
-
|
|
13810
|
+
if (el.$root) {
|
|
13811
|
+
setClassIncremental(el, value);
|
|
13812
|
+
} else if ((value = normalizeClass$1(value)) !== el.$cls) {
|
|
13813
|
+
el.$cls = value;
|
|
13814
|
+
patchClass(el, null, normalizeClass$1(value), getCurrentGenericInstance());
|
|
13815
|
+
}
|
|
13816
|
+
}
|
|
13817
|
+
function setClassIncremental(el, value) {
|
|
13818
|
+
const cacheKey = `$clsi${isApplyingFallthroughProps ? "$" : ""}`;
|
|
13819
|
+
const prev = el[cacheKey];
|
|
13820
|
+
if ((value = el[cacheKey] = normalizeClass$1(value)) !== prev) {
|
|
13821
|
+
const nextClassList = el.classList.slice(0);
|
|
13822
|
+
normalizeClass$1(value).split(/\s+/).forEach((cls) => {
|
|
13823
|
+
if (!nextClassList.includes(cls)) {
|
|
13824
|
+
nextClassList.push(cls);
|
|
13825
|
+
}
|
|
13826
|
+
});
|
|
13827
|
+
if (prev) {
|
|
13828
|
+
for (const cls of prev.split(/\s+/)) {
|
|
13829
|
+
if (!nextClassList.includes(cls)) {
|
|
13830
|
+
const index = nextClassList.indexOf(cls);
|
|
13831
|
+
if (index !== -1) {
|
|
13832
|
+
nextClassList.splice(index, 1);
|
|
13833
|
+
}
|
|
13834
|
+
}
|
|
13835
|
+
}
|
|
13836
|
+
}
|
|
13837
|
+
patchClass(el, null, nextClassList.join(" "), getCurrentGenericInstance());
|
|
13838
|
+
}
|
|
13815
13839
|
}
|
|
13816
13840
|
function setStyle(el, value) {
|
|
13817
13841
|
if (el.$root) {
|
|
@@ -13833,11 +13857,10 @@ function setValue(el, value) {
|
|
|
13833
13857
|
if (!isApplyingFallthroughProps && el.$root && hasFallthroughKey("value")) {
|
|
13834
13858
|
return;
|
|
13835
13859
|
}
|
|
13836
|
-
|
|
13837
|
-
const oldValue = el.tagName === "OPTION" ? el.getAttribute("value") : el.value;
|
|
13860
|
+
const oldValue = el.getAnyAttribute("value");
|
|
13838
13861
|
const newValue = value == null ? "" : value;
|
|
13839
13862
|
if (oldValue !== newValue) {
|
|
13840
|
-
el.value
|
|
13863
|
+
el.setAnyAttribute("value", newValue);
|
|
13841
13864
|
}
|
|
13842
13865
|
if (value == null) {
|
|
13843
13866
|
el.removeAttribute("value");
|
|
@@ -14732,8 +14755,8 @@ const emptyContext = {
|
|
|
14732
14755
|
};
|
|
14733
14756
|
class VaporComponentInstance {
|
|
14734
14757
|
constructor(comp, rawProps, rawSlots, appContext) {
|
|
14735
|
-
if (comp.__file) {
|
|
14736
|
-
console.log("vue3 \u84B8\u6C7D\u6A21\u5F0F\uFF1A", `at ${comp.__file}:1`);
|
|
14758
|
+
if (comp.__file || comp.__name) {
|
|
14759
|
+
console.log("vue3 \u84B8\u6C7D\u6A21\u5F0F\uFF1A", `at ${comp.__file || comp.__name}:1`);
|
|
14737
14760
|
}
|
|
14738
14761
|
this.vapor = true;
|
|
14739
14762
|
this.uid = nextUid();
|
|
@@ -14850,9 +14873,9 @@ function unmountComponent(instance, parentNode) {
|
|
|
14850
14873
|
}
|
|
14851
14874
|
}
|
|
14852
14875
|
function getExposed(instance) {
|
|
14853
|
-
if (instance.exposed) {
|
|
14876
|
+
if (instance.exposed || instance.vapor) {
|
|
14854
14877
|
return instance.exposeProxy || // fixed by uts 支持 $callMethod
|
|
14855
|
-
(instance.exposeProxy = new Proxy(markRaw(instance.exposed), {
|
|
14878
|
+
(instance.exposeProxy = new Proxy(markRaw(instance.exposed || {}), {
|
|
14856
14879
|
get(target, key) {
|
|
14857
14880
|
if (key in target) {
|
|
14858
14881
|
return target[key];
|