dcloudio / uni-ui

基于uni-app的、全端兼容的、高性能UI框架
https://uniapp.dcloud.io/component/uniui/uni-ui.html
Apache License 2.0
1.89k stars 668 forks source link

uni-easyinput[type="nickname"] 用户点击昵称,v-model 失效 #964

Open DengSihan opened 2 weeks ago

DengSihan commented 2 weeks ago

"@dcloudio/uni-app": "3.0.0-4020920240930001", "@dcloudio/uni-ui": "^1.5.6",

微信开发者工具1.06.2409140 Stable

<template>
  {{ form }}
  <uni-easyinput
      v-model="form.name"
      type="nickname"
      placeholder="请输入昵称"
  />
</template>

<script lang="ts" setup>
import { ref } from 'vue';
const form = ref({
  name: ''
});
</script>

https://github.com/user-attachments/assets/0852b12f-c26d-487e-9ea7-bbf29ace3275

GRCmade commented 1 week ago

你好,easyinput 的 type 并不直接支持 nickname ,需要通过 input 标签并且自己实现处理逻辑。