Skip to content

Commit

Permalink
Merge pull request #22 from chanble/disableTextarea
Browse files Browse the repository at this point in the history
添加了textarea可禁用属性
  • Loading branch information
GavinZhuLei authored Jan 11, 2019
2 parents d156b74 + 10d48cc commit 3cc0708
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/GenerateFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<template v-if="widget.type == 'textarea'">
<el-input type="textarea" :rows="5"
v-model="dataModel"
:disabled="widget.options.disabled"
:placeholder="widget.options.placeholder"
:style="{width: widget.options.width}"
></el-input>
Expand Down
1 change: 1 addition & 0 deletions src/components/WidgetFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<el-input type="textarea" :rows="5"
v-model="element.options.defaultValue"
:style="{width: element.options.width}"
:disabled="element.options.disabled"
:placeholder="element.options.placeholder"
></el-input>
</template>
Expand Down
1 change: 1 addition & 0 deletions src/components/componentsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const basicComponents = [
width: '100%',
defaultValue: '',
required: false,
disabled: false,
pattern: '',
placeholder: ''
}
Expand Down

0 comments on commit 3cc0708

Please sign in to comment.