Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container headerRight slot 无效 #238

Closed
hzhoup opened this issue Aug 22, 2022 · 14 comments
Closed

container headerRight slot 无效 #238

hzhoup opened this issue Aug 22, 2022 · 14 comments

Comments

@hzhoup
Copy link

hzhoup commented Aug 22, 2022

右部内容

不好意思一直上传不了图片,示例代码直接贴上去不显示右部内容,控制台 DOM 也为空。

@hzhoup
Copy link
Author

hzhoup commented Aug 22, 2022

`
右部内容

</view>

`

@Alpsli
Copy link
Member

Alpsli commented Aug 22, 2022

贴下最小复现demo以及你的基础组件库版本

@hzhoup
Copy link
Author

hzhoup commented Aug 22, 2022

<container title="服务单号:SA2022080882">
  <view slot="headerRight">右部内容</view>
  <view>
    sss
  </view>
</container>

基础库版本:1.25.7

@hzhoup
Copy link
Author

hzhoup commented Aug 22, 2022

目标平台是钉钉小程序,但切换支付宝小程序也一样不显示

@Alpsli
Copy link
Member

Alpsli commented Aug 22, 2022

基础库版本低了,到服务群问问

@hzhoup
Copy link
Author

hzhoup commented Aug 22, 2022

  • 如果版本号大于 1.24.0 ,说明当前是 V2 引擎

但在钉钉好像这个版本基础库不低了

@BillyKingChina
Copy link

同样碰到此问题,哪个是基础库哦

@lcop957
Copy link

lcop957 commented Oct 12, 2022

一样的问题,请问解决了吗

@BillyKingChina
Copy link

BillyKingChina commented Oct 25, 2022

解决了:(项目是浙政钉,基础库也很低只有1.4,想升级也无门,GRD几乎没人维护,似乎跟基础库无关)
1.定位文件:“\node_modules\antd-mini\es\Container\ContainerHeader\index.axml”,第18行
2.<slot/> 改为:<slot name="headerRight"></slot>
3. 小程序开发者工具 ,编译按钮 ,停止编译,再启动编译,刷新开效果

@jc9702507
Copy link
Collaborator

<view 
  class="amd-container-header-right"
>
  <slot />
</view>

是修改为什么呢

@BillyKingChina
Copy link

<view 
  class="amd-container-header-right"
>
  <slot />
</view>

是修改为什么呢

不会用,html代码屏蔽了

@jc9702507
Copy link
Collaborator

image

@lcop957
Copy link

lcop957 commented Oct 25, 2022

解决了:(项目是浙政钉,基础库也很低只有1.4,想升级也无门,GRD几乎没人维护,似乎跟基础库无关) 1.定位文件:“\node_modules\antd-mini\es\Container\ContainerHeader\index.axml”,第18行 2.<slot/> 改为:<slot name="headerRight"></slot> 3. 小程序开发者工具 ,编译按钮 ,停止编译,再启动编译,刷新开效果
也就能临时用吧,还是得官方把包里的源码改掉;这个组件太多bug跟不完善的地方了

@jc9702507
Copy link
Collaborator

这个组件看起来有bug,需要修改props
#305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants