diff --git a/migrate-from-v2.md b/migrate-from-v2.md index 6e386b6808..b797b19646 100644 --- a/migrate-from-v2.md +++ b/migrate-from-v2.md @@ -516,12 +516,9 @@ plugins: [ #### TextArea -- `maxlength` 重命名为 `maxLength` -- `readonly` 重命名为 `readOnly` -- `limitShow` 重命名为 `showCount` -- `autosize` 重命名为 `autoSize` -- 移除 `textAlign`,可通过 `style` 传入 -- `defaultValue` 改为非受控,增加受控值 `value` +- 新增 `plain` 属性,标记为 纯文本型;该值默认为false,标记为 container 容器型; +- 新增 `status` 属性,值为 `default` | `error`,可定义输入框的状态; +- 删掉一些可使用基础样式变量,并且建议使用基础样式变量的样式变量,比如 `$textarea-font` `$textarea-limit-color` `$textarea-disabled-color` #### Uploader diff --git a/src/config.json b/src/config.json index 57a6efe126..6f5af38150 100644 --- a/src/config.json +++ b/src/config.json @@ -702,6 +702,7 @@ "sort": 2, "show": true, "taro": true, + "v15": true, "author": "VickyYe" }, { diff --git a/src/packages/textarea/__test__/__snapshots__/textarea.spec.tsx.snap b/src/packages/textarea/__test__/__snapshots__/textarea.spec.tsx.snap index 2c174bfdb4..76f243f012 100644 --- a/src/packages/textarea/__test__/__snapshots__/textarea.spec.tsx.snap +++ b/src/packages/textarea/__test__/__snapshots__/textarea.spec.tsx.snap @@ -3,7 +3,7 @@ exports[`textarea props test 1`] = `