@yoooloo42/joker 1.0.43 → 1.0.44

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.esm.js CHANGED
@@ -40139,8 +40139,9 @@ var script$e = {
40139
40139
  setup(__props) {
40140
40140
 
40141
40141
  const props = __props;
40142
-
40143
- console.log('测试 333', props.myProps.menu);
40142
+ const isMenuVisible = computed(()=>{
40143
+ return props.myProps && props.myProps.menu && props.myProps.menu.length > 0
40144
+ });
40144
40145
 
40145
40146
  const style = reactive({
40146
40147
  collapse: computed(() => styleModule.collapse()),
@@ -40159,7 +40160,7 @@ return (_ctx, _cache) => {
40159
40160
 
40160
40161
  return (openBlock(), createElementBlock(Fragment, null, [
40161
40162
  createCommentVNode(" 置顶菜单 "),
40162
- (__props.myProps.hasOwnProperty('menu') && __props.myProps.menu.length > 0)
40163
+ (isMenuVisible.value)
40163
40164
  ? (openBlock(), createBlock(_component_ly0Menu, {
40164
40165
  key: 0,
40165
40166
  scopeThis: __props.scopeThis,