@dcloudio/uni-mp-vue 3.0.0-alpha-4070620250731001 → 3.0.0-alpha-4070720250804001
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/vue.runtime.esm.js +22 -4
- package/dist-x/vue.runtime.esm.js +22 -4
- package/package.json +3 -3
package/dist/vue.runtime.esm.js
CHANGED
|
@@ -5768,11 +5768,29 @@ function createScopedSlotInvoker(instance) {
|
|
|
5768
5768
|
* @param names
|
|
5769
5769
|
* @returns
|
|
5770
5770
|
*/
|
|
5771
|
-
function dynamicSlot(names) {
|
|
5771
|
+
function dynamicSlot(names, key) {
|
|
5772
5772
|
if (isString(names)) {
|
|
5773
|
-
return
|
|
5773
|
+
return normalizeSlotName(names, key);
|
|
5774
5774
|
}
|
|
5775
|
-
return names.map((name) =>
|
|
5775
|
+
return names.map((name) => normalizeSlotName(name, key));
|
|
5776
|
+
}
|
|
5777
|
+
function normalizeSlotName(name, key) {
|
|
5778
|
+
const slotName = dynamicSlotName(name);
|
|
5779
|
+
if (key === undefined) {
|
|
5780
|
+
return slotName;
|
|
5781
|
+
}
|
|
5782
|
+
const instance = getCurrentInstance();
|
|
5783
|
+
let isScopedSlot = false;
|
|
5784
|
+
let parent = instance.parent;
|
|
5785
|
+
while (parent) {
|
|
5786
|
+
const invokers = parent.$ssi;
|
|
5787
|
+
if (invokers && invokers[instance.ctx.$scope._$vueId]) {
|
|
5788
|
+
isScopedSlot = true;
|
|
5789
|
+
break;
|
|
5790
|
+
}
|
|
5791
|
+
parent = parent.parent;
|
|
5792
|
+
}
|
|
5793
|
+
return slotName + (isScopedSlot ? `-${key}` : '');
|
|
5776
5794
|
}
|
|
5777
5795
|
|
|
5778
5796
|
function setRef(ref, id, opts = {}) {
|
|
@@ -5831,7 +5849,7 @@ function setupDevtoolsPlugin() {
|
|
|
5831
5849
|
|
|
5832
5850
|
const o = (value, key) => vOn(value, key);
|
|
5833
5851
|
const f = (source, renderItem) => vFor(source, renderItem);
|
|
5834
|
-
const d = (names) => dynamicSlot(names);
|
|
5852
|
+
const d = (names, key) => dynamicSlot(names, key);
|
|
5835
5853
|
const r = (name, props, key) => renderSlot(name, props, key);
|
|
5836
5854
|
const w = (fn, options) => withScopedSlot(fn, options);
|
|
5837
5855
|
const s = (value) => stringifyStyle(value);
|
|
@@ -6342,11 +6342,29 @@ function createScopedSlotInvoker(instance) {
|
|
|
6342
6342
|
* @param names
|
|
6343
6343
|
* @returns
|
|
6344
6344
|
*/
|
|
6345
|
-
function dynamicSlot(names) {
|
|
6345
|
+
function dynamicSlot(names, key) {
|
|
6346
6346
|
if (isString(names)) {
|
|
6347
|
-
return
|
|
6347
|
+
return normalizeSlotName(names, key);
|
|
6348
6348
|
}
|
|
6349
|
-
return names.map((name) =>
|
|
6349
|
+
return names.map((name) => normalizeSlotName(name, key));
|
|
6350
|
+
}
|
|
6351
|
+
function normalizeSlotName(name, key) {
|
|
6352
|
+
const slotName = dynamicSlotName(name);
|
|
6353
|
+
if (key === undefined) {
|
|
6354
|
+
return slotName;
|
|
6355
|
+
}
|
|
6356
|
+
const instance = getCurrentInstance();
|
|
6357
|
+
let isScopedSlot = false;
|
|
6358
|
+
let parent = instance.parent;
|
|
6359
|
+
while (parent) {
|
|
6360
|
+
const invokers = parent.$ssi;
|
|
6361
|
+
if (invokers && invokers[instance.ctx.$scope._$vueId]) {
|
|
6362
|
+
isScopedSlot = true;
|
|
6363
|
+
break;
|
|
6364
|
+
}
|
|
6365
|
+
parent = parent.parent;
|
|
6366
|
+
}
|
|
6367
|
+
return slotName + (isScopedSlot ? `-${key}` : '');
|
|
6350
6368
|
}
|
|
6351
6369
|
|
|
6352
6370
|
function setRef(ref, id, opts = {}) {
|
|
@@ -6512,7 +6530,7 @@ function setupDevtoolsPlugin() {
|
|
|
6512
6530
|
|
|
6513
6531
|
const o = (value, key) => vOn(value, key);
|
|
6514
6532
|
const f = (source, renderItem) => vFor(source, renderItem);
|
|
6515
|
-
const d = (names) => dynamicSlot(names);
|
|
6533
|
+
const d = (names, key) => dynamicSlot(names, key);
|
|
6516
6534
|
const r = (name, props, key) => renderSlot(name, props, key);
|
|
6517
6535
|
const w = (fn, options) => withScopedSlot(fn, options);
|
|
6518
6536
|
const s = (value) => stringifyStyle(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-mp-vue",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-4070720250804001",
|
|
4
4
|
"description": "@dcloudio/uni-mp-vue",
|
|
5
5
|
"main": "dist/vue.runtime.esm.js",
|
|
6
6
|
"module": "dist/vue.runtime.esm.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@vue/shared": "3.4.21",
|
|
24
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
24
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4070720250804001"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@dcloudio/uni-mp-vue": "3.0.0-alpha-
|
|
27
|
+
"@dcloudio/uni-mp-vue": "3.0.0-alpha-4070720250804001"
|
|
28
28
|
}
|
|
29
29
|
}
|