fix(fast): 修复 numberInput 粘贴路径 percent 字段 ×100,并补 Jest 粘贴回归单测
- fastVue.base.js: __onInput 粘贴分支原把显示值当模型值传入 setValue 导致 percent 字段 ×100; 改为先按 __change 同款口径(去千分位逗号 + 按 percent/append:'%'/append:'‱' 除法)解析为模型值再回显, 使 DOM/显示/模型三者一致;键盘输入路径不变 - 重新生成 Statics/bundles/*.js:去每个输入文件头的 UTF-8 BOM(避免 bundle 中间出现 ZWN BSP 不可见字符), 页面实际加载 bundle.js(改源文件必须重生成 bundle 才生效) - 新增 numberInput.paste.test.js 覆盖 percent:true/append:%/append:‱/普通数字 4 类字段的 Ctrl+V 粘贴(Jest+jsdom,4 passed) - fe-tests package.json 增加 jest-environment-jsdom、jquery 依赖
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user