@yoooloo42/joker 1.0.42 → 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,10 +40160,13 @@ return (_ctx, _cache) => {
40159
40160
 
40160
40161
  return (openBlock(), createElementBlock(Fragment, null, [
40161
40162
  createCommentVNode(" 置顶菜单 "),
40162
- createVNode(_component_ly0Menu, {
40163
- scopeThis: __props.scopeThis,
40164
- myProps: __props.myProps.menu
40165
- }, null, 8 /* PROPS */, ["scopeThis", "myProps"]),
40163
+ (isMenuVisible.value)
40164
+ ? (openBlock(), createBlock(_component_ly0Menu, {
40165
+ key: 0,
40166
+ scopeThis: __props.scopeThis,
40167
+ myProps: __props.myProps.menu
40168
+ }, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
40169
+ : createCommentVNode("v-if", true),
40166
40170
  createCommentVNode(" 表单区域可以分为多个列 "),
40167
40171
  createElementVNode("div", {
40168
40172
  style: normalizeStyle(style.root_box)
@@ -40281,7 +40285,7 @@ return (_ctx, _cache) => {
40281
40285
  ], 4 /* STYLE */),
40282
40286
  createCommentVNode(" 提交 "),
40283
40287
  (__props.dataBox.hdlSubmit)
40284
- ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
40288
+ ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
40285
40289
  createElementVNode("div", {
40286
40290
  style: normalizeStyle(style.line)
40287
40291
  }, null, 4 /* STYLE */),