@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.cjs.js CHANGED
@@ -40143,8 +40143,9 @@ var script$e = {
40143
40143
  setup(__props) {
40144
40144
 
40145
40145
  const props = __props;
40146
-
40147
- console.log('测试 333', props.myProps.menu);
40146
+ const isMenuVisible = vue.computed(()=>{
40147
+ return props.myProps && props.myProps.menu && props.myProps.menu.length > 0
40148
+ });
40148
40149
 
40149
40150
  const style = vue.reactive({
40150
40151
  collapse: vue.computed(() => styleModule.collapse()),
@@ -40163,10 +40164,13 @@ return (_ctx, _cache) => {
40163
40164
 
40164
40165
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
40165
40166
  vue.createCommentVNode(" 置顶菜单 "),
40166
- vue.createVNode(_component_ly0Menu, {
40167
- scopeThis: __props.scopeThis,
40168
- myProps: __props.myProps.menu
40169
- }, null, 8 /* PROPS */, ["scopeThis", "myProps"]),
40167
+ (isMenuVisible.value)
40168
+ ? (vue.openBlock(), vue.createBlock(_component_ly0Menu, {
40169
+ key: 0,
40170
+ scopeThis: __props.scopeThis,
40171
+ myProps: __props.myProps.menu
40172
+ }, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
40173
+ : vue.createCommentVNode("v-if", true),
40170
40174
  vue.createCommentVNode(" 表单区域可以分为多个列 "),
40171
40175
  vue.createElementVNode("div", {
40172
40176
  style: vue.normalizeStyle(style.root_box)
@@ -40285,7 +40289,7 @@ return (_ctx, _cache) => {
40285
40289
  ], 4 /* STYLE */),
40286
40290
  vue.createCommentVNode(" 提交 "),
40287
40291
  (__props.dataBox.hdlSubmit)
40288
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
40292
+ ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
40289
40293
  vue.createElementVNode("div", {
40290
40294
  style: vue.normalizeStyle(style.line)
40291
40295
  }, null, 4 /* STYLE */),