Input组件苹果手机不显示value内容?
发布于 4 年前 作者 sqiao 822 次浏览 来自 官方Issues

为了测试,把input内容显示到了左侧红圈,左侧红圈就是实际内容,但右侧红圈input不显示。

此问题不是必现,有时这样有时正常。

只有苹果手机这样,测试用的是苹果7Plus,IOS11.1.2,微信版本7.0.12,小程序2.11.1

代码:

<view class=‘input-text’>数量:{{item.count}}</view>

<cm-counter class=“cm-counter” number="{{item.count}}" max="{{100000}}" min=“0” cursor-spacing=“100” bind:changenumber=“onChangeNumber”  />

组件cm-counter代码:

<view class=“counter”>

    <view class=“counter__number flex-start”>

        <view class=“counter__modify counter__opt{{number <= min || disabled ? ’ counter__no’ : ‘’}}” bindtap=“minusHandler”>-</view>

        <input class=“counter__modify counter__input{{disabled ? ’ counter__no’ : ‘’}}” 

          value="{{number}}" type=“digit” cursor-spacing="{{cursorSpacing}}" bindinput=’_onBlurCount’ />

        <view class=“counter__modify counter__opt{{number >= max || disabled ? ’ counter__no’ : ‘’}}” bindtap=“addHandler”>+</view>

    </view>

</view>

 

1 回复
回到顶部