## textarea
| 屬性名 | 類型 | 默認值 | 說明 |
| --- | --- | --- | --- |
| value | String | | 輸入框的內容 |
| placeholder | String | | 輸入框為空時占位符 |
| placeholder-style | String | | 指定 placeholder 的樣式 |
| placeholder-class | String | textarea-placeholder | 指定 placeholder 的樣式類 |
| disabled | Boolean | false | 是否禁用 |
| maxlength | Number | 140 | 最大輸入長度,設置為 -1 的時候不限制最大長度 |
| auto-focus | Boolean | false | 自動聚焦,拉起鍵盤。 |
| focus | Boolean | false | 獲取焦點 |
| auto-height | Boolean | false | 是否自動增高,設置auto-height時,style.height不生效 |
| fixed | Boolean | false | 如果 textarea 是在一個 position:fixed 的區域,需要顯示指定屬性 fixed 為 true |
| cursor-spacing | Number | 0 | 指定光標與鍵盤的距離,單位 px 。取 textarea 距離底部的距離和 cursor-spacing 指定的距離的最小值作為光標與鍵盤的距離 |
| cursor | Number | | 指定focus時的光標位置 |
| show-confirm-bar | Boolean | true | 是否顯示鍵盤上方帶有”完成“按鈕那一欄 |
| selection-start | Number | -1 | 光標起始位置,自動聚集時有效,需與selection-end搭配使用 |
| selection-end | Number | -1 | 光標結束位置,自動聚集時有效,需與selection-start搭配使用 |
| adjust-position | Boolean | true | 鍵盤彈起時,是否自動上推頁面 |
| bindfocus | EventHandle | | 輸入框聚焦時觸發,event.detail = { value, height },height 為鍵盤高度,在基礎庫 1.9.90 起支持 |
| bindblur | EventHandle | | 輸入框失去焦點時觸發,event.detail = {value, cursor} |
| bindlinechange | EventHandle | | 輸入框行數變化時調用,event.detail = {height: 0, heightRpx: 0, lineCount: 0} |
| bindinput | EventHandle | | 當鍵盤輸入時,觸發 input 事件,event.detail = {value, cursor}, bindinput 處理函數的返回值并不會反映到 textarea 上 |
| bindconfirm | EventHandle | | 點擊完成時, 觸發 confirm 事件,event.detail = {value: value} |