We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<template> <view> <page-head :title="title"></page-head> <view class="uni-title uni-common-pl">输入区域高度自适应,不会出现滚动条</view> <view class="uni-textarea"> <textarea :value="value" @focus="onFocus" @input="onInput" @blur="onBlur" @linechange="onLinechange" auto-height maxlength="10" placeholder="请输入内容" placeholder-class="blueColor" cursor="2" cursor-color="#F76260" focus /> </view> <view class="uni-title uni-common-pl">占位符字体是红色的textarea</view> <view class="uni-textarea"> <textarea placeholder-style="color:#F76260" placeholder="占位符字体是红色的"/> </view> </view> </template> <script> export default { data() { return { value: "呵呵呵呵", title: 'textarea', focus: false } }, methods: { onLinechange: function (e) { console.log('linechange', e.detail.lineCount) }, onFocus: function (e) { console.log('focus', e.detail.value) }, onInput: function (e) { console.log('input', e.detail.value) }, onBlur: function (e) { console.log('blur', e.detail.value) } } } </script> <style> .blueColor { color: #007aff; } </style>
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Related Uni App Components
Code example
Expected results
No response
Actual results
No response
The text was updated successfully, but these errors were encountered: