Comments (3)
Regarding the type="checkbox"
, I was thinking we could add some modifier to handle it (not sure about the naming) .checkbox
, .number
. That way it doesn't collide with props, although it looks less similar to regular inputs.
Regarding the default value modelValue
, is there a reason not to keep the default prop to value
? I think in both cases, we won't be able to help well with a migration tool and it could reduce the migration too. I do think it's a good idea to have update:value
as a new default though
from core.
Regarding the default value modelValue, is there a reason not to keep the default prop to value?
Because the idea is to move element/input type specific handling to the runtime, so the v-model
output must be something special for the runtime to pick up and transform. If we use the default value
and input
, the runtime won't know if it's created by v-model
or manually by the user.
from core.
Published: vuejs/rfcs#31
from core.
Related Issues (20)
- 可选的boolean类型属性的默认值有问题 HOT 2
- Discrepancy between dev and build HOT 2
- Watching a model with custom get and setter doesn't work in some cases.
- type definition for custom elements created without using vue to consume in vue app
- A separate type for the setter in Ref<T, S> can lead to nested refs HOT 1
- v-bind in CSS values are set after the component's element is already in the DOM HOT 5
- `defineModel` doesn't run if the same value is selected HOT 6
- Allow unrelated getter and setter Ref types leads to nested array type errors. HOT 7
- Event stopImmediatePropagation does not prevent other listeners from being called HOT 2
- Memory leak on last clicked input HOT 2
- Nested scope template HOT 1
- 内置的“withDirectives”API无法实现给vnode动态配置指令功能 HOT 3
- Missing support TS 5.5, without `DOM` lib in tsconfig
- Trying to dynamically set `content` of a pseudo-element (::before, ::after), renders nothing HOT 2
- Reactivity broken with setTimeout in instance constructor HOT 1
- Extended array methods are called with unexpected values HOT 2
- parameter missing in extended array find method
- ComputedRef should not be assignable to WritableComputedRef
- Inconsistent execution order of Sync Watchers on `computed` property HOT 4
- runtime prop type of `keyof SomeInterface['property']` resolves to `Object` 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 core.