Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input组件的update:model-value方法中打印val会打印3次 #2943

Open
Xhyen opened this issue Mar 5, 2024 · 1 comment
Open

input组件的update:model-value方法中打印val会打印3次 #2943

Xhyen opened this issue Mar 5, 2024 · 1 comment
Labels
upstream 需要上游修复的,例如 Taro、各小程序平台等

Comments

@Xhyen
Copy link

Xhyen commented Mar 5, 2024

NutUI 包名

@nutui/nutui

NutUI 版本号

4.3.1

平台

weapp

重现链接

https://nutui.jd.com/taro/vue/4x/#/zh-CN/component/input

重现步骤

在update:model-value方法中用console.log(val)

期望的结果是什么?

输出一次

实际的结果是什么?

输出3次结果

环境信息

Taro CLI 3.6.24 environment info:
System:
OS: macOS 14.3.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
npmPackages:
@tarojs/cli: 3.6.24 => 3.6.24
@tarojs/components: 3.6.24 => 3.6.24
@tarojs/helper: 3.6.24 => 3.6.24
@tarojs/mini-runner: 3.6.24 => 3.6.24
@tarojs/plugin-framework-vue3: 3.6.24 => 3.6.24
@tarojs/plugin-html: 3.6.24 => 3.6.24
@tarojs/plugin-platform-h5: 3.6.24 => 3.6.24
@tarojs/plugin-platform-weapp: 3.6.24 => 3.6.24
@tarojs/runtime: 3.6.24 => 3.6.24
@tarojs/shared: 3.6.24 => 3.6.24
@tarojs/taro: 3.6.24 => 3.6.24
@tarojs/webpack-runner: 3.6.24 => 3.6.24
@tarojs/webpack5-runner: 3.6.24 => 3.6.24
babel-preset-taro: 3.6.24 => 3.6.24
eslint-config-taro: 3.6.24 => 3.6.24

其他补充信息

No response

@eiinu eiinu added the upstream 需要上游修复的,例如 Taro、各小程序平台等 label Mar 5, 2024
@eiinu
Copy link
Member

eiinu commented Mar 5, 2024

// #2178 & Taro #2642
emit('update:modelValue', value);

已知问题,由于小程序的非完全受控 input 组件 & Taro 框架处理逻辑,难以在单次 emit 过程中完成 Input 组件视图、数据的更新。

@eiinu eiinu closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
@eiinu eiinu linked a pull request May 16, 2024 that will close this issue
16 tasks
@eiinu eiinu reopened this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream 需要上游修复的,例如 Taro、各小程序平台等
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants