天腾
天腾
  • 发布:2020-07-30 10:29
  • 更新:2020-07-30 10:29
  • 阅读:629

【报Bug】uni-app官方文档中关于textarea标签介绍的示例代码有误

分类:ASK社区

产品分类: 其他/ASK社区

操作步骤:
<template> <view> <view class="uni-title uni-common-pl">输入区域高度自适应,不会出现滚动条</view> <view class="uni-textarea"> <textarea @blur="bindTextAreaBlur" auto-height /> </view> <view class="uni-title uni-common-pl">占位符字体是红色的textarea</view> <view class="uni-textarea"> <textarea placeholder-style="color:#F76260" placeholder="占位符字体是红色的"/> </view> </view> </template>

预期结果:
<template> <view> <view class="uni-title uni-common-pl">输入区域高度自适应,不会出现滚动条</view> <view class="uni-textarea"> <textarea @blur="bindTextAreaBlur" auto-height /></textarea> </view> <view class="uni-title uni-common-pl">占位符字体是红色的textarea</view> <view class="uni-textarea"> <textarea placeholder-style="color:#F76260" placeholder="占位符字体是红色的"/></textarea> </view> </view> </template>

实际结果:

10:27:59.221 tag <view> has no matching end tag.
10:27:59.221 1 |
10:27:59.224 |
10:27:59.226 2 | <view>
10:27:59.227 | ^^^^^^
10:27:59.230 3 | <view class="commonbox_css mt10 foot_border li_1">
10:27:59.231 at D:\MY\HBuilderProject\mySite\pages\leavesubmit\leavesubmit.vue:0

bug描述:

https://uniapp.dcloud.net.cn/component/textarea 该页面中关于textarea组件的示例代码,会让用户误以为textarea跟input一样,只要有<textarea>,不需要用</textarea>结尾,我就被误导过。

2020-07-30 10:29 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复