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

feat: 更新模板

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