234234234

uniapp 移动端(ios)uview2.0 u-input 插槽问题

这个插槽太奇怪了,非得加上对于的属性才能使用。

 

<u-input class="u-input" prefixIcon="search" suffix-icon="search" placeholder="请输入验证码" type="text" border="surround"
                        color="#fffffff0" v-model="code">
            <template v-slot:prefix>
              <view>验证码</view>
            </template>
            <template v-slot:suffix>
              <view>
                验证码
              </view>
            </template>
                    </u-input>

 

 

 

posted @ 2025-02-07 22:29  ukeepgoing  阅读(91)  评论(0)    收藏  举报
23423423423