Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default {
- name: 'custom-input'
- props: ['value'],
- render () {
- let self = this
- let input = {
- on: input (e) { self.$emit('input', e.target.value) }
- }
- return <div><input {...input}>
- }
- }
- export default {
- data () { return { v: 'default value' } }
- }
Add Comment
Please, Sign In to add comment