redengineer / redmini

小红书小程序
17 stars 4 forks source link

使用uni-app,IOS使用input组件设置 confirm-type="search" 无效,点击右下角按钮未触发confirm事件 #30

Closed dandelion-Chen closed 2 years ago

dandelion-Chen commented 2 years ago

系统环境(必填)

问题模块(必填)

基础库版本或小红书APP版本(必填)

v7.38.1

重现步骤 和 复现问题的最小demo Github链接

<template>
    <view class="content">
        <input class="weui-input" type="text" confirm-type="search" placeholder="输入123自动收起键盘" @confirm="onConfirm"/>
    </view>
</template>

<script lang="ts">
    import Vue from 'vue';
    export default Vue.extend({
        data() {
            return {
                title: 'Hello'
            }
        },

        methods: {
            onConfirm (){
                console.log('onConfirm----------------');
            }
        }
    });
</script>

使用input组件,设置 confirm-type="search",键盘调起右下角按钮未设置为“搜索”文案,点击按钮没有触发confirm事件。 origin_img_v2_0c41ec91-f0db-4fd3-bcea-7af80b82b2bh

期望结果 和 实际结果(必填)

api 文档 :https://miniapp.xiaohongshu.com/docs/component/input 期望结果: 与文档描述的一致,实现按钮文案为“搜索”,点击触发 bindconfirm 事件 image image

补充(猜测可能的原因是什么,你有啥想法,选填)

xutm commented 2 years ago

原生 Input 组件还未上线,暂不支持该功能,预计 7.40 后进行支持。

dandelion-Chen commented 2 years ago

原生 Input 组件还未上线,暂不支持该功能,预计 7.40 后进行支持。

预计这个版本啥时候全量发布呢

xutm commented 2 years ago

原生 Input 组件还未上线,暂不支持该功能,预计 7.40 后进行支持。

预计这个版本啥时候全量发布呢

5.25 号 全量