Skip to content

Commit

Permalink
[feature]{GenerateForm}: 级联选择器加入多选属性, !!! 仅2.9.1版本支持,先预先加上,暂时无效 !!!
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed May 31, 2019
1 parent 35c3c78 commit b04790a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/FormDesigner/GenerateFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@
:clearable="widget.options.clearable"
:placeholder="widget.options.placeholder"
:style="{width: widget.options.width}"
:options="widget.options.remoteOptions">
:options="widget.options.remoteOptions"
:props="{ multiple: widget.options.multiple }"
>

</el-cascader>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/FormDesigner/WidgetConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
:step="1"/>
</el-form-item>
<el-form-item
v-if="data.type=='select'"
v-if="data.type=='select' || data.type === 'cascader'"
label="是否多选">
<el-switch
v-model="data.options.multiple"
Expand Down
1 change: 1 addition & 0 deletions src/components/FormDesigner/componentsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export const basicComponents = [
placeholder: '',
disabled: false,
clearable: false,
multiple: false,
remote: 'dict',
remoteOptions: [],
props: {
Expand Down

0 comments on commit b04790a

Please sign in to comment.