小程序
小游戏
企业微信
微信支付
扫描小程序码分享
- 需求的场景描述(希望解决的问题)
- 希望提供的能力
问题如标题所示,我的需求是能不能将组件textarea设置成与input组件类似,仅在获得焦点时才为原生组件
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
请问这个问题解决了吗?我也遇到同样的问题
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<
custom
style
=
"height:{{CustomBar}}px;z-index:2000px;"
>
bar
class
"fixed"
"height:{{CustomBar}}px;padding-top:{{StatusBar}}px;"
navigator
'action'
open-type
"navigateBack"
delta
"1"
hover-class
"none"
icon
'icon-back'
/><
text
'text-cut width-360rpx'
space
'ensp'
> {{title}}</
</
<!--输入栏 start-->
view
"containers"
<!--form start-->
form
bindsubmit
"formSubmit"
"weui-cells weui-cells_after-title form-margin-top"
"weui-cell"
"weui-cell__bd"
textarea
name
"reason"
value
'{{reason}}'
maxlength
"200"
"weui-textarea"
placeholder
"请输入用车原因"
"height: 3.3em;"
bindinput
"bindReasonInput"
/>
"weui-textarea-counter"
>{{reasonIptCount}}/200</
"weui-cells__title"
>起点</
默认页面
页面上滑内容与标题重叠
麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)和相关截图
好的,我在评论栏给出了,麻烦看下,谢谢了
麻烦按照教程来提供下代码片段
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
请问这个问题解决了吗?我也遇到同样的问题
<
custom
style
=
"height:{{CustomBar}}px;z-index:2000px;"
>
<
bar
class
=
"fixed"
style
=
"height:{{CustomBar}}px;padding-top:{{StatusBar}}px;"
>
<
navigator
class
=
'action'
open-type
=
"navigateBack"
delta
=
"1"
hover-class
=
"none"
>
<
icon
class
=
'icon-back'
/><
text
class
=
'text-cut width-360rpx'
space
=
'ensp'
> {{title}}</
text
>
</
navigator
>
</
bar
>
</
custom
>
<!--输入栏 start-->
<
view
class
=
"containers"
>
<!--form start-->
<
form
bindsubmit
=
"formSubmit"
>
<
view
class
=
"weui-cells weui-cells_after-title form-margin-top"
>
<
view
class
=
"weui-cell"
>
<
view
class
=
"weui-cell__bd"
>
<
textarea
name
=
"reason"
value
=
'{{reason}}'
maxlength
=
"200"
class
=
"weui-textarea"
placeholder
=
"请输入用车原因"
style
=
"height: 3.3em;"
bindinput
=
"bindReasonInput"
/>
<
view
class
=
"weui-textarea-counter"
>{{reasonIptCount}}/200</
view
>
</
view
>
</
view
>
</
view
>
<
view
class
=
"weui-cells__title"
>起点</
view
>
默认页面
页面上滑内容与标题重叠
麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)和相关截图
好的,我在评论栏给出了,麻烦看下,谢谢了
麻烦按照教程来提供下代码片段