Comments (3)
Hi @YYQ8023. Could you please provide me your code so I could better understand what's going on? Unfortunately, I don't speak Chinese.
from vue-number-input-spinner.
@krystalcampioni my code maybe a little complex,here it is(a part of my code):
<parentComponent>
<Mynumber v-model="Num" :min="1" :max="5">
</Mynumber>
</parentComponent>
data(){
retutn{
Num:0
}
}
condition1:i have a watch property :
info:function(newVal,oldVal){
this.num = newVal.num
}
}
condition2:when i click a button ,trigger a function to change "Num",like
this.Num = 2
then console.log(Num),i cannot get 2.
from vue-number-input-spinner.
I'm not sure I understood your example, but it seems you are trying to force update the value from an external component. If so, that's not how the component is intended to be used. This external manipulation of the value would not go through all the checks of min value, max value, step, etc, as using the buttons or input for manipulating the value would. Feel free to fork the repo and change it to your needs though :)
from vue-number-input-spinner.
Related Issues (16)
- Mouse down support?
- What is inputClass HOT 1
- On increase button click, it appends the number instead of adding it HOT 2
- Debounce feature? HOT 2
- mouseDownSpeed prop
- What about decimal steps?
- Is there any way to disable the whole component simply?
- v-model doesn't use initial value HOT 1
- Each click counts as if it were 2 HOT 2
- Event Listener
- v-model is not working ???
- Text input is ignored HOT 1
- More info about custom classess HOT 4
- you can use "dots" couple of times HOT 2
- Spin Buttons visible on Firefox HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-number-input-spinner.