From 5ece780d09aa0aa2ce3ad73d42ff906b757dae1d Mon Sep 17 00:00:00 2001 From: "mo.duan" Date: Mon, 2 Sep 2019 12:07:10 +0800 Subject: [PATCH] optimize the inputNumber fixed bug 1. when setting the precision, inputNumer cannot input '.' bug 2. when setting the precision, the cursor positoning bug --- examples/routers/input-number.vue | 4 +++ src/components/input-number/input-number.vue | 26 +++++++++++++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/examples/routers/input-number.vue b/examples/routers/input-number.vue index 6a62b9163e..735f10f306 100644 --- a/examples/routers/input-number.vue +++ b/examples/routers/input-number.vue @@ -72,6 +72,9 @@ :formatter="value => `${value}%`" :parser="value => value.replace('%', '')"> +
+ +