Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🆕 new: new field type: Cleave. Reorganization of dev index file. #38

Merged
merged 1 commit into from
Aug 21, 2016

Conversation

lionel-bijaoui
Copy link
Member

@lionel-bijaoui lionel-bijaoui commented Aug 12, 2016

#31

This is not yet fully functional. Cleave.js use functions to set/get value. I was not able to save the data into the model (I tried different solution that you can see commented). I don't know if the dev example need an update. Please can you take a look ?
Also, I have modified the organization of the script files in index for a better clarity.

@icebob
Copy link
Member

icebob commented Aug 12, 2016

I think it is very simple. Just add v-model="value" to the input. I tried and it is working. So you can remove the watch and methods comment blocks.

<template lang="jade">
    input.form-control(type="text", v-model="value")
</template>

@@ -0,0 +1,103 @@
<template lang="jade">
input.form-control(type="text")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the general attributes too:

input(...,  :readonly="schema.readonly", :disabled="disabled", :placeholder="schema.placeholder")

@icebob icebob merged commit c6e3f5e into vue-generators:independent Aug 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants