We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
H5
https://github.com/NervJS/
使用框架: Vue 2
taro cli 创建最新vue2工程,
<template> <view> <input type="text" v-model="name" placeholder="name" :value="name" /> </view> </template> <script> export default { data() { return { name: "" }; }, onLoad() { setTimeout(() => { this.name = "xxx"; }, 1000); } }; </script>
输入框value正常初始化
未初始化
Taro CLI 3.4.2 environment info: System: OS: Windows 10 Binaries: Node: 14.16.0 - D:\ProgramFiles\node\node.EXE Yarn: 1.22.10 - D:\ProgramFiles\node\yarn.CMD npm: 6.14.11 - D:\ProgramFiles\node\npm.CMD
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
H5 没有 onLoad , 可以改成 mounted
好像是 3.4 版本后就有支持,具体可以自行验证一下
setTimeout 之后没有更新这个很奇怪
vue attr 更新问题, 3.5+ 版本修复
fix(components): vue2 attr 传递错误 fix #11333
2757e07
No branches or pull requests
相关平台
H5
复现仓库
https://github.com/NervJS/
使用框架: Vue 2
复现步骤
taro cli 创建最新vue2工程,
期望结果
输入框value正常初始化
实际结果
未初始化
环境信息
The text was updated successfully, but these errors were encountered: