Skip to content

Commit

Permalink
textarea增加可禁用属性
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 13, 2019
1 parent 13c2ac2 commit 7fb7518
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/FormDesigner/GenerateFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
:rows="5"
v-model="dataModel"
:placeholder="widget.options.placeholder"
:disabled="widget.options.disabled"
:style="{width: widget.options.width}"
type="textarea"
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/FormDesigner/WidgetFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
v-model="element.options.defaultValue"
:style="{width: element.options.width}"
:placeholder="element.options.placeholder"
:disabled="element.options.disabled"
type="textarea"

/>
Expand Down
2 changes: 2 additions & 0 deletions src/components/FormDesigner/componentsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const basicComponents = [
options: {
width: '100%',
defaultValue: '',
disabled: false,

required: false,
pattern: '',
placeholder: '',
Expand Down

0 comments on commit 7fb7518

Please sign in to comment.