-
Notifications
You must be signed in to change notification settings - Fork 114
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
Does not work with el-input text #112
Comments
Me too! |
Thanks for using this library. 🍻 Tested in Element-ui 1.x & 2.x, and seems it is okay to use with vue-at. It's recommended to use like <el-input type="textarea" v-model="input"> Or if you need one-line input-box, try <el-input type="textarea" :rows="1" resize="none" v-model="input"> (Adding resize=none can disable user-resizing as default behavior) 1. for module usage npm install --save vue-at textarea-caret <at :members="members">
<el-input type="textarea" v-model="input"></el-input>
</at>
<script>
import VueAtTextarea from 'vue-at'
export default {
components: { At: VueAtTextarea }
}
</script> 2. for umd usage await loadCss('https://unpkg.com/element-ui@2.13.1/lib/theme-chalk/index.css')
await loadJs('https://unpkg.com/element-ui@2.13.1/lib/index.js')
await loadJs('https://unpkg.com/textarea-caret@3.1.0/index.js')
// await loadJs('https://unpkg.com/vue-at')
await loadJsForceUmd({
url: 'https://unpkg.com/vue-at@2.5.0-beta.2/dist/vue-at-textarea.js',
name: 'VueAtTextarea',
deps: { 'textarea-caret': 'getCaretCoordinates' }
})
App = {
components: { At: VueAtTextarea },
template: `
<at :members="members">
<el-input class="editor" v-model="input"></el-input>
</at>
`
} |
is it possible to work with el-input type
text
? when I use type="text", it throws error. how to use with text input?The text was updated successfully, but these errors were encountered: