Created
January 20, 2017 12:21
-
-
Save faforty/91e41cd04a8f7f4ca022acebe7440139 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ui-label :filled="filled" :label-show="true"> | |
<template slot="label"><slot></slot></template> | |
<textarea class="form-control ui-comment-field" v-model="message"></textarea> | |
</ui-label> | |
</template> | |
<script> | |
import uiLabel from './ui-label.vue'; | |
export default { | |
components: { | |
uiLabel | |
}, | |
watch: { | |
message (val) { | |
this.filled = val ? true : false | |
} | |
}, | |
data: () => ({ | |
message: '', | |
filled: false | |
}) | |
} | |
</script> |
Author
faforty
commented
Jan 20, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment