Skip to content

Commit

Permalink
x-textarea: add prop:disabled #2522
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Mar 8, 2018
1 parent 0085026 commit 17a17a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/x-textarea/index.vue
Expand Up @@ -18,6 +18,7 @@
:spellcheck="spellcheck"
:placeholder="placeholder"
:readonly="readonly"
:disabled="disabled"
:name="name"
:rows="rows"
:cols="cols"
Expand Down Expand Up @@ -69,6 +70,7 @@ export default {
name: String,
placeholder: String,
readonly: Boolean,
disabled: Boolean,
rows: {
type: Number,
default: 3
Expand Down
10 changes: 10 additions & 0 deletions src/components/x-textarea/metas.yml
Expand Up @@ -70,6 +70,11 @@ props:
default: false
en: textarea's readonly attribute
zh-CN: textarea 标签属性 readonly
disabled:
type: Boolean
default: false
en: textarea's disabled attribute
zh-CN: textarea 标签属性 disabled
autosize:
version: v2.2.1-rc.6
type: Boolean
Expand Down Expand Up @@ -102,6 +107,11 @@ methods:
en: reset autosize, if value is not empty initially, you should call this function to update size
zh-CN: 重置 autosize 高度,如果绑定值不为空,需要调用该函数进行高度重置
changes:
next:
en:
- '[feature] add prop:disabled #2522'
zh-CN:
- '[feautre] 添加属性 disabled #2522'
v2.5.1:
en:
- '[feature] Add method:updateAutosize'
Expand Down

0 comments on commit 17a17a8

Please sign in to comment.