xhscloud
xhscloud
  • 发布:2025-04-20 21:40
  • 更新:2025-04-21 15:26
  • 阅读:69

【报bug】属性丢失,使用小红书post-note-button组件,传递属性丢失导致组件不可用

分类:uni-app

note-list.vue 代码

      <post-note-button  
          style="width: 100%;"  
          :title="noteTitle"  
          :content="noteContent"  
          :media-info="mediaInfo"  
          :tags="tags"  
          ></post-note-button>

编译后代码:
<post-note-button xhs:if="{{m}}" style="width:100%" u-i="318bbfc2-0" bind:l="l" u-p="{{m}}"></post-note-button>

期望编译后代码:
<post-note-button xhs:if="{{m}}" style="width:100%" title="{{i}}" content="{{j}}" media-info="{{k}}" tags="{{l}}" u-i="318bbfc2-0" bind:l="l" u-p="{{m}}"></post-note-button>

目前暂时用 直接修改编译后代码来解决这个问题了。期望官方可以解决 或者在哪里配置可以解决。

2025-04-20 21:40 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

hello , 这里提供一下临时的解决方案:将下方的 dist 压缩包,替换到下方路径下的 dist 文件夹

/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/uni-mp-xhs

windows路径类似

要回复问题请先登录注册