提交 6ee8e087 编写于 作者: zhf's avatar zhf

feat: 更新模板

上级 6f2d46c9
......@@ -149,6 +149,7 @@ export const IBizInput = defineComponent({
const num = floor(Number(blurCacheValue), c.model.precision);
const number = blurCacheValue ? fomatFloat(num, c.model.precision) : '';
currentVal.value = number;
inputRef.value?.setCurrentValue?.(number);
emit('change', number);
} else {
emit('change', blurCacheValue);
......@@ -168,20 +169,6 @@ export const IBizInput = defineComponent({
});
}
const input = (e: IData) => {
if (c.model.precision !== -1) {
const match = matchNum(e);
if (!match) {
if (!e.target.value) {
e.target.value = '';
} else {
const num = floor(Number(e.target.value), c.model.precision);
e.target.value = num;
}
}
}
};
return {
ns,
rows,
......@@ -192,7 +179,6 @@ export const IBizInput = defineComponent({
handleBlur,
inputRef,
autoSize,
input,
c,
};
},
......@@ -229,7 +215,6 @@ export const IBizInput = defineComponent({
},
nativeOn: {
keyup: this.handleKeyUp,
input: this.input,
},
},
[
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册