开启文本框自动高度后,真机文本框一行只能显示一个字
开启文本框自动高度后,真机文本框一行只能显示一个字,开发者工具正常。
< view class = "weui-cell" > < view class = "weui-cell__bd" > < textarea class = "weui-textarea" bindblur = "contentInput" bindinput = "contentInput" placeholder = "点击输入要发布的内容" value = "{{content}}" style = "height: 3.3em;width:100%" auto-height = "true" maxlength = "{{content_max}}" auto-focus = "true" fixed = "true" /> < view class = "weui-textarea-counter" >{{content_count}}/{{content_max}}</ view > </ view > </ view > |
8 回复
<view class = "weui-cell" > <view class = "weui-cell__bd" > <textarea class = "weui-textarea" bindblur= "contentInput" bindinput= "contentInput" placeholder= "点击输入要发布的内容" value= "{{content}}" style= "height: 3.3em;width:100%" auto-height= "true" maxlength= "{{content_max}}" auto-focus= "true" fixed= "true" /> <view class = "weui-textarea-counter" >{{content_count}}/{{content_max}}</view> </view> </view> |
/** * 页面的初始数据 */ data: { title: '发布' , pageHidden: false , //页面隐藏显示状态 loading: false , //加载状态 category_id: 0 , //分类ID category_name: '' , //分类名称 content: '' , //内容 phone: '' , //手机号 location: {}, //定位信息 content_count: 0 , //文本字数 content_max: 120 , //文本最大字数 uploads: [], //已上传的图片地址 uploadmax: 9 , //最大图片数 uploadall: false , //是否全部上传完成 submiting: false , //提交状态 switchTop: false , //是否置顶 pay_fee: 0 , //发布金额 pay_top: [], //置顶信息 top_max: 0 , //最大置顶数 top_surplus: 0 , //剩余置顶数 array_top: [], //选项数组 pay_day: 0 , //置顶天数 }, |