Comments (2)
This plugin is getting re-written at the moment and getting under @vuejs
namespace on NPM so it will no longer be updated, that are unfortunately no plans yet to support dynamic type
for <input />
element because it creates a huge overhead, however, I will add exception for one specific case - ternary type with text & password so this will work:
const el = <input type={condition ? 'text' : 'password'} />
But that's the only thing supported only because text
and password
work exactly the same (there is difference with checkbox
and radio
), sorry for inconvenience but it's really hard to support any jsx expression in input
's type
from babel-plugin-jsx-v-model.
Okay, sweet. I ended up using it anyways and running through the conditionals. I have no idea what kind of hoops you have to jump through to make this all work but of course appreciate the plugin to support v-model
.
from babel-plugin-jsx-v-model.
Related Issues (12)
- Compat with built-in v-model transforms HOT 3
- Support custom model prop and event HOT 1
- Broken with Babel 7 HOT 5
- This directive makes v-show not work when been added after it HOT 1
- maybe do not use $set to set property HOT 1
- bug : different order of `v-model` ,`on-input` will lead to different result
- Module build failed: Error: Cannot find module 'html-tags' HOT 2
- not working with custom inputs HOT 15
- something wrong when i use in "radio" HOT 5
- How to use optional parameters? HOT 2
- Position of v-model is important HOT 3
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 babel-plugin-jsx-v-model.