@yoooloo42/joker 1.0.44 → 1.0.46
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/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -40143,8 +40143,14 @@ var script$e = {
|
|
|
40143
40143
|
setup(__props) {
|
|
40144
40144
|
|
|
40145
40145
|
const props = __props;
|
|
40146
|
-
|
|
40147
|
-
|
|
40146
|
+
// 监听 myProps.menu 的变化
|
|
40147
|
+
watch(() => props.myProps.menu, (newMenu, oldMenu) => {
|
|
40148
|
+
console.log('--- WATCH: myProps.menu 变化 ---');
|
|
40149
|
+
console.log('新值长度:', newMenu ? newMenu.length : 0);
|
|
40150
|
+
// 检查此时 v-if 条件是否应该为 true
|
|
40151
|
+
console.log('v-if 条件现在应为 true:', newMenu && newMenu.length > 0);
|
|
40152
|
+
}, {
|
|
40153
|
+
immediate: true // 立即执行一次,观察初始状态
|
|
40148
40154
|
});
|
|
40149
40155
|
|
|
40150
40156
|
const style = vue.reactive({
|
|
@@ -40164,7 +40170,7 @@ return (_ctx, _cache) => {
|
|
|
40164
40170
|
|
|
40165
40171
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
40166
40172
|
vue.createCommentVNode(" 置顶菜单 "),
|
|
40167
|
-
(
|
|
40173
|
+
(__props.myProps.menu && __props.myProps.menu.length > 0)
|
|
40168
40174
|
? (vue.openBlock(), vue.createBlock(_component_ly0Menu, {
|
|
40169
40175
|
key: 0,
|
|
40170
40176
|
scopeThis: __props.scopeThis,
|