调试基础库是3.2.4,配置代码如下:
<picker-view indicator-class="picker-indicator" value="{{date}}" bindchange="bindPickChange">
<picker-view-column>
<view wx:for="{{years}}" wx:key="{{years}}" class="picker-item">{{item}}年</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{months}}" wx:key="{{months}}" class="picker-item">{{item}}月</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{days}}" wx:key="{{days}}" class="picker-item">{{item}}日</view>
</picker-view-column>
</picker-view>
在微信开发工具中报,并且indicator-style和indicator-class不生效
[skyline][picker-view] indicator-style unsupported kBorderTopStyle
u @ VM790:1
d @ VM790:1
listOnTimeout @ node:internal/timers:557
processTimers @ node:internal/timers:500
[skyline][picker-view] indicator-style unsupported kBorderTopStyle
[skyline][picker-view] indicator-style unsupported kBorderBottomWidth
[skyline][picker-view] indicator-style unsupported kBorderTopWidth
https://developers.weixin.qq.com/miniprogram/dev/component/root-portal.html
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
在设置的picker-indicator名字前加上deep ::v-deep .indicator-class { //比如下方设置高度 height: 100rpx; } 看你的写法,我看有人用的 /deep/ .indicator-class { //比如下方设置高度 height: 100rpx; } 我的项目用的::v-deep