Skip to content

Commit

Permalink
feat(FormDesigner): 级联选择器新增支持配置父子级联关系,version update to 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Nov 8, 2020
1 parent 03451a6 commit 40cd7d1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.2.1",
"version": "0.2.2",
"main": "lib/ProCrud.umd.min.js",
"files": [
"lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/form-designer/src/GenerateFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
:separator="widget.options.separator == null ?'/':widget.options.separator"
:options="optionsList"
filterable
:props="{ checkStrictly: true }">
:props="{ checkStrictly: widget.options.checkStrictly }">
</el-cascader>
</template>
<template v-if="widget.type == 'table'">
Expand Down
4 changes: 4 additions & 0 deletions packages/form-designer/src/WidgetConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
<el-switch v-model="data.options.multiple"
@change="handleSelectMuliple"></el-switch>
</el-form-item>
<el-form-item label="父子结点是否不关联"
v-if="'cascader'.includes(data.type)">
<el-switch v-model="data.options.checkStrictly"></el-switch>
</el-form-item>
<el-form-item label="分隔符"
v-if="data.options.separator">
<el-input type="input"
Expand Down
1 change: 1 addition & 0 deletions packages/form-designer/src/componentsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export const advanceComponents = [
multiple: false,
disabled: false,
clearable: false,
checkStrictly: false,
remote: 'dict',
remoteOptions: [],
props: {
Expand Down

0 comments on commit 40cd7d1

Please sign in to comment.